fix(mobile): transparent system navbar when trash bottom bar is visible (#27093)

* disable bottom safe area on trash bottom bar so that it extends below the system nav bar

* remove manual padding calculations

* re-add static vertical padding to maintain previous bottom bar height
This commit is contained in:
Putu Prema
2026-04-06 22:28:07 +08:00
committed by GitHub
parent 136bd1e2eb
commit 2143a0c935
@@ -10,14 +10,14 @@ class TrashBottomBar extends ConsumerWidget {
@override @override
Widget build(BuildContext context, WidgetRef ref) { Widget build(BuildContext context, WidgetRef ref) {
return SafeArea( return Align(
child: Align(
alignment: Alignment.bottomCenter, alignment: Alignment.bottomCenter,
child: SizedBox(
height: 64,
child: Container( child: Container(
color: context.themeData.canvasColor, color: context.themeData.canvasColor,
child: const Row( padding: const EdgeInsets.symmetric(vertical: 8),
child: const SafeArea(
top: false,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly, mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [ children: [
DeleteTrashActionButton(source: ActionSource.timeline), DeleteTrashActionButton(source: ActionSource.timeline),
@@ -26,7 +26,6 @@ class TrashBottomBar extends ConsumerWidget {
), ),
), ),
), ),
),
); );
} }
} }