Skip to content

Commit

Permalink
fix(grounded-design): choose aspect ratios based on `canChangeAspectR…
Browse files Browse the repository at this point in the history
…atio` flag

Previously, aspect ratios were incorrectly selected regardless of the flag's value. This fix ensures the flag properly controls the selection logic.
  • Loading branch information
hm21 committed Jan 14, 2025
1 parent 68c5906 commit cb6e3b7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 7.6.3
- **FIX**(grounded-design): Fixed an issue where aspect ratios were incorrectly selected regardless of the `canChangeAspectRatio` flag.

## 7.6.2
- **DOCS**(readme): update readme to reflect latest changes

Expand Down Expand Up @@ -454,7 +457,7 @@ configs: ProImageEditorConfigs(
- **DOCS**(preview-videos): update preview videos to version 3.0.0


## 3.0.0 New Crop-Rotate-Editor
## 3.0.0

> Replace the existing crop-rotate editor, which depended on the `extended_image` and `image_editor` package, with a new solution that doesn't depend on this packages.
Expand Down
3 changes: 2 additions & 1 deletion lib/designs/grounded/grounded_crop_rotate_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ class _GroundedCropRotateBarState extends State<GroundedCropRotateBar>
mainAxisSize: MainAxisSize.min,
children: <Widget>[
..._buildConfigs(),
if (textEditorConfigs.customTextStyles != null) ...[
if (cropRotateEditorConfigs.aspectRatios.isNotEmpty &&
cropRotateEditorConfigs.canChangeAspectRatio) ...[
const SizedBox(width: 5),
_buildDivider(),
...List.generate(
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: 7.6.2
version: 7.6.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

0 comments on commit cb6e3b7

Please sign in to comment.