From 1ff4c62a7c45a8c7f3347e050f2cd446fb1758c1 Mon Sep 17 00:00:00 2001 From: monsieurtanuki Date: Mon, 29 Aug 2022 11:32:20 +0200 Subject: [PATCH] fix: #1538 - refactoring of image cropper Impacted files: * `image_crop_page.dart`: vertical buttons for gallery/camera dialog * `smooth_alert_dialog.dart`: fixed comment --- .../smooth_app/lib/generic_lib/dialogs/smooth_alert_dialog.dart | 2 +- packages/smooth_app/lib/pages/image_crop_page.dart | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/smooth_app/lib/generic_lib/dialogs/smooth_alert_dialog.dart b/packages/smooth_app/lib/generic_lib/dialogs/smooth_alert_dialog.dart index 84db6f1b45dc..87733af7fb17 100644 --- a/packages/smooth_app/lib/generic_lib/dialogs/smooth_alert_dialog.dart +++ b/packages/smooth_app/lib/generic_lib/dialogs/smooth_alert_dialog.dart @@ -16,7 +16,7 @@ import 'package:smooth_app/generic_lib/widgets/smooth_responsive.dart'; /// /// If only one action button is provided, simply pass a [positiveAction] /// - [actionsAxis] allows to specify the axis of the buttons. By default, will -/// be [Axis.vertical], unless it is a small device +/// be [Axis.horizontal], unless it is a small device /// - [actionsOrder] allows to force the order of the buttons. By default, will /// be "smart" by guessing the order based on the axis class SmoothAlertDialog extends StatelessWidget { diff --git a/packages/smooth_app/lib/pages/image_crop_page.dart b/packages/smooth_app/lib/pages/image_crop_page.dart index b5c516dd6b23..6d0f8e86817e 100644 --- a/packages/smooth_app/lib/pages/image_crop_page.dart +++ b/packages/smooth_app/lib/pages/image_crop_page.dart @@ -73,6 +73,7 @@ Future pickImageFile( context: context, builder: (BuildContext context) => SmoothAlertDialog( title: appLocalizations.choose_image_source_title, + actionsAxis: Axis.vertical, body: Text(appLocalizations.choose_image_source_body), positiveAction: SmoothActionButton( text: appLocalizations.settings_app_camera,