Class InputDecoration | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class InputDecoration

    Inheritance
    System.Object
    InputDecoration
    Namespace: Unity.UIWidgets.material
    Syntax
    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

    alignLabelWithHint

    Declaration
    public readonly bool? alignLabelWithHint
    Field Value
    Type Description
    System.Nullable<System.Boolean>

    border

    Declaration
    public readonly InputBorder border
    Field Value
    Type Description
    InputBorder

    contentPadding

    Declaration
    public readonly EdgeInsets contentPadding
    Field Value
    Type Description
    EdgeInsets

    counter

    Declaration
    public readonly Widget counter
    Field Value
    Type Description
    Widget

    counterStyle

    Declaration
    public readonly TextStyle counterStyle
    Field Value
    Type Description
    TextStyle

    counterText

    Declaration
    public readonly string counterText
    Field Value
    Type Description
    System.String

    disabledBorder

    Declaration
    public readonly InputBorder disabledBorder
    Field Value
    Type Description
    InputBorder

    enabled

    Declaration
    public readonly bool? enabled
    Field Value
    Type Description
    System.Nullable<System.Boolean>

    enabledBorder

    Declaration
    public readonly InputBorder enabledBorder
    Field Value
    Type Description
    InputBorder

    errorBorder

    Declaration
    public readonly InputBorder errorBorder
    Field Value
    Type Description
    InputBorder

    errorMaxLines

    Declaration
    public readonly int? errorMaxLines
    Field Value
    Type Description
    System.Nullable<System.Int32>

    errorStyle

    Declaration
    public readonly TextStyle errorStyle
    Field Value
    Type Description
    TextStyle

    errorText

    Declaration
    public readonly string errorText
    Field Value
    Type Description
    System.String

    fillColor

    Declaration
    public readonly Color fillColor
    Field Value
    Type Description
    Color

    filled

    Declaration
    public readonly bool? filled
    Field Value
    Type Description
    System.Nullable<System.Boolean>

    focusedBorder

    Declaration
    public readonly InputBorder focusedBorder
    Field Value
    Type Description
    InputBorder

    focusedErrorBorder

    Declaration
    public readonly InputBorder focusedErrorBorder
    Field Value
    Type Description
    InputBorder

    hasFloatingPlaceholder

    Declaration
    public readonly bool? hasFloatingPlaceholder
    Field Value
    Type Description
    System.Nullable<System.Boolean>

    helperStyle

    Declaration
    public readonly TextStyle helperStyle
    Field Value
    Type Description
    TextStyle

    helperText

    Declaration
    public readonly string helperText
    Field Value
    Type Description
    System.String

    hintMaxLines

    Declaration
    public readonly int? hintMaxLines
    Field Value
    Type Description
    System.Nullable<System.Int32>

    hintStyle

    Declaration
    public readonly TextStyle hintStyle
    Field Value
    Type Description
    TextStyle

    hintText

    Declaration
    public readonly string hintText
    Field Value
    Type Description
    System.String

    icon

    Declaration
    public readonly Widget icon
    Field Value
    Type Description
    Widget

    isCollapsed

    Declaration
    public bool isCollapsed
    Field Value
    Type Description
    System.Boolean

    isDense

    Declaration
    public readonly bool? isDense
    Field Value
    Type Description
    System.Nullable<System.Boolean>

    labelStyle

    Declaration
    public readonly TextStyle labelStyle
    Field Value
    Type Description
    TextStyle

    labelText

    Declaration
    public readonly string labelText
    Field Value
    Type Description
    System.String

    prefix

    Declaration
    public readonly Widget prefix
    Field Value
    Type Description
    Widget

    prefixIcon

    Declaration
    public readonly Widget prefixIcon
    Field Value
    Type Description
    Widget

    prefixStyle

    Declaration
    public readonly TextStyle prefixStyle
    Field Value
    Type Description
    TextStyle

    prefixText

    Declaration
    public readonly string prefixText
    Field Value
    Type Description
    System.String

    suffix

    Declaration
    public readonly Widget suffix
    Field Value
    Type Description
    Widget

    suffixIcon

    Declaration
    public readonly Widget suffixIcon
    Field Value
    Type Description
    Widget

    suffixStyle

    Declaration
    public readonly TextStyle suffixStyle
    Field Value
    Type Description
    TextStyle

    suffixText

    Declaration
    public readonly string suffixText
    Field Value
    Type Description
    System.String

    Methods

    applyDefaults(InputDecorationTheme)

    Declaration
    public InputDecoration applyDefaults(InputDecorationTheme theme)
    Parameters
    Type Name Description
    InputDecorationTheme theme
    Returns
    Type Description
    InputDecoration

    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
    Type Description
    InputDecoration

    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
    Type Description
    InputDecoration

    Equals(Object)

    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)

    Equals(InputDecoration)

    Declaration
    public bool Equals(InputDecoration other)
    Parameters
    Type Name Description
    InputDecoration other
    Returns
    Type Description
    System.Boolean

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()

    Operators

    Equality(InputDecoration, InputDecoration)

    Declaration
    public static bool operator ==(InputDecoration left, InputDecoration right)
    Parameters
    Type Name Description
    InputDecoration left
    InputDecoration right
    Returns
    Type Description
    System.Boolean

    Inequality(InputDecoration, InputDecoration)

    Declaration
    public static bool operator !=(InputDecoration left, InputDecoration right)
    Parameters
    Type Name Description
    InputDecoration left
    InputDecoration right
    Returns
    Type Description
    System.Boolean
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023