From 8afbc4585c1673ca668aee7abbdb330ff0b0980c Mon Sep 17 00:00:00 2001 From: hm21 Date: Sun, 7 Jun 2026 11:31:46 +0200 Subject: [PATCH 1/2] fix: update Flutter version to 3.44.0 in CI workflows and adjust reorder callback in multiple files --- .github/workflows/flutter_analysis.yml | 2 +- .github/workflows/gh_pages.yml | 2 +- example/lib/features/reorder_layer_example.dart | 2 +- example/linux/flutter/generated_plugins.cmake | 1 - example/macos/Flutter/GeneratedPluginRegistrant.swift | 2 +- example/windows/flutter/generated_plugins.cmake | 1 - lib/designs/grounded/widgets/bottombar/grounded_main_bar.dart | 2 +- lib/designs/whatsapp/whatsapp_sticker_editor.dart | 2 +- lib/features/clips_editor/pages/clips_editor_page.dart | 3 +-- lib/features/main_editor/main_editor.dart | 2 +- 10 files changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/flutter_analysis.yml b/.github/workflows/flutter_analysis.yml index eb89315c2..2b3c19d47 100644 --- a/.github/workflows/flutter_analysis.yml +++ b/.github/workflows/flutter_analysis.yml @@ -18,7 +18,7 @@ jobs: uses: subosito/flutter-action@v2 with: channel: stable - flutter-version: 3.41.1 + flutter-version: 3.44.0 - name: Install dependencies run: flutter pub get diff --git a/.github/workflows/gh_pages.yml b/.github/workflows/gh_pages.yml index d3f25ffa3..5c4b15ad3 100644 --- a/.github/workflows/gh_pages.yml +++ b/.github/workflows/gh_pages.yml @@ -17,7 +17,7 @@ jobs: uses: subosito/flutter-action@v2 with: channel: stable - flutter-version: 3.41.0 + flutter-version: 3.44.0 - name: Install Package Dependencies run: flutter pub get diff --git a/example/lib/features/reorder_layer_example.dart b/example/lib/features/reorder_layer_example.dart index b1048d14c..8084e218e 100644 --- a/example/lib/features/reorder_layer_example.dart +++ b/example/lib/features/reorder_layer_example.dart @@ -245,7 +245,7 @@ class _ReorderLayerSheetState extends State { ); }, itemCount: widget.layers.length, - onReorder: widget.onReorder, + onReorderItem: widget.onReorder, ); } } diff --git a/example/linux/flutter/generated_plugins.cmake b/example/linux/flutter/generated_plugins.cmake index 4fb8db411..11da86f12 100644 --- a/example/linux/flutter/generated_plugins.cmake +++ b/example/linux/flutter/generated_plugins.cmake @@ -15,7 +15,6 @@ list(APPEND FLUTTER_PLUGIN_LIST ) list(APPEND FLUTTER_FFI_PLUGIN_LIST - jni onnxruntime ) diff --git a/example/macos/Flutter/GeneratedPluginRegistrant.swift b/example/macos/Flutter/GeneratedPluginRegistrant.swift index 90a8acb8b..e56b69199 100644 --- a/example/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/example/macos/Flutter/GeneratedPluginRegistrant.swift @@ -42,7 +42,7 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { ProVideoEditorPlugin.register(with: registry.registrar(forPlugin: "ProVideoEditorPlugin")) SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin")) - VideoPlayerPlugin.register(with: registry.registrar(forPlugin: "VideoPlayerPlugin")) + FVPVideoPlayerPlugin.register(with: registry.registrar(forPlugin: "FVPVideoPlayerPlugin")) VolumeControllerPlugin.register(with: registry.registrar(forPlugin: "VolumeControllerPlugin")) WakelockPlusMacosPlugin.register(with: registry.registrar(forPlugin: "WakelockPlusMacosPlugin")) } diff --git a/example/windows/flutter/generated_plugins.cmake b/example/windows/flutter/generated_plugins.cmake index 71c4bd2c3..ec34a8b70 100644 --- a/example/windows/flutter/generated_plugins.cmake +++ b/example/windows/flutter/generated_plugins.cmake @@ -18,7 +18,6 @@ list(APPEND FLUTTER_PLUGIN_LIST ) list(APPEND FLUTTER_FFI_PLUGIN_LIST - jni onnxruntime ) diff --git a/lib/designs/grounded/widgets/bottombar/grounded_main_bar.dart b/lib/designs/grounded/widgets/bottombar/grounded_main_bar.dart index 9b78e4051..55f3172c0 100644 --- a/lib/designs/grounded/widgets/bottombar/grounded_main_bar.dart +++ b/lib/designs/grounded/widgets/bottombar/grounded_main_bar.dart @@ -150,7 +150,7 @@ class GroundedMainBarState extends State child: SizeTransition( sizeFactor: animation, axis: Axis.vertical, - axisAlignment: -1, + alignment: Alignment.topCenter, child: child, ), ); diff --git a/lib/designs/whatsapp/whatsapp_sticker_editor.dart b/lib/designs/whatsapp/whatsapp_sticker_editor.dart index c159113c7..67fc76028 100644 --- a/lib/designs/whatsapp/whatsapp_sticker_editor.dart +++ b/lib/designs/whatsapp/whatsapp_sticker_editor.dart @@ -244,7 +244,7 @@ class _WhatsAppStickerPageState extends State { child: _isStickerEditorEnabled ? SizeTransition( sizeFactor: animation, - axisAlignment: -1, + alignment: Alignment.topCenter, child: child, ) : ScaleTransition( diff --git a/lib/features/clips_editor/pages/clips_editor_page.dart b/lib/features/clips_editor/pages/clips_editor_page.dart index b8f5d3450..69223e687 100644 --- a/lib/features/clips_editor/pages/clips_editor_page.dart +++ b/lib/features/clips_editor/pages/clips_editor_page.dart @@ -264,8 +264,7 @@ class ClipsEditorPageState extends State child: ReorderableListView.builder( reverse: reversedList, padding: clipsEditorConfigs.style.bodyPadding, - onReorder: (oldIndex, newIndex) { - if (newIndex > oldIndex) newIndex--; + onReorderItem: (oldIndex, newIndex) { final item = _videoClips.removeAt(oldIndex); _videoClips.insert(newIndex, item); setState(() {}); diff --git a/lib/features/main_editor/main_editor.dart b/lib/features/main_editor/main_editor.dart index ac3b08994..765bafd90 100644 --- a/lib/features/main_editor/main_editor.dart +++ b/lib/features/main_editor/main_editor.dart @@ -3118,7 +3118,7 @@ class ProImageEditorState extends State transitionBuilder: (child, animation) { return SizeTransition( sizeFactor: animation, - axisAlignment: -1, + alignment: Alignment.topCenter, child: child, ); }, From 936566d5f7f2a5aefe1a4fcbf7426f17e5040341 Mon Sep 17 00:00:00 2001 From: hm21 Date: Sun, 7 Jun 2026 11:38:44 +0200 Subject: [PATCH 2/2] fix: update version to 12.4.8 and add changelog entry for CI updates and deprecated API fixes --- CHANGELOG.md | 3 +++ pubspec.yaml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 75bcac1eb..f8dc5ec59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 12.4.8 +- **CHORE**: Update CI to Flutter 3.44 and fix deprecated API usages. + ## 12.4.7 - **FIX**(example): Update Supabase initialization to use publishable key and upgrade `supabase_flutter` dependency to 2.14.1. diff --git a/pubspec.yaml b/pubspec.yaml index 4fb5abdfe..30cc25eaf 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: pro_image_editor description: "A Flutter image editor: Seamlessly enhance your images with user-friendly editing features." -version: 12.4.7 +version: 12.4.8 homepage: https://github.com/hm21/pro_image_editor/ repository: https://github.com/hm21/pro_image_editor/ documentation: https://github.com/hm21/pro_image_editor/