Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(layer-interaction): resolve interaction issue with background layers #376

Merged
merged 1 commit into from
Feb 24, 2025
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

## 8.3.3
- **FIX**(layer-interaction): Resolved an issue where layers with blocked interaction also prevented interaction with background layers. Resolves [#374](https://github.com/hm21/pro_image_editor/issues/374)

## 8.3.2
- **FIX**(emoji-editor): Resolved an issue where categoryViewConfig caused an error. Resolves [#373](https://github.com/hm21/pro_image_editor/issues/373).

Expand Down
5 changes: 4 additions & 1 deletion lib/shared/widgets/layer/layer_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ class _LayerWidgetState extends State<LayerWidget>
/// Build the content with possible transformations
Widget _buildPosition() {
Matrix4 transformMatrix = _calcTransformMatrix();
var interaction = widget.layerData.interaction;

return Hero(
key: _layerKey,
Expand Down Expand Up @@ -324,7 +325,9 @@ class _LayerWidgetState extends State<LayerWidget>
child: GestureDetector(
behavior: HitTestBehavior.translucent,
onSecondaryTapUp: isDesktop ? _onSecondaryTapUp : null,
onTap: _onTap,
onTap: interaction.enableSelection || interaction.enableEdit
? _onTap
: null,
child: Listener(
behavior: HitTestBehavior.translucent,
onPointerDown: _onPointerDown,
Expand Down
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: 8.3.2
version: 8.3.3
homepage: https://github.com/hm21/pro_image_editor/
repository: https://github.com/hm21/pro_image_editor/
issue_tracker: https://github.com/hm21/pro_image_editor/issues/
Expand Down