ShellRoute(
navigatorKey: _shellNaigationkey,
builder: (context, state, child) {
return HeroControllerScope(
controller: MaterialApp.createMaterialHeroController(),
child: ScaffoldWithNavBar(child: child));
},
routes: [
GoRoute(
path: '/home',
builder: (context, state) {
return const HomeScreen();
},
pageBuilder: (context, state) => NoTransitionPage<void>(
key: state.pageKey,
child: const HomeScreen(),
),
routes: [
GoRoute(
path: 'question-detail',
builder: (context, state) {
return const QuestionDetail();
},
),
]),
GoRoute(
path: '/profile',
builder: (context, state) {
return const ProfileScreen();
},
pageBuilder: (context, state) => NoTransitionPage<void>(
key: state.pageKey,
child: const ProfileScreen(),
),
),
])
Asked
Active
Viewed 45 times
0

Md. Yeasin Sheikh
- 54,221
- 7
- 29
- 56

Van Nak
- 61
- 1
- 5