defaultContentEmptyBuilder static method
The default empty builder that shows a localized message when there are no results.
Implementation
static Widget defaultContentEmptyBuilder(BuildContext context, FAutocompleteContentStyle style) {
final localizations = FLocalizations.of(context) ?? FDefaultLocalizations();
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 14),
child: Text(localizations.autocompleteNoResults, style: style.emptyTextStyle),
);
}