QUTextInput constructor

const QUTextInput({
  1. Key? key,
  2. required TextEditingController controller,
  3. dynamic onChanged(
    1. String
    )?,
  4. int maxLength = 1000,
  5. bool disabled = false,
  6. dynamic onTap()?,
  7. bool readOnly = false,
  8. String placeholder = '请输入',
  9. TextInputType? keyboardType = TextInputType.text,
  10. bool allowClear = true,
  11. dynamic onClose(
    1. String
    )?,
  12. InputBorder? border,
  13. InputBorder? focusedBorder,
  14. Color? fillColor,
  15. Widget? prefixIcon,
  16. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(4.0)),
  17. EdgeInsetsGeometry contentPadding = const EdgeInsets.all(10),
  18. 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);