historico
This commit is contained in:
@@ -9,6 +9,7 @@ import '../../features/auth/presentation/pages/signup_page.dart';
|
||||
import '../../features/dashboard/presentation/pages/student_dashboard_page.dart';
|
||||
import '../../features/dashboard/presentation/pages/teacher_dashboard_page.dart';
|
||||
import '../../features/ai_tutor/presentation/pages/tutor_chat_page_simple.dart';
|
||||
import '../../features/ai_tutor/presentation/pages/chat_history_page.dart';
|
||||
import '../../features/quiz/presentation/pages/quiz_list_page.dart';
|
||||
import '../../features/quiz/presentation/pages/quiz_page.dart';
|
||||
import '../../features/quiz/presentation/pages/teacher_quiz_page.dart';
|
||||
@@ -35,6 +36,7 @@ class AppRouter {
|
||||
static const String teacherAnalytics = '/teacher/analytics';
|
||||
static const String studentAchievements = '/student/achievements';
|
||||
static const String quizManagement = '/quiz-management';
|
||||
static const String chatHistory = '/chat-history';
|
||||
|
||||
// Nested route paths (without leading slash)
|
||||
static const String tutorNested = 'tutor';
|
||||
@@ -147,6 +149,23 @@ class AppRouter {
|
||||
builder: (context, state) => const TutorChatPageSimple(),
|
||||
),
|
||||
|
||||
// AI Tutor Route with conversation ID (resume conversation)
|
||||
GoRoute(
|
||||
path: '$tutor/:conversationId',
|
||||
name: 'aiTutorConversation',
|
||||
builder: (context, state) {
|
||||
final conversationId = state.pathParameters['conversationId']!;
|
||||
return TutorChatPageSimple(conversationId: conversationId);
|
||||
},
|
||||
),
|
||||
|
||||
// Chat History Route
|
||||
GoRoute(
|
||||
path: chatHistory,
|
||||
name: 'chatHistory',
|
||||
builder: (context, state) => const ChatHistoryPage(),
|
||||
),
|
||||
|
||||
// Teacher Analytics Route
|
||||
GoRoute(
|
||||
path: teacherAnalytics,
|
||||
|
||||
Reference in New Issue
Block a user