TextFieldItem constructor
TextFieldItem({
- String? hintText,
- TextStyle hintStyle = const TextStyle(color: Color(0xff999999), fontSize: 12),
- String? labelText,
- TextStyle labelStyle = const TextStyle(color: Color(0xff333333), fontSize: 13),
- String? prefix,
- TextStyle? prefixStyle,
- TextStyle tipTextStyle = const TextStyle(color: Color(0x99ff2e18), fontSize: 12),
- String? counterText,
- TextStyle? counterStyle,
- Widget? prefixWidget,
- Widget? suffixWidget,
- double underlineWidth = 1,
- Color underlineColor = const Color(0xffEFEFEF),
- Color errorUnderlineColor = const Color(0xffEFEFEF),
- String? tag,
- FormFieldValidator<
String> ? validator, - double? maxWidth,
- double? maxHeight,
- double? height,
- bool enablePass = false,
- List<
TextInputFormatter> ? inputFormatters, - TextInputType? keyboardType,
- String? defaultText,
- int minLines = 1,
- int maxLines = 1,
- AlignmentGeometry alignment = Alignment.centerLeft,
- TextAlign textAlign = TextAlign.left,
- bool visible = true,
- BoxBorder? border,
- BorderRadiusGeometry? borderRadius,
- EdgeInsetsGeometry? contentPadding,
- BoxConstraints? prefixIconConstraints,
- dynamic onSubmitted(
- String text
- bool defaultShowFocus = false,
Implementation
TextFieldItem({
this.hintText,
this.hintStyle = const TextStyle(color: Color(0xff999999), fontSize: 12),
this.labelText,
this.labelStyle = const TextStyle(color: Color(0xff333333), fontSize: 13),
this.prefix,
this.prefixStyle,
this.tipTextStyle = const TextStyle(color: Color(0x99ff2e18), fontSize: 12),
this.counterText,
this.counterStyle,
this.prefixWidget,
this.suffixWidget,
this.underlineWidth = 1,
this.underlineColor = const Color(0xffEFEFEF),
this.errorUnderlineColor = const Color(0xffEFEFEF),
this.tag,
this.validator,
this.maxWidth,
this.maxHeight,
this.height,
this.enablePass = false,
this.inputFormatters,
this.keyboardType,
this.menuItems = const [],
this.defaultText,
this.menuOffset,
this.minLines = 1,
this.maxLines = 1,
this.alignment = Alignment.centerLeft,
this.textAlign = TextAlign.left,
this.visible = true,
this.border,
this.borderRadius,
this.contentPadding,
this.prefixIconConstraints,
this.onSubmitted,
this.defaultShowFocus = false,
});