46 lines
1.5 KiB
Dart
46 lines
1.5 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'quiz_result.dart';
|
|
import 'quiz_question_screen.dart';
|
|
|
|
class Quiz5Screen extends StatelessWidget {
|
|
const Quiz5Screen({super.key, required this.currentScore, this.scopeId});
|
|
|
|
final int currentScore;
|
|
final String? scopeId;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return QuizQuestionScreen(
|
|
title: 'Quiz 5/5',
|
|
question: 'O que ajuda mais a prevenir cáries no dia a dia?',
|
|
answers: const [
|
|
QuizAnswer(
|
|
title: 'Escovar + flúor + reduzir açúcar frequente',
|
|
description:
|
|
'A prevenção é um conjunto: boa higiene com flúor e menos “beliscos” açucarados ao longo do dia.',
|
|
weight: 2,
|
|
),
|
|
QuizAnswer(
|
|
title: 'Só enxaguante bucal',
|
|
description:
|
|
'Enxaguante pode ajudar em alguns casos, mas não substitui escovação e fio dental.',
|
|
weight: 3,
|
|
),
|
|
QuizAnswer(
|
|
title: 'Evitar completamente dentista',
|
|
description:
|
|
'Consultas regulares são importantes para prevenção e orientação. O dentista também identifica problemas bem no começo.',
|
|
weight: 5,
|
|
),
|
|
],
|
|
currentScore: currentScore,
|
|
nextRoute: (context, nextScore) => MaterialPageRoute<void>(
|
|
builder: (_) => QuizResultScreen(finalScore: nextScore, maxScore: 25, scopeId: scopeId),
|
|
),
|
|
showBackButton: true,
|
|
);
|
|
}
|
|
}
|
|
|
|
// |