白色底栏仅适用于新的ios版本 [英] White bottombar only on the new ios version

查看:57
本文介绍了白色底栏仅适用于新的ios版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人知道如何摆脱白色底栏(又称家庭指示器)(参见图片).它仅在IOS 14设备上显示,更具体地讲,在没有homebutton的设备上显示.谢谢.

Does anyone know how to get rid of the white bottom bar(aka home indicator) (see picture). It appears only on IOS 14 devices and more specific on devices without a homebutton. Thanks.

已仅在实施底栏时显示.

Edited: It appears only when a bottombar is implemented.

        bottomNavigationBar: BottomAppBar(
      child: Container(
        decoration: BoxDecoration(
          gradient: LinearGradient(
              begin: Alignment.centerLeft,
              end: Alignment.centerRight,
              colors: [Colors.deepPurple[400], Colors.deepPurple[700]]),
        ),
        height: getBottomBarSize(),
        child: getText(),
      ),
    ),

推荐答案

下面的代码段对我有用,我得到了解决方案,以某种方式BottomAppBar是问题所在.(将BottomAppBar更改为SafeArea并设置了bootom:false)

I got a solution, somehow the BottomAppBar is the problem, following snippet works for me.(Changing BottomAppBar to SafeArea and set bootom:false)

    bottomNavigationBar: SafeArea(
      bottom: false,
      child: Container(
        decoration: BoxDecoration(
          gradient: LinearGradient(
              begin: Alignment.centerLeft,
              end: Alignment.centerRight,
              colors: [Colors.deepPurple[400], Colors.deepPurple[700]]),
        ),
        height: getBottomBarSize(),
        child: getText(),
      ),
    ),

这篇关于白色底栏仅适用于新的ios版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆