diff --git a/lib/src/app.dart b/lib/src/app.dart index 4d65c54..2f89ca3 100644 --- a/lib/src/app.dart +++ b/lib/src/app.dart @@ -19,6 +19,9 @@ class MyApp extends ConsumerWidget { return MaterialApp.router( routerConfig: goRouter, builder: (_, child) { + // * Important: Use AppStartupWidget to wrap ForceUpdateWidget otherwise you will get this error: + // * Navigator operation requested with a context that does not include a Navigator. + // * The context used to push or pop routes from the Navigator must be that of a widget that is a descendant of a Navigator widget. return AppStartupWidget( onLoaded: (_) => ForceUpdateWidget( navigatorKey: goRouter.routerDelegate.navigatorKey,