ReactiveTextField constructor

const ReactiveTextField({
  1. Key? key,
  2. required ReactiveFieldState state,
  3. bool? dense,
  4. bool enabled = true,
  5. Color? fillColor,
  6. bool? filled,
  7. List<TextInputFormatter>? formatters,
  8. String? hint,
  9. Color? hintColor,
  10. IconData? icon,
  11. String? label,
  12. FloatingLabelBehavior floatingLabelBehavior = FloatingLabelBehavior.auto,
  13. int? maxLength,
  14. int? maxLines = 1,
  15. int? minLines,
  16. bool obscure = false,
  17. VoidCallback? onChanged,
  18. void onSuffixPressed()?,
  19. void onCanceled()?,
  20. EdgeInsets? padding,
  21. Widget? prefix,
  22. String? prefixText,
  23. TextStyle? prefixStyle,
  24. TextStyle? style,
  25. IconData? suffix,
  26. TextAlign textAlign = TextAlign.start,
  27. TextInputAction? textInputAction,
  28. Widget? trailing,
  29. bool treatErrorAsStatus = true,
  30. TextInputType? type,
  31. Widget? subtitle,
  32. bool clearable = true,
  33. bool? selectable,
  34. bool floatingAccent = false,
})

Implementation

const ReactiveTextField({
  super.key,
  required this.state,
  this.dense,
  this.enabled = true,
  this.fillColor,
  this.filled,
  this.formatters,
  this.hint,
  this.hintColor,
  this.icon,
  this.label,
  this.floatingLabelBehavior = FloatingLabelBehavior.auto,
  this.maxLength,
  this.maxLines = 1,
  this.minLines,
  this.obscure = false,
  this.onChanged,
  this.onSuffixPressed,
  this.onCanceled,
  this.padding,
  this.prefix,
  this.prefixText,
  this.prefixStyle,
  this.style,
  this.suffix,
  this.textAlign = TextAlign.start,
  this.textInputAction,
  this.trailing,
  this.treatErrorAsStatus = true,
  this.type,
  this.subtitle,
  this.clearable = true,
  this.selectable,
  this.floatingAccent = false,
});