初始化

This commit is contained in:
zhutao
2025-11-19 17:56:39 +08:00
commit 1b28239352
115 changed files with 5440 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import 'package:app/pages/common/auth/login_page.dart';
import 'package:app/pages/common/splash/splash_page.dart';
import 'package:app/router/router_config.dart';
import '../route_paths.dart';
List<RouterConfig> commonRoutes = [
RouterConfig(
path: RoutePaths.splash,
child: (state) {
return SplashPage();
},
),
RouterConfig(
path: RoutePaths.login,
child: (state) {
return LoginPage();
},
),
];

View File

@@ -0,0 +1,20 @@
import 'package:app/pages/student/home/s_home_page.dart';
import 'package:app/router/router_config.dart';
import '../../pages/student/room/s_room_page.dart';
import '../route_paths.dart';
List<RouterConfig> studentRoutes = [
RouterConfig(
path: RoutePaths.sHome,
child: (state) {
return SHomePage();
},
),
RouterConfig(
path: RoutePaths.sRoom,
child: (state) {
return SRoomPage();
},
),
];

View File

@@ -0,0 +1,20 @@
import 'package:app/pages/teacher/home/t_home_page.dart';
import 'package:app/pages/teacher/room/t_room_page.dart';
import 'package:app/router/router_config.dart';
import '../route_paths.dart';
List<RouterConfig> teacherRoutes = [
RouterConfig(
path: RoutePaths.tHome,
child: (state) {
return THomePage();
},
),
RouterConfig(
path: RoutePaths.tRoom,
child: (state) {
return TRoomPage();
},
),
];