diff --git a/lib/features/dashboard/presentation/widgets/teacher_hero_widget.dart b/lib/features/dashboard/presentation/widgets/teacher_hero_widget.dart index 0b57cc9..8ca30c3 100644 --- a/lib/features/dashboard/presentation/widgets/teacher_hero_widget.dart +++ b/lib/features/dashboard/presentation/widgets/teacher_hero_widget.dart @@ -73,6 +73,8 @@ class _TeacherHeroWidgetState extends State { _classStats.fold(0, (sum, stats) => sum + stats.activeQuizzes); int get uploadedContent => _classStats.fold(0, (sum, stats) => sum + stats.totalContent); + int get studentsNeedingSupport => + _classStats.fold(0, (sum, stats) => sum + stats.studentsNeedingSupport.length); double get classAverageProgress { if (_classStats.isEmpty) return 0.0; final totalProgress = _classStats.fold( @@ -254,24 +256,35 @@ class _TeacherHeroWidgetState extends State { const SizedBox(height: 20), // Stats Grid - Row( - children: [ - Expanded( - child: _buildStatCard( - icon: Icons.quiz, - value: '$activeQuizzes', - label: 'Quizzes Ativos', + IntrinsicHeight( + child: Row( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + Expanded( + child: _buildStatCard( + icon: Icons.quiz, + value: '$activeQuizzes', + label: 'Quizzes Ativos', + ), ), - ), - const SizedBox(width: 12), - Expanded( - child: _buildStatCard( - icon: Icons.upload_file, - value: '$uploadedContent', - label: 'Conteúdos', + const SizedBox(width: 12), + Expanded( + child: _buildStatCard( + icon: Icons.upload_file, + value: '$uploadedContent', + label: 'Conteúdos', + ), ), - ), - ], + const SizedBox(width: 12), + Expanded( + child: _buildStatCard( + icon: Icons.warning_amber, + value: '$studentsNeedingSupport', + label: 'Precisam Apoio', + ), + ), + ], + ), ), ], ),