IA e pequenas coisas a funcionar

This commit is contained in:
2026-05-10 18:45:00 +01:00
parent 0f382e970b
commit 3475b57036
21 changed files with 4484 additions and 72 deletions

View File

@@ -4,7 +4,7 @@ import '../../features/auth/presentation/pages/login_page.dart';
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/tutor/presentation/pages/tutor_chat_page.dart';
import '../../features/ai_tutor/presentation/pages/tutor_chat_page_simple.dart';
import '../../features/quiz/presentation/pages/quiz_list_page.dart';
import '../../features/quiz/presentation/pages/quiz_page.dart';
import '../../features/profile/presentation/pages/profile_page.dart';
@@ -20,7 +20,7 @@ class AppRouter {
static const String signup = '/signup';
static const String studentDashboard = '/student-dashboard';
static const String teacherDashboard = '/teacher-dashboard';
static const String tutor = '/tutor';
static const String tutor = '/ai-tutor';
static const String quizList = '/quiz';
static const String quiz = '/quiz/:quizId';
static const String profile = '/profile';
@@ -79,7 +79,7 @@ class AppRouter {
GoRoute(
path: tutorNested,
name: 'studentTutor',
builder: (context, state) => const TutorChatPage(),
builder: (context, state) => const TutorChatPageSimple(),
),
GoRoute(
path: quizListNested,
@@ -106,7 +106,7 @@ class AppRouter {
GoRoute(
path: tutorNested,
name: 'teacherTutor',
builder: (context, state) => const TutorChatPage(),
builder: (context, state) => const TutorChatPageSimple(),
),
GoRoute(
path: quizListNested,
@@ -130,6 +130,13 @@ class AppRouter {
name: 'profile',
builder: (context, state) => const ProfilePage(),
),
// AI Tutor Route (independent)
GoRoute(
path: tutor,
name: 'aiTutor',
builder: (context, state) => const TutorChatPageSimple(),
),
],
// Let splash screen handle all navigation logic