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:
@@ -61,7 +61,7 @@ class LevelSelectionScreen extends StatelessWidget {
|
||||
),
|
||||
rectangularMenuArea: ElevatedButton(
|
||||
onPressed: () {
|
||||
GoRouter.of(context).pop();
|
||||
GoRouter.of(context).go('/');
|
||||
},
|
||||
child: const Text('Back'),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user