Skip to content

Commit

Permalink
fix(mobile): Dismissible menus (immich-app#14192)
Browse files Browse the repository at this point in the history
* chore(mobile): make all search filters dismissible

* chore(mobile): make ImmichAppBarDialog dismissible

---------

Co-authored-by: Alex <[email protected]>
  • Loading branch information
johnstef99 and alextran1502 authored Nov 18, 2024
1 parent 6b5defc commit 41f138d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mobile/lib/pages/search/search.page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 41f138d

Please sign in to comment.