mirror of
https://github.com/immich-app/immich.git
synced 2025-05-31 20:25:32 -04: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
@ -237,35 +237,40 @@ class ImmichAppBarDialog extends HookConsumerWidget {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Dialog(
|
return Dismissible(
|
||||||
clipBehavior: Clip.hardEdge,
|
direction: DismissDirection.down,
|
||||||
alignment: Alignment.topCenter,
|
onDismissed: (_) => Navigator.of(context).pop(),
|
||||||
insetPadding: EdgeInsets.only(
|
key: const Key('app_bar_dialog'),
|
||||||
top: isHorizontal ? 20 : 40,
|
child: Dialog(
|
||||||
left: horizontalPadding,
|
clipBehavior: Clip.hardEdge,
|
||||||
right: horizontalPadding,
|
alignment: Alignment.topCenter,
|
||||||
bottom: isHorizontal ? 20 : 100,
|
insetPadding: EdgeInsets.only(
|
||||||
),
|
top: isHorizontal ? 20 : 40,
|
||||||
shape: RoundedRectangleBorder(
|
left: horizontalPadding,
|
||||||
borderRadius: BorderRadius.circular(20),
|
right: horizontalPadding,
|
||||||
),
|
bottom: isHorizontal ? 20 : 100,
|
||||||
child: SizedBox(
|
),
|
||||||
child: SingleChildScrollView(
|
shape: RoundedRectangleBorder(
|
||||||
child: Column(
|
borderRadius: BorderRadius.circular(20),
|
||||||
mainAxisSize: MainAxisSize.min,
|
),
|
||||||
children: [
|
child: SizedBox(
|
||||||
Container(
|
child: SingleChildScrollView(
|
||||||
padding: const EdgeInsets.all(20),
|
child: Column(
|
||||||
child: buildTopRow(),
|
mainAxisSize: MainAxisSize.min,
|
||||||
),
|
children: [
|
||||||
const AppBarProfileInfoBox(),
|
Container(
|
||||||
buildStorageInformation(),
|
padding: const EdgeInsets.all(20),
|
||||||
const AppBarServerInfo(),
|
child: buildTopRow(),
|
||||||
buildAppLogButton(),
|
),
|
||||||
buildSettingButton(),
|
const AppBarProfileInfoBox(),
|
||||||
buildSignOutButton(),
|
buildStorageInformation(),
|
||||||
buildFooter(),
|
const AppBarServerInfo(),
|
||||||
],
|
buildAppLogButton(),
|
||||||
|
buildSettingButton(),
|
||||||
|
buildSignOutButton(),
|
||||||
|
buildFooter(),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user