1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-11 15:28:44 +00:00

Fix go_router navigation (#1515)

This commit is contained in:
Filip Hracek
2022-12-03 23:06:49 +01:00
committed by GitHub
parent 56fa9f93e3
commit a94e5e88a2
5 changed files with 5 additions and 5 deletions

View File

@@ -61,7 +61,7 @@ class LevelSelectionScreen extends StatelessWidget {
),
rectangularMenuArea: ElevatedButton(
onPressed: () {
GoRouter.of(context).pop();
GoRouter.of(context).go('/');
},
child: const Text('Back'),
),