page_router.dart 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import 'package:ftrecruiter/modules/auth/change_email/change_email_binding.dart';
  2. import 'package:ftrecruiter/modules/auth/change_email/change_email_page.dart';
  3. import 'package:ftrecruiter/modules/auth/change_psd/change_psd_binding.dart';
  4. import 'package:ftrecruiter/modules/auth/change_psd/change_psd_page.dart';
  5. import 'package:ftrecruiter/modules/auth/forgot_psd/forgot_psd_binding.dart';
  6. import 'package:ftrecruiter/modules/auth/forgot_psd/forgot_psd_page.dart';
  7. import 'package:ftrecruiter/modules/auth/login/login_binding.dart';
  8. import 'package:ftrecruiter/modules/auth/login/login_page.dart';
  9. import 'package:ftrecruiter/modules/zdemo/demo_page.dart';
  10. import 'package:get/get.dart';
  11. import 'package:ftrecruiter/modules/auth/choose/choose_binding.dart';
  12. import 'package:ftrecruiter/modules/auth/choose/choose_page.dart';
  13. import 'package:ftrecruiter/modules/auth/register/register_binding.dart';
  14. import 'package:ftrecruiter/modules/auth/register/register_page.dart';
  15. import 'package:ftrecruiter/modules/splash/splash_binding.dart';
  16. import 'package:ftrecruiter/modules/splash/splash_page.dart';
  17. part 'router_path.dart';
  18. class PageRouter {
  19. static const INITIAL = RouterPath.SPLASH;
  20. static final routes = [
  21. GetPage(
  22. name: RouterPath.SPLASH,
  23. page: () => const SplashPage(),
  24. binding: SplashBinding(),
  25. ),
  26. //用户模块
  27. GetPage(
  28. name: RouterPath.AUTH_LOGIN,
  29. page: () => LoginPage(),
  30. binding: LoginBinding(),
  31. ),
  32. GetPage(
  33. name: RouterPath.AUTH_CHOOSE,
  34. page: () => ChoosePage(),
  35. binding: ChooseBinding(),
  36. ),
  37. GetPage(
  38. name: RouterPath.AUTH_REGISTER,
  39. page: () => RegisterPage(),
  40. binding: RegisterBinding(),
  41. ),
  42. GetPage(
  43. name: RouterPath.AUTH_CHANGE_EMAIL,
  44. page: () => ChangeEmailPage(),
  45. binding: ChangeEmailBinding(),
  46. ),
  47. GetPage(
  48. name: RouterPath.AUTH_CHANGE_PSD,
  49. page: () => ChangePsdPage(),
  50. binding: ChangePsdBinding(),
  51. ),
  52. GetPage(
  53. name: RouterPath.AUTH_FORGOT,
  54. page: () => ForgotPsdPage(),
  55. binding: ForgotPsdBinding(),
  56. ),
  57. //用于测试与示例
  58. GetPage(
  59. name: RouterPath.DEMO,
  60. page: () => DemoPage(),
  61. ),
  62. ];
  63. }