Field constructor
Field({
- Key? key,
- TextInputType? keyboardType,
- FocusNode? focusNode,
- TextInputAction textInputAction = TextInputAction.done,
- String? label,
- String? placeholder,
- TextEditingController? controller,
- int? maxLength,
- bool disabled = false,
- bool readonly = false,
- bool require = false,
- bool clearable = true,
- bool autofocus = false,
- List<
TextInputFormatter> ? inputFormatters, - String type = "text",
- int rows = 2,
- bool showWordLimit = false,
- bool error = false,
- String? errorMessage,
- double labelWidth = Style.fieldLabelWidth,
- TextAlign labelAlign = TextAlign.start,
- TextAlign inputAlign = TextAlign.start,
- IconData? leftIcon,
- dynamic clickLeft()?,
- IconData? rightIcon,
- dynamic clickRight()?,
- Widget? right,
- ToolbarOptions? toolbarOptions,
- dynamic onChange(
- String val
- dynamic onEditingComplete()?,
- dynamic onSubmitted(
- String val
- dynamic onClick()?,
- 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);