ProKitTextField constructor

const ProKitTextField({
  1. Key? key,
  2. TextEditingController? controller,
  3. FocusNode? focusNode,
  4. TextInputType? keyboardType,
  5. TextInputAction? textInputAction,
  6. String? hint,
  7. String? prefixIconPath,
  8. Widget? prefixIcon,
  9. String? suffixIconPath,
  10. Widget? suffixIcon,
  11. Color? borderColor,
  12. Color? focusedBorderColor,
  13. Color? enabledBorderColor,
  14. Color? cursorColor,
  15. Color? textColor,
  16. Color? errorBorderColor,
  17. double? borderRadius,
  18. double? height,
  19. double? width,
  20. bool? isFilled,
  21. Color? filledColor,
  22. bool isPassword = false,
  23. bool showHideIcon = false,
  24. String? errorText,
  25. ValueChanged<String>? onChanged,
})

Added onChanged callback

Implementation

final ValueChanged<String>? onChanged; /// Added onChanged callback

const ProKitTextField({
  super.key,
  this.controller,
  this.focusNode,
  this.keyboardType,
  this.textInputAction,
  this.hint,
  this.prefixIconPath,
  this.prefixIcon,
  this.suffixIconPath,
  this.suffixIcon,
  this.borderColor,
  this.focusedBorderColor,
  this.enabledBorderColor,
  this.cursorColor,
  this.textColor,
  this.errorBorderColor,
  this.borderRadius,
  this.height,
  this.width,
  this.isFilled,
  this.filledColor,
  this.isPassword = false,
  this.showHideIcon = false,
  this.errorText,
  this.onChanged, /// Constructor updated
});