merge address bar into search screen

This commit is contained in:
Fabian Freund
2026-01-19 16:01:44 +01:00
parent 629c6da667
commit cbbbcf01e8
9 changed files with 184 additions and 37 deletions
@@ -50,6 +50,7 @@ class AutoSuggestTextField extends HookWidget {
final TapRegionCallback? onTapOutside;
final VoidCallback? onTap;
final bool autocorrect;
final GlobalKey? textFieldKey;
const AutoSuggestTextField({
super.key,
@@ -79,6 +80,7 @@ class AutoSuggestTextField extends HookWidget {
this.onTapOutside,
this.onTap,
this.autocorrect = false,
this.textFieldKey,
});
bool _suggestionHasMatch() =>
@@ -88,7 +90,8 @@ class AutoSuggestTextField extends HookWidget {
@override
Widget build(BuildContext context) {
final textFieldKey = useMemoized(() => GlobalKey());
final textFieldKey =
this.textFieldKey ?? useMemoized<GlobalKey>(() => GlobalKey());
final showSuggestion = useListenableSelector(controller, () {
if (maxLines != 1) {