CInputDecorationTheme constructor

const CInputDecorationTheme({
  1. TextStyle? inputStyle,
  2. TextCapitalization textCapitalization = TextCapitalization.none,
  3. TextAlign textAlign = TextAlign.start,
  4. TextAlignVertical? textAlignVertical,
  5. TextDirection? textDirection,
  6. int? maxLines = 1,
  7. int? minLines,
  8. bool expands = false,
  9. int? maxLength,
  10. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  11. Clip clipBehavior = Clip.hardEdge,
  12. int? hintMaxLines,
  13. TextDirection? hintTextDirection,
  14. TextStyle? labelStyle,
  15. TextStyle? floatingLabelStyle,
  16. TextStyle? helperStyle,
  17. int? helperMaxLines,
  18. TextStyle? hintStyle,
  19. Duration? hintFadeDuration,
  20. TextStyle? errorStyle,
  21. int? errorMaxLines,
  22. FloatingLabelBehavior floatingLabelBehavior = FloatingLabelBehavior.auto,
  23. FloatingLabelAlignment floatingLabelAlignment = FloatingLabelAlignment.start,
  24. bool isDense = false,
  25. EdgeInsetsGeometry? contentPadding,
  26. bool isCollapsed = false,
  27. Color? iconColor,
  28. TextStyle? prefixStyle,
  29. Color? prefixIconColor,
  30. TextStyle? suffixStyle,
  31. Color? suffixIconColor,
  32. TextStyle? counterStyle,
  33. bool filled = false,
  34. Color? fillColor,
  35. BorderSide? activeIndicatorBorder,
  36. BorderSide? outlineBorder,
  37. Color? focusColor,
  38. Color? hoverColor,
  39. InputBorder? errorBorder,
  40. InputBorder? focusedBorder,
  41. InputBorder? focusedErrorBorder,
  42. InputBorder? disabledBorder,
  43. InputBorder? enabledBorder,
  44. InputBorder? border,
  45. bool alignLabelWithHint = false,
  46. BoxConstraints? constraints,
})

Constructor for the class.

Implementation

const CInputDecorationTheme({
  // Styles attached to the InputDecorationTheme.
  this.inputStyle,
  this.textCapitalization = TextCapitalization.none,
  this.textAlign = TextAlign.start,
  this.textAlignVertical,
  this.textDirection,
  this.maxLines = 1,
  this.minLines,
  this.expands = false,
  this.maxLength,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.clipBehavior = Clip.hardEdge,
  this.hintMaxLines,
  this.hintTextDirection,

  // The existing InputDecorationTheme
  super.labelStyle,
  super.floatingLabelStyle,
  super.helperStyle,
  super.helperMaxLines,
  super.hintStyle,
  super.hintFadeDuration,
  super.errorStyle,
  super.errorMaxLines,
  super.floatingLabelBehavior = FloatingLabelBehavior.auto,
  super.floatingLabelAlignment = FloatingLabelAlignment.start,
  super.isDense = false,
  super.contentPadding,
  super.isCollapsed = false,
  super.iconColor,
  super.prefixStyle,
  super.prefixIconColor,
  super.suffixStyle,
  super.suffixIconColor,
  super.counterStyle,
  super.filled = false,
  super.fillColor,
  super.activeIndicatorBorder,
  super.outlineBorder,
  super.focusColor,
  super.hoverColor,
  super.errorBorder,
  super.focusedBorder,
  super.focusedErrorBorder,
  super.disabledBorder,
  super.enabledBorder,
  super.border,
  super.alignLabelWithHint = false,
  super.constraints,
});