added legacy and legacy_dashboard_shell modules

This commit is contained in:
2026-01-27 12:45:25 +01:00
parent 60a49060a1
commit 12edcd0940
68 changed files with 2496 additions and 46 deletions

View File

@@ -1,4 +1,5 @@
import 'package:auth/auth.dart';
import 'package:legacy_dashboard_shell/legacy_dashboard_builder.dart';
import 'package:dashboard_shell/dashboard_builder.dart';
import 'package:flutter/material.dart';
import 'package:get_it/get_it.dart';
@@ -17,7 +18,7 @@ late final GoRouter appRouter;
void configureAppRouter() {
appRouter = GoRouter(
navigatorKey: rootNavigatorKey,
initialLocation: AppRoutes.splash,
initialLocation: AppRoutes.dashboardHub,
debugLogDiagnostics: true,
routes: [
GoRoute(
@@ -25,11 +26,23 @@ void configureAppRouter() {
name: 'splash',
pageBuilder: SplashBuilder().buildPage,
),
GoRoute(
path: AppRoutes.hub,
name: 'hub',
pageBuilder: HubBuilder().buildPage,
StatefulShellRoute.indexedStack(
builder: (context, state, navShell) {
return LegacyDashboardBuilder().build(context, navShell);
},
branches: [
StatefulShellBranch(
routes: [
GoRoute(
path: AppRoutes.dashboardHub,
name: 'hub',
pageBuilder: const HubBuilder().buildPage,
),
],
),
],
),
GoRoute(
path: AppRoutes.login,
name: 'login',