action display, and full display, started action editor
This commit is contained in:
@ -82,33 +82,35 @@ class _FormSearchInputState extends State<FormSearchInput> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return SearchAnchor(
|
||||
isFullScreen: false,
|
||||
builder: (BuildContext context, SearchController controller) {
|
||||
return FormTextInput(
|
||||
controller: widget.controller,
|
||||
title: widget.title ?? "",
|
||||
icon: Icon(Icons.search_rounded),
|
||||
maxLines: 2,
|
||||
requiresValidation: false,
|
||||
onTap: () {
|
||||
controller.openView();
|
||||
});
|
||||
}, suggestionsBuilder:
|
||||
return FormTextInput(
|
||||
controller: widget.controller,
|
||||
title: widget.title ?? "",
|
||||
icon: Icon(Icons.search_rounded),
|
||||
maxLines: 2,
|
||||
requiresValidation: false,
|
||||
onTap: () {
|
||||
controller.openView();
|
||||
});
|
||||
},
|
||||
suggestionsBuilder:
|
||||
(BuildContext context, SearchController controller) async {
|
||||
final List<Suggestion>? options =
|
||||
(await debouncer.process(controller.text))?.toList();
|
||||
if (options == null) {
|
||||
return _lastOptions;
|
||||
}
|
||||
_lastOptions = List<ListTile>.generate(options.length, (int index) {
|
||||
final Suggestion item = options[index];
|
||||
final dynamic content = item.content;
|
||||
return service.resultWidget(content, () {
|
||||
resultHandler(content, service);
|
||||
controller.closeView(null);
|
||||
});
|
||||
});
|
||||
final List<Suggestion>? options =
|
||||
(await debouncer.process(controller.text))?.toList();
|
||||
if (options == null) {
|
||||
return _lastOptions;
|
||||
}
|
||||
_lastOptions = List<ListTile>.generate(options.length, (int index) {
|
||||
final Suggestion item = options[index];
|
||||
final dynamic content = item.content;
|
||||
return service.resultWidget(content, () {
|
||||
resultHandler(content, service);
|
||||
controller.closeView(null);
|
||||
});
|
||||
});
|
||||
|
||||
return _lastOptions;
|
||||
});
|
||||
return _lastOptions;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user