mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat(mobile): Add dismiss action on app_bar_dialog (#12511)
Add dismiss action on app_bar_dialog
This commit is contained in:
parent
0a552d2bfa
commit
7b2f98a433
1 changed files with 34 additions and 29 deletions
|
|
@ -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,
|
clipBehavior: Clip.hardEdge,
|
||||||
alignment: Alignment.topCenter,
|
alignment: Alignment.topCenter,
|
||||||
insetPadding: EdgeInsets.only(
|
insetPadding: EdgeInsets.only(
|
||||||
|
|
@ -269,6 +273,7 @@ class ImmichAppBarDialog extends HookConsumerWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue