GBInputDecorationTheme class
- Inheritance
-
- Object
- InputDecorationTheme
- GBInputDecorationTheme
- Mixed-in types
Constructors
- GBInputDecorationTheme({Color? disabledFillColor, Color? errorFillColor, 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})
-
Creates a value for ThemeData.inputDecorationTheme that
defines default values for InputDecorator.
const
Properties
- activeIndicatorBorder → BorderSide?
-
The borderSide of the UnderlineInputBorder with
color
andweight
.finalinherited - alignLabelWithHint → bool
-
Typically set to true when the InputDecorator contains a multiline
TextField (TextField.maxLines is null or > 1) to override the default
behavior of aligning the label with the center of the TextField.
finalinherited
- border → InputBorder?
-
The shape of the border to draw around the decoration's container.
finalinherited
- constraints → BoxConstraints?
-
Defines minimum and maximum sizes for the InputDecorator.
finalinherited
- contentPadding → EdgeInsetsGeometry?
-
The padding for the input decoration's container.
finalinherited
- counterStyle → TextStyle?
-
The style to use for the InputDecoration.counterText.
finalinherited
- disabledBorder → InputBorder?
-
The border to display when the InputDecorator is disabled and is not
showing an error.
finalinherited
- disabledFillColor → Color?
-
final
- enabledBorder → InputBorder?
-
The border to display when the InputDecorator is enabled and is not
showing an error.
finalinherited
- errorBorder → InputBorder?
-
The border to display when the InputDecorator does not have the focus and
is showing an error.
finalinherited
- errorFillColor → Color?
-
final
- errorMaxLines → int?
-
The maximum number of lines the InputDecoration.errorText can occupy.
finalinherited
- errorStyle → TextStyle?
-
The style to use for the InputDecoration.errorText.
finalinherited
- fillColor → Color?
-
The color to fill the decoration's container with, if filled is true.
finalinherited
- filled → bool
-
If true the decoration's container is filled with fillColor.
finalinherited
- floatingLabelAlignment → FloatingLabelAlignment
-
Defines where the floating label should be displayed.
finalinherited
- floatingLabelBehavior → FloatingLabelBehavior
-
Defines how the floating label should behave.
finalinherited
- floatingLabelStyle → TextStyle?
-
The style to use for InputDecoration.labelText when the label is
above (i.e., vertically adjacent to) the input field.
finalinherited
- focusColor → Color?
-
The color to blend with the decoration's fillColor with, if filled is
true and the container has the input focus.
finalinherited
- focusedBorder → InputBorder?
-
The border to display when the InputDecorator has the focus and is not
showing an error.
finalinherited
- focusedErrorBorder → InputBorder?
-
The border to display when the InputDecorator has the focus and is
showing an error.
finalinherited
- hashCode → int
-
The hash code for this object.
no setteroverride
- helperMaxLines → int?
-
The maximum number of lines the InputDecoration.helperText can occupy.
finalinherited
- helperStyle → TextStyle?
-
The style to use for InputDecoration.helperText.
finalinherited
- hintFadeDuration → Duration?
-
The duration of the InputDecoration.hintText fade in and fade out animations.
finalinherited
- hintStyle → TextStyle?
-
The style to use for the InputDecoration.hintText.
finalinherited
- hoverColor → Color?
-
The color to blend with the decoration's fillColor with, if the
decoration is being hovered over by a mouse pointer.
finalinherited
- iconColor → Color?
-
The Color to use for the InputDecoration.icon.
finalinherited
- isCollapsed → bool
-
Whether the decoration is the same size as the input field.
finalinherited
- isDense → bool
-
Whether the input decorator's child is part of a dense form (i.e., uses
less vertical space).
finalinherited
- labelStyle → TextStyle?
-
The style to use for InputDecoration.labelText when the label is on top
of the input field.
finalinherited
- outlineBorder → BorderSide?
-
The borderSide of the OutlineInputBorder with
color
andweight
.finalinherited - prefixIconColor → Color?
-
The Color to use for the InputDecoration.prefixIcon.
finalinherited
- prefixStyle → TextStyle?
-
The style to use for the InputDecoration.prefixText.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- suffixIconColor → Color?
-
The Color to use for the InputDecoration.suffixIcon.
finalinherited
- suffixStyle → TextStyle?
-
The style to use for the InputDecoration.suffixText.
finalinherited
Methods
-
copyWith(
{Color? disabledFillColor, Color? errorFilledColor, TextStyle? labelStyle, TextStyle? floatingLabelStyle, TextStyle? helperStyle, int? helperMaxLines, TextStyle? hintStyle, Duration? hintFadeDuration, TextStyle? errorStyle, int? errorMaxLines, FloatingLabelBehavior? floatingLabelBehavior, FloatingLabelAlignment? floatingLabelAlignment, bool? isDense, EdgeInsetsGeometry? contentPadding, bool? isCollapsed, Color? iconColor, TextStyle? prefixStyle, Color? prefixIconColor, TextStyle? suffixStyle, Color? suffixIconColor, 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}) → GBInputDecorationTheme -
Creates a copy of this object but with the given fields replaced with the
new values.
override
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
merge(
InputDecorationTheme? inputDecorationTheme) → InputDecorationTheme -
Returns a copy of this InputDecorationTheme where the non-null fields in
the given InputDecorationTheme override the corresponding nullable fields
in this InputDecorationTheme.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override