首页 > 解决方案 > 为什么在颤动的 android 和 ios 上的 BottomAppBar 高度存在差异?

问题描述

我在颤振应用程序中实现了一个底部应用程序栏,但是两个设备的高度不同,甚至边距也不同。

主要.dart

bottomNavigationBar: BottomAppBar(
    color: Colors.black,
    child: IconButton(
      onPressed: () {},
    icon: Icon(
        Icons.fiber_manual_record,
        color: Colors.white,
      ),
    ),
  ),

在此处输入图像描述

标签: androidiosflutterdartflutter-layout

解决方案


推荐阅读