CustomInputField constructor
const
CustomInputField({
- Key? key,
- String? hint,
- String? label,
- required TextEditingController textController,
- String? validator()?,
- bool enabled = true,
- bool readOnly = false,
- required dynamic onChange(
- String text
- FocusNode? focusNode,
- int maxlines = 1,
- Widget? suffixIcon,
- bool obscureText = false,
- dynamic onObscurePress()?,
- double topPadding = 18,
- List<
TextInputFormatter> ? inputFormatters, - bool forceDarkMode = false,
- TextCapitalization textCapitalization = TextCapitalization.sentences,
- 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});