小编Pau*_*rea的帖子

显示键盘时如何隐藏cupertinoTabBar?或者如何让键盘盖住吧台?还是始终将标签栏保持在底部?

我在我的颤振应用程序中使用 CupertinoTabBar。问题是当键盘出现时,bottomBar 会显示,而它不应该。它是一个底部栏,它应该始终位于底部。

我还没有找到一些方法或技巧来做到这一点。也许有人可以指导我获得正确的行为。

这是我的颤振医生输出

医生摘要(要查看所有详细信息,请运行 flutter doctor -v):

[?] Flutter (Channel master, v1.6.1-pre.50, on Linux, locale en_US.UTF-8)

[?] Android 工具链 - 为 Android 设备开发(Android SDK 版本 28.0.3)

[?] Android Studio(3.3 版)

[?] VS Code(版本 1.33.1)

[?] 连接的设备(1 个可用)

这是 cupertinoTabBar 允许的唯一选项:

const CupertinoTabBar({
    Key key,
    @required this.items,
    this.onTap,
    this.currentIndex = 0,
    this.backgroundColor,
    this.activeColor,
    this.inactiveColor = CupertinoColors.inactiveGray,
    this.iconSize = 30.0,
    this.border = const Border(
      top: BorderSide(
        color: _kDefaultTabBarBorderColor,
        width: 0.0, // One physical pixel.
        style: BorderStyle.solid,
      ),
    ),
  })
Run Code Online (Sandbox Code Playgroud)

这是出现键盘时我的 …

flutter cupertinotabbar flutter-cupertino

6
推荐指数
1
解决办法
1911
查看次数