UTextField constructor

const UTextField({
  1. Key? key,
  2. String? text,
  3. String? labelText,
  4. String? hintText,
  5. EdgeInsetsGeometry? contentPadding,
  6. double? fontSize,
  7. TextEditingController? controller,
  8. VoidCallback? onTap,
  9. String? validator(
    1. String?
    )?,
  10. Widget? prefix,
  11. Widget? suffix,
  12. dynamic onSave(
    1. String? value
    )?,
  13. String? initialValue,
  14. double? textHeight,
  15. ValueChanged<String>? onChanged,
  16. ValueChanged<String>? onFieldSubmitted,
  17. int? maxLength,
  18. List<TextInputFormatter>? formatters,
  19. List<String>? autoFillHints,
  20. bool readOnly = false,
  21. TextInputType keyboardType = TextInputType.text,
  22. bool obscureText = false,
  23. int lines = 1,
  24. bool hasClearButton = false,
  25. bool required = false,
  26. bool isDense = false,
  27. TextAlign textAlign = TextAlign.start,
})

Implementation

const UTextField({
  super.key,
  this.text,
  this.labelText,
  this.hintText,
  this.contentPadding,
  this.fontSize,
  this.controller,
  this.onTap,
  this.validator,
  this.prefix,
  this.suffix,
  this.onSave,
  this.initialValue,
  this.textHeight,
  this.onChanged,
  this.onFieldSubmitted,
  this.maxLength,
  this.formatters,
  this.autoFillHints,
  this.readOnly = false,
  this.keyboardType = TextInputType.text,
  this.obscureText = false,
  this.lines = 1,
  this.hasClearButton = false,
  this.required = false,
  this.isDense = false,
  this.textAlign = TextAlign.start,
});