TextFieldItem constructor

TextFieldItem({
  1. String? hintText,
  2. TextStyle hintStyle = const TextStyle(color: Color(0xff999999), fontSize: 12),
  3. String? labelText,
  4. TextStyle labelStyle = const TextStyle(color: Color(0xff333333), fontSize: 13),
  5. String? prefix,
  6. TextStyle? prefixStyle,
  7. TextStyle tipTextStyle = const TextStyle(color: Color(0x99ff2e18), fontSize: 12),
  8. String? counterText,
  9. TextStyle? counterStyle,
  10. Widget? prefixWidget,
  11. Widget? suffixWidget,
  12. double underlineWidth = 1,
  13. Color underlineColor = const Color(0xffEFEFEF),
  14. Color errorUnderlineColor = const Color(0xffEFEFEF),
  15. String? tag,
  16. FormFieldValidator<String>? validator,
  17. double? maxWidth,
  18. double? maxHeight,
  19. double? height,
  20. bool enablePass = false,
  21. List<TextInputFormatter>? inputFormatters,
  22. TextInputType? keyboardType,
  23. List<ItemOption> menuItems = const [],
  24. String? defaultText,
  25. Offset? menuOffset,
  26. int minLines = 1,
  27. int maxLines = 1,
  28. AlignmentGeometry alignment = Alignment.centerLeft,
  29. TextAlign textAlign = TextAlign.left,
  30. bool visible = true,
  31. BoxBorder? border,
  32. BorderRadiusGeometry? borderRadius,
  33. EdgeInsetsGeometry? contentPadding,
  34. BoxConstraints? prefixIconConstraints,
  35. dynamic onSubmitted(
    1. String text
    )?,
  36. 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,
});