From 48efe38af5e24b8ce3559967f1a04fdbbb697b49 Mon Sep 17 00:00:00 2001 From: Edouard Marquez Date: Mon, 28 Oct 2024 18:43:48 +0100 Subject: [PATCH] Fix Android issues --- .../lib/pages/product/product_page/new_product_footer.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/smooth_app/lib/pages/product/product_page/new_product_footer.dart b/packages/smooth_app/lib/pages/product/product_page/new_product_footer.dart index 6fc9f7f4a58..bfc44778cf6 100644 --- a/packages/smooth_app/lib/pages/product/product_page/new_product_footer.dart +++ b/packages/smooth_app/lib/pages/product/product_page/new_product_footer.dart @@ -1,3 +1,5 @@ +import 'dart:io'; + import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:openfoodfacts/openfoodfacts.dart'; @@ -56,8 +58,8 @@ class _ProductFooterButtonsBar extends StatelessWidget { double bottomPadding = MediaQuery.viewPaddingOf(context).bottom; // Add an extra padding (for Android) - if (bottomPadding == 0.0) { - bottomPadding = LARGE_SPACE; + if (Platform.isAndroid) { + bottomPadding += MEDIUM_SPACE; } return SizedBox( @@ -71,7 +73,6 @@ class _ProductFooterButtonsBar extends StatelessWidget { side: BorderSide(color: themeExtension.greyLight), padding: const EdgeInsetsDirectional.symmetric( horizontal: 19.0, - vertical: 14.0, ), ), ),