feedback icon indicating copy to clipboard operation
feedback copied to clipboard

Allow option to disable navigation

Open rezmeplxrf opened this issue 1 year ago • 3 comments

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

rezmeplxrf avatar May 01 '24 10:05 rezmeplxrf

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!

dolbin-prime avatar Jun 07 '24 01:06 dolbin-prime

me too I need this option

M97Chahboun avatar Aug 14 '24 14:08 M97Chahboun