Inheritance
System.Object
TabBar
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
Fields
Declaration
public readonly TabController controller
Field Value
Declaration
public readonly DragStartBehavior dragStartBehavior
Field Value
Declaration
public readonly Decoration indicator
Field Value
Declaration
public readonly Color indicatorColor
Field Value
Declaration
public readonly EdgeInsets indicatorPadding
Field Value
Declaration
public readonly TabBarIndicatorSize? indicatorSize
Field Value
Declaration
public readonly float indicatorWeight
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly bool isScrollable
Field Value
Type |
Description |
System.Boolean |
|
Declaration
public readonly Color labelColor
Field Value
Declaration
public readonly EdgeInsets labelPadding
Field Value
Declaration
public readonly TextStyle labelStyle
Field Value
Declaration
public readonly ValueChanged<int> onTap
Field Value
Declaration
public readonly List<Widget> tabs
Field Value
Type |
Description |
System.Collections.Generic.List<Widget> |
|
Declaration
public readonly Color unselectedLabelColor
Field Value
Declaration
public readonly TextStyle unselectedLabelStyle
Field Value
Properties
Declaration
public override Size preferredSize { get; }
Property Value
Overrides
Methods
Declaration
public override State createState()
Returns
Overrides