mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
fix bugs and fix send otp and sp-392 and sp-372
This commit is contained in:
33
lib/utils/app_routes.dart
Normal file
33
lib/utils/app_routes.dart
Normal file
@ -0,0 +1,33 @@
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:syncrow_web/pages/access_management/view/access_management.dart';
|
||||
import 'package:syncrow_web/pages/auth/view/login_page.dart';
|
||||
import 'package:syncrow_web/pages/home/view/home_page.dart';
|
||||
import 'package:syncrow_web/pages/visitor_password/view/visitor_password_dialog.dart';
|
||||
import 'package:syncrow_web/utils/constants/routes_const.dart';
|
||||
|
||||
class AppRoutes {
|
||||
static List<GoRoute> getRoutes() {
|
||||
return [
|
||||
GoRoute(
|
||||
path:RoutesConst.main,
|
||||
builder: (context, state) => const LoginPage(),
|
||||
),
|
||||
|
||||
GoRoute(
|
||||
path: RoutesConst.home,
|
||||
builder: (context, state) => const HomePage(),
|
||||
),
|
||||
|
||||
GoRoute(
|
||||
path: RoutesConst.visitorPassword,
|
||||
builder: (context, state) => const VisitorPasswordDialog(),
|
||||
),
|
||||
|
||||
GoRoute(
|
||||
path: RoutesConst.accessManagementPage ,
|
||||
builder: (context, state) => const AccessManagementPage(),
|
||||
),
|
||||
|
||||
];
|
||||
}
|
||||
}
|
@ -27,4 +27,5 @@ class Assets {
|
||||
static const String deviceNoteIcon = "assets/images/device_note.svg";
|
||||
static const String timeIcon = "assets/images/time_icon.svg";
|
||||
static const String emptyTable = "assets/images/empty_table.svg";
|
||||
static const String grid = "assets/images/grid.svg";
|
||||
}
|
||||
|
6
lib/utils/constants/routes_const.dart
Normal file
6
lib/utils/constants/routes_const.dart
Normal file
@ -0,0 +1,6 @@
|
||||
class RoutesConst {
|
||||
static const String main = '/';
|
||||
static const String home = '/home';
|
||||
static const String visitorPassword = '/visitor-password';
|
||||
static const String accessManagementPage = '/access-management-page';
|
||||
}
|
@ -5,3 +5,6 @@ class NavigationService {
|
||||
static GlobalKey<ScaffoldMessengerState>? snackbarKey =
|
||||
GlobalKey<ScaffoldMessengerState>();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user