Inheritance
System.Object
InputDecoration
public class InputDecoration
Constructors
InputDecoration(Widget, String, TextStyle, String, TextStyle, String, TextStyle, Nullable<Int32>, String, TextStyle, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, EdgeInsets, Widget, Widget, String, TextStyle, Widget, Widget, String, TextStyle, Widget, String, TextStyle, Nullable<Boolean>, Color, InputBorder, InputBorder, InputBorder, InputBorder, InputBorder, InputBorder, Nullable<Boolean>, Nullable<Boolean>)
Declaration
public InputDecoration(Widget icon = null, string labelText = null, TextStyle labelStyle = null, string helperText = null, TextStyle helperStyle = null, string hintText = null, TextStyle hintStyle = null, int? hintMaxLines = default(int? ), string errorText = null, TextStyle errorStyle = null, int? errorMaxLines = default(int? ), bool? hasFloatingPlaceholder, bool? isDense = default(bool? ), EdgeInsets contentPadding = null, Widget prefixIcon = null, Widget prefix = null, string prefixText = null, TextStyle prefixStyle = null, Widget suffixIcon = null, Widget suffix = null, string suffixText = null, TextStyle suffixStyle = null, Widget counter = null, string counterText = null, TextStyle counterStyle = null, bool? filled = default(bool? ), Color fillColor = null, InputBorder errorBorder = null, InputBorder focusedBorder = null, InputBorder focusedErrorBorder = null, InputBorder disabledBorder = null, InputBorder enabledBorder = null, InputBorder border = null, bool? enabled, bool? alignLabelWithHint = default(bool? ))
Parameters
Type |
Name |
Description |
Widget |
icon |
|
System.String |
labelText |
|
TextStyle |
labelStyle |
|
System.String |
helperText |
|
TextStyle |
helperStyle |
|
System.String |
hintText |
|
TextStyle |
hintStyle |
|
System.Nullable<System.Int32> |
hintMaxLines |
|
System.String |
errorText |
|
TextStyle |
errorStyle |
|
System.Nullable<System.Int32> |
errorMaxLines |
|
System.Nullable<System.Boolean> |
hasFloatingPlaceholder |
|
System.Nullable<System.Boolean> |
isDense |
|
EdgeInsets |
contentPadding |
|
Widget |
prefixIcon |
|
Widget |
prefix |
|
System.String |
prefixText |
|
TextStyle |
prefixStyle |
|
Widget |
suffixIcon |
|
Widget |
suffix |
|
System.String |
suffixText |
|
TextStyle |
suffixStyle |
|
Widget |
counter |
|
System.String |
counterText |
|
TextStyle |
counterStyle |
|
System.Nullable<System.Boolean> |
filled |
|
Color |
fillColor |
|
InputBorder |
errorBorder |
|
InputBorder |
focusedBorder |
|
InputBorder |
focusedErrorBorder |
|
InputBorder |
disabledBorder |
|
InputBorder |
enabledBorder |
|
InputBorder |
border |
|
System.Nullable<System.Boolean> |
enabled |
|
System.Nullable<System.Boolean> |
alignLabelWithHint |
|
Fields
Declaration
public readonly bool? alignLabelWithHint
Field Value
Type |
Description |
System.Nullable<System.Boolean> |
|
Declaration
public readonly InputBorder border
Field Value
contentPadding
Declaration
public readonly EdgeInsets contentPadding
Field Value
Declaration
public readonly Widget counter
Field Value
Declaration
public readonly TextStyle counterStyle
Field Value
counterText
Declaration
public readonly string counterText
Field Value
Type |
Description |
System.String |
|
Declaration
public readonly InputBorder disabledBorder
Field Value
Declaration
public readonly bool? enabled
Field Value
Type |
Description |
System.Nullable<System.Boolean> |
|
Declaration
public readonly InputBorder enabledBorder
Field Value
Declaration
public readonly InputBorder errorBorder
Field Value
Declaration
public readonly int? errorMaxLines
Field Value
Type |
Description |
System.Nullable<System.Int32> |
|
Declaration
public readonly TextStyle errorStyle
Field Value
errorText
Declaration
public readonly string errorText
Field Value
Type |
Description |
System.String |
|
Declaration
public readonly Color fillColor
Field Value
Declaration
public readonly bool? filled
Field Value
Type |
Description |
System.Nullable<System.Boolean> |
|
Declaration
public readonly InputBorder focusedBorder
Field Value
Declaration
public readonly InputBorder focusedErrorBorder
Field Value
Declaration
public readonly bool? hasFloatingPlaceholder
Field Value
Type |
Description |
System.Nullable<System.Boolean> |
|
Declaration
public readonly TextStyle helperStyle
Field Value
helperText
Declaration
public readonly string helperText
Field Value
Type |
Description |
System.String |
|
Declaration
public readonly int? hintMaxLines
Field Value
Type |
Description |
System.Nullable<System.Int32> |
|
Declaration
public readonly TextStyle hintStyle
Field Value
hintText
Declaration
public readonly string hintText
Field Value
Type |
Description |
System.String |
|
Declaration
public readonly Widget icon
Field Value
Declaration
Field Value
Type |
Description |
System.Boolean |
|
Declaration
public readonly bool? isDense
Field Value
Type |
Description |
System.Nullable<System.Boolean> |
|
Declaration
public readonly TextStyle labelStyle
Field Value
labelText
Declaration
public readonly string labelText
Field Value
Type |
Description |
System.String |
|
Declaration
public readonly Widget prefix
Field Value
Declaration
public readonly Widget prefixIcon
Field Value
Declaration
public readonly TextStyle prefixStyle
Field Value
prefixText
Declaration
public readonly string prefixText
Field Value
Type |
Description |
System.String |
|
Declaration
public readonly Widget suffix
Field Value
Declaration
public readonly Widget suffixIcon
Field Value
Declaration
public readonly TextStyle suffixStyle
Field Value
suffixText
Declaration
public readonly string suffixText
Field Value
Type |
Description |
System.String |
|
Methods
Declaration
public InputDecoration applyDefaults(InputDecorationTheme theme)
Parameters
Returns
collapsed(String, Boolean, TextStyle, Boolean, Color, InputBorder, Boolean)
Declaration
public static InputDecoration collapsed(string hintText = null, bool hasFloatingPlaceholder = true, TextStyle hintStyle = null, bool filled = false, Color fillColor = null, InputBorder border = null, bool enabled = true)
Parameters
Type |
Name |
Description |
System.String |
hintText |
|
System.Boolean |
hasFloatingPlaceholder |
|
TextStyle |
hintStyle |
|
System.Boolean |
filled |
|
Color |
fillColor |
|
InputBorder |
border |
|
System.Boolean |
enabled |
|
Returns
copyWith(Widget, String, TextStyle, String, TextStyle, String, TextStyle, Nullable<Int32>, String, TextStyle, Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, EdgeInsets, Widget, Widget, String, TextStyle, Widget, Widget, String, TextStyle, Widget, String, TextStyle, Nullable<Boolean>, Color, InputBorder, InputBorder, InputBorder, InputBorder, InputBorder, InputBorder, Nullable<Boolean>, Nullable<Boolean>)
Declaration
public InputDecoration copyWith(Widget icon = null, string labelText = null, TextStyle labelStyle = null, string helperText = null, TextStyle helperStyle = null, string hintText = null, TextStyle hintStyle = null, int? hintMaxLines = default(int? ), string errorText = null, TextStyle errorStyle = null, int? errorMaxLines = default(int? ), bool? hasFloatingPlaceholder = default(bool? ), bool? isDense = default(bool? ), EdgeInsets contentPadding = null, Widget prefixIcon = null, Widget prefix = null, string prefixText = null, TextStyle prefixStyle = null, Widget suffixIcon = null, Widget suffix = null, string suffixText = null, TextStyle suffixStyle = null, Widget counter = null, string counterText = null, TextStyle counterStyle = null, bool? filled = default(bool? ), Color fillColor = null, InputBorder errorBorder = null, InputBorder focusedBorder = null, InputBorder focusedErrorBorder = null, InputBorder disabledBorder = null, InputBorder enabledBorder = null, InputBorder border = null, bool? enabled = default(bool? ), bool? alignLabelWithHint = default(bool? ))
Parameters
Type |
Name |
Description |
Widget |
icon |
|
System.String |
labelText |
|
TextStyle |
labelStyle |
|
System.String |
helperText |
|
TextStyle |
helperStyle |
|
System.String |
hintText |
|
TextStyle |
hintStyle |
|
System.Nullable<System.Int32> |
hintMaxLines |
|
System.String |
errorText |
|
TextStyle |
errorStyle |
|
System.Nullable<System.Int32> |
errorMaxLines |
|
System.Nullable<System.Boolean> |
hasFloatingPlaceholder |
|
System.Nullable<System.Boolean> |
isDense |
|
EdgeInsets |
contentPadding |
|
Widget |
prefixIcon |
|
Widget |
prefix |
|
System.String |
prefixText |
|
TextStyle |
prefixStyle |
|
Widget |
suffixIcon |
|
Widget |
suffix |
|
System.String |
suffixText |
|
TextStyle |
suffixStyle |
|
Widget |
counter |
|
System.String |
counterText |
|
TextStyle |
counterStyle |
|
System.Nullable<System.Boolean> |
filled |
|
Color |
fillColor |
|
InputBorder |
errorBorder |
|
InputBorder |
focusedBorder |
|
InputBorder |
focusedErrorBorder |
|
InputBorder |
disabledBorder |
|
InputBorder |
enabledBorder |
|
InputBorder |
border |
|
System.Nullable<System.Boolean> |
enabled |
|
System.Nullable<System.Boolean> |
alignLabelWithHint |
|
Returns
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
Declaration
public bool Equals(InputDecoration other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Operators
Declaration
public static bool operator ==(InputDecoration left, InputDecoration right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator !=(InputDecoration left, InputDecoration right)
Parameters
Returns
Type |
Description |
System.Boolean |
|