Open mrgzi opened 2 years ago
FWIW what I do in my app is provide a custom feedback form and replace the submit button with a circular progress indicator while the content is being submitted. This way, if there are any issues and the submit crashes, it's easier for the user to retry.
In the _sendFeedback() method, please put the close feedback mode code inside an if condition. the condition can be passed by the developer. If true(by default) then close the feedback window. If false, let the developer decide when to close the window. Thanks
@caseycrogers How did you do that? Can you show a minimal example code to check if the content is being submitted and display a loading indicator?
@quoc-huynh-cosee there is an example here https://github.com/ueman/feedback/blob/f6dffac78a0a2b3fd2bf95f01f3f10823bf6ce09/feedback/example/lib/main.dart#L39
Version
2.4.1
Library
feedback
Flutter channel
stable
Flutter version
2.10.4
Platform
Android, iOS
Details
After pressing the submit button, the feedback widget should close. Because the user may think that the submit button is not working and press it once again. After pressing the send button, it should be closed directly and the screenshot should be sent to the callback in the background. Because when we click the close button after pressing the send button, it is closed immediately and the callback is triggered.
Steps to reproduce
BetterFeedback widget delay time is too long.
Output of
flutter doctor -v