ZetaTextInput constructor
- {Key? key,
- ValueChanged<
String?> ? onChange, - bool disabled = false,
- ZetaFormFieldRequirement requirementLevel = ZetaFormFieldRequirement.none,
- String? initialValue,
- String? label,
- String? hintText,
- String? placeholder,
- String? errorText,
- TextEditingController? controller,
- String? validator( )?,
- Widget? suffix,
- Widget? prefix,
- ZetaWidgetSize size = ZetaWidgetSize.medium,
- bool rounded = true,
- List<
TextInputFormatter> ? inputFormatters, - String? prefixText,
- TextStyle? prefixTextStyle,
- String? suffixText,
- TextStyle? suffixTextStyle,
- void onSubmit(
- String? val
Creates a new ZetaTextInput
Implementation
const ZetaTextInput({
super.key,
super.onChange,
super.disabled = false,
super.requirementLevel = ZetaFormFieldRequirement.none,
super.initialValue,
this.label,
this.hintText,
this.placeholder,
this.errorText,
this.controller,
this.validator,
this.suffix,
this.prefix,
this.size = ZetaWidgetSize.medium,
this.rounded = true,
this.inputFormatters,
this.prefixText,
this.prefixTextStyle,
this.suffixText,
this.suffixTextStyle,
this.onSubmit,
}) : assert(initialValue == null || controller == null, 'Only one of initial value and controller can be accepted.'),
assert(prefix == null || prefixText == null, 'Only one of prefix or prefixText can be accepted.'),
assert(suffix == null || suffixText == null, 'Only one of suffix or suffixText can be accepted.');