From f1e380c276076f003e59a65e4dcd8056e1efeba3 Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Mon, 29 Jan 2024 23:12:56 +0800 Subject: [PATCH] fix: add more padding in bottom sheet widget (#4542) --- .../bottom_sheet/show_mobile_bottom_sheet.dart | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/show_mobile_bottom_sheet.dart b/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/show_mobile_bottom_sheet.dart index eb22d81e20..be3d848e72 100644 --- a/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/show_mobile_bottom_sheet.dart +++ b/frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/show_mobile_bottom_sheet.dart @@ -114,12 +114,10 @@ Future showMobileBottomSheet( return children.first; } - // not full-screen mode - if (MediaQuery.of(context).padding.bottom == 0) { - children.add( - const VSpace(16), - ); - } + // add default padding + children.add( + VSpace(MediaQuery.of(context).padding.bottom == 0 ? 28.0 : 16.0), + ); return SafeArea( child: Column(