We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a25adb1 commit 8f8db52Copy full SHA for 8f8db52
packages/views/lib/onboarding_view.dart
@@ -240,13 +240,7 @@ class FastOnboardingViewState extends State<FastOnboardingView> {
240
241
widget.onDone?.call();
242
243
- // FIXME: use go instead of pushReplacement as a workaround to allow
244
- // go router to works with top level routes and shell routes.
245
- // users will be able to go back to the onboarding screen if they
246
- // press the back button on the device.
247
- // ISSUE: https://github.com/flutter/flutter/issues/137545
248
-
249
- if (mounted) GoRouter.of(context).go(widget.homeLocation);
+ if (mounted) GoRouter.of(context).pushReplacement(widget.homeLocation);
250
}
251
252
String _getDoneText() {
0 commit comments