AppRoundedTextField constructor

const AppRoundedTextField({
  1. Key? key,
  2. TextEditingController? controller,
  3. FocusNode? focusNode,
  4. String? hint,
  5. void onChanged(
    1. String
    )?,
  6. void onSubmitted(
    1. String
    )?,
  7. VoidCallback? onTap,
  8. String? validator(
    1. String?
    )?,
  9. IconData? prefixIconData,
  10. IconData? suffixIconData,
  11. Widget? prefixIcon,
  12. Widget? suffixIcon,
  13. TextInputType? keyboardType,
  14. TextInputAction? textInputAction,
  15. bool enabled = true,
  16. bool readOnly = false,
  17. bool autofocus = false,
  18. bool obscureText = false,
  19. bool showPasswordToggle = false,
  20. Color? backgroundColor,
  21. Color? borderColor,
  22. Color? focusedBorderColor,
  23. Color? cursorColor,
  24. Color? textColor,
  25. Color? hintColor,
  26. Color? iconColor,
  27. double? fontSize,
  28. double? hintFontSize,
  29. double? iconSize,
  30. double? height,
  31. EdgeInsetsGeometry? contentPadding,
  32. bool isPill = true,
  33. bool showBorder = false,
  34. bool? enableSecurity,
})

Implementation

const AppRoundedTextField({
  super.key,
  this.controller,
  this.focusNode,
  this.hint,
  this.onChanged,
  this.onSubmitted,
  this.onTap,
  this.validator,
  this.prefixIconData,
  this.suffixIconData,
  this.prefixIcon,
  this.suffixIcon,
  this.keyboardType,
  this.textInputAction,
  this.enabled = true,
  this.readOnly = false,
  this.autofocus = false,
  this.obscureText = false,
  this.showPasswordToggle = false,
  this.backgroundColor,
  this.borderColor,
  this.focusedBorderColor,
  this.cursorColor,
  this.textColor,
  this.hintColor,
  this.iconColor,
  this.fontSize,
  this.hintFontSize,
  this.iconSize,
  this.height,
  this.contentPadding,
  this.isPill = true,
  this.showBorder = false,
  this.enableSecurity,
});