ZdsTabBar class
Returns a TabBar with Zds styling. However, this widget has a number of issues that make it less useful in varying screen sizes and resizable screens. It's recommended to instead use ZdsResponsiveTabBar.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ZdsTabBar
- Implemented types
- Available Extensions
Constructors
-
ZdsTabBar({List<
ZdsTab> tabs = const <ZdsTab>[], Key? key, ZdsTabBarColor color = ZdsTabBarColor.basic, TabController? controller, bool isScrollable = false, EdgeInsets labelPadding = kTabLabelPadding, TextStyle? labelStyle, bool topSafeArea = true, bool bottomSafeArea = false}) -
Makes a TabBar with Zds styling applied. It's recommended to instead use ZdsResponsiveTabBar.
const
Properties
- bottomSafeArea → bool
-
Determine's whether component observes safe area at bottom of the screen.
final
- color → ZdsTabBarColor
-
Sets the color scheme for each of the tabs and the tab bar itself.
final
- controller → TabController?
-
Optional TabController
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isScrollable → bool
-
True if the tab list should be scrollable in the horizontal axis.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- labelPadding → EdgeInsets
-
Padding applied within each tab around the label.
final
- labelStyle → TextStyle?
-
Text style for the labels of the tabs.
final
- preferredSize → Size
-
The size this widget would prefer if it were otherwise unconstrained.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tabs
→ List<
ZdsTab> -
Typically a list of two or more
ZdsTab
widgets.final - topSafeArea → bool
-
Determine's whether component observes safe area at top of the screen.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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.
override
-
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
Static Methods
-
buildTheme(
BuildContext context, {required bool hasIcons, required ZdsTabBarColor color, Color? indicatorColor}) → ZdsTabBarStyleContainer - Generates theme for ZdsTabBar.