No content changes: git diff --ignore-all-space over these files is empty. The churn came from editing on Windows against a repo checked out with LF.
48 lines
1.4 KiB
Dart
48 lines
1.4 KiB
Dart
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';
|
|
import '../../features/editor/product_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);
|
|
},
|
|
),
|
|
GoRoute(
|
|
path: '/product-editor',
|
|
builder: (context, state) {
|
|
final pendingId = state.extra as String?;
|
|
return ProductEditorScreen(pendingId: pendingId);
|
|
},
|
|
),
|
|
],
|
|
);
|
|
});
|