-
Notifications
You must be signed in to change notification settings - Fork 394
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
Quick "Done" or "Cancel" Triggers Double Close in Cropper View #527
Comments
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using the flutter_image_cropper package, an issue occurs when there is an open modal in the Flutter app and the native crop view is displayed for image cropping. If the user presses the "Done" or "Cancel" button quickly (in rapid succession), the close action is executed twice. This results in not only closing the crop view but also closing the underlying modal unintentionally.
Steps to Reproduce:
Open a modal in your Flutter app.
Launch the native image cropper view by selecting an image to crop.
Press the "Done" or "Cancel" button quickly, before the crop view fully loads or responds.
Observe that the crop view closes, but the underlying modal also closes unexpectedly.
Expected Behavior:
The crop view should close without affecting the underlying modal. Only the cropper view should be dismissed when "Done" or "Cancel" is pressed, and the first modal should remain open.
Actual Behavior:
Pressing the "Done" or "Cancel" button in the crop view rapidly causes the crop view to close twice, which also closes the parent modal unintentionally.
Version Information:
flutter_image_cropper version: 8.0.2
Platform: iOS
The text was updated successfully, but these errors were encountered: