MUITabs class

Inheritance

Constructors

MUITabs.new({Key? key, required List<MUITab> tabs, int tabIndex = 0, Color backgroundColor = const Color.fromRGBO(236, 239, 241, 0.6), Curve curve = Curves.easeInOut, dynamic onChanged(int index)?, Color indicatorColor = Colors.white, double indicatorBorderRadius = 6, double maxTabSize = 100, double borderRadius = 8, TextStyle labelStyle = const TextStyle(fontSize: 16, fontWeight: FontWeight.w500), Axis axis = Axis.horizontal, int animationDuration = 400, bool underline = false, double underlineHeight = 2})
const
MUITabs.transparent({required List<MUITab> tabs, int tabIndex = 0, Curve curve = Curves.easeInOut, dynamic onChanged(int)?, Color indicatorColor = Colors.grey, double indicatorBorderRadius = 6, double maxTabSize = 100, double borderRadius = 8, int animationDuration = 400, TextStyle labelStyle = const TextStyle(fontSize: 16, fontWeight: FontWeight.w500), Axis axis = Axis.horizontal})
factory
MUITabs.underlined({required List<MUITab> tabs, int tabIndex = 0, Curve curve = Curves.easeInOut, Color underlineColor = Colors.black, double underlineHeight = 2, dynamic onChanged(int)?, double underlineBorderRadius = 6, double maxTabSize = 100, double borderRadius = 8, int animationDuration = 400, TextStyle labelStyle = const TextStyle(fontSize: 16, fontWeight: FontWeight.w500), Axis axis = Axis.horizontal})
factory

Properties

animationDuration int
How long the animation of the tabIndicator takes. In milliseconds.
final
axis Axis
The axis in which the tab bar should be. Horizontal/Vertical.
final
backgroundColor Color
The color to display behind the bar.
final
borderRadius double
The border radius of the container that is wrapped around the tab bar and gives it the background color.
final
curve Curve
The curve for
final
hashCode int
The hash code for this object.
no setterinherited
indicatorBorderRadius double
The indicators border radius.
final
indicatorColor Color
The color of the indicator.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
labelStyle TextStyle
The style of the tab labels.
final
maxTabSize double
The maximum size for one singular tab. The final tab size is calculated from the given space and can't exceed the given maxTabSize.
final
onChanged → dynamic Function(int index)?
Called when the user taps on a tab.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tabIndex int
Which tab currently is selected.
final
tabs List<MUITab>
The tabs to display in the tab bar.
final
underline bool
Whatever the tabs are indicated with an underline or not.
final
underlineHeight double
If underline == true, defines the height of the underline.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<MUITabs>
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, 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