Skip to content

Scroll to top doesn't work #5

Description

@mark8044

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

   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: (...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions