Skip to content

Commit

Permalink
fix: openfoodfacts#1538 - refactoring of image cropper
Browse files Browse the repository at this point in the history
Impacted files:
* `image_crop_page.dart`: vertical buttons for gallery/camera dialog
* `smooth_alert_dialog.dart`: fixed comment
  • Loading branch information
monsieurtanuki committed Aug 29, 2022
1 parent f839692 commit 1ff4c62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions packages/smooth_app/lib/pages/image_crop_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Future<XFile?> 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,
Expand Down

0 comments on commit 1ff4c62

Please sign in to comment.