1
0
Fork 0
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:
John Stef 2024-11-18 18:06:07 +02:00 committed by GitHub
parent 6b5defc27b
commit 41f138d3c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -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,

View file

@ -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'),