CustomTextInput constructor

const CustomTextInput({
  1. Key? key,
  2. String? title,
  3. String hint = 'Enter the text here',
  4. ValueChanged<String>? onChanged,
  5. VoidCallback? onEditingComplete,
  6. ValueChanged<String>? onSubmitted,
  7. bool showIcon = false,
  8. String error = '',
  9. String? presetTxt,
  10. TextEditingController? controller,
  11. int? maxLines = 10,
})

Implementation

const CustomTextInput({
    super.key,
    this.title,
    this.hint = 'Enter the text here',
    this.onChanged,
    this.onEditingComplete,
    this.onSubmitted,
    this.showIcon = false,
    this.error = '',
    this.presetTxt,
    this.controller,
    this.maxLines = 10,
});