mobile_skt/lib/constants/router.dart

31 lines
1.3 KiB
Dart
Raw Normal View History

import 'package:get/get.dart';
2024-04-09 08:31:17 +08:00
import 'package:sk_base_mobile/models/user_info.model.dart';
import 'package:sk_base_mobile/screens/hr_manage/components/employee_detail.dart';
import 'package:sk_base_mobile/screens/hr_manage/hr_manage.dart';
2024-03-27 11:06:01 +08:00
import 'package:sk_base_mobile/screens/inventory/inventory.dart';
import 'package:sk_base_mobile/screens/login/login.dart';
2024-04-01 08:41:52 +08:00
import 'package:sk_base_mobile/screens/sale_quotation/sale_quotation.dart';
2024-03-19 11:09:07 +08:00
import '../screens/landing/landing.dart';
import '../screens/mine/useinfo/userinfo.dart';
class RouteConfig {
static const String home = "/";
static const String login = '/login';
static const String userinfo = '/userinfo';
2024-03-27 11:06:01 +08:00
static const String inventory = '/inventory';
2024-04-01 08:41:52 +08:00
static const String saleQuotation = '/sale_quotation';
static const String hrManage = '/hr_manage';
2024-04-09 08:31:17 +08:00
static const String employeeDetail = '/employee_detail';
2024-04-01 08:41:52 +08:00
static final List<GetPage> getPages = [
GetPage(name: login, page: () => LoginScreen()),
GetPage(name: home, page: () => LandingPage()),
GetPage(name: userinfo, page: () => UserInfoPage()),
2024-03-31 17:13:29 +08:00
GetPage(name: inventory, page: () => const InventoryPage()),
GetPage(name: saleQuotation, page: () => SaleQuotationPage()),
2024-04-09 08:31:17 +08:00
GetPage(name: hrManage, page: () => HrManagePage()),
GetPage(name: employeeDetail, page: () => EmployeeDetail())
];
}