CuReTextField constructor

const CuReTextField({
  1. Key? key,
  2. String? placeholder,
  3. String? label,
  4. IconData? prefixIcon,
  5. IconData? suffixIcon,
  6. Widget? suffix,
  7. required TextEditingController controller,
  8. CuReTextFieldValidator? validator,
  9. Function? onChanged,
  10. bool? showBorder,
  11. dynamic onValidation(
    1. bool
    )?,
  12. bool? disabled,
  13. bool? readonly,
  14. CuReTextFieldType? type,
  15. bool? multiline,
  16. int? maxLines,
  17. CuReShape? shape,
  18. Function? onSubmitted,
  19. bool? showCounter,
  20. double? borderRadius,
  21. List<CuReDropdownItem>? options,
  22. Color? color,
  23. TextAlign? textAlign,
  24. double? fontSize,
  25. FontWeight? fontWeight,
  26. EdgeInsets? padding,
})

Implementation

const CuReTextField({
  super.key,
  this.placeholder,
  this.label,
  this.prefixIcon,
  this.suffixIcon,
  this.suffix,
  required this.controller,
  this.validator,
  this.onChanged,
  this.showBorder,
  this.onValidation,
  this.disabled,
  this.readonly,
  this.type,
  this.multiline,
  this.maxLines,
  this.shape,
  this.onSubmitted,
  this.showCounter,
  this.borderRadius,
  this.options,
  this.color,
  this.textAlign,
  this.fontSize,
  this.fontWeight,
  this.padding,
});