第二次提交
This commit is contained in:
19
lib/features/auth/presentation/routes/auth_routes.dart
Normal file
19
lib/features/auth/presentation/routes/auth_routes.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:maibu_satabot_v2/core/router/route_paths.dart';
|
||||
import 'package:maibu_satabot_v2/features/auth/presentation/pages/login_page.dart';
|
||||
|
||||
import '../pages/register_page.dart';
|
||||
|
||||
class AuthRoutes {
|
||||
// 返回一个 List<RouteBase>
|
||||
static List<RouteBase> routes = [
|
||||
GoRoute(
|
||||
path: RoutePaths.login,
|
||||
builder: (context, state) => const LoginPage(),
|
||||
),
|
||||
GoRoute(
|
||||
path: RoutePaths.register,
|
||||
builder: (context, state) => const RegisterPage(),
|
||||
),
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user