From 41f138d3c8aa66044df0097e8cd1f60c8caa579c Mon Sep 17 00:00:00 2001 From: John Stef Date: Mon, 18 Nov 2024 18:06:07 +0200 Subject: [PATCH] fix(mobile): Dismissible menus (#14192) * chore(mobile): make all search filters dismissible * chore(mobile): make ImmichAppBarDialog dismissible --------- Co-authored-by: Alex --- mobile/lib/pages/search/search.page.dart | 4 ++-- mobile/lib/widgets/common/app_bar_dialog/app_bar_dialog.dart | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mobile/lib/pages/search/search.page.dart b/mobile/lib/pages/search/search.page.dart index 83220cff15c58..21d0e8f5c2dc3 100644 --- a/mobile/lib/pages/search/search.page.dart +++ b/mobile/lib/pages/search/search.page.dart @@ -187,7 +187,7 @@ class SearchPage extends HookConsumerWidget { showFilterBottomSheet( context: context, isScrollControlled: true, - isDismissible: false, + isDismissible: true, child: FilterBottomSheetScaffold( title: 'search_filter_location_title'.tr(), onSearch: search, @@ -238,7 +238,7 @@ class SearchPage extends HookConsumerWidget { showFilterBottomSheet( context: context, isScrollControlled: true, - isDismissible: false, + isDismissible: true, child: FilterBottomSheetScaffold( title: 'search_filter_camera_title'.tr(), onSearch: search, diff --git a/mobile/lib/widgets/common/app_bar_dialog/app_bar_dialog.dart b/mobile/lib/widgets/common/app_bar_dialog/app_bar_dialog.dart index 38d161f8521fa..ca6b827f66265 100644 --- a/mobile/lib/widgets/common/app_bar_dialog/app_bar_dialog.dart +++ b/mobile/lib/widgets/common/app_bar_dialog/app_bar_dialog.dart @@ -259,6 +259,7 @@ class ImmichAppBarDialog extends HookConsumerWidget { } return Dismissible( + behavior: HitTestBehavior.translucent, direction: DismissDirection.down, onDismissed: (_) => Navigator.of(context).pop(), key: const Key('app_bar_dialog'),