historico

This commit is contained in:
2026-05-21 11:49:56 +01:00
parent 2f411d08a4
commit 5bda59f7af
5 changed files with 742 additions and 61 deletions

View File

@@ -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,