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.
36 lines
1.0 KiB
36 lines
1.0 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 '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.my,
|
||
|
// page: () => const MyPage(),
|
||
|
// binding: null,
|
||
|
// ),
|
||
|
// // 添加 Problem 模块的路由和绑定
|
||
|
// GetPage(
|
||
|
// name: AppRoutes.problem, // 确保在 app_routes.dart 中定义了此常量
|
||
|
// page: () => const ProblemPage(),
|
||
|
// binding: null,
|
||
|
// ),
|
||
|
];
|
||
|
}
|