mirror of
https://github.com/immich-app/immich.git
synced 2026-04-09 02:32:00 -04:00
* 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
32 lines
1.1 KiB
Dart
32 lines
1.1 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|
import 'package:immich_mobile/constants/enums.dart';
|
|
import 'package:immich_mobile/extensions/build_context_extensions.dart';
|
|
import 'package:immich_mobile/presentation/widgets/action_buttons/delete_trash_action_button.widget.dart';
|
|
import 'package:immich_mobile/presentation/widgets/action_buttons/restore_trash_action_button.widget.dart';
|
|
|
|
class TrashBottomBar extends ConsumerWidget {
|
|
const TrashBottomBar({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context, WidgetRef ref) {
|
|
return Align(
|
|
alignment: Alignment.bottomCenter,
|
|
child: Container(
|
|
color: context.themeData.canvasColor,
|
|
padding: const EdgeInsets.symmetric(vertical: 8),
|
|
child: const SafeArea(
|
|
top: false,
|
|
child: Row(
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
children: [
|
|
DeleteTrashActionButton(source: ActionSource.timeline),
|
|
RestoreTrashActionButton(source: ActionSource.timeline),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|