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:
* `confirm_and_upload_picture.dart`: minor refactoring.
* `image_crop_page.dart`: rather heavy refactoring needed to move forward.
  • Loading branch information
monsieurtanuki committed Aug 29, 2022
1 parent a928d40 commit f94e5c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
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 @@ -9,6 +9,7 @@ import 'package:smooth_app/generic_lib/dialogs/smooth_alert_dialog.dart';
/// Returns the file path of an image after it's been cropped.
///
/// This is the "old" problematic version; to be rapidly changed.
/// Remove: (stupid comment to trigger a PR)
Future<String?> getCroppedPath(
final BuildContext context,
final String inputPath,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ class _ConfirmAndUploadPictureState extends State<ConfirmAndUploadPicture> {
),
),
onPressed: () async {
// Remove: (stupid comment to trigger a PR)
retakenPhoto = await startImageCroppingNoPick(
context,
existingImage: photo,
Expand Down

0 comments on commit f94e5c8

Please sign in to comment.