ImosysTextField constructor

const ImosysTextField({
  1. Key? key,
  2. required String hint,
  3. required TextEditingController controller,
  4. String? label,
  5. List<String>? items,
  6. double? dropdownWidth,
  7. Color? dropdownColor,
  8. VoidCallback? toggleObscure,
  9. bool? dontShowText,
  10. TextCapitalization? textCapitalization,
  11. dynamic onChange(
    1. String?
    )?,
  12. bool? autoCorrect,
  13. String? prefixText,
  14. Color? cursorColor,
  15. TextInputType? inputType,
  16. int? maxLength,
  17. int? maxLines,
  18. int? minLines,
  19. Widget? prefixIcon,
  20. Widget? suffixIcon,
  21. double? fontSize,
  22. double? hintFontSize,
  23. String? hintFontFamily,
  24. FontWeight? hintFontWeight,
  25. TextInputAction? textInputAction,
  26. VoidCallback? onTap,
  27. double? width,
  28. Color? fontColor,
  29. String? fontFamily,
  30. FontWeight? fontWeight,
  31. Color? hintFontColor,
  32. Color? borderColor,
  33. bool hasBorder = false,
  34. double? borderRadius,
  35. Color? errorBorderColor,
  36. Color? focusedBorderColor,
  37. bool hasFill = false,
  38. String? validator(
    1. String?
    )?,
  39. Color? fillColor,
  40. dynamic onSubmitted(
    1. String
    )?,
})

Implementation

const ImosysTextField(
    {super.key,
    required this.hint,
    required this.controller,
    this.label,
    this.items,
    this.dropdownWidth,
    this.dropdownColor,
    this.toggleObscure,
    this.dontShowText,
    this.textCapitalization,
    this.onChange,
    this.autoCorrect,
    this.prefixText,
    this.cursorColor,
    this.inputType,
    this.maxLength,
    this.maxLines,
    this.minLines,
    this.prefixIcon,
    this.suffixIcon,
    this.fontSize,
    this.hintFontSize,
    this.hintFontFamily,
    this.hintFontWeight,
    this.textInputAction,
    this.onTap,
    this.width,
    this.fontColor,
    this.fontFamily,
    this.fontWeight,
    this.hintFontColor,
    this.borderColor,
    this.hasBorder = false,
    this.borderRadius,
    this.errorBorderColor,
    this.focusedBorderColor,
    this.hasFill = false,
    this.validator,
    this.fillColor,
    this.onSubmitted,
    });