Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/83.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 如何防止iphone notch在书签桌面应用程序中重叠内容?_Flutter - Fatal编程技术网

Flutter 如何防止iphone notch在书签桌面应用程序中重叠内容?

Flutter 如何防止iphone notch在书签桌面应用程序中重叠内容?,flutter,Flutter,我正在使用SafeArea显示底部导航栏: SafeArea( child: ScaffoldMessenger( child: Scaffold( body: _tabs[index], bottomNavigationBar: BottomNavigationBar( selectedItemColor: Theme.of(context).primaryColor, unse

我正在使用SafeArea显示底部导航栏:

SafeArea(
      child: ScaffoldMessenger(
        child: Scaffold(
          body: _tabs[index],
          bottomNavigationBar: BottomNavigationBar(
            selectedItemColor: Theme.of(context).primaryColor,
            unselectedItemColor: Colors.grey,
            showUnselectedLabels: true,
            items: [
              BottomNavigationBarItem(
                  icon: Icon(Icons.calendar_today), label: "Agenda"),
              BottomNavigationBarItem(
                  icon: Icon(Icons.people), label: "Patients"),
              BottomNavigationBarItem(
                  icon: Icon(Icons.account_balance_wallet), label: "Comptes"),
              BottomNavigationBarItem(
                  icon: Icon(Icons.settings), label: "Réglages"),
            ],
            currentIndex: index,
            onTap: (i) => context.read(navigationIndexProvider).index = i,
          ),
        ),
      ),
    );
当在iphone桌面上添加书签时,安全区域不会阻止槽口与底部导航栏重叠

结果如下:


如何正确防止槽口与底部栏重叠?

在SAFEAREA小部件中有一个参数-bottom 将此底部设置为true或false

安全区( 底部:是的, 孩子:脚手架 )


我不记得正确的选项了,你可以同时检查这两个选项,让我们知道哪一个适合你。

我看到了这一点,但它的默认值已经为true。然后将其设置为false,这两个选项都不起作用。这可能与它是作为iphone桌面上的快捷方式放置的Flitter web应用程序,而不是真正的iphone应用程序有关。