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. BoxConstraints? prefixIconConstraints,
  18. TextStyle? suffixStyle,
  19. Color? suffixIconColor,
  20. BoxConstraints? suffixIconConstraints,
  21. TextStyle? counterStyle,
  22. bool filled = false,
  23. Color? fillColor,
  24. BorderSide? activeIndicatorBorder,
  25. BorderSide? outlineBorder,
  26. Color? focusColor,
  27. Color? hoverColor,
  28. InputBorder? errorBorder,
  29. InputBorder? focusedBorder,
  30. InputBorder? focusedErrorBorder,
  31. InputBorder? disabledBorder,
  32. InputBorder? enabledBorder,
  33. InputBorder? border,
  34. bool alignLabelWithHint = false,
  35. 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.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,
});