Home Articles

如何在保持bottomNavigationBar的同时导航到颤动的新屏幕

Asked
Viewed 180 times
2

Hy Guys,我'm currently developing an app with Flutter and i' m在 Profiles 页面 . 我无法在不更改底部导航栏的情况下从配置文件页面导航到设置页面Something Like this

注意:导航发生在同一选项卡中 . 我不是要求如何在标签之间切换

1 Answer

  • 2

    Bottom Navigation Bar中,页面是标签

    这是full example

    new Scaffold(
          body: new TabBarView(
            children: <Widget>[new FirstTab(), new SecondTab(), new ThirdTab()],
            controller: controller,
          ),
    bottomNavigationBar: new TabBar(
              tabs: <Tab>[
                new Tab(
                  icon: new Icon(Icons.favorite),
                ),
                new Tab(
                  icon: new Icon(Icons.adb),
                ),
                new Tab(
                  icon: new Icon(Icons.airport_shuttle),
                ),
              ])
    

Related