From 09109d8742fe2fd47296d807fb61f975ef344684 Mon Sep 17 00:00:00 2001 From: PartyDonut Date: Sun, 9 Nov 2025 10:57:26 +0100 Subject: [PATCH] fix: Improve strange padding --- lib/widgets/shared/modal_bottom_sheet.dart | 23 +++++++++++----------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/lib/widgets/shared/modal_bottom_sheet.dart b/lib/widgets/shared/modal_bottom_sheet.dart index 32b0a14..c0eec8a 100644 --- a/lib/widgets/shared/modal_bottom_sheet.dart +++ b/lib/widgets/shared/modal_bottom_sheet.dart @@ -39,19 +39,18 @@ Future showBottomSheetPill({ child: Column( mainAxisSize: MainAxisSize.min, children: [ - Padding( - padding: const EdgeInsets.symmetric(vertical: 16), - child: Container( - height: 8, - width: 35, - decoration: BoxDecoration( - color: AdaptiveLayout.inputDeviceOf(context) == InputDevice.touch - ? Theme.of(context).colorScheme.onSurface - : Colors.transparent, - borderRadius: FladderTheme.largeShape.borderRadius, + if (AdaptiveLayout.inputDeviceOf(context) == InputDevice.touch) + Padding( + padding: const EdgeInsets.symmetric(vertical: 16), + child: Container( + height: 8, + width: 35, + decoration: BoxDecoration( + color: Theme.of(context).colorScheme.onSurface, + borderRadius: FladderTheme.largeShape.borderRadius, + ), ), ), - ), Flexible( child: ListView( shrinkWrap: true, @@ -59,7 +58,7 @@ Future showBottomSheetPill({ children: [ if (item != null) ...{ Padding( - padding: const EdgeInsets.symmetric(horizontal: 12), + padding: const EdgeInsets.symmetric(horizontal: 12).copyWith(top: 8), child: ItemBottomSheetPreview(item: item), ), const Divider(),