iPhone XR未显示正确高度的bottomAppBar

时间:2018-12-20 13:15:15

标签: ios iphone dart flutter

我已经将bottomAppBar与Flutter应用程序集成在一起,并在其中添加了FAB。但这并不能正确显示我。请检查所附图片: enter image description here

1 个答案:

答案 0 :(得分:1)

将小部件包装在SafeArea中:

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

此处有更多信息:https://docs.flutter.io/flutter/widgets/SafeArea-class.html