Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 12.0.4
- **FIX**(wasm): Resolve WASM incompatibility caused by unconditional `dart:isolate` import. The `IsolateManager` is now loaded via a conditional import, so web/WASM builds use a stub that falls back to single-threaded processing.

## 12.0.3
- **FEAT**(crop-rotate-editor): Add `exportOvalMask` to `CropRotateEditorConfigs` (default `true`). When set to `false`, the exported image uses a plain rectangular crop even if `CropMode.oval` is active, while the oval UI remains visible inside the crop editor.
- **FEAT**(crop-rotate-editor): Add `helperLineWidth` to `CropRotateEditorStyle`, allowing the grid line thickness to be customized or hidden entirely by setting it to `0`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import '/shared/utils/decode_image.dart';
import '/shared/utils/unique_id_generator.dart';
import '../services/image_converter_service.dart';
import '../services/image_render_service.dart';
import '../services/isolate_manager.dart';
import '../services/isolate_manager_stub.dart'
if (dart.library.io) '../services/isolate_manager.dart';
import '../services/thread_fallback_manager.dart';
import '../services/thread_manager.dart';
import '../services/web_worker/web_worker_manager_dummy.dart'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Project imports:
import 'thread_fallback_manager.dart';

/// Stub implementation of [IsolateManager] for web/WASM platforms where
/// dart:isolate is not available. Falls back to single-threaded processing.
class IsolateManager extends ThreadFallbackManager {
// ignore: public_member_api_docs
IsolateManager(super.configs);
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: pro_image_editor
description: "A Flutter image editor: Seamlessly enhance your images with user-friendly editing features."
version: 12.0.3
version: 12.0.4
homepage: https://github.com/hm21/pro_image_editor/
repository: https://github.com/hm21/pro_image_editor/
documentation: https://github.com/hm21/pro_image_editor/
Expand Down