CustomTextForm constructor
CustomTextForm({
- Key? key,
- required TextEditingController controller,
- bool enableBorder = true,
- String hintText = "",
- String labelText = "",
- Color cursorColor = Colors.green,
- bool filled = false,
- Color filledColor = Colors.transparent,
- TextStyle? hintTextStyle = const TextStyle(color: Colors.black),
- String obscuringCharacter = "*",
- bool readOnly = false,
- bool obscureText = false,
- TextStyle labelTextStyle = const TextStyle(color: Colors.black),
- Widget? prefix,
- Widget? suffix,
- TextStyle? textStyle,
- TextInputAction textInputAction = TextInputAction.done,
- TextInputType keyboardType = TextInputType.text,
- String? validator()?,
- Function? onTap,
- dynamic onChanged()?,
- AutovalidateMode? autovalidateMode = AutovalidateMode.onUserInteraction,
- List<
TextInputFormatter> ? inputFormatter, - int maxLine = 2,
- int minLine = 1,
Constructor
Implementation
CustomTextForm(
{super.key,
required this.controller,
this.enableBorder = true,
this.hintText = "",
this.labelText = "",
this.cursorColor = Colors.green,
this.filled = false,
this.filledColor = Colors.transparent,
this.hintTextStyle = const TextStyle(color: Colors.black),
this.obscuringCharacter = "*",
this.readOnly = false,
this.obscureText = false,
this.labelTextStyle = const TextStyle(color: Colors.black),
this.prefix,
this.suffix,
this.textStyle,
this.textInputAction = TextInputAction.done,
this.keyboardType = TextInputType.text,
this.validator,
this.onTap,
this.onChanged,
this.autovalidateMode = AutovalidateMode.onUserInteraction,
this.inputFormatter,
this.maxLine = 2,
this.minLine = 1});