Skip to content

Commit

Permalink
fix(mobile): Crop presets break crop rectangle #11462 (#11467)
Browse files Browse the repository at this point in the history
Fix Issue 11464
  • Loading branch information
Yuvi-raj-P authored Jul 31, 2024
1 parent b73f7fe commit 01f8b7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mobile/lib/pages/editing/crop.page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ class _AspectRatioButton extends StatelessWidget {
: Theme.of(context).iconTheme.color,
),
onPressed: () {
cropController.crop = const Rect.fromLTRB(0.1, 0.1, 0.9, 0.9);
aspectRatio.value = ratio;
cropController.aspectRatio = ratio;
},
Expand Down

0 comments on commit 01f8b7e

Please sign in to comment.