Melhoria no funcionamento do histórico, Os nomes no dashboard do aluno carregam a primeira vez e ficam salvos para n ficarem sempre a carregar quando se volta ao dashboard, removi o butão de novo chat na interface de introdução da IA, mudei a aparencia dessa introdução e do histórico

This commit is contained in:
2026-05-23 16:20:27 +01:00
parent 7ee262f4c7
commit 895ce64c6f
22 changed files with 1330 additions and 582 deletions

View File

@@ -30,12 +30,19 @@ class HelpPage extends StatelessWidget {
),
),
child: SafeArea(
top: false,
child: Column(
children: [
// Custom AppBar
Padding(
padding: const EdgeInsets.all(16.0),
padding: const EdgeInsets.only(
left: 16.0,
right: 16.0,
bottom: 20.0,
top: 52.0,
),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
IconButton(
icon: Icon(

View File

@@ -3,6 +3,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:go_router/go_router.dart';
import '../../../../core/services/auth_service.dart';
import '../../../../core/theme/app_colors.dart';
import '../../../dashboard/presentation/pages/student_dashboard_page.dart';
/// Profile edit page for settings
class ProfileEditPage extends ConsumerStatefulWidget {
@@ -57,6 +58,9 @@ class _ProfileEditPageState extends ConsumerState<ProfileEditPage> {
await user.updateDisplayName(_nameController.text);
await user.reload();
// Clear cached user name so dashboard will reload with new name
StudentDashboardPage.clearCachedUserName();
if (mounted) {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
@@ -111,12 +115,19 @@ class _ProfileEditPageState extends ConsumerState<ProfileEditPage> {
),
),
child: SafeArea(
top: false,
child: Column(
children: [
// Custom AppBar
Padding(
padding: const EdgeInsets.all(16.0),
padding: const EdgeInsets.only(
left: 16.0,
right: 16.0,
bottom: 20.0,
top: 52.0,
),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
IconButton(
icon: const Icon(Icons.arrow_back, color: Colors.white),

View File

@@ -55,12 +55,19 @@ class _SettingsPageState extends ConsumerState<SettingsPage> {
),
),
child: SafeArea(
top: false,
child: Column(
children: [
// Custom AppBar
Padding(
padding: const EdgeInsets.all(16.0),
padding: const EdgeInsets.only(
left: 16.0,
right: 16.0,
bottom: 20.0,
top: 52.0,
),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
IconButton(
icon: Icon(