AppTextField constructor

const AppTextField({
  1. FormFieldValidator<String>? validator,
  2. bool obscureText = false,
  3. TextCapitalization textCapitalization = TextCapitalization.none,
  4. bool digitsOnly = false,
  5. required TextEditingController controller,
  6. TextInputType textInputType = TextInputType.text,
  7. EdgeInsets contentPadding = const EdgeInsets.all(20.0),
  8. Widget? prefixWidget,
  9. Widget? suffixWidget,
  10. String? hintText = '',
  11. TextInputAction textInputAction = TextInputAction.next,
  12. int maxLength = 50,
  13. bool enableFocusBorder = true,
  14. ValueChanged<String>? onChanged,
  15. Color? textColor,
  16. String prefixText = "",
  17. Color? labelColor,
  18. String? labelText,
  19. bool readOnly = false,
  20. dynamic maxLine = 1,
  21. dynamic key1,
  22. dynamic onTap()?,
  23. String? initialValue,
  24. bool isDense = false,
  25. dynamic onSend(
    1. String
    )?,
})

Implementation

const AppTextField({
  this.validator,
  this.obscureText = false,
  this.textCapitalization = TextCapitalization.none,
  this.digitsOnly = false,
  required this.controller,
  this.textInputType = TextInputType.text,
  this.contentPadding = const EdgeInsets.all(20.0),
  this.prefixWidget,
  this.suffixWidget,
  this.hintText = '',
  this.textInputAction = TextInputAction.next,
  this.maxLength = 50,
  this.enableFocusBorder = true,
  this.onChanged,
  this.textColor,
  this.prefixText = "",
  this.labelColor,
  this.labelText,
  this.readOnly = false,
  this.maxLine = 1,
  this.key1,
  this.onTap,
  this.initialValue,
  this.isDense = false,
   this.onSend,
});