InputDecorationTheme constructor

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

Creates a InputDecorationTheme that controls visual parameters for descendant InputDecorators.

Implementation

const InputDecorationTheme({
  super.key,
  TextStyle? labelStyle,
  TextStyle? floatingLabelStyle,
  TextStyle? helperStyle,
  int? helperMaxLines,
  TextStyle? hintStyle,
  Duration? hintFadeDuration,
  int? hintMaxLines,
  TextStyle? errorStyle,
  int? errorMaxLines,
  FloatingLabelBehavior? floatingLabelBehavior,
  FloatingLabelAlignment? floatingLabelAlignment,
  bool? isDense,
  EdgeInsetsGeometry? contentPadding,
  bool? isCollapsed,
  Color? iconColor,
  TextStyle? prefixStyle,
  Color? prefixIconColor,
  BoxConstraints? prefixIconConstraints,
  TextStyle? suffixStyle,
  Color? suffixIconColor,
  BoxConstraints? suffixIconConstraints,
  TextStyle? counterStyle,
  bool? filled,
  Color? fillColor,
  BorderSide? activeIndicatorBorder,
  BorderSide? outlineBorder,
  Color? focusColor,
  Color? hoverColor,
  InputBorder? errorBorder,
  InputBorder? focusedBorder,
  InputBorder? focusedErrorBorder,
  InputBorder? disabledBorder,
  InputBorder? enabledBorder,
  InputBorder? border,
  bool? alignLabelWithHint,
  BoxConstraints? constraints,
  VisualDensity? visualDensity,
  InputDecorationThemeData? data,
  Widget? child,
}) : assert(
       data == null ||
           (labelStyle ??
                   floatingLabelStyle ??
                   helperStyle ??
                   helperMaxLines ??
                   hintStyle ??
                   hintFadeDuration ??
                   hintMaxLines ??
                   errorStyle ??
                   errorMaxLines ??
                   floatingLabelBehavior ??
                   floatingLabelAlignment ??
                   isDense ??
                   contentPadding ??
                   isCollapsed ??
                   iconColor ??
                   prefixStyle ??
                   prefixIconColor ??
                   prefixIconConstraints ??
                   suffixStyle ??
                   suffixIconColor ??
                   suffixIconConstraints ??
                   counterStyle ??
                   filled ??
                   fillColor ??
                   activeIndicatorBorder ??
                   outlineBorder ??
                   focusColor ??
                   hoverColor ??
                   errorBorder ??
                   focusedBorder ??
                   focusedErrorBorder ??
                   disabledBorder ??
                   enabledBorder ??
                   border ??
                   alignLabelWithHint ??
                   constraints ??
                   visualDensity) ==
               null,
     ),
     _labelStyle = labelStyle,
     _floatingLabelStyle = floatingLabelStyle,
     _helperStyle = helperStyle,
     _helperMaxLines = helperMaxLines,
     _hintStyle = hintStyle,
     _hintFadeDuration = hintFadeDuration,
     _hintMaxLines = hintMaxLines,
     _errorStyle = errorStyle,
     _errorMaxLines = errorMaxLines,
     _floatingLabelBehavior = floatingLabelBehavior ?? FloatingLabelBehavior.auto,
     _floatingLabelAlignment = floatingLabelAlignment ?? FloatingLabelAlignment.start,
     _isDense = isDense ?? false,
     _contentPadding = contentPadding,
     _isCollapsed = isCollapsed ?? false,
     _iconColor = iconColor,
     _prefixStyle = prefixStyle,
     _prefixIconColor = prefixIconColor,
     _prefixIconConstraints = prefixIconConstraints,
     _suffixStyle = suffixStyle,
     _suffixIconColor = suffixIconColor,
     _suffixIconConstraints = suffixIconConstraints,
     _counterStyle = counterStyle,
     _filled = filled ?? false,
     _fillColor = fillColor,
     _activeIndicatorBorder = activeIndicatorBorder,
     _outlineBorder = outlineBorder,
     _focusColor = focusColor,
     _hoverColor = hoverColor,
     _errorBorder = errorBorder,
     _focusedBorder = focusedBorder,
     _focusedErrorBorder = focusedErrorBorder,
     _disabledBorder = disabledBorder,
     _enabledBorder = enabledBorder,
     _border = border,
     _alignLabelWithHint = alignLabelWithHint ?? false,
     _constraints = constraints,
     _visualDensity = visualDensity,
     _data = data,
     super(child: child ?? const SizedBox.shrink());