Skip to content

Commit

Permalink
fix: Remove bottom navigation transition to match previous setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
wizlif committed Oct 10, 2022
1 parent c9bb135 commit e8578fe
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions lib/presentation/core/routes/router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,22 @@ class AppRouter {
routes: [
ShellRoute(
builder: (BuildContext context, GoRouterState state, Widget child) {
return HomePage(
child: child,
);
return HomePage(child: child);
},
routes: <RouteBase>[
GoRoute(
path: AppPage.home.toPath,
builder: (BuildContext context, GoRouterState state) {
return const CrowdActionHomeScreen();
},
pageBuilder: (_, __) =>
const NoTransitionPage(child: CrowdActionHomeScreen()),
),
GoRoute(
path: AppPage.userProfile.toPath,
builder: (BuildContext context, GoRouterState state) {
return UserProfilePage();
},
pageBuilder: (_, __) =>
NoTransitionPage(child: UserProfilePage()),
),
GoRoute(
path: AppPage.demoPage.toPath,
builder: (BuildContext context, GoRouterState state) {
return DemoPage();
},
pageBuilder: (_, __) => NoTransitionPage(child: DemoPage()),
)
],
),
Expand Down

0 comments on commit e8578fe

Please sign in to comment.