mirror of
https://github.com/immich-app/immich.git
synced 2025-12-17 09:13:17 +03:00
feat(mobile): keyboard shortcuts in asset viewer
This commit is contained in:
@@ -20,7 +20,7 @@ class DeleteActionButton extends ConsumerWidget {
|
||||
final bool showConfirmation;
|
||||
const DeleteActionButton({super.key, required this.source, this.showConfirmation = false});
|
||||
|
||||
void _onTap(BuildContext context, WidgetRef ref) async {
|
||||
static void deleteAsset(BuildContext context, WidgetRef ref, bool showConfirmation, ActionSource source) async {
|
||||
if (!context.mounted) {
|
||||
return;
|
||||
}
|
||||
@@ -74,7 +74,7 @@ class DeleteActionButton extends ConsumerWidget {
|
||||
maxWidth: 110.0,
|
||||
iconData: Icons.delete_sweep_outlined,
|
||||
label: "delete".t(context: context),
|
||||
onPressed: () => _onTap(context, ref),
|
||||
onPressed: () => deleteAsset(context, ref, showConfirmation, source),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user