option to disable autosuggest

This commit is contained in:
Fabian Freund
2025-06-27 22:04:00 +02:00
parent ba3c7aa63f
commit 764612e252
9 changed files with 69 additions and 12 deletions
@@ -3,6 +3,7 @@ import 'package:riverpod_annotation/riverpod_annotation.dart';
import 'package:weblibre/features/geckoview/features/search/domain/repositories/search_suggestions.dart';
import 'package:weblibre/features/search/domain/autosuggest/brave.dart';
import 'package:weblibre/features/search/domain/autosuggest/duckduckgo.dart';
import 'package:weblibre/features/search/domain/autosuggest/empty.dart';
import 'package:weblibre/features/search/domain/autosuggest/kagi.dart';
import 'package:weblibre/features/search/domain/autosuggest/qwant.dart';
import 'package:weblibre/features/search/domain/entities/abstract/i_search_suggestion_provider.dart';
@@ -19,6 +20,9 @@ ISearchSuggestionProvider defaultSearchSuggestions(Ref ref) {
);
return switch (provider) {
SearchSuggestionProviders.none => ref.watch(
emptyAutosuggestServiceProvider.notifier,
),
SearchSuggestionProviders.brave => ref.watch(
braveAutosuggestServiceProvider.notifier,
),
@@ -7,7 +7,7 @@ part of 'search_suggestions.dart';
// **************************************************************************
String _$defaultSearchSuggestionsHash() =>
r'e503757071dd29988cd25e360b56a5a646800d5b';
r'eb96a5db465422558a26e22abb3f843a82c17452';
/// See also [defaultSearchSuggestions].
@ProviderFor(defaultSearchSuggestions)