InputDecorationThemeData constructor

const InputDecorationThemeData({
  1. TextStyle? labelStyle,
  2. TextStyle? floatingLabelStyle,
  3. TextStyle? helperStyle,
  4. int? helperMaxLines,
  5. TextStyle? hintStyle,
  6. Duration? hintFadeDuration,
  7. int? hintMaxLines,
  8. TextStyle? errorStyle,
  9. int? errorMaxLines,
  10. FloatingLabelBehavior floatingLabelBehavior = FloatingLabelBehavior.auto,
  11. FloatingLabelAlignment floatingLabelAlignment = FloatingLabelAlignment.start,
  12. bool isDense = false,
  13. EdgeInsetsGeometry? contentPadding,
  14. bool isCollapsed = false,
  15. Color? iconColor,
  16. TextStyle? prefixStyle,
  17. Color? prefixIconColor,
  18. BoxConstraints? prefixIconConstraints,
  19. TextStyle? suffixStyle,
  20. Color? suffixIconColor,
  21. BoxConstraints? suffixIconConstraints,
  22. TextStyle? counterStyle,
  23. bool filled = false,
  24. Color? fillColor,
  25. BorderSide? activeIndicatorBorder,
  26. BorderSide? outlineBorder,
  27. Color? focusColor,
  28. Color? hoverColor,
  29. InputBorder? errorBorder,
  30. InputBorder? focusedBorder,
  31. InputBorder? focusedErrorBorder,
  32. InputBorder? disabledBorder,
  33. InputBorder? enabledBorder,
  34. InputBorder? border,
  35. bool alignLabelWithHint = false,
  36. BoxConstraints? constraints,
  37. VisualDensity? visualDensity,
})

Creates a InputDecorationThemeData that can be used to override default properties in a InputDecorationTheme widget.

Implementation

const InputDecorationThemeData({
  this.labelStyle,
  this.floatingLabelStyle,
  this.helperStyle,
  this.helperMaxLines,
  this.hintStyle,
  this.hintFadeDuration,
  this.hintMaxLines,
  this.errorStyle,
  this.errorMaxLines,
  this.floatingLabelBehavior = FloatingLabelBehavior.auto,
  this.floatingLabelAlignment = FloatingLabelAlignment.start,
  this.isDense = false,
  this.contentPadding,
  this.isCollapsed = false,
  this.iconColor,
  this.prefixStyle,
  this.prefixIconColor,
  this.prefixIconConstraints,
  this.suffixStyle,
  this.suffixIconColor,
  this.suffixIconConstraints,
  this.counterStyle,
  this.filled = false,
  this.fillColor,
  this.activeIndicatorBorder,
  this.outlineBorder,
  this.focusColor,
  this.hoverColor,
  this.errorBorder,
  this.focusedBorder,
  this.focusedErrorBorder,
  this.disabledBorder,
  this.enabledBorder,
  this.border,
  this.alignLabelWithHint = false,
  this.constraints,
  this.visualDensity,
});