You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently in RawAutocomplete, when the field is changed, updateOptionsViewVisibility is only called after the optionsBuilder future has resolved:
// Called when _textEditingController changes.
Future<void> _onChangedField() async {
final TextEditingValue value = _textEditingController.value;
final Iterable<T> options = await widget.optionsBuilder(value);
...
// Make sure the options are no longer hidden if the content of the field
// changes (ignore selection changes).
if (value.text != _lastFieldText) {
_lastFieldText = value.text;
_updateOptionsViewVisibility();
}
}
This means that users cannot currently display a custom options view while waiting for options from optionsBuilder. This might be useful, for example, if the user wants to display a loading message while waiting for options:
Proposal
Allow users display a custom options view while waiting for options from optionsBuilder.
The text was updated successfully, but these errors were encountered:
Use case
Currently in
RawAutocomplete
, when the field is changed,updateOptionsViewVisibility
is only called after theoptionsBuilder
future has resolved:This means that users cannot currently display a custom options view while waiting for options from
optionsBuilder
. This might be useful, for example, if the user wants to display a loading message while waiting for options:Proposal
Allow users display a custom options view while waiting for options from
optionsBuilder
.The text was updated successfully, but these errors were encountered: