option to disable autosuggest
This commit is contained in:
@@ -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,
|
||||
),
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ part of 'search_suggestions.dart';
|
||||
// **************************************************************************
|
||||
|
||||
String _$defaultSearchSuggestionsHash() =>
|
||||
r'e503757071dd29988cd25e360b56a5a646800d5b';
|
||||
r'eb96a5db465422558a26e22abb3f843a82c17452';
|
||||
|
||||
/// See also [defaultSearchSuggestions].
|
||||
@ProviderFor(defaultSearchSuggestions)
|
||||
|
||||
Reference in New Issue
Block a user