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

Release 8.0.0: Layer Interaction Overhaul and Breaking Changes #330

Merged
merged 7 commits into from
Jan 24, 2025
Merged

Conversation

hm21
Copy link
Owner

@hm21 hm21 commented Jan 24, 2025

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

  • Layer Interaction Overhaul:

    • Replaced the old enableInteraction property on layers with the new LayerInteraction class, introducing more specific configuration options:
      • enableMove, enableScale, enableRotate, and enableSelection.
    • This provides greater flexibility and precision in configuring layer interactions.
  • Customizable Interaction Widgets:

    • Updated LayerInteractionWidgets with two new options:
      • children: Allows users to define their own interactive button designs when the layer is selected.
      • border: Enables users to customize the border appearance of selected layers for a fully tailored design.

Does this PR introduce a breaking change?

  • Yes
  • No
  • Removed all deprecated values, including:
    • TextLayerData
    • PaintingLayerData
    • EmojiLayerData
    • StickerLayerData
    • ReactiveWidgetData
    • ReactiveAppbarData
    • serializeSticker
    • exportStickers

Other information

hm21 added 7 commits January 22, 2025 08:37
- Updated `emoji_picker_flutter` to `4.3.0`
- Updated `vibration` to `3.0.0`
- Updated `http` to `1.3.0`

Updated `pubspec.yaml` and `CHANGELOG.md` to reflect these changes.
…ory handling

- Updated layer interaction handling with new options
- Removed deprecated enums in `design_mode.dart` and `paint_editor_enum.dart`
- Added new models for `layer_interaction`
- Updated import/export history logic to support new layer interaction options
- Refactored layer-related components, including:
  - `main_editor_layers.dart`, `layer_widget.dart`, `layer_interaction_helper_widget.dart`
  - Models like `emoji_layer.dart`, `text_layer.dart`, `paint_layer.dart`
- Updated key minification logic and history compatibility utilities
- Added new history compatibility utility for `layer_interaction`
- Updated tests for minified keys
- Updated `pubspec.yaml` to version 8.0.0.
- Added release notes for 8.0.0 in `CHANGELOG.md`.
@hm21 hm21 merged commit e1fac9c into stable Jan 24, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant