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

    Class FloatingActionButton

    Inheritance
    System.Object
    Diagnosticable
    DiagnosticableTree
    CanonicalMixinDiagnosticableTree
    Widget
    StatelessWidget
    FloatingActionButton
    Inherited Members
    StatelessWidget.createElement()
    Widget.key
    Widget.toStringShort()
    Widget.debugFillProperties(DiagnosticPropertiesBuilder)
    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 FloatingActionButton : StatelessWidget

    Constructors

    FloatingActionButton(Key, Widget, String, Color, Color, Object, Single, Single, VoidCallback, Boolean, ShapeBorder, Clip, Nullable<MaterialTapTargetSize>, Boolean)

    Declaration
    public FloatingActionButton(Key key = null, Widget child = null, string tooltip = null, Color foregroundColor = null, Color backgroundColor = null, object heroTag = null, float elevation = 6F, float highlightElevation = 12F, VoidCallback onPressed = null, bool mini = false, ShapeBorder shape = null, Clip clipBehavior = Clip.none, MaterialTapTargetSize? materialTapTargetSize = default(MaterialTapTargetSize? ), bool isExtended = false)
    Parameters
    Type Name Description
    Key key
    Widget child
    System.String tooltip
    Color foregroundColor
    Color backgroundColor
    System.Object heroTag
    System.Single elevation
    System.Single highlightElevation
    VoidCallback onPressed
    System.Boolean mini
    ShapeBorder shape
    Clip clipBehavior
    System.Nullable<MaterialTapTargetSize> materialTapTargetSize
    System.Boolean isExtended

    Fields

    _sizeConstraints

    Declaration
    public readonly BoxConstraints _sizeConstraints
    Field Value
    Type Description
    BoxConstraints

    backgroundColor

    Declaration
    public readonly Color backgroundColor
    Field Value
    Type Description
    Color

    child

    Declaration
    public readonly Widget child
    Field Value
    Type Description
    Widget

    clipBehavior

    Declaration
    public readonly Clip clipBehavior
    Field Value
    Type Description
    Clip

    disabledElevation

    Declaration
    public readonly float? disabledElevation
    Field Value
    Type Description
    System.Nullable<System.Single>

    elevation

    Declaration
    public readonly float elevation
    Field Value
    Type Description
    System.Single

    foregroundColor

    Declaration
    public readonly Color foregroundColor
    Field Value
    Type Description
    Color

    heroTag

    Declaration
    public readonly object heroTag
    Field Value
    Type Description
    System.Object

    highlightElevation

    Declaration
    public readonly float highlightElevation
    Field Value
    Type Description
    System.Single

    isExtended

    Declaration
    public readonly bool isExtended
    Field Value
    Type Description
    System.Boolean

    materialTapTargetSize

    Declaration
    public readonly MaterialTapTargetSize? materialTapTargetSize
    Field Value
    Type Description
    System.Nullable<MaterialTapTargetSize>

    mini

    Declaration
    public readonly bool mini
    Field Value
    Type Description
    System.Boolean

    onPressed

    Declaration
    public readonly VoidCallback onPressed
    Field Value
    Type Description
    VoidCallback

    shape

    Declaration
    public readonly ShapeBorder shape
    Field Value
    Type Description
    ShapeBorder

    tooltip

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

    Methods

    build(BuildContext)

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

    extended(Key, String, Color, Color, Object, Single, Single, Nullable<Single>, VoidCallback, ShapeBorder, Boolean, Nullable<MaterialTapTargetSize>, Clip, Widget, Widget)

    Declaration
    public static FloatingActionButton extended(Key key = null, string tooltip = null, Color foregroundColor = null, Color backgroundColor = null, object heroTag = null, float elevation = 6F, float highlightElevation = 12F, float? disabledElevation = default(float? ), VoidCallback onPressed = null, ShapeBorder shape = null, bool isExtended = true, MaterialTapTargetSize? materialTapTargetSize = default(MaterialTapTargetSize? ), Clip clipBehavior = Clip.none, Widget icon = null, Widget label = null)
    Parameters
    Type Name Description
    Key key
    System.String tooltip
    Color foregroundColor
    Color backgroundColor
    System.Object heroTag
    System.Single elevation
    System.Single highlightElevation
    System.Nullable<System.Single> disabledElevation
    VoidCallback onPressed
    ShapeBorder shape
    System.Boolean isExtended
    System.Nullable<MaterialTapTargetSize> materialTapTargetSize
    Clip clipBehavior
    Widget icon
    Widget label
    Returns
    Type Description
    FloatingActionButton
    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