InputField constructor
const
InputField({
- Key? key,
- Widget? prefix,
- Widget? suffix,
- bool? readOnly = false,
- Decoration? outerDecoration,
- InputDecoration? inputDecoration,
- EdgeInsets? contentPadding,
- int? maxLines,
- TextInputAction? textInputAction,
- TextInputType? keyboardType,
- String? validator()?,
- bool? autofocus = false,
- void onChanged()?,
- void onFieldSubmitted()?,
- FocusNode? focusNode,
- double? cursorWidth = 1.0,
- TextStyle? inputTextStyle,
- TextEditingController? controller,
- List<
TextInputFormatter> ? formatters, - Color? cursorColor,
Implementation
const InputField({
super.key,
this.prefix,
this.suffix,
this.readOnly = false,
this.outerDecoration,
this.inputDecoration,
this.contentPadding,
this.maxLines,
this.textInputAction,
this.keyboardType,
this.validator,
this.autofocus = false,
this.onChanged,
this.onFieldSubmitted,
this.focusNode,
this.cursorWidth = 1.0,
this.inputTextStyle,
this.controller,
this.formatters,
this.cursorColor,
}) /* : assert(
inputDecoration != null &&
(suffix != null || prefix != null || contentPadding != null),
'Если есть inputDecoration, то suffix, prefix, contentPadding, должны быть равны null',
),
super(key: key) */
;