InputDecorationTheme constructor
- Key? 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,
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());