Flutter bottom padding color on iPhone

眉间皱痕 提交于 2021-01-24 20:27:31

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!