InputDecorationTheme constructor

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

Creates a value for ThemeData.inputDecorationTheme that defines default values for InputDecorator.

Implementation

const InputDecorationTheme({
  this.labelStyle,
  this.floatingLabelStyle,
  this.helperStyle,
  this.helperMaxLines,
  this.hintStyle,
  this.hintFadeDuration,
  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.suffixStyle,
  this.suffixIconColor,
  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,
});