CLTextField constructor

const CLTextField({
  1. Key? key,
  2. required TextEditingController controller,
  3. required String labelText,
  4. String? hintText,
  5. FocusNode? focusNode,
  6. int? maxLines = 1,
  7. TextInputType inputType = TextInputType.text,
  8. bool isObscured = false,
  9. bool isEnabled = true,
  10. Widget? prefixIcon,
  11. BoxConstraints? prefixIconConstraints,
  12. Widget? suffixIcon,
  13. bool isTextArea = false,
  14. bool isRequired = false,
  15. bool isRounded = false,
  16. bool isReadOnly = false,
  17. GestureTapCallback? onTap,
  18. Future onChanged(
    1. String value
    )?,
  19. List<FormFieldValidator<String>>? validators,
  20. dynamic onColorPicked(
    1. String
    )?,
  21. dynamic onFilePicked(
    1. File?
    )?,
  22. dynamic onDateTimeSelected(
    1. DateTime?
    )?,
  23. dynamic onTimeSelected(
    1. TimeOfDay?
    )?,
  24. TimeOfDay? initialSelectedTime,
  25. DateTime? initialSelectedDateTime,
  26. bool withTime = false,
  27. bool withoutDay = false,
  28. String? initValue,
  29. List<TextInputFormatter>? inputFormatters,
  30. bool onlyTime = false,
  31. Color? fillColor,
  32. CLDateFieldType? dateFieldType,
  33. bool capitalize = false,
  34. bool isCompact = false,
  35. bool recessed = false,
})

Implementation

const CLTextField({
  super.key,
  required this.controller,
  required this.labelText,
  this.hintText,
  this.focusNode,
  this.maxLines = 1,
  this.inputType = TextInputType.text,
  this.isObscured = false,
  this.isEnabled = true,
  this.prefixIcon,
  this.prefixIconConstraints,
  this.suffixIcon,
  this.isTextArea = false,
  this.isRequired = false,
  this.isRounded = false,
  this.isReadOnly = false,
  this.onTap,
  this.onChanged,
  this.validators,
  this.onColorPicked,
  this.onFilePicked,
  this.onDateTimeSelected,
  this.onTimeSelected,
  this.initialSelectedTime,
  this.initialSelectedDateTime,
  this.withTime = false,
  this.withoutDay = false,
  this.initValue,
  this.inputFormatters,
  this.onlyTime = false,
  this.fillColor,
  this.dateFieldType,
  this.capitalize = false,
  this.isCompact = false,
  this.recessed = false,
});