初始化
This commit is contained in:
20
lib/router/modules/common_routes.dart
Normal file
20
lib/router/modules/common_routes.dart
Normal 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();
|
||||
},
|
||||
),
|
||||
];
|
||||
20
lib/router/modules/student_routes.dart
Normal file
20
lib/router/modules/student_routes.dart
Normal 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();
|
||||
},
|
||||
),
|
||||
];
|
||||
20
lib/router/modules/teacher_routes.dart
Normal file
20
lib/router/modules/teacher_routes.dart
Normal 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();
|
||||
},
|
||||
),
|
||||
];
|
||||
Reference in New Issue
Block a user