Skip to content

Commit bb22f4d

Browse files
Fixed typo
1 parent a4b4e9a commit bb22f4d

File tree

3 files changed

+22
-21
lines changed

3 files changed

+22
-21
lines changed

CHANGELOG.md

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,55 @@
11
## [0.0.12] - 2023-09-08
22

3-
* Fixed issues with Ratio and CustomImageCrop
3+
- Fixed issues with Ratio and CustomImageCrop
4+
- Added fillCropSpace as CustomImageFit
45

56
## [0.0.11] - 2023-09-01
67

7-
* Added clipShapeOnCrop to prevent clipping the image to the crop shape
8+
- Added clipShapeOnCrop to prevent clipping the image to the crop shape
89

910
## [0.0.10] - 2023-08-17
1011

11-
* Added didupdateWidget check to fix issues with updated images
12+
- Added didupdateWidget check to fix issues with updated images
1213

1314
## [0.0.9] - 2023-08-10
1415

15-
* Added borderRadius
16+
- Added borderRadius
1617

1718
## [0.0.8] - 2023-08-10
1819

19-
* Added pathPaint to customize the crop border style
20+
- Added pathPaint to customize the crop border style
2021

2122
## [0.0.7] - 2023-08-09
2223

23-
* Added Ratio as new shape and arguments
24+
- Added Ratio as new shape and arguments
2425

2526
## [0.0.6]
2627

27-
* Added new param to CustomImageCrop for new image fit types
28+
- Added new param to CustomImageCrop for new image fit types
2829

2930
## [0.0.5]
3031

31-
* Added canRotate
32-
* Added customProgressIndicator
33-
* Added canScale
34-
* Added canMove
32+
- Added canRotate
33+
- Added customProgressIndicator
34+
- Added canScale
35+
- Added canMove
3536

3637
## [0.0.4]
3738

38-
* Added documentation
39+
- Added documentation
3940

4041
## [0.0.3]
4142

42-
* Fixed issue where cropped image's size depends on screen size used
43-
* Fixed issue where cropped image's quality is worse than original image
44-
* Updated to flutter 2.8.0
43+
- Fixed issue where cropped image's size depends on screen size used
44+
- Fixed issue where cropped image's quality is worse than original image
45+
- Updated to flutter 2.8.0
4546

4647
## [0.0.2]
4748

48-
* Updated docs
49+
- Updated docs
4950

5051
## [0.0.1]
5152

52-
* Added custom crop
53-
* Added Cicrle and Square crop shapes
54-
* Added Solid and Dotted painters for crop border
53+
- Added custom crop
54+
- Added Cicrle and Square crop shapes
55+
- Added Solid and Dotted painters for crop border

lib/src/calculators/calculate_crop_fit_params.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ CropFitParams calculateCropFitParams({
106106
defaultScale = screenHeight / imageHeight;
107107
break;
108108

109-
case CustomImageFit.fillVisiblelWidth:
109+
case CustomImageFit.fillVisibleWidth:
110110
if (screenWidth <= screenHeight * aspectRatio) {
111111
cropSizeWidth = screenWidth * cropPercentage;
112112
cropSizeHeight = cropSizeWidth / aspectRatio;

lib/src/calculators/calculate_on_crop_params.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ OnCropParams caclulateOnCropParams({
110110
}
111111
break;
112112

113-
case CustomImageFit.fillVisiblelWidth:
113+
case CustomImageFit.fillVisibleWidth:
114114
final heightToWidthRatio = (screenHeight / screenWidth);
115115
uiSize = screenWidth;
116116
cropSizeMax = imageWidth.toDouble();

0 commit comments

Comments
 (0)