toJetScrollableTabs method
JetTab
toJetScrollableTabs({
- required List<
String> tabs, - TabAlignment? tabAlignment = TabAlignment.center,
- Color? indicatorColor,
- Color? labelColor,
- Color? unselectedLabelColor,
- Widget builder(
- BuildContext context,
- Widget child
Creates a JetTab.router with scrollable tabs.
Implementation
JetTab toJetScrollableTabs({
required List<String> tabs,
TabAlignment? tabAlignment = TabAlignment.center,
Color? indicatorColor,
Color? labelColor,
Color? unselectedLabelColor,
Widget Function(BuildContext context, Widget child)? builder,
}) {
return JetTab.router(
routes: this,
tabs: tabs,
isScrollable: true,
tabAlignment: tabAlignment,
indicatorColor: indicatorColor,
labelColor: labelColor,
unselectedLabelColor: unselectedLabelColor,
builder: builder,
);
}