ios - iPhone XR 不显示具有正确高度的 bottomAppBar

标签 ios iphone dart flutter

我已将 bottomAppBar 与我的 Flutter 应用集成,并为其添加了 FAB。但这并没有正确地显示我。请检查附图: enter image description here

最佳答案

将您的 Widget 包裹在 SafeArea 中:

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

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

关于ios - iPhone XR 不显示具有正确高度的 bottomAppBar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53869491/

相关文章:

ios - 如何在 TextView 中的 NSMutableArray 中追加值?

objective-c - 如何/是否模拟 UINavigationController pushToViewController 方法

iphone - NIAttributedLabel settextcolor 不工作

ios - Realm 是否像 SQLite 和 Core Data 一样安全?

visual-studio-code - Flutter-为我的应用程序创建一个 android 模拟器

ios - 如何使用 SceneKit 在 Xcode 中将图像纹理添加到 3D Assets

objective-c - 如何 dequeueReusableCellWithIdentifier : treat different indexPath?

ios - 应用程序 :didReceiveLocalNotification: not called when app in background

regex - 如何在regexp中使用regexp?

Flutter - 显示来自本地 json 文件的图像 url