CustomTextForm constructor

CustomTextForm({
  1. Key? key,
  2. required TextEditingController controller,
  3. bool enableBorder = true,
  4. String hintText = "",
  5. String labelText = "",
  6. Color cursorColor = Colors.green,
  7. bool filled = false,
  8. Color filledColor = Colors.transparent,
  9. TextStyle? hintTextStyle = const TextStyle(color: Colors.black),
  10. String obscuringCharacter = "*",
  11. bool readOnly = false,
  12. bool obscureText = false,
  13. TextStyle labelTextStyle = const TextStyle(color: Colors.black),
  14. Widget? prefix,
  15. Widget? suffix,
  16. TextStyle? textStyle,
  17. TextInputAction textInputAction = TextInputAction.done,
  18. TextInputType keyboardType = TextInputType.text,
  19. String? validator(
    1. String?
    )?,
  20. Function? onTap,
  21. dynamic onChanged(
    1. String
    )?,
  22. AutovalidateMode? autovalidateMode = AutovalidateMode.onUserInteraction,
  23. List<TextInputFormatter>? inputFormatter,
  24. int maxLine = 2,
  25. 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});