Add document scanner
This commit is contained in:
@ -6,6 +6,7 @@ import 'package:moneymgr_mobile/routes/login/login_screen.dart';
|
||||
import 'package:moneymgr_mobile/routes/login/manual_auth_screen.dart';
|
||||
import 'package:moneymgr_mobile/routes/login/qr_auth_screen.dart';
|
||||
import 'package:moneymgr_mobile/routes/profile/profile_screen.dart';
|
||||
import 'package:moneymgr_mobile/routes/scan/scan_screen.dart';
|
||||
import 'package:moneymgr_mobile/routes/settings/settings_screen.dart';
|
||||
import 'package:moneymgr_mobile/services/router/routes_list.dart';
|
||||
import 'package:moneymgr_mobile/widgets/load_startup_data.dart';
|
||||
@ -34,20 +35,11 @@ GoRouter router(Ref ref) {
|
||||
// see [AuthState] enum.
|
||||
final navigationItems = [
|
||||
NavigationItem(
|
||||
path: '/products',
|
||||
body: (_) => const Text("product screen"),
|
||||
icon: Icons.widgets_outlined,
|
||||
selectedIcon: Icons.widgets,
|
||||
label: 'Products',
|
||||
routes: [
|
||||
GoRoute(
|
||||
path: ':id',
|
||||
builder: (_, state) {
|
||||
final id = int.parse(state.pathParameters['id']!);
|
||||
return Text("product screen $id");
|
||||
},
|
||||
),
|
||||
],
|
||||
path: scanPage,
|
||||
body: (_) => ScanScreen(),
|
||||
icon: Icons.camera_alt_outlined,
|
||||
selectedIcon: Icons.camera_alt,
|
||||
label: "Scan",
|
||||
),
|
||||
NavigationItem(
|
||||
path: profilePage,
|
||||
|
@ -13,5 +13,8 @@ const manualAuthPage = "/login/manual";
|
||||
/// Settings path
|
||||
const settingsPage = "/settings";
|
||||
|
||||
// Profile path
|
||||
/// Scan URL path
|
||||
const scanPage = "/scan";
|
||||
|
||||
/// Profile path
|
||||
const profilePage = "/profile";
|
Reference in New Issue
Block a user