todos os placholders da tela de alunos resolvidos
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user