Error CodeNavigator.onGenerateRoute was null, but the route named "/profile" was referenced. To use the Navigator API with named routes (pushNamed, pushReplacementNamed, or pushNamedAndRemoveUntil), the Navigator must be provided with an onGenerateRoute handler.
Is there another way to use the library with Generated Route?
I'm new to this package, I have nested routes with Authentication and many many blocs and i use Generated Route Access
Generated Route
i use Flow Builder in Authentication
But inside the HomePage when i go to the profile this error appears
Navigation Code
Navigator.of(context).pushNamed(AppRouter.profile);
Error Code
Navigator.onGenerateRoute was null, but the route named "/profile" was referenced. To use the Navigator API with named routes (pushNamed, pushReplacementNamed, or pushNamedAndRemoveUntil), the Navigator must be provided with an onGenerateRoute handler.
Is there another way to use the library with Generated Route?