mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 23:08:59 +00:00
Fix go_router navigation (#1515)
This commit is contained in:
@@ -71,7 +71,7 @@ class MainMenuScreen extends StatelessWidget {
|
||||
_gap,
|
||||
],
|
||||
ElevatedButton(
|
||||
onPressed: () => GoRouter.of(context).go('/settings'),
|
||||
onPressed: () => GoRouter.of(context).push('/settings'),
|
||||
child: const Text('Settings'),
|
||||
),
|
||||
_gap,
|
||||
|
||||
Reference in New Issue
Block a user