Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions image_cropper/ios/Classes/FLTImageCropperPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
}
cropViewController.allowedAspectRatios = allowedAspectRatios;

[self setupUiCustomizedOptions:call.arguments forViewController:cropViewController];

if (ratioX != (id)[NSNull null] && ratioY != (id)[NSNull null]) {
cropViewController.customAspectRatio = CGSizeMake([ratioX floatValue], [ratioY floatValue]);
cropViewController.resetAspectRatioEnabled = NO;
Expand All @@ -83,6 +81,8 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
cropViewController.aspectRatioLockEnabled = YES;
}

[self setupUiCustomizedOptions:call.arguments forViewController:cropViewController];

[[UIApplication sharedApplication].delegate.window.rootViewController presentViewController:cropViewController animated:YES completion:nil];
} else {
result(FlutterMethodNotImplemented);
Expand Down