cost 261 ms
更改 Cupertino 选项卡栏中活动按钮导航栏项目的背景颜色(颤振) - Change Background Color of Active Button Navigation Bar Item in Cupertino Tab Bar(Flutter)

我正在制作一个应用程序,其中活动的底部导航栏项需要具有与非活动项不同的背景。 我尝试将其包装到activeicon header 并将 label 保留为 null。 但是,我一直在下面有一条线,它与我在activeicon中的背景颜色不同。 我尝试将它放在SizedBox中或将其设置为heigh ...

Flutter:带有 CupertinoTabBar 的 CupertinoTabScaffold 在推送屏幕中的 TabBar 底部创建 RenderFlex 溢出问题 - Flutter: CupertinoTabScaffold with CupertinoTabBar creating RenderFlex overflow issue at bottom for TabBar in pushed screens

我是一名 iOS 开发人员,所以我知道 TabBarController 如何在 iOS 中工作。 现在我正在研究 Flutter(第一个 APP)。 我有一个应用程序,它使用 CupertinoApp-CupertinoTabScaffold-CupertinoTabBar 在每个嵌套屏幕中保留 ...

Flutter showModalBottomSheet 隐藏在 CupertinoTabBar 后面 - Flutter showModalBottomSheet is hidden behind CupertinoTabBar

我使用 CupertinoTabBar,但想在用户设备为 Android 时显示材料设计 BottomSheet。但是,当我同时使用它们时,BottomSheet 隐藏在 CupertinoTabBar 后面,如下所示。 你能帮我解决这个问题吗? 还是两者都用不好? 我的简化代码 ...

在 Flutter 中的 CupertinoTabView 中强制重新加载页面 - Force Reload page in CupertinoTabView in Flutter

当用户点击CupertinoTabView中的项目时,我想每次都重新加载页面。 现在,它只是第一次加载。 下一次它只显示以前的 state。 我想强制重新加载它。 例如,当用户点击 pageThree 时,即下面代码中 switch case 中的“case 2”,我想重新加载该页面。 这是我的代码 ...

如何在颤动中分离后退按钮的一键和双击? - How can I separate one tap and double tap of back button in flutter?

当双击CupertinoTabbar的后退按钮时,我正在尝试创建一个退出应用程序的功能。 虽然我已经应用了各种功能,例如DoubleBackToCloseApp插件或WillPopScope ,但每当我点击后退按钮时,都会出现退出消息。 因此,我想构建一个代码工作如下: 只需点击一次返回按 ...

Flutter Cupertino bottom_tab_bar:'方法'method'被调用为空' - Flutter Cupertino bottom_tab_bar: 'The method 'method' was called on null'

我的应用程序上有一个 cupertino bottom_tab_bar,但是每次我点击其中一个图标来更改页面时,调试控制台都会显示: ========被手势捕获的异常====================================== ===== 方法 'jumpToPage' 在 n ...

我可以将浮动操作按钮停靠在 CupertinoTabBar 中吗? - Can I dock a floating action button in a CupertinoTabBar?

我想知道是否有办法将浮动操作按钮停靠在 CupertinoTabBar 中。 我想得到如下图所示的结果 我的屏幕组织如下 CupertinoTab 脚手架 CupertinoTabView 库比蒂诺页脚手架库比蒂诺导航栏脚手架库比蒂诺标签栏我试图将以下代码添加到我的脚手架,但结果不是我想要的。 我 ...

Flutter:在 CupertinoTabScaffold 中处理多个导航屏幕 - Flutter : handling multiple navigation screen in CupertinoTabScaffold

您好,我是 Flutter 的新手,我正在尝试为每个选项卡实现一个带有多个导航屏幕的底部选项卡栏。 这是我的初始设置 这是我的主屏幕 这是我的屏幕1 这是我的 screen3 tabBar 工作正常,我可以在 2 个选项卡之间切换,但我无法从屏幕 1 导航到屏幕 3。当我点击 s ...

Flutter SnackBar 显示在 CupertinoTabBar 下(隐藏snackBar) - Flutter SnackBar displays under CupertinoTabBar(hidding snackBar)

我在根页面上使用了 BottomNavigatoinBar。 在其中一个页面(探索页面)上,这是一个有状态的小部件,它有一个带有三个选项卡的 CupertionoSegmentedTab,每个都显示列表视图。 我必须根据列表视图项单击显示 SnackBar。 我可以成功显示 SnackBar 但它 ...

显示键盘时如何隐藏cupertinoTabBar? 或者如何让键盘盖住吧台? 还是始终将标签栏保持在底部? - How to hide cupertinoTabBar when keyboard is displayed? or how to make keyboard cover the bar? or keep the tabbar in bottom always?

我在我的颤振应用程序中使用 CupertinoTabBar。 问题是当键盘出现时,bottomBar 会显示,而它不应该。 它是一个底部栏,它应该始终位于底部。 我还没有找到一些方法或技巧来做到这一点。 也许有人可以指导我获得正确的行为。 这是我的颤振医生输出 医生摘要(要查看所有详细信息,请运 ...

Flutter CupertinoTabBar:无法通过流事件的索引切换到选项卡 - Flutter CupertinoTabBar: cannot switch to a tab by index on a stream event

尝试激活CupertinoTabBar's选项卡 0 而选项卡 1 在stream event上处于stream event如下所示: 当事件来自_drawerStream时,视觉上不会发生任何事情。 仍在使用调试器跟踪正在发生的事情,它发现CupertinoTabBar小部件构建了 2 次,并 ...

如何使用 CupertinoTabBar 移动标签? 与材质标签栏不同,我们没有标签控制器来切换标签 - How to shift tabs with a CupertinoTabBar ? Unlike the material tab bar we do not have tab controller to switch tabs

我在主页选项卡上,我需要使用 CupertinoTabBar 切换到我的第二个选项卡。 我没有 tabcontroller 可以使用像材质选项卡栏这样的全局键来切换。 你能提出一些选择吗? 我尝试使用全局键并更改选项卡的 currentIndex。 然而,没有运气。 已经没有选择了。 Home ...

Flutter禁用标签栏项目 - Flutter disable tab bar items

我希望能够以编程方式在Flutter中禁用/启用选项卡栏项目,并且想知道如何去做? 例如,在IOS中,将tabBarItem1.isEnabled = false 。 我要禁用用户与选项卡栏的交互,直到他们首先经过某个过程(例如,按下按钮)为止。 任何帮助/指针将不胜感激。 ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM