You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.2 KiB

2 weeks ago
import 'package:get/get.dart';
import 'package:problem_check_system/modules/home/bindings/home_binding.dart';
import 'package:problem_check_system/modules/home/views/home_page.dart';
import 'package:problem_check_system/modules/auth/bindings/auth_binding.dart';
import 'package:problem_check_system/modules/auth/views/login_page.dart';
import 'package:problem_check_system/modules/my/bingdings/change_password_binding.dart';
import 'package:problem_check_system/modules/my/views/change_password.dart';
2 weeks ago
import 'app_routes.dart';
abstract class AppPages {
// 所有路由的 GetPage 列表
static final routes = <GetPage>[
GetPage(
name: AppRoutes.home,
page: () => const HomePage(),
binding: HomeBinding(),
),
// 登录页
GetPage(
name: AppRoutes.login,
page: () => const LoginPage(),
binding: AuthBinding(),
),
GetPage(
name: AppRoutes.changePassword,
page: () => const ChangePasswordPage(),
binding: ChangePasswordBinding(),
),
2 weeks ago
// // 添加 Problem 模块的路由和绑定
// GetPage(
// name: AppRoutes.problem, // 确保在 app_routes.dart 中定义了此常量
// page: () => const ProblemPage(),
// binding: null,
// ),
];
}