Skip to content
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

Allow option to disable navigation #303

Open
rezmeplxrf opened this issue May 1, 2024 · 2 comments
Open

Allow option to disable navigation #303

rezmeplxrf opened this issue May 1, 2024 · 2 comments

Comments

@rezmeplxrf
Copy link

Is your feature request related to a problem? Please describe.
When users navigate to another screen while being in Feedback mode, we lose the context and thus can not use any function that uses the context.

BetterFeedback.of(context).show((feedback) async {
if (feedback.text.isNotEmpty) {
if (context.mounted){
await ref.read(uploadFeedbackProvider(
feedback: feedback.text, screenshot: feedback.screenshot).future. // this will not be executed if user navigate during feedback mode. if we remove context.mounted then app will throw error.
);}
EasyLoading.showSuccess('Thanks for the feedback!');
}
});

Describe the solution you'd like
allow option to disable navigation during feedback widget is open

@dolbin-prime
Copy link

Yeah I think it'll be good to use an option to enable/disable the navigation mode.

The main reason I want to install the package is just to capture a screen from which an error occurs. So I want to disable the navigation mode if possible!

@M97Chahboun
Copy link

me too I need this option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants