Improved webview

This commit is contained in:
Juan Gilsanz Polo
2024-02-22 22:11:41 +01:00
parent 83fe30408f
commit 8d85b80b09
15 changed files with 465 additions and 430 deletions

View File

@@ -21,6 +21,10 @@ final List<RouteBase> appRoutes = [
path: RoutesPaths.onboarding,
builder: (context, state) => const Onboarding(),
),
GoRoute(
path: RoutesPaths.webview,
builder: (context, state) => WebView(bookmark: state.extra as Bookmark),
),
StatefulShellRoute.indexedStack(
builder: (context, state, navigationShell) => Layout(
navigationShell: navigationShell,
@@ -34,10 +38,6 @@ final List<RouteBase> appRoutes = [
path: RoutesPaths.links,
builder: (context, state) => const Links(),
),
GoRoute(
path: RoutesPaths.webview,
builder: (context, state) => WebView(bookmark: state.extra as Bookmark),
),
],
),
StatefulShellBranch(