KitTextField constructor

const KitTextField({
  1. required TextEditingController controller,
  2. bool readOnly = false,
  3. List<TextInputFormatter> formatters = const [],
  4. String? placeholder,
  5. String? label,
  6. String? helper,
  7. ValueChanged<String>? onChanged,
  8. double size = kDefaultKitFieldSize,
  9. int? maxLines,
  10. double? maxHeight,
  11. VoidCallback? onPressed,
  12. bool isChanged = false,
  13. bool isRequired = false,
  14. FormFieldValidator<String?>? validator,
  15. FocusNode? focusNode,
  16. InputDecoration? decoration,
  17. IconData? suffixIcon,
  18. IconData? prefixIcon,
  19. Widget? suffix,
  20. Widget? prefix,
  21. Key? fieldKey,
  22. AutovalidateMode? autovalidateMode,
  23. Key? key,
})

Implementation

const KitTextField({
  required this.controller,
  this.readOnly = false,
  this.formatters = const [],
  this.placeholder,
  this.label,
  this.helper,
  this.onChanged,
  this.size = kDefaultKitFieldSize,
  this.maxLines,
  this.maxHeight,
  this.onPressed,
  this.isChanged = false,
  this.isRequired = false,
  this.validator,
  this.focusNode,
  this.decoration,
  this.suffixIcon,
  this.prefixIcon,
  this.suffix,
  this.prefix,
  this.fieldKey,
  this.autovalidateMode,
  super.key,
});