2025-07-22 11:36:00 -05:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|
|
|
|
import 'package:immich_mobile/extensions/build_context_extensions.dart';
|
2026-08-01 08:06:40 +05:30
|
|
|
import 'package:immich_mobile/presentation/actions/action.widget.dart';
|
2026-08-01 08:06:41 +05:30
|
|
|
import 'package:immich_mobile/presentation/actions/delete.action.dart';
|
2026-08-01 08:06:40 +05:30
|
|
|
import 'package:immich_mobile/presentation/actions/restore.action.dart';
|
2025-07-22 11:36:00 -05:00
|
|
|
|
|
|
|
|
class TrashBottomBar extends ConsumerWidget {
|
|
|
|
|
const TrashBottomBar({super.key});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context, WidgetRef ref) {
|
2026-04-06 22:28:07 +08:00
|
|
|
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,
|
2026-08-01 08:06:44 +05:30
|
|
|
children: <ActionColumnButton>[
|
|
|
|
|
.new(action: DeleteAction(source: .timeline)),
|
|
|
|
|
.new(action: RestoreAction(source: .timeline)),
|
2026-04-06 22:28:07 +08:00
|
|
|
],
|
2025-07-22 11:36:00 -05:00
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|