From bb416969ee590cf71987f041c55a33db35edb4c9 Mon Sep 17 00:00:00 2001 From: Raja Pitchai Date: Tue, 18 Jan 2022 18:52:19 +0530 Subject: [PATCH] https://github.com/hnvn/flutter_image_cropper/issues/300#issue-1105794107 --- ios/Classes/FLTImageCropperPlugin.m | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ios/Classes/FLTImageCropperPlugin.m b/ios/Classes/FLTImageCropperPlugin.m index 2a27ba4c..745e7260 100644 --- a/ios/Classes/FLTImageCropperPlugin.m +++ b/ios/Classes/FLTImageCropperPlugin.m @@ -218,10 +218,11 @@ - (void)cropViewController:(TOCropViewController *)cropViewController didCropToI details:nil]); } - [cropViewController dismissViewControllerAnimated:YES completion:nil]; - - _result = nil; - _arguments = nil; + [cropViewController dismissViewControllerAnimated:YES completion:^{ + _result = nil; + _arguments = nil; + + }]; } - (void)cropViewController:(TOCropViewController *)cropViewController didFinishCancelled:(BOOL)cancelled {