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

    Class FlatButton

    Inheritance
    System.Object
    Diagnosticable
    DiagnosticableTree
    CanonicalMixinDiagnosticableTree
    Widget
    StatelessWidget
    MaterialButton
    FlatButton
    Inherited Members
    MaterialButton.onPressed
    MaterialButton.onHighlightChanged
    MaterialButton.textTheme
    MaterialButton.textColor
    MaterialButton.disabledTextColor
    MaterialButton.color
    MaterialButton.disabledColor
    MaterialButton.splashColor
    MaterialButton.highlightColor
    MaterialButton.elevation
    MaterialButton.highlightElevation
    MaterialButton.disabledElevation
    MaterialButton.colorBrightness
    MaterialButton.child
    MaterialButton.enabled
    MaterialButton.padding
    MaterialButton.shape
    MaterialButton.clipBehavior
    MaterialButton.animationDuration
    MaterialButton.materialTapTargetSize
    MaterialButton.minWidth
    MaterialButton.height
    StatelessWidget.createElement()
    Widget.key
    Widget.toStringShort()
    Widget.canUpdate(Widget, Widget)
    CanonicalMixinDiagnosticableTree.pureWidget
    CanonicalMixinDiagnosticableTree.Equals(Object)
    CanonicalMixinDiagnosticableTree.GetHashCode()
    DiagnosticableTree.toStringShallow(String, DiagnosticLevel)
    DiagnosticableTree.toStringDeep(String, String, DiagnosticLevel)
    DiagnosticableTree.toDiagnosticsNode(String, DiagnosticsTreeStyle)
    DiagnosticableTree.debugDescribeChildren()
    Diagnosticable.ToString()
    Diagnosticable.toString(DiagnosticLevel)
    Namespace: Unity.UIWidgets.material
    Syntax
    public class FlatButton : MaterialButton

    Constructors

    FlatButton(Key, VoidCallback, ValueChanged<Boolean>, Nullable<ButtonTextTheme>, Color, Color, Color, Color, Color, Color, Nullable<Brightness>, EdgeInsets, ShapeBorder, Nullable<Clip>, Nullable<MaterialTapTargetSize>, Widget)

    Declaration
    public FlatButton(Key key = null, VoidCallback onPressed = null, ValueChanged<bool> onHighlightChanged = null, ButtonTextTheme? textTheme = default(ButtonTextTheme? ), Color textColor = null, Color disabledTextColor = null, Color color = null, Color disabledColor = null, Color highlightColor = null, Color splashColor = null, Brightness? colorBrightness = default(Brightness? ), EdgeInsets padding = null, ShapeBorder shape = null, Clip? clipBehavior, MaterialTapTargetSize? materialTapTargetSize = default(MaterialTapTargetSize? ), Widget child = null)
    Parameters
    Type Name Description
    Key key
    VoidCallback onPressed
    ValueChanged<System.Boolean> onHighlightChanged
    System.Nullable<ButtonTextTheme> textTheme
    Color textColor
    Color disabledTextColor
    Color color
    Color disabledColor
    Color highlightColor
    Color splashColor
    System.Nullable<Brightness> colorBrightness
    EdgeInsets padding
    ShapeBorder shape
    System.Nullable<Clip> clipBehavior
    System.Nullable<MaterialTapTargetSize> materialTapTargetSize
    Widget child

    Methods

    build(BuildContext)

    Declaration
    public override Widget build(BuildContext context)
    Parameters
    Type Name Description
    BuildContext context
    Returns
    Type Description
    Widget
    Overrides
    MaterialButton.build(BuildContext)

    debugFillProperties(DiagnosticPropertiesBuilder)

    Declaration
    public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
    Parameters
    Type Name Description
    DiagnosticPropertiesBuilder properties
    Overrides
    MaterialButton.debugFillProperties(DiagnosticPropertiesBuilder)

    icon(Key, VoidCallback, ValueChanged<Boolean>, Nullable<ButtonTextTheme>, Color, Color, Color, Color, Color, Color, Nullable<Brightness>, EdgeInsets, ShapeBorder, Nullable<Clip>, Nullable<MaterialTapTargetSize>, Widget, Widget)

    Declaration
    public static FlatButton icon(Key key = null, VoidCallback onPressed = null, ValueChanged<bool> onHighlightChanged = null, ButtonTextTheme? textTheme = default(ButtonTextTheme? ), Color textColor = null, Color disabledTextColor = null, Color color = null, Color disabledColor = null, Color highlightColor = null, Color splashColor = null, Brightness? colorBrightness = default(Brightness? ), EdgeInsets padding = null, ShapeBorder shape = null, Clip? clipBehavior = default(Clip? ), MaterialTapTargetSize? materialTapTargetSize = default(MaterialTapTargetSize? ), Widget icon = null, Widget label = null)
    Parameters
    Type Name Description
    Key key
    VoidCallback onPressed
    ValueChanged<System.Boolean> onHighlightChanged
    System.Nullable<ButtonTextTheme> textTheme
    Color textColor
    Color disabledTextColor
    Color color
    Color disabledColor
    Color highlightColor
    Color splashColor
    System.Nullable<Brightness> colorBrightness
    EdgeInsets padding
    ShapeBorder shape
    System.Nullable<Clip> clipBehavior
    System.Nullable<MaterialTapTargetSize> materialTapTargetSize
    Widget icon
    Widget label
    Returns
    Type Description
    FlatButton
    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