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,
  28. Color? textColor,
  29. FocusNode? focusNode,
  30. EdgeInsetsGeometry? margin,
  31. bool visible = true,
  32. double? opacity,
  33. BoxFit? fit,
  34. AlignmentGeometry fitAlignment = Alignment.center,
  35. double? scale,
  36. double? rotate,
  37. Offset? translate,
  38. bool center = false,
  39. bool safeArea = false,
  40. int? expanded,
  41. int? flexible,
  42. bool positioned = false,
  43. double? left,
  44. double? top,
  45. double? right,
  46. double? bottom,
  47. double? positionedWidth,
  48. double? positionedHeight,
})

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,
  this.textColor,
  this.focusNode,
  this.margin,
  this.visible = true,
  this.opacity,
  this.fit,
  this.fitAlignment = Alignment.center,
  this.scale,
  this.rotate,
  this.translate,
  this.center = false,
  this.safeArea = false,
  this.expanded,
  this.flexible,
  this.positioned = false,
  this.left,
  this.top,
  this.right,
  this.bottom,
  this.positionedWidth,
  this.positionedHeight,
});