Have you noticed that if you have scrollviews or list views in the tabs that tapping on the very top bar on iOS no longer does a scroll to top?
return BottomNavLayout(
// The app's destinations
pages: [
(navKey) => Navigator(
key: UniqueKey(),
initialRoute: "/",
onGenerateRoute: (routeSettings) => MaterialPageRoute(
builder: (context) {
return NewsScreen();
},
),
),
(navKey) => Navigator(
key: UniqueKey(),
initialRoute: "/2",
onGenerateRoute: (routeSettings) => MaterialPageRoute(
builder: (context) {
return SecondScreen();
},
),
),
(navKey) => Navigator(
key: UniqueKey(),
initialRoute: "/3",
onGenerateRoute: (routeSettings) => MaterialPageRoute(
builder: (context) {
return ThirdScreen();
},
),
),
],
savePageState:true,
lazyLoadPages:true,
extendBody:false,
pageStack: ReorderToFrontPageStack(initialPage: 0),
bottomNavigationBar: (...)
Have you noticed that if you have scrollviews or list views in the tabs that tapping on the very top bar on iOS no longer does a scroll to top?
Any solution?
I tried creating unique keys but that didn't seem to do anything