Flutter: Keep BottomNavigationBar When Push to New Screen with Navigator

后端 未结 10 723
情深已故
情深已故 2020-12-25 12:55

In iOS, we have a UITabBarController which stays permanently at the bottom of the screen when we push to a new ViewController.

In Flutter, we have a bottomNavigation

10条回答
  •  -上瘾入骨i
    2020-12-25 13:27

    You can use Nested Routes of auto_route package, that's how I implemented it. Here is the link if anyone wants for reference auto_route

    One other way you can implement this is by using get package.

    Nested routes are not recommended as they can create the memory leak in some cases.

提交回复
热议问题