QUTextInput constructor
const
QUTextInput({
- Key? key,
- required TextEditingController controller,
- dynamic onChanged()?,
- int maxLength = 1000,
- bool disabled = false,
- dynamic onTap()?,
- bool readOnly = false,
- String placeholder = '请输入',
- TextInputType? keyboardType = TextInputType.text,
- bool allowClear = true,
- dynamic onClose()?,
- InputBorder? border,
- InputBorder? focusedBorder,
- Color? fillColor,
- Widget? prefixIcon,
- BorderRadius borderRadius = const BorderRadius.all(Radius.circular(4.0)),
- EdgeInsetsGeometry contentPadding = const EdgeInsets.all(10),
- int maxLines = 1,
Implementation
const QUTextInput(
{Key? key,
required this.controller,
this.onChanged,
this.maxLength = 1000,
this.disabled = false,
this.onTap,
this.readOnly = false,
this.placeholder = '请输入',
this.keyboardType = TextInputType.text,
this.allowClear = true,
this.onClose,
this.border,
this.focusedBorder,
this.fillColor,
this.prefixIcon,
this.borderRadius = const BorderRadius.all(Radius.circular(4.0)),
this.contentPadding = const EdgeInsets.all(10),
this.maxLines = 1})
: super(key: key);