This commit is contained in:
zhutao
2025-11-21 18:21:47 +08:00
parent 9c94ee31fd
commit 5784a0a5d4
32 changed files with 734 additions and 441 deletions

View File

@@ -14,7 +14,10 @@ List<RouterConfig> studentRoutes = [
RouterConfig(
path: RoutePaths.sRoom,
child: (state) {
return SRoomPage();
final extra = state.extra as dynamic;
return SRoomPage(
roomInfo: extra,
);
},
),
];
];

View File

@@ -14,12 +14,9 @@ List<RouterConfig> teacherRoutes = [
RouterConfig(
path: RoutePaths.tRoom,
child: (state) {
final extra = state.extra as Map<String, dynamic>?;
final roomId = extra?['roomId'] as int?;
final startTime = extra?['startTime'] as String?;
final extra = state.extra as dynamic;
return TRoomPage(
roomId: roomId!,
startTime: startTime!,
roomInfo: extra,
);
},
),