CustomTextField constructor

const CustomTextField({
  1. Key? key,
  2. required TextEditingController wrapper,
  3. required String hintText,
  4. int? maxLength,
  5. TextInputType inputType = TextInputType.text,
  6. bool isEnabled = true,
  7. Color color = AppColors.white,
  8. Widget? prefixWidget,
  9. Widget? suffixWidget,
  10. Color? borderColor,
  11. TextStyle? hintStyle,
  12. dynamic onChanged(
    1. String val
    )?,
  13. bool autoFocus = false,
  14. int maxLines = 1,
  15. int? minLines,
  16. double textFieldRadius = 15.0,
  17. EdgeInsets? contentPadding,
})

Implementation

const CustomTextField(
    {super.key,
    required this.wrapper,
    required this.hintText,
    this.maxLength,
    this.inputType = TextInputType.text,
    this.isEnabled = true,
    this.color = AppColors.white,
    this.prefixWidget,
    this.suffixWidget,
    this.borderColor,
    this.hintStyle,
    this.onChanged,
    this.autoFocus = false,
    this.maxLines = 1,
    this.minLines,
    this.textFieldRadius = 15.0,
    this.contentPadding});