Skip to content

Commit

Permalink
fix: double tapping Quiz Mode navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
Qubits-01 committed Apr 23, 2024
1 parent 0e5a548 commit 0068ca8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/router/scaffold_with_nav_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ class ScaffoldWithNavBar extends StatelessWidget {
void _onTap(BuildContext context, int index) {
// When navigating to a new branch, it's recommended to use the goBranch
// method, as doing so makes sure the last navigation state of the
// Navigator for the branch is restored.
// Navigator for the branch is restored.'

if (index == navigationShell.currentIndex) {
return;
}

navigationShell.goBranch(
index,
// A common pattern when using bottom navigation bars is to support
Expand Down

0 comments on commit 0068ca8

Please sign in to comment.