mirror of
https://github.com/immich-app/immich.git
synced 2026-02-28 01:29:04 +03:00
fix(mobile): handle userPreferencesProvider error state during sync (#26332)
fix drift_search_page render bug
This commit is contained in:
@@ -698,7 +698,7 @@ class DriftSearchPage extends HookConsumerWidget {
|
|||||||
label: 'search_filter_location'.t(context: context),
|
label: 'search_filter_location'.t(context: context),
|
||||||
currentFilter: locationCurrentFilterWidget.value,
|
currentFilter: locationCurrentFilterWidget.value,
|
||||||
),
|
),
|
||||||
if (userPreferences.value?.tagsEnabled ?? false)
|
if (userPreferences.valueOrNull?.tagsEnabled ?? false)
|
||||||
SearchFilterChip(
|
SearchFilterChip(
|
||||||
icon: Icons.sell_outlined,
|
icon: Icons.sell_outlined,
|
||||||
onTap: showTagPicker,
|
onTap: showTagPicker,
|
||||||
@@ -724,14 +724,13 @@ class DriftSearchPage extends HookConsumerWidget {
|
|||||||
label: 'search_filter_media_type'.t(context: context),
|
label: 'search_filter_media_type'.t(context: context),
|
||||||
currentFilter: mediaTypeCurrentFilterWidget.value,
|
currentFilter: mediaTypeCurrentFilterWidget.value,
|
||||||
),
|
),
|
||||||
if (userPreferences.value?.ratingsEnabled ?? false) ...[
|
if (userPreferences.valueOrNull?.ratingsEnabled ?? false)
|
||||||
SearchFilterChip(
|
SearchFilterChip(
|
||||||
icon: Icons.star_outline_rounded,
|
icon: Icons.star_outline_rounded,
|
||||||
onTap: showStarRatingPicker,
|
onTap: showStarRatingPicker,
|
||||||
label: 'search_filter_star_rating'.t(context: context),
|
label: 'search_filter_star_rating'.t(context: context),
|
||||||
currentFilter: ratingCurrentFilterWidget.value,
|
currentFilter: ratingCurrentFilterWidget.value,
|
||||||
),
|
),
|
||||||
],
|
|
||||||
SearchFilterChip(
|
SearchFilterChip(
|
||||||
icon: Icons.display_settings_outlined,
|
icon: Icons.display_settings_outlined,
|
||||||
onTap: showDisplayOptionPicker,
|
onTap: showDisplayOptionPicker,
|
||||||
|
|||||||
Reference in New Issue
Block a user