CustomInputField constructor

const CustomInputField({
  1. Key? key,
  2. String? hint,
  3. String? label,
  4. required TextEditingController textController,
  5. String? validator(
    1. String?
    )?,
  6. bool enabled = true,
  7. bool readOnly = false,
  8. required dynamic onChange(
    1. String text
    ),
  9. FocusNode? focusNode,
  10. int maxlines = 1,
  11. Widget? suffixIcon,
  12. bool obscureText = false,
  13. dynamic onObscurePress()?,
  14. double topPadding = 18,
  15. List<TextInputFormatter>? inputFormatters,
  16. bool forceDarkMode = false,
  17. TextCapitalization textCapitalization = TextCapitalization.sentences,
  18. List<String>? autofillHints,
})

Implementation

const CustomInputField(
    {super.key,
    this.hint,
    this.label,
    required this.textController,
    this.validator,
    this.enabled = true,
    this.readOnly = false,
    required this.onChange,
    this.focusNode,
    this.maxlines = 1,
    this.suffixIcon,
    this.obscureText = false,
    this.onObscurePress,
    this.topPadding = 18,
    this.inputFormatters,
    this.forceDarkMode = false,
    this.textCapitalization = TextCapitalization.sentences,
    this.autofillHints});