From 1a98fff5e8ab6bd67a36a24927c143824f152046 Mon Sep 17 00:00:00 2001 From: 240403 <240403@epvc.pt> Date: Sun, 24 May 2026 17:46:58 +0100 Subject: [PATCH] =?UTF-8?q?regulariza=C3=A7=C3=A3o=20do=20tamanho=20dos=20?= =?UTF-8?q?widgets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../widgets/teacher_hero_widget.dart | 45 ++++++++++++------- 1 file changed, 29 insertions(+), 16 deletions(-) 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', + ), + ), + ], + ), ), ], ),