0

Is there a way to use SliverAppBar with CupertinoPageRoute? I've tried:

 onGenerateRoute: (RouteSettings settings) {
        switch (settings.name) {
          case HomeScreen.routeName:
            return CupertinoPageRoute(
              builder: (_) => const HomeScreen(),
              settings: settings,
            );
          }
    }

But it's not working when navigating from a page with SliverAppBar. Sadly I can't use CupertinoSliverNavigationBar because there are not enough options for customization.

saibot
  • 331
  • 2
  • 13

0 Answers0