CLTextField constructor
const
CLTextField({
- Key? key,
- required TextEditingController controller,
- required String labelText,
- String? hintText,
- FocusNode? focusNode,
- int? maxLines = 1,
- TextInputType inputType = TextInputType.text,
- bool isObscured = false,
- bool isEnabled = true,
- Widget? prefixIcon,
- BoxConstraints? prefixIconConstraints,
- Widget? suffixIcon,
- bool isTextArea = false,
- bool isRequired = false,
- bool isRounded = false,
- bool isReadOnly = false,
- GestureTapCallback? onTap,
- Future onChanged(
- String value
- List<
FormFieldValidator< ? validators,String> > - dynamic onColorPicked()?,
- dynamic onFilePicked(
- File?
- dynamic onDateTimeSelected()?,
- dynamic onTimeSelected()?,
- TimeOfDay? initialSelectedTime,
- DateTime? initialSelectedDateTime,
- bool withTime = false,
- bool withoutDay = false,
- String? initValue,
- List<
TextInputFormatter> ? inputFormatters, - bool onlyTime = false,
- Color? fillColor,
- CLDateFieldType? dateFieldType,
- bool capitalize = false,
- bool isCompact = false,
- 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,
});