mirror of
https://github.com/flutter/samples.git
synced 2026-03-28 23:32:05 +00:00
Fix go_router navigation (#1515)
This commit is contained in:
@@ -94,7 +94,7 @@ class _PlaySessionScreenState extends State<PlaySessionScreen> {
|
||||
child: SizedBox(
|
||||
width: double.infinity,
|
||||
child: ElevatedButton(
|
||||
onPressed: () => GoRouter.of(context).pop(),
|
||||
onPressed: () => GoRouter.of(context).go('/play'),
|
||||
child: const Text('Back'),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user