ZwapPrimaryTabBar class
Component to rendering the tab bar as menu
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ZwapPrimaryTabBar
Constructors
-
ZwapPrimaryTabBar({required List<
String> tabs, required String selected, dynamic onTabChanges(String tab)?, Color textColor = ZwapColors.shades100, ZwapTextType textType = ZwapTextType.bigBodySemibold, Color notSelectedTextColor = ZwapColors.neutral700, ZwapTextType notSelectedTextType = ZwapTextType.bigBodyRegular, bool expand = false, double selectedThickness = 1.5, double thickness = 1.5, Color secondaryColor = ZwapColors.neutral300, Color selectedColor = ZwapColors.primary700, double tabWidth = 95, double tabSpace = 0, double dividerHeight = 20, bool roundTabIndicator = true, Key? key}) -
ZwapPrimaryTabBar.customTextStyle({required List<
String> tabs, required String selected, required TextStyle customStyle, required TextStyle notSelectedCustomStyle, bool expand = false, double selectedThickness = 1.5, double thickness = 1.5, Color secondaryColor = ZwapColors.neutral300, Color selectedColor = ZwapColors.primary700, double tabWidth = 95, double tabSpace = 0, dynamic onTabChanges(String tab)?, bool roundTabIndicator = true, double dividerHeight = 20, Key? key})
Properties
- dividerHeight → double
-
Used as padding for the primary tab line
final
- expand → bool
-
If true the tab bar will expand as much as possible in
the horizontal direction
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- notSelectedTextColor → Color
-
final
- notSelectedTextType → ZwapTextType
-
final
- onTabChanges → (dynamic Function(String tab)?)
-
final
- roundTabIndicator → bool
-
If true the tab indicator will be rounded, will be a rectangle
otherwise
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondaryColor → Color
-
Used for tab decorations when tab is not selected
final
- selected → String
-
final
- selectedColor → Color
-
Used for tab decorations when tab is selected
final
- selectedThickness → double
-
The selected line thickness
final
-
tabs
→ List<
String> -
final
- tabSpace → double
-
Space berween each tab (adden even to
the rigth of the last tab)
final
- tabWidth → double
-
A single tab width
final
- textColor → Color
-
final
- textType → ZwapTextType
-
final
- thickness → double
-
The not selected line thickness
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ZwapPrimaryTabBar> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children.inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited