Skip to content

Commit

Permalink
fix: directly back to registration page from result page
Browse files Browse the repository at this point in the history
  • Loading branch information
atnanahidiw committed Nov 10, 2023
1 parent 7d304a2 commit 25a4478
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,17 @@ class _QuizStartPageState extends State<QuizStartPage> {
padding: const EdgeInsets.all(16),
decoration: BoxDecoration(border: Border.all()),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(state.quiz.title),
Center(
child: Text(state.quiz.title),
),
Text(
'Jumlah soal: ${state.quiz.problems[state.participation.challenge_group]?.length}'),
Text(
'Alokasi waktu: ${state.quiz.duration_minute[state.participation.challenge_group]} menit'),
Text(
'Sisa coba lagi ${state.participation.attempts.length} / ${state.participation.quiz_max_attempts}'),
'Sisa coba lagi: ${state.participation.attempts.length}/${state.participation.quiz_max_attempts}'),
const SizedBox(
height: 10,
),
Expand Down Expand Up @@ -111,6 +114,7 @@ class _QuizStartPageState extends State<QuizStartPage> {
state.participation.attempts.length >=
state.participation.quiz_max_attempts,
onTap: () async {
Navigator.pop(context); // remove page from stack/history
await context.push(
Uri(
path: '/quiz_exercise',
Expand Down

0 comments on commit 25a4478

Please sign in to comment.