EditTextWidget constructor
const
EditTextWidget({
- Key? key,
- ITextInputType keyboardType = ITextInputType.text,
- int? minLines,
- int maxLines = 1,
- String? hintText,
- TextStyle? hintStyle,
- InputWidgetDelCallBack? fieldCallBack,
- Icon? deleteIcon,
- InputBorder? inputBorder,
- InputBorder? focusedBorder,
- EdgeInsets? contentPadding,
- TextStyle? textStyle,
- Widget? prefixIcon,
- FormFieldValidator<
String> ? validator, - Color? fillColor,
- String inputText = '',
- TextAlign textAlign = TextAlign.start,
- bool enabled = true,
- int? inputMaxLength,
- ValueChanged<
String> ? onSubmitted, - FocusNode? focusNode,
- TextInputAction? textInputAction,
- required Color cursorColor,
Implementation
const EditTextWidget({
Key? key,
ITextInputType keyboardType = ITextInputType.text,
this.minLines,
this.maxLines = 1,
this.hintText,
this.hintStyle,
this.fieldCallBack,
this.deleteIcon,
this.inputBorder,
this.focusedBorder,
this.contentPadding,
this.textStyle,
this.prefixIcon,
this.validator,
this.fillColor,
this.inputText = '',
this.textAlign = TextAlign.start,
this.enabled = true,
this.inputMaxLength,
this.onSubmitted,
this.focusNode,
this.textInputAction,
required this.cursorColor,
}) : assert(maxLines > 0),
keyboardType = maxLines == 1 ? keyboardType : ITextInputType.multiline,
super(key: key);