add auth
This commit is contained in:
@@ -19,6 +19,9 @@ class WorkerApp extends ConsumerWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
// Watch router provider to get auth-aware router
|
||||
final router = ref.watch(routerProvider);
|
||||
|
||||
return MaterialApp.router(
|
||||
// ==================== App Configuration ====================
|
||||
debugShowCheckedModeBanner: false,
|
||||
@@ -26,7 +29,8 @@ class WorkerApp extends ConsumerWidget {
|
||||
|
||||
// ==================== Router Configuration ====================
|
||||
// Using go_router for declarative routing with deep linking support
|
||||
routerConfig: AppRouter.router,
|
||||
// Router is provided by Riverpod and includes auth state management
|
||||
routerConfig: router,
|
||||
|
||||
// ==================== Theme Configuration ====================
|
||||
// Material 3 theme with brand colors (Primary Blue: #005B9A)
|
||||
|
||||
Reference in New Issue
Block a user