Field constructor

Field({
  1. Key? key,
  2. TextInputType? keyboardType,
  3. FocusNode? focusNode,
  4. TextInputAction textInputAction = TextInputAction.done,
  5. String? label,
  6. String? placeholder,
  7. TextEditingController? controller,
  8. int? maxLength,
  9. bool disabled = false,
  10. bool readonly = false,
  11. bool require = false,
  12. bool clearable = true,
  13. bool autofocus = false,
  14. List<TextInputFormatter>? inputFormatters,
  15. String type = "text",
  16. int rows = 2,
  17. bool showWordLimit = false,
  18. bool error = false,
  19. String? errorMessage,
  20. double labelWidth = Style.fieldLabelWidth,
  21. TextAlign labelAlign = TextAlign.start,
  22. TextAlign inputAlign = TextAlign.start,
  23. IconData? leftIcon,
  24. dynamic clickLeft()?,
  25. IconData? rightIcon,
  26. dynamic clickRight()?,
  27. Widget? right,
  28. ToolbarOptions? toolbarOptions,
  29. dynamic onChange(
    1. String val
    )?,
  30. dynamic onEditingComplete()?,
  31. dynamic onSubmitted(
    1. String val
    )?,
  32. dynamic onClick()?,
  33. TextStyle? style,
})

Implementation

Field({
  Key? key,
  this.keyboardType,
  this.focusNode,
  this.textInputAction: TextInputAction.done,
  this.label,
  this.placeholder,
  this.controller,
  this.maxLength,
  this.disabled: false,
  this.readonly: false,
  this.require: false,
  this.clearable: true,
  this.autofocus: false,
  this.inputFormatters,
  this.type: "text",
  this.rows: 2,
  this.showWordLimit: false,
  this.error: false,
  this.errorMessage,
  this.labelWidth: Style.fieldLabelWidth,
  this.labelAlign: TextAlign.start,
  this.inputAlign: TextAlign.start,
  this.leftIcon,
  this.clickLeft,
  this.rightIcon,
  this.clickRight,
  this.right,
  this.toolbarOptions,
  this.onChange,
  this.onEditingComplete,
  this.onSubmitted,
  this.onClick,
  this.style,
}) : super(key: key);