Start Abschnitt 4: Debugging Flutter Apps - 93
This commit is contained in:
@@ -22,7 +22,7 @@ class SummaryItem extends StatelessWidget {
|
||||
children: [
|
||||
QuestionIdentifier(
|
||||
isCorrectAnswer: isCorrectAnswer,
|
||||
questionIndex: itemData['question'] as int,
|
||||
questionIndex: itemData['question_index'] as int,
|
||||
),
|
||||
const SizedBox(width: 20),
|
||||
Expanded(
|
||||
|
||||
@@ -36,6 +36,7 @@ class _QuizState extends State<Quiz> {
|
||||
|
||||
void restartQuiz() {
|
||||
setState(() {
|
||||
_selectedAnswers.clear();
|
||||
_activeScreen = 'questions-screen';
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user