Skip to content

High performance self-hosted photo and video management solution.

fix(mobile): Crop presets break crop rectangle #11462 (#11467)

Yuvraj P01f8b7e45805
diff --git a/mobile/lib/pages/editing/crop.page.dart b/mobile/lib/pages/editing/crop.page.dart
index 315ec7ef19..8a21cdf769 100644
--- a/mobile/lib/pages/editing/crop.page.dart
+++ b/mobile/lib/pages/editing/crop.page.dart
@@ -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;
},