【问题标题】:Flutter bottom padding color on iPhoneiPhone上的颤振底部填充颜色
【发布时间】:2021-01-07 09:20:38
【问题描述】:

是否可以更改 iPhone 附带的底部填充的颜色?

【问题讨论】:

    标签: flutter flutter-layout


    【解决方案1】:

    包装您的 MaterialApp main.dart 类中使用以下代码:-

    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(
    

    【讨论】:

    • 这没有帮助,它仍然是一样的:/
    • 看起来 SafeArea 小部件是这种行为背后的原因,我用一个容器包裹它并给它一个颜色,现在一切都很好:)
    猜你喜欢
    • 1970-01-01
    • 2022-07-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-04
    • 2017-10-18
    • 2019-12-04
    • 2021-07-19
    相关资源
    最近更新 更多