RsTextFormField constructor

const RsTextFormField({
  1. required TextEditingController controller,
  2. required String label,
  3. String? validator(
    1. String? value
    )?,
  4. TextInputType? keyboardType,
  5. bool? enabled,
  6. TextStyle? textStyle,
  7. dynamic onChanged(
    1. String
    )?,
  8. dynamic onTapOutside(
    1. PointerDownEvent
    )?,
  9. VoidCallback? onTap,
  10. String? hintText,
  11. TextStyle? hintTextStyle,
  12. List<TextInputFormatter>? inputFormatters,
  13. int? minLines = 1,
  14. int? maxLines = 1,
  15. int? maxLength = 255,
  16. bool? obscureText = false,
  17. bool? readOnly = false,
  18. bool? alignLabelWithHint = true,
  19. bool? addEmailValidation = false,
  20. double? borderRadius = 20.0,
  21. double? contentPadding = 12.0,
  22. String? counterText = "",
  23. Key? key,
})

Implementation

const RsTextFormField({
  required this.controller,
  required this.label,
  this.validator,
  this.keyboardType,
  this.enabled,
  this.textStyle,
  this.onChanged,
  this.onTapOutside,
  this.onTap,
  this.hintText,
  this.hintTextStyle,
  this.inputFormatters,
  this.minLines = 1,
  this.maxLines = 1,
  this.maxLength = 255,
  this.obscureText = false,
  this.readOnly = false,
  this.alignLabelWithHint = true,
  this.addEmailValidation = false,
  this.borderRadius = 20.0,
  this.contentPadding = 12.0,
  this.counterText = "",
  super.key,
});