【问题标题】:iPhone XR not showing bottomAppBar with correct heightiPhone XR 未显示正确高度的底部应用程序栏
【发布时间】:2019-05-21 00:33:32
【问题描述】:

我已将 bottomAppBar 与我的 Flutter 应用程序集成并添加了 FAB。但这并没有正确地显示我。请查看附件图片:

【问题讨论】:

标签: ios iphone dart flutter


【解决方案1】:

将您的小部件包装在 SafeArea 中:

return SafeArea(
      child: Scaffold(
        ...
      ),
    );

更多信息在这里:https://docs.flutter.io/flutter/widgets/SafeArea-class.html

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-13
    • 2016-11-17
    • 1970-01-01
    • 1970-01-01
    • 2020-05-12
    • 1970-01-01
    相关资源
    最近更新 更多