feat: consolidate backend and docker-compose setup
This commit is contained in:
commit
ff3753a745
306 files changed
+35450
No files matched your search
@@ -0,0 +1,39 @@
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
|
||||
import '../../features/splash/splash_screen.dart';
|
||||
import '../../features/auth/login_screen.dart';
|
||||
import '../../features/camera/camera_screen.dart';
|
||||
import '../../features/documents/documents_screen.dart';
|
||||
import '../../features/editor/editor_screen.dart';
|
||||
|
||||
final appRouterProvider = Provider<GoRouter>((ref) {
|
||||
return GoRouter(
|
||||
initialLocation: '/splash',
|
||||
routes: [
|
||||
GoRoute(
|
||||
path: '/splash',
|
||||
builder: (context, state) => const SplashScreen(),
|
||||
),
|
||||
GoRoute(
|
||||
path: '/login',
|
||||
builder: (context, state) => const LoginScreen(),
|
||||
),
|
||||
GoRoute(
|
||||
path: '/camera',
|
||||
builder: (context, state) => const CameraScreen(),
|
||||
),
|
||||
GoRoute(
|
||||
path: '/documents',
|
||||
builder: (context, state) => const DocumentsScreen(),
|
||||
),
|
||||
GoRoute(
|
||||
path: '/editor',
|
||||
builder: (context, state) {
|
||||
final pendingId = state.extra as String?;
|
||||
return EditorScreen(pendingId: pendingId);
|
||||
},
|
||||
),
|
||||
],
|
||||
);
|
||||
});
|
||||
Reference in new issue
Block a user