BaseTabBar class abstract

Base widget for creating a TabBar with optional wrapper styling.

Inheritance
Implementers
Available extensions

Constructors

BaseTabBar({Key? key, WrapperModel? wrapperModel, double? tabSpacing = 20, required List<Widget> tabs, TabController? controller, bool isScrollable = false, TabAlignment? tabAlignment, Color? indicatorColor, Decoration? indicator, double? dividerHeight, Color? dividerColor, TabBarIndicatorSize? indicatorSize, EdgeInsetsGeometry indicatorPadding = EdgeInsets.zero, TextScaler? textScaler, double indicatorWeight = 2.0, TabIndicatorAnimation? indicatorAnimation, Color? labelColor, TextStyle? labelStyle, EdgeInsetsGeometry? labelPadding, Color? unselectedLabelColor, TextStyle? unselectedLabelStyle, EdgeInsetsGeometry? padding, DragStartBehavior dragStartBehavior = DragStartBehavior.start, MouseCursor? mouseCursor, bool? enableFeedback, ValueChanged<int>? onTap, TabValueChanged<bool>? onHover, TabValueChanged<bool>? onFocusChange, WidgetStateProperty<Color?>? overlayColor, ScrollPhysics? physics, InteractiveInkFeatureFactory? splashFactory, BorderRadius? splashBorderRadius})
const

Properties

controller TabController?
Tab controller.
final
dividerColor Color?
final
dividerHeight double?
final
dragStartBehavior DragStartBehavior
final
enableFeedback bool?
final
hashCode int
The hash code for this object.
no setterinherited
indicator Decoration?
final
indicatorAnimation TabIndicatorAnimation?
final
indicatorColor Color?
Visual styling.
final
indicatorPadding EdgeInsetsGeometry
final
indicatorSize TabBarIndicatorSize?
final
indicatorWeight double
final
isScrollable bool
Scroll and layout behavior.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
labelColor Color?
Label styles.
final
labelPadding EdgeInsetsGeometry?
final
labelStyle TextStyle?
final
mouseCursor MouseCursor?
final
onFocusChange TabValueChanged<bool>?
final
onHover TabValueChanged<bool>?
final
onTap ValueChanged<int>?
final
overlayColor WidgetStateProperty<Color?>?
final
padding EdgeInsetsGeometry?
Layout and gesture.
final
physics ScrollPhysics?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
splashBorderRadius BorderRadius?
final
splashFactory InteractiveInkFeatureFactory?
final
tabAlignment TabAlignment?
final
tabs List<Widget>
Tabs list.
final
tabSpacing double?
Optional spacing between tabs.
final
textScaler TextScaler?
final
unselectedLabelColor Color?
final
unselectedLabelStyle TextStyle?
final
wrapperModel WrapperModel?
Optional full wrapper configuration.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
buildContent(BuildContext context, Widget tabBar) Widget
Subclasses define how to render the final layout.
buildWrappedTabBar(BuildContext context) Widget
Builds the wrapped TabBar with spacing and wrapper logic.
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.
inherited
let<T>(T transformation(Widget)) → T?

Available on Widget?, provided by the WidgetExtension extension

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, int wrapWidth = 65}) 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