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

    Class TabBar

    Inheritance
    System.Object
    Diagnosticable
    DiagnosticableTree
    CanonicalMixinDiagnosticableTree
    Widget
    StatefulWidget
    PreferredSizeWidget
    TabBar
    Inherited Members
    StatefulWidget.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 TabBar : PreferredSizeWidget, SizePreferred

    Constructors

    TabBar(Key, List<Widget>, TabController, Boolean, Color, Single, EdgeInsets, Decoration, Nullable<TabBarIndicatorSize>, Color, TextStyle, EdgeInsets, Color, TextStyle, DragStartBehavior, ValueChanged<Int32>)

    Declaration
    public TabBar(Key key = null, List<Widget> tabs = null, TabController controller = null, bool isScrollable = false, Color indicatorColor = null, float indicatorWeight = 2F, EdgeInsets indicatorPadding = null, Decoration indicator = null, TabBarIndicatorSize? indicatorSize = default(TabBarIndicatorSize? ), Color labelColor = null, TextStyle labelStyle = null, EdgeInsets labelPadding = null, Color unselectedLabelColor = null, TextStyle unselectedLabelStyle = null, DragStartBehavior dragStartBehavior = DragStartBehavior.down, ValueChanged<int> onTap = null)
    Parameters
    Type Name Description
    Key key
    System.Collections.Generic.List<Widget> tabs
    TabController controller
    System.Boolean isScrollable
    Color indicatorColor
    System.Single indicatorWeight
    EdgeInsets indicatorPadding
    Decoration indicator
    System.Nullable<TabBarIndicatorSize> indicatorSize
    Color labelColor
    TextStyle labelStyle
    EdgeInsets labelPadding
    Color unselectedLabelColor
    TextStyle unselectedLabelStyle
    DragStartBehavior dragStartBehavior
    ValueChanged<System.Int32> onTap

    Fields

    controller

    Declaration
    public readonly TabController controller
    Field Value
    Type Description
    TabController

    dragStartBehavior

    Declaration
    public readonly DragStartBehavior dragStartBehavior
    Field Value
    Type Description
    DragStartBehavior

    indicator

    Declaration
    public readonly Decoration indicator
    Field Value
    Type Description
    Decoration

    indicatorColor

    Declaration
    public readonly Color indicatorColor
    Field Value
    Type Description
    Color

    indicatorPadding

    Declaration
    public readonly EdgeInsets indicatorPadding
    Field Value
    Type Description
    EdgeInsets

    indicatorSize

    Declaration
    public readonly TabBarIndicatorSize? indicatorSize
    Field Value
    Type Description
    System.Nullable<TabBarIndicatorSize>

    indicatorWeight

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

    isScrollable

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

    labelColor

    Declaration
    public readonly Color labelColor
    Field Value
    Type Description
    Color

    labelPadding

    Declaration
    public readonly EdgeInsets labelPadding
    Field Value
    Type Description
    EdgeInsets

    labelStyle

    Declaration
    public readonly TextStyle labelStyle
    Field Value
    Type Description
    TextStyle

    onTap

    Declaration
    public readonly ValueChanged<int> onTap
    Field Value
    Type Description
    ValueChanged<System.Int32>

    tabs

    Declaration
    public readonly List<Widget> tabs
    Field Value
    Type Description
    System.Collections.Generic.List<Widget>

    unselectedLabelColor

    Declaration
    public readonly Color unselectedLabelColor
    Field Value
    Type Description
    Color

    unselectedLabelStyle

    Declaration
    public readonly TextStyle unselectedLabelStyle
    Field Value
    Type Description
    TextStyle

    Properties

    preferredSize

    Declaration
    public override Size preferredSize { get; }
    Property Value
    Type Description
    Size
    Overrides
    PreferredSizeWidget.preferredSize

    Methods

    createState()

    Declaration
    public override State createState()
    Returns
    Type Description
    State
    Overrides
    StatefulWidget.createState()
    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