Skip to content

Commit

Permalink
fix: miniature of ingredients blocks the text (openfoodfacts#2964)
Browse files Browse the repository at this point in the history
* fix: miniature of ingredients blocks the text

* Update ml_kit_scan_page.dart

* Update add_new_product_page.dart

* Update add_new_product_page.dart

Co-authored-by: Pierre Slamich <pierre@openfoodfacts.org>
  • Loading branch information
M123-dev and teolemon authored Sep 9, 2022
1 parent 1073972 commit c30e109
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
15 changes: 12 additions & 3 deletions packages/smooth_app/lib/pages/product/add_new_product_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,20 @@ class _AddNewProductPageState extends State<AddNewProductPage> {
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
SizedBox(height: 50, child: Image.file(image, fit: BoxFit.cover)),
SizedBox(
height: 50,
width: 50,
child: ClipRRect(
borderRadius: ROUNDED_BORDER_RADIUS,
child: Image.file(image, fit: BoxFit.cover),
),
),
Expanded(
child: Center(
child: Text(_getAddPhotoButtonText(context, imageType),
style: themeData.textTheme.bodyText1),
child: Text(
_getAddPhotoButtonText(context, imageType),
style: themeData.textTheme.bodyText1,
),
),
),
Icon(
Expand Down
1 change: 0 additions & 1 deletion packages/smooth_app/lib/pages/scan/ml_kit_scan_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,6 @@ class MLKitScannerPageState extends LifecycleAwareState<MLKitScannerPage>
if (_controller!.value.isClosed) {
_stopImageStream();
} else {
// TODO(M123): Handle errors better
Logs.e(
'On camera controller error : ${_controller!.value.errorDescription}',
);
Expand Down

0 comments on commit c30e109

Please sign in to comment.