mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +00:00
fix(mobile): Dismissible menus (#14192)
* chore(mobile): make all search filters dismissible * chore(mobile): make ImmichAppBarDialog dismissible --------- Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
parent
6b5defc27b
commit
41f138d3c8
2 changed files with 3 additions and 2 deletions
|
@ -187,7 +187,7 @@ class SearchPage extends HookConsumerWidget {
|
||||||
showFilterBottomSheet(
|
showFilterBottomSheet(
|
||||||
context: context,
|
context: context,
|
||||||
isScrollControlled: true,
|
isScrollControlled: true,
|
||||||
isDismissible: false,
|
isDismissible: true,
|
||||||
child: FilterBottomSheetScaffold(
|
child: FilterBottomSheetScaffold(
|
||||||
title: 'search_filter_location_title'.tr(),
|
title: 'search_filter_location_title'.tr(),
|
||||||
onSearch: search,
|
onSearch: search,
|
||||||
|
@ -238,7 +238,7 @@ class SearchPage extends HookConsumerWidget {
|
||||||
showFilterBottomSheet(
|
showFilterBottomSheet(
|
||||||
context: context,
|
context: context,
|
||||||
isScrollControlled: true,
|
isScrollControlled: true,
|
||||||
isDismissible: false,
|
isDismissible: true,
|
||||||
child: FilterBottomSheetScaffold(
|
child: FilterBottomSheetScaffold(
|
||||||
title: 'search_filter_camera_title'.tr(),
|
title: 'search_filter_camera_title'.tr(),
|
||||||
onSearch: search,
|
onSearch: search,
|
||||||
|
|
|
@ -259,6 +259,7 @@ class ImmichAppBarDialog extends HookConsumerWidget {
|
||||||
}
|
}
|
||||||
|
|
||||||
return Dismissible(
|
return Dismissible(
|
||||||
|
behavior: HitTestBehavior.translucent,
|
||||||
direction: DismissDirection.down,
|
direction: DismissDirection.down,
|
||||||
onDismissed: (_) => Navigator.of(context).pop(),
|
onDismissed: (_) => Navigator.of(context).pop(),
|
||||||
key: const Key('app_bar_dialog'),
|
key: const Key('app_bar_dialog'),
|
||||||
|
|
Loading…
Reference in a new issue