Skip to content

Allow option to disable navigation #303

Description

@rezmeplxrf

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions