mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-14 01:37:07 -07:00
feat: Implement custom keyboard for Android TV (#523)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
721fc28060
commit
75c2f958b4
22 changed files with 927 additions and 157 deletions
|
|
@ -100,6 +100,15 @@ class _SearchBarState extends ConsumerState<SuggestionSearchBar> {
|
|||
isEmpty = value.isEmpty;
|
||||
});
|
||||
},
|
||||
searchQuery: (query) async {
|
||||
if (query.isEmpty) return [];
|
||||
if (widget.key != null) {
|
||||
final items =
|
||||
await ref.read(librarySearchProvider(widget.key!).notifier).fetchSuggestions(query, limit: 5);
|
||||
return items.map((e) => e.name).toList();
|
||||
}
|
||||
return [];
|
||||
},
|
||||
placeHolder: widget.title ?? "${context.localized.search}...",
|
||||
decoration: InputDecoration(
|
||||
hintText: widget.title ?? "${context.localized.search}...",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue