TabBarProperties class
Properties which define the TabBar's appearance.
Constructors
- TabBarProperties({double? width, double height = kToolbarHeight, Container? background, TabBarPosition position = TabBarPosition.top, TabBarAlignment alignment = TabBarAlignment.center, EdgeInsetsGeometry padding = const EdgeInsets.all(0.0), EdgeInsetsGeometry margin = const EdgeInsets.all(0.0), Decoration? indicator, Color? indicatorColor, EdgeInsetsGeometry indicatorPadding = const EdgeInsets.all(0.0), TabBarIndicatorSize? indicatorSize, double indicatorWeight = 2.0, bool isScrollable = false, Color? labelColor, EdgeInsetsGeometry labelPadding = const EdgeInsets.all(0.0), TextStyle? labelStyle, Color? unselectedLabelColor, TextStyle? unselectedLabelStyle})
-
const
Properties
- alignment → TabBarAlignment
-
Alignment of the TabBar (if it's width is not full available)
within TabBar-TabBarView flex.
final
- background → Container?
-
Container that is behind the tabs.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
The height of the TabBar.
final
- indicator → Decoration?
-
Defines the appearance of the selected tab indicator.
final
- indicatorColor → Color?
-
The color of the line that appears below the selected tab.
final
- indicatorPadding → EdgeInsetsGeometry
-
Padding for indicator.
final
- indicatorSize → TabBarIndicatorSize?
-
Defines how the selected tab indicator's size is computed.
final
- indicatorWeight → double
-
The thickness of the line that appears below the selected tab.
final
- isScrollable → bool
-
Whether this tab bar can be scrolled horizontally.
final
- labelColor → Color?
-
The color of selected tab labels.
final
- labelPadding → EdgeInsetsGeometry
-
The padding added to each of the tab labels.
final
- labelStyle → TextStyle?
-
The text style of the selected tab labels.
final
- margin → EdgeInsetsGeometry
-
The TabBars margin.
final
- padding → EdgeInsetsGeometry
-
The TabBars padding.
final
- position → TabBarPosition
-
Position of the TabBar in respect to it's TabBarView.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unselectedLabelColor → Color?
-
The color of unselected tab labels.
final
- unselectedLabelStyle → TextStyle?
-
The text style of the unselected tab labels.
final
- width → double?
-
The width of the TabBar.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited