chore: Change native interface size and custom keyboard fixes

This commit is contained in:
PartyDonut 2025-10-18 14:21:32 +02:00
parent 01a98f974f
commit 9954ed7db5
7 changed files with 65 additions and 55 deletions

View file

@ -46,15 +46,6 @@ class _SearchBarState extends ConsumerState<SuggestionSearchBar> {
bool isEmpty = true;
final FocusNode focusNode = FocusNode();
@override
void initState() {
super.initState();
if (widget.autoFocus) {
focusNode.requestFocus();
}
super.initState();
}
@override
Widget build(BuildContext context) {
ref.listen(librarySearchProvider(widget.key!).select((value) => value.searchQuery), (previous, next) {
@ -90,6 +81,7 @@ class _SearchBarState extends ConsumerState<SuggestionSearchBar> {
),
builder: (context, controller, focusNode) => OutlinedTextField(
focusNode: focusNode,
autoFocus: widget.autoFocus,
controller: controller,
onSubmitted: (value) {
widget.onSubmited!(value);