0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-21 00:52:43 -05:00

feat(mobile): Add dismiss action on app_bar_dialog (#12511)

Add dismiss action on app_bar_dialog
This commit is contained in:
Lauritz Tieste 2024-09-09 17:53:44 +02:00 committed by GitHub
parent 0a552d2bfa
commit 7b2f98a433
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -237,7 +237,11 @@ class ImmichAppBarDialog extends HookConsumerWidget {
);
}
return Dialog(
return Dismissible(
direction: DismissDirection.down,
onDismissed: (_) => Navigator.of(context).pop(),
key: const Key('app_bar_dialog'),
child: Dialog(
clipBehavior: Clip.hardEdge,
alignment: Alignment.topCenter,
insetPadding: EdgeInsets.only(
@ -269,6 +273,7 @@ class ImmichAppBarDialog extends HookConsumerWidget {
),
),
),
),
);
}
}