mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-09 22:57:21 +00:00
34 lines
982 B
Dart
34 lines
982 B
Dart
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(),
|
|
),
|
|
|
|
];
|
|
}
|
|
}
|