@@ -69,12 +69,14 @@ OnCropParams caclulateOnCropParams({
69
69
if (screenHeight > screenWidth) {
70
70
uiSize = screenHeight;
71
71
cropSize = imageHeight.toDouble ();
72
- translateScale = cropSize / uiSize / cropPercentage * heightToWidthRatio;
72
+ translateScale =
73
+ cropSize / uiSize / cropPercentage * heightToWidthRatio;
73
74
scale = dataScale / cropPercentage * heightToWidthRatio;
74
75
} else {
75
76
uiSize = screenWidth;
76
77
cropSize = imageWidth.toDouble ();
77
- translateScale = cropSize / uiSize / cropPercentage / heightToWidthRatio;
78
+ translateScale =
79
+ cropSize / uiSize / cropPercentage / heightToWidthRatio;
78
80
scale = dataScale / cropPercentage / heightToWidthRatio;
79
81
}
80
82
@@ -89,7 +91,8 @@ OnCropParams caclulateOnCropParams({
89
91
translateScale = cropSize / uiSize / cropPercentage;
90
92
scale = dataScale / cropPercentage;
91
93
} else {
92
- translateScale = cropSize / uiSize / cropPercentage * heightToWidthRatio;
94
+ translateScale =
95
+ cropSize / uiSize / cropPercentage * heightToWidthRatio;
93
96
scale = dataScale / cropPercentage * heightToWidthRatio;
94
97
}
95
98
return OnCropParams (cropSize, translateScale, scale);
@@ -100,7 +103,8 @@ OnCropParams caclulateOnCropParams({
100
103
late final double translateScale;
101
104
late final double scale;
102
105
if (screenWidth > screenHeight) {
103
- translateScale = cropSize / uiSize / cropPercentage / heightToWidthRatio;
106
+ translateScale =
107
+ cropSize / uiSize / cropPercentage / heightToWidthRatio;
104
108
scale = dataScale / cropPercentage / heightToWidthRatio;
105
109
} else {
106
110
translateScale = cropSize / uiSize / cropPercentage;
0 commit comments