page_router.dart 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import 'package:cpt_labour_sg/modules/job_template_add/job_template_add_page.dart';
  2. import 'package:cpt_labour_sg/modules/job_template_list/job_template_list_page.dart';
  3. import 'package:cpt_labour_sg/modules/job_title_list/job_title_list_page.dart';
  4. import 'package:flutter/material.dart';
  5. import 'package:get/get.dart';
  6. import 'package:router/path/router_path.dart';
  7. import '../modules/job_list/job_list_page.dart';
  8. import '../modules/job_list_edit/job_list_edit_page.dart';
  9. import '../modules/labour_request/labour_request_page.dart';
  10. import '../modules/labour_request_add/labour_request_add_page.dart';
  11. class LabourSGPageRouter {
  12. static final routes = [
  13. // 工作标题列表
  14. GetPage(
  15. name: RouterPath.jobTitleListSG,
  16. page: () => JobTitleListPage(),
  17. ),
  18. // 工作模板列表
  19. GetPage(
  20. name: RouterPath.jobTemplateListSG,
  21. page: () => JobTemplateListPage(),
  22. ),
  23. // 添加模板
  24. GetPage(
  25. name: RouterPath.jobTemplateAddSG,
  26. page: () => JobTemplateAddPage(),
  27. ),
  28. // 用工请求
  29. GetPage(
  30. name: RouterPath.labourRequestSG,
  31. page: () => LabourRequestPage(),
  32. ),
  33. // 用工请求添加
  34. GetPage(
  35. name: RouterPath.labourRequestAddSG,
  36. page: () => LabourRequestAddPage(),
  37. ),
  38. // 新加坡工作列表
  39. GetPage(
  40. name: RouterPath.jobListSG,
  41. page: () => JobListPage(),
  42. ),
  43. // 新加坡工作列表编辑
  44. GetPage(
  45. name: RouterPath.jobListEditSG,
  46. page: () => JobListEditPage(),
  47. ),
  48. ];
  49. }