Skip to content

Commit

Permalink
Fix Android issues
Browse files Browse the repository at this point in the history
  • Loading branch information
g123k committed Oct 28, 2024
1 parent 3b8eb1d commit 48efe38
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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(
Expand All @@ -71,7 +73,6 @@ class _ProductFooterButtonsBar extends StatelessWidget {
side: BorderSide(color: themeExtension.greyLight),
padding: const EdgeInsetsDirectional.symmetric(
horizontal: 19.0,
vertical: 14.0,
),
),
),
Expand Down

0 comments on commit 48efe38

Please sign in to comment.