consolidate icons

This commit is contained in:
Fabian Freund
2026-01-19 18:44:57 +01:00
parent 2f5260ac84
commit 21a7b85cfb
8 changed files with 100 additions and 83 deletions
@@ -330,7 +330,7 @@ class SearchScreen extends HookConsumerWidget {
label: (activeBang != null)
? const Text('Search')
: const Text('Address / Search'),
unfocusOnTapOutside: !isEditMode,
unfocusOnTapOutside: false,
onSubmitted: (value) async {
if (value.isNotEmpty) {
var newUrl = uri_parser.tryParseUrl(
@@ -284,7 +284,8 @@ class _BangChipsList extends HookConsumerWidget {
searchTextController.clear();
} else {
// Site tab - only clear if text is a valid URL
final hasSupportedScheme = uri_parser
final hasSupportedScheme =
uri_parser
.tryParseUrl(searchTextController.text)
.mapNotNull((uri) => uri.hasSupportedScheme) ??
false;
@@ -318,8 +319,9 @@ class _BangChipsList extends HookConsumerWidget {
WidgetRef ref,
BangData bang,
) async {
final currentSelection =
ref.read(selectedBangTriggerProvider(domain: domain));
final currentSelection = ref.read(
selectedBangTriggerProvider(domain: domain),
);
if (currentSelection == bang.toKey()) {
// Clear selection if the deleted bang is currently selected