Skip to content

Commit 7d41008

Browse files
committed
feat(release): set version to 3.0.0 and improve performance
- Updated version to 3.0.0 in pubspec.yaml. - Enhanced performance by making decodeImage an async task in main_editor.dart after closing the crop rotate editor. - Updated CHANGELOG.md to reflect the version bump and performance improvements.
1 parent 4b1a82b commit 7d41008

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ Replace the existing crop-rotate editor, which depended on the `extended_image`
55

66

77
#### **Breaking Changes:**
8-
- Change the layer initial offset position to the center of the screen, not the top left.
9-
- Change the `allowCompleteWithEmptyEditing` config to `allowEmptyEditCompletion`. Use it new like this `configs: ProImageEditorConfigs(imageGenerationConfigs: ImageGeneratioConfigs(allowEmptyEditCompletion: false))`. The default value is now also `true` and not `false` anymore.
108
- Move `onImageEditingComplete`, `onCloseEditor` and `onUpdateUI` callbacks inside `callbacks: ProImageEditorCallbacks()`.
9+
- Change the `allowCompleteWithEmptyEditing` config to `allowEmptyEditCompletion`. Use it new like this `configs: ProImageEditorConfigs(imageGenerationConfigs: ImageGeneratioConfigs(allowEmptyEditCompletion: false))`. The default value is now also `true` and not `false` anymore.
10+
- Change the layer initial offset position to the center of the screen, not the top left.
1111
- Rename `ColorFilterGenerator` to `FilterModel`.
1212
- Changed the logic of overlaying multiple layers, which may produce different results than before.
1313
- Default `maxBlur` configuration is now 5.0 instead of 2.0.

lib/modules/main_editor/main_editor.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,8 +1136,7 @@ class ProImageEditorState extends State<ProImageEditor>
11361136
fitToScreenFactor: fitToScreenFactor,
11371137
).updatedLayers;
11381138

1139-
await _decodeImage(transformConfigs);
1140-
1139+
_decodeImage(transformConfigs);
11411140
_addHistory(
11421141
transformConfigs: transformConfigs,
11431142
layers: updatedLayers,

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: pro_image_editor
22
description: "A Flutter image editor: Seamlessly enhance your images with user-friendly editing features."
3-
version: 3.0.0-dev.33
3+
version: 3.0.0
44
homepage: https://github.com/hm21/pro_image_editor/
55
repository: https://github.com/hm21/pro_image_editor/
66
issue_tracker: https://github.com/hm21/pro_image_editor/issues/

0 commit comments

Comments
 (0)