todos os placholders da tela de alunos resolvidos

This commit is contained in:
2026-05-17 17:49:23 +01:00
parent 49a7a6fe02
commit ba58228467
3 changed files with 3 additions and 152 deletions

View File

@@ -142,60 +142,6 @@ class _StudentAchievementsPageState extends State<StudentAchievementsPage> {
),
),
// Debug buttons (remover em produção)
if (!const bool.fromEnvironment('dart.vm.product')) ...[
Container(
margin: const EdgeInsets.all(16),
child: Row(
children: [
Expanded(
child: ElevatedButton(
onPressed: () async {
final user = AuthService.currentUser;
if (user != null) {
await GamificationService.initializeGamificationData(user.uid);
_loadAchievements();
}
},
child: const Text('Inicializar Dados'),
),
),
const SizedBox(width: 8),
Expanded(
child: ElevatedButton(
onPressed: () async {
final user = AuthService.currentUser;
if (user != null) {
await GamificationService.simulateQuizCompletion(
user.uid,
score: 8,
totalQuestions: 10,
materialName: 'Matemática Básica',
);
_loadAchievements();
}
},
child: const Text('Simular Quiz'),
),
),
const SizedBox(width: 8),
Expanded(
child: ElevatedButton(
onPressed: () async {
final user = AuthService.currentUser;
if (user != null) {
await GamificationService.debugUserStats(user.uid);
}
},
style: ElevatedButton.styleFrom(backgroundColor: Colors.orange),
child: const Text('Debug Stats'),
),
),
],
),
),
],
// Content
Expanded(
child: _loading