File tree Expand file tree Collapse file tree 5 files changed +14
-6
lines changed Expand file tree Collapse file tree 5 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 10.5.4
4
+ - ** FEAT** (text-layers): Delete the edited 'TextLayers' if the new text is empty.
5
+
3
6
## 10.5.3
4
7
- ** FIX** (helper-lines): Resolve lint issues after upgrading to ` flutter_lints: ^6.0.0 ` .
5
8
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ dependencies:
19
19
bot_toast : ^4.1.0
20
20
cupertino_icons : ^1.0.8
21
21
file_picker : ^10.2.0
22
- gal : ^2.3.1
22
+ gal : ^2.3.2
23
23
google_fonts : ^6.2.1
24
24
file_saver : ^0.2.14
25
25
firebase_core : ^3.14.0
@@ -29,15 +29,15 @@ dependencies:
29
29
image_background_remover : ^1.0.0
30
30
image_picker : ^1.1.2
31
31
mime : ^2.0.0
32
- url_launcher : ^6.3.1
32
+ url_launcher : ^6.3.2
33
33
flutter_colorpicker : ^1.1.0
34
34
vibration : ^3.1.1
35
35
36
36
# Video-Editing
37
- pro_video_editor : ^0.1.8
37
+ pro_video_editor : ^0.2.0
38
38
# ## Choose one player below
39
39
video_player : ^2.10.0
40
- chewie : ^1.11.3
40
+ chewie : ^1.12.1
41
41
flick_video_player : ^0.9.0
42
42
media_kit : ^1.2.0 # Primary package.
43
43
media_kit_video : ^1.3.0 # For video rendering.
Original file line number Diff line number Diff line change @@ -1209,6 +1209,11 @@ class ProImageEditorState extends State<ProImageEditor>
1209
1209
1210
1210
if (layer == null || ! mounted) return ;
1211
1211
1212
+ if (layer.text.isEmpty) {
1213
+ removeLayer (layerData);
1214
+ return ;
1215
+ }
1216
+
1212
1217
int i = activeLayers.indexWhere ((element) => element.id == layerData.id);
1213
1218
if (i >= 0 ) {
1214
1219
_setTempLayer (layerData);
Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ class TextEditorState extends State<TextEditor>
310
310
/// Handles the "Done" action, either by applying changes or closing the
311
311
/// editor.
312
312
void done () {
313
- if (textCtrl.text.trim ().isNotEmpty) {
313
+ if (textCtrl.text.trim ().isNotEmpty || widget.layer != null ) {
314
314
TextLayer layer = TextLayer (
315
315
text: textCtrl.text.trim (),
316
316
background: _backgroundColor,
Original file line number Diff line number Diff line change 1
1
name : pro_image_editor
2
2
description : " A Flutter image editor: Seamlessly enhance your images with user-friendly editing features."
3
- version : 10.5.3
3
+ version : 10.5.4
4
4
homepage : https://github.com/hm21/pro_image_editor/
5
5
repository : https://github.com/hm21/pro_image_editor/
6
6
documentation : https://github.com/hm21/pro_image_editor/
You can’t perform that action at this time.
0 commit comments