CustomTextFieldWithButton constructor

const CustomTextFieldWithButton({
  1. Key? key,
  2. String? label,
  3. TextStyle? labelStyle,
  4. String? hint,
  5. TextEditingController? controller,
  6. String? validator(
    1. String?
    )?,
  7. TextInputType? keyboardType,
  8. bool obscureText = false,
  9. Widget? prefixIcon,
  10. String? errorMsg,
  11. Color? errorColor,
  12. void onChanged(
    1. String
    )?,
  13. Color? borderColor,
  14. Color? focusedBorderColor,
  15. Color? textColor,
  16. Color? hintColor,
  17. Color? iconColor,
  18. bool isDisabled = false,
  19. bool isOptionalMark = false,
  20. Color? disabledBorderColor,
  21. Color? disabledTextColor,
  22. Color? disabledBackgroundColor,
  23. required String buttonText,
  24. VoidCallback? onButtonPressed,
  25. bool isButtonDisabled = false,
  26. Color? buttonColor,
  27. Color? buttonTextColor,
  28. Color? buttonDisabledColor,
  29. Color? buttonDisabledTextColor,
  30. TextStyle? buttonTextStyle,
})

Implementation

const CustomTextFieldWithButton({
  Key? key,
  this.label,
  this.labelStyle,
  this.hint,
  this.controller,
  this.validator,
  this.keyboardType,
  this.obscureText = false,
  this.prefixIcon,
  this.errorMsg,
  this.errorColor,
  this.onChanged,
  this.borderColor,
  this.focusedBorderColor,
  this.textColor,
  this.hintColor,
  this.iconColor,
  this.isDisabled = false,
  this.isOptionalMark = false,
  this.disabledBorderColor,
  this.disabledTextColor,
  this.disabledBackgroundColor,
  required this.buttonText,
  this.onButtonPressed,
  this.isButtonDisabled = false,
  this.buttonColor,
  this.buttonTextColor,
  this.buttonDisabledColor,
  this.buttonDisabledTextColor,
  this.buttonTextStyle,
}) : super(key: key);