问题
is it possible to change the color of this bottom padding that comes with the iPhone ?
回答1:
Wrap your MaterialApp with below code in main.dart
class:-
AnnotatedRegion<SystemUiOverlayStyle>(
value: SystemUiOverlayStyle(
statusBarColor: Colors.transparent, //set as per your status bar color
systemNavigationBarColor: Colors.black, //set as per your navigation bar color
statusBarIconBrightness: Brightness.dark, //set as per your status bar icons' color
systemNavigationBarIconBrightness: Brightness.dark,
),
child: MaterialApp(
来源:https://stackoverflow.com/questions/65609618/flutter-bottom-padding-color-on-iphone