-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to redirect the app to a specific screen after submitting feedback #282
Comments
Wiredash doesn't navigate at all and does not redirect to the home page. It seems like you lose the application state at some point, resetting your Navigator and thus land on the home page. There could be a million reasons why it is happening. One common mistake is to initialize some things in There is currently no callback when a user leaves the feedback flow. But is that actually what you want or do you only want to stay on the current page? |
Yes I only want to stay on the current page like router.pop() and I'm using auto_route package for routing. |
Assuming you copy-pasted the sample from the readme: // assuing this is the root widget of your App
class App extends StatelessWidget {
// make sure you don't initiate your router
// inside of the build function.
final _appRouter = AppRouter();
@override
Widget build(BuildContext context){
return MaterialApp.router(
routerConfig: _appRouter.config(),
);
}
} You will lose the state of the Make it a |
return Wiredash(
options: WiredashOptionsData(
localizationDelegate: const CustomWiredashTranslations(),
),
projectId: '',
secret: '',
child: MaterialApp.router(
routerConfig: _appRouter.config(
navigatorObservers: () => [
SentryNavigatorObserver(),
],
), Hi we are already using StatefulWidgets and saving stated in _appRouter. Still when i submit feedback it re-builds and redirects to main page. |
Then you have to figure out why You could also try playing around with global keys. Set one to There's nothing I can help you with from here, sorry. The error is not reproducible in an example. It is a bug somewhere in your codebase. |
Hello, we are using Wiredash in our application for gathering feedback. but facing one issue after submitting feedback, Wiredash always redirects it to the home page rather than redirecting to a specific page. Is there any solution? How can we redirect it to a specific screen after submitting feedback.
i.e., I'm submitting feedback from the profile page, but Wiredash always redirects it to the main home page.
The text was updated successfully, but these errors were encountered: