Skip to content

Commit 8f8db52

Browse files
fix: remove workaround
1 parent a25adb1 commit 8f8db52

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/views/lib/onboarding_view.dart

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -240,13 +240,7 @@ class FastOnboardingViewState extends State<FastOnboardingView> {
240240

241241
widget.onDone?.call();
242242

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);
243+
if (mounted) GoRouter.of(context).pushReplacement(widget.homeLocation);
250244
}
251245

252246
String _getDoneText() {

0 commit comments

Comments
 (0)