Skip to content

Commit

Permalink
fix(paint-editor): resolve appBarColor issue in paint editor
Browse files Browse the repository at this point in the history
  • Loading branch information
hm21 committed Jan 25, 2025
1 parent d070dc5 commit 03f947a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 8.0.2
- **FIX**(paint-editor): Resolve the issue where the paint editor did not use `appBarColor` from the style configuration. More details in PR [#333](https://github.com/hm21/pro_image_editor/issues/333)

## 8.0.1
- **FIX**(layer-interaction): Fix issue where layers remove-area still appear when attempting to move a layer, even when `enableMove` is set to `false`. Resolves issue [#332](https://github.com/hm21/pro_image_editor/issues/332)
- **FEAT**(layer-interaction): Introduce `enableEdit` to the layer interaction options, allowing users to disable direct editing of text layers.
Expand Down
8 changes: 6 additions & 2 deletions lib/features/paint_editor/widgets/paint_editor_appbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,9 @@ class PaintEditorAppBar extends StatelessWidget implements PreferredSizeWidget {
padding: const EdgeInsets.symmetric(horizontal: 8),
icon: Icon(
paintEditorConfigs.icons.undoAction,
color: canUndo ? paintEditorConfigs.style.appBarColor : paintEditorConfigs.style.appBarColor.withAlpha(80),
color: canUndo
? paintEditorConfigs.style.appBarColor
: paintEditorConfigs.style.appBarColor.withAlpha(80),
),
onPressed: onUndo,
),
Expand All @@ -262,7 +264,9 @@ class PaintEditorAppBar extends StatelessWidget implements PreferredSizeWidget {
padding: const EdgeInsets.symmetric(horizontal: 8),
icon: Icon(
paintEditorConfigs.icons.redoAction,
color: canUndo ? paintEditorConfigs.style.appBarColor : paintEditorConfigs.style.appBarColor.withAlpha(80),
color: canUndo
? paintEditorConfigs.style.appBarColor
: paintEditorConfigs.style.appBarColor.withAlpha(80),
),
onPressed: onRedo,
),
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.0.1
version: 8.0.2
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

0 comments on commit 03f947a

Please sign in to comment.