refactor: remove riverpod generator (#27874)

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
shenlong
2026-04-17 20:01:44 +05:30
committed by GitHub
parent a456a05052
commit 2070f775d6
43 changed files with 128 additions and 1362 deletions
@@ -29,7 +29,7 @@ class CommentBubble extends ConsumerWidget {
final bgColor = isOwn ? context.colorScheme.primaryContainer : context.colorScheme.surfaceContainer;
final activityNotifier = ref.read(
albumActivityProvider(album.id, isAssetActivity ? activity.assetId : null).notifier,
albumActivityProvider((album.id, isAssetActivity ? activity.assetId : null)).notifier,
);
Future<void> openAssetViewer() async {
@@ -21,9 +21,13 @@ class CameraPicker extends HookConsumerWidget {
final selectedMake = useState<String?>(filter?.make);
final selectedModel = useState<String?>(filter?.model);
final make = ref.watch(getSearchSuggestionsProvider(SearchSuggestionType.cameraMake));
final make = ref.watch(getSearchSuggestionsProvider(SearchSuggestionArgs(type: SearchSuggestionType.cameraMake)));
final models = ref.watch(getSearchSuggestionsProvider(SearchSuggestionType.cameraModel, make: selectedMake.value));
final models = ref.watch(
getSearchSuggestionsProvider(
SearchSuggestionArgs(type: SearchSuggestionType.cameraModel, make: selectedMake.value),
),
);
final makeWidget = SearchDropdown(
dropdownMenuEntries: switch (make) {
@@ -25,25 +25,31 @@ class LocationPicker extends HookConsumerWidget {
final countries = ref.watch(
getSearchSuggestionsProvider(
SearchSuggestionType.country,
locationCountry: selectedCountry.value,
locationState: selectedState.value,
SearchSuggestionArgs(
type: SearchSuggestionType.country,
locationCountry: selectedCountry.value,
locationState: selectedState.value,
),
),
);
final states = ref.watch(
getSearchSuggestionsProvider(
SearchSuggestionType.state,
locationCountry: selectedCountry.value,
locationState: selectedState.value,
SearchSuggestionArgs(
type: SearchSuggestionType.state,
locationCountry: selectedCountry.value,
locationState: selectedState.value,
),
),
);
final cities = ref.watch(
getSearchSuggestionsProvider(
SearchSuggestionType.city,
locationCountry: selectedCountry.value,
locationState: selectedState.value,
SearchSuggestionArgs(
type: SearchSuggestionType.city,
locationCountry: selectedCountry.value,
locationState: selectedState.value,
),
),
);