From 03f947a9fae4ad6ef31570d084b3825d7ee2a16c Mon Sep 17 00:00:00 2001 From: hm21 Date: Sat, 25 Jan 2025 09:51:32 +0100 Subject: [PATCH] fix(paint-editor): resolve appBarColor issue in paint editor --- CHANGELOG.md | 3 +++ .../paint_editor/widgets/paint_editor_appbar.dart | 8 ++++++-- pubspec.yaml | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a7e012..96935bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/lib/features/paint_editor/widgets/paint_editor_appbar.dart b/lib/features/paint_editor/widgets/paint_editor_appbar.dart index 1b041da..43656e2 100644 --- a/lib/features/paint_editor/widgets/paint_editor_appbar.dart +++ b/lib/features/paint_editor/widgets/paint_editor_appbar.dart @@ -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, ), @@ -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, ), diff --git a/pubspec.yaml b/pubspec.yaml index 9a6ea29..1ef0185 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: 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/