MUITabs class
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