简体   繁体   English

按 fab 更改底部导航栏选定的项目

[英]Change Bottom Navigation Bar selected Item by fab

How can I change the Bottom Navigation Bar selected Item in flutter with fab (Floating Action Button)?如何使用 fab(浮动操作按钮)更改 flutter 中底部导航栏选定的项目?

It is my fab and I want to change the bottom navigation bar selected item by pressing it.这是我的工厂,我想通过按下它来更改底部导航栏选定的项目。

FloatingActionButton.extended(
          onPressed: (){


          },)

Using documentation example使用文档示例

FloatingActionButton.extended(
          onPressed: (){
             _onItemTapped(1);
          },)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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