defaultClearIconBuilder static method
The default clear icon builder that shows a clear button.
Implementation
static Widget defaultClearIconBuilder(BuildContext context, FTextFieldStyle style, VoidCallback clear) {
final localizations = FLocalizations.of(context) ?? FDefaultLocalizations();
return Padding(
padding: style.clearButtonPadding,
child: FButton.icon(
style: style.clearButtonStyle,
onPress: clear,
child: Icon(FIcons.x, semanticLabel: localizations.textFieldClearButtonSemanticsLabel),
),
);
}