We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c08e8ec + e494418 commit 92dc1faCopy full SHA for 92dc1fa
lib/src/calculators/calculate_on_crop_params.dart
@@ -134,7 +134,7 @@ OnCropParams caclulateOnCropParams({
134
cropSizeWidth = cropSizeMax;
135
cropSizeHeight = cropSizeWidth / aspectRatio;
136
} else {
137
- cropSizeHeight = cropSizeMax;
+ cropSizeHeight = cropSizeMax / aspectRatio;
138
cropSizeWidth = cropSizeHeight * aspectRatio;
139
}
140
return OnCropParams(
0 commit comments