Changed navigation

This commit is contained in:
Juan Gilsanz Polo
2024-02-29 01:45:26 +01:00
parent 3506832f99
commit a8d459ed11
6 changed files with 44 additions and 38 deletions

View File

@@ -28,25 +28,17 @@ final List<RouteBase> appRoutes = [
path: RoutesPaths.onboarding,
builder: (context, state) => const Onboarding(),
),
ShellRoute(
builder: (context, state, child) => Layout(
state: state,
child: child,
),
routes: [
GoRoute(
path: RoutesPaths.bookmarks,
builder: (context, state) => const PageTransition(child: BookmarksScreen()),
),
GoRoute(
path: RoutesPaths.tags,
builder: (context, state) => const PageTransition(child: TagsScreen()),
),
GoRoute(
path: RoutesPaths.settings,
builder: (context, state) => const PageTransition(child: SettingsScreen()),
),
],
GoRoute(
path: RoutesPaths.bookmarks,
builder: (context, state) => const PageTransition(child: BookmarksScreen()),
),
GoRoute(
path: RoutesPaths.tags,
builder: (context, state) => const PageTransition(child: TagsScreen()),
),
GoRoute(
path: RoutesPaths.settings,
builder: (context, state) => const PageTransition(child: SettingsScreen()),
),
GoRoute(
path: RoutesPaths.tagBookmarks,