DDTextField constructor

const DDTextField({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? labelText,
  4. String? hintText,
  5. String? prefixText,
  6. String? suffixText,
  7. int? minLines,
  8. int? maxLines,
  9. int? maxLength,
  10. TextAlign textAlign = TextAlign.start,
  11. TextInputType? inputType,
  12. List<TextInputFormatter>? inputFormatters,
  13. bool readOnly = false,
  14. bool enabled = true,
  15. bool border = true,
  16. dynamic onTap()?,
  17. dynamic onChanged(
    1. String value
    )?,
  18. dynamic onSaved(
    1. String? value
    )?,
  19. bool capitalize = false,
})

Implementation

const DDTextField({
  super.key,
  this.controller,
  this.labelText,
  this.hintText,
  this.prefixText,
  this.suffixText,
  this.minLines,
  this.maxLines,
  this.maxLength,
  this.textAlign = TextAlign.start,
  this.inputType,
  this.inputFormatters,
  this.readOnly = false,
  this.enabled = true,
  this.border = true,
  this.onTap,
  this.onChanged,
  this.onSaved,
  this.capitalize = false,
});