mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-14 17:55:58 -07:00
chore: Change native interface size and custom keyboard fixes
This commit is contained in:
parent
01a98f974f
commit
9954ed7db5
7 changed files with 65 additions and 55 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue