SFTextField constructor
const
SFTextField({
- required String placeholder,
- bool? isInError = false,
- ComponentSize size = ComponentSize.md,
- TextInputAction textInputAction = TextInputAction.next,
- bool autofocus = false,
- TextEditingController? controller,
- FocusNode? focusNode,
- dynamic onSubmitted()?,
- Color? backgroundColor,
- String? prefixText,
- Widget? suffixWidget,
- String? semanticsLabel,
- Widget builder()?,
- bool disabled = false,
- Key? key,
Implementation
const SFTextField({
required this.placeholder,
this.isInError = false,
this.size = ComponentSize.md,
this.textInputAction = TextInputAction.next,
this.autofocus = false,
this.controller,
this.focusNode,
this.onSubmitted,
this.backgroundColor,
this.prefixText,
this.suffixWidget,
this.semanticsLabel,
this.builder,
this.disabled = false,
super.key,
});