Skip to content

Commit

Permalink
feat: specified minimum size for uploaded images (for pre-checks) (#798)
Browse files Browse the repository at this point in the history
* feat: specified minimum size for uploaded images (for pre-checks)

Impacted file:
* `image_helper.dart`: specified minimum size for uploaded images

* Update lib/src/utils/image_helper.dart
  • Loading branch information
monsieurtanuki authored Sep 7, 2023
1 parent 1a2b7e5 commit 3cf14f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/src/utils/image_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ import '../model/product_image.dart';

/// Helper class related to product pictures
class ImageHelper {
/// Minimum accepted width for an uploaded image.
static const int minimumWidth = 640;

/// Minimum accepted height for an uploaded image.
static const int minimumHeight = 160;

/// Returns the [image] full url - for a specific [imageSize] if needed.
///
/// Returns null is [barcode] is null.
Expand Down

0 comments on commit 3cf14f2

Please sign in to comment.