TabAlignment enum
Defines how tabs are aligned horizontally in a TabBar.
See also:
- TabBar, which displays a row of tabs.
- TabBarView, which displays a widget for the currently selected tab.
- TabBar.tabAlignment, which defines the horizontal alignment of the tabs within the TabBar.
Values
- start → const TabAlignment
-
If TabBar.isScrollable is true, tabs are aligned to the start of the TabBar. Otherwise throws an exception.
It is not recommended to set TabAlignment.start when ThemeData.useMaterial3 is false.
- startOffset → const TabAlignment
-
If TabBar.isScrollable is true, tabs are aligned to the start of the TabBar with an offset of 52.0 pixels. Otherwise throws an exception.
It is not recommended to set TabAlignment.startOffset when ThemeData.useMaterial3 is false.
- fill → const TabAlignment
-
If TabBar.isScrollable is false, tabs are stretched to fill the TabBar. Otherwise throws an exception.
- center → const TabAlignment
-
Tabs are aligned to the center of the TabBar.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Constants
-
values
→ const List<
TabAlignment> - A constant List of the values in this enum, in order of their declaration.