From 116f9b2f80e978beb3a23dae238702c2de8fc975 Mon Sep 17 00:00:00 2001 From: Putu Prema Date: Fri, 20 Mar 2026 18:18:05 +0700 Subject: [PATCH 1/3] disable bottom safe area on trash bottom bar so that it extends below the system nav bar --- .../widgets/bottom_sheet/trash_bottom_sheet.widget.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mobile/lib/presentation/widgets/bottom_sheet/trash_bottom_sheet.widget.dart b/mobile/lib/presentation/widgets/bottom_sheet/trash_bottom_sheet.widget.dart index 9f8216c4ed5d7..29a9980e744e1 100644 --- a/mobile/lib/presentation/widgets/bottom_sheet/trash_bottom_sheet.widget.dart +++ b/mobile/lib/presentation/widgets/bottom_sheet/trash_bottom_sheet.widget.dart @@ -10,13 +10,16 @@ class TrashBottomBar extends ConsumerWidget { @override Widget build(BuildContext context, WidgetRef ref) { + final systemUiBottomPadding = MediaQuery.of(context).viewPadding.bottom; return SafeArea( + bottom: false, child: Align( alignment: Alignment.bottomCenter, child: SizedBox( - height: 64, + height: 64 + systemUiBottomPadding, child: Container( color: context.themeData.canvasColor, + padding: EdgeInsets.only(bottom: systemUiBottomPadding), child: const Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ From b1aa2078a3c67c47b39cb4f32c2e6b06ce5cb6ad Mon Sep 17 00:00:00 2001 From: Putu Prema Date: Fri, 20 Mar 2026 22:32:01 +0700 Subject: [PATCH 2/3] remove manual padding calculations --- .../trash_bottom_sheet.widget.dart | 29 ++++++++----------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/mobile/lib/presentation/widgets/bottom_sheet/trash_bottom_sheet.widget.dart b/mobile/lib/presentation/widgets/bottom_sheet/trash_bottom_sheet.widget.dart index 29a9980e744e1..ac1b27a95cf52 100644 --- a/mobile/lib/presentation/widgets/bottom_sheet/trash_bottom_sheet.widget.dart +++ b/mobile/lib/presentation/widgets/bottom_sheet/trash_bottom_sheet.widget.dart @@ -10,23 +10,18 @@ class TrashBottomBar extends ConsumerWidget { @override Widget build(BuildContext context, WidgetRef ref) { - final systemUiBottomPadding = MediaQuery.of(context).viewPadding.bottom; - return SafeArea( - bottom: false, - child: Align( - alignment: Alignment.bottomCenter, - child: SizedBox( - height: 64 + systemUiBottomPadding, - child: Container( - color: context.themeData.canvasColor, - padding: EdgeInsets.only(bottom: systemUiBottomPadding), - child: const Row( - mainAxisAlignment: MainAxisAlignment.spaceEvenly, - children: [ - DeleteTrashActionButton(source: ActionSource.timeline), - RestoreTrashActionButton(source: ActionSource.timeline), - ], - ), + return Align( + alignment: Alignment.bottomCenter, + child: ColoredBox( + color: context.themeData.canvasColor, + child: const SafeArea( + top: false, + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + DeleteTrashActionButton(source: ActionSource.timeline), + RestoreTrashActionButton(source: ActionSource.timeline), + ], ), ), ), From 62906169a68d986b66d6fdcf0724abebef7bb69b Mon Sep 17 00:00:00 2001 From: Putu Prema Date: Fri, 20 Mar 2026 22:59:50 +0700 Subject: [PATCH 3/3] re-add static vertical padding to maintain previous bottom bar height --- .../widgets/bottom_sheet/trash_bottom_sheet.widget.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mobile/lib/presentation/widgets/bottom_sheet/trash_bottom_sheet.widget.dart b/mobile/lib/presentation/widgets/bottom_sheet/trash_bottom_sheet.widget.dart index ac1b27a95cf52..c96e680966e06 100644 --- a/mobile/lib/presentation/widgets/bottom_sheet/trash_bottom_sheet.widget.dart +++ b/mobile/lib/presentation/widgets/bottom_sheet/trash_bottom_sheet.widget.dart @@ -12,8 +12,9 @@ class TrashBottomBar extends ConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { return Align( alignment: Alignment.bottomCenter, - child: ColoredBox( + child: Container( color: context.themeData.canvasColor, + padding: const EdgeInsets.symmetric(vertical: 8), child: const SafeArea( top: false, child: Row(