CInputDecorationTheme constructor
- TextStyle? inputStyle,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextAlign textAlign = TextAlign.start,
- TextAlignVertical? textAlignVertical,
- TextDirection? textDirection,
- int? maxLines = 1,
- int? minLines,
- bool expands = false,
- int? maxLength,
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- Clip clipBehavior = Clip.hardEdge,
- int? hintMaxLines,
- TextDirection? hintTextDirection,
- TextStyle? labelStyle,
- TextStyle? floatingLabelStyle,
- TextStyle? helperStyle,
- int? helperMaxLines,
- TextStyle? hintStyle,
- Duration? hintFadeDuration,
- TextStyle? errorStyle,
- int? errorMaxLines,
- FloatingLabelBehavior floatingLabelBehavior = FloatingLabelBehavior.auto,
- FloatingLabelAlignment floatingLabelAlignment = FloatingLabelAlignment.start,
- bool isDense = false,
- EdgeInsetsGeometry? contentPadding,
- bool isCollapsed = false,
- Color? iconColor,
- TextStyle? prefixStyle,
- Color? prefixIconColor,
- TextStyle? suffixStyle,
- Color? suffixIconColor,
- TextStyle? counterStyle,
- bool filled = false,
- Color? fillColor,
- BorderSide? activeIndicatorBorder,
- BorderSide? outlineBorder,
- Color? focusColor,
- Color? hoverColor,
- InputBorder? errorBorder,
- InputBorder? focusedBorder,
- InputBorder? focusedErrorBorder,
- InputBorder? disabledBorder,
- InputBorder? enabledBorder,
- InputBorder? border,
- bool alignLabelWithHint = false,
- BoxConstraints? constraints,
Constructor for the class.
Implementation
const CInputDecorationTheme({
// Styles attached to the InputDecorationTheme.
this.inputStyle,
this.textCapitalization = TextCapitalization.none,
this.textAlign = TextAlign.start,
this.textAlignVertical,
this.textDirection,
this.maxLines = 1,
this.minLines,
this.expands = false,
this.maxLength,
this.scrollPadding = const EdgeInsets.all(20.0),
this.clipBehavior = Clip.hardEdge,
this.hintMaxLines,
this.hintTextDirection,
// The existing InputDecorationTheme
super.labelStyle,
super.floatingLabelStyle,
super.helperStyle,
super.helperMaxLines,
super.hintStyle,
super.hintFadeDuration,
super.errorStyle,
super.errorMaxLines,
super.floatingLabelBehavior = FloatingLabelBehavior.auto,
super.floatingLabelAlignment = FloatingLabelAlignment.start,
super.isDense = false,
super.contentPadding,
super.isCollapsed = false,
super.iconColor,
super.prefixStyle,
super.prefixIconColor,
super.suffixStyle,
super.suffixIconColor,
super.counterStyle,
super.filled = false,
super.fillColor,
super.activeIndicatorBorder,
super.outlineBorder,
super.focusColor,
super.hoverColor,
super.errorBorder,
super.focusedBorder,
super.focusedErrorBorder,
super.disabledBorder,
super.enabledBorder,
super.border,
super.alignLabelWithHint = false,
super.constraints,
});