JetTab.router constructor
const
JetTab.router({
- Key? key,
- required List<
PageRouteInfo< routes,Object?> > - required List<
String> tabs, - Widget builder(
- BuildContext context,
- Widget child
- bool isScrollable = false,
- TabAlignment? tabAlignment,
- Color? indicatorColor,
- Color? labelColor,
- Color? unselectedLabelColor,
- TextStyle? labelStyle,
- TextStyle? unselectedLabelStyle,
- TabBarIndicatorSize? indicatorSize,
- EdgeInsetsGeometry? indicatorPadding,
- Color? dividerColor,
- double? dividerHeight,
- ValueChanged<
int> ? onTap, - double? tabBarHeight,
- ScrollPhysics? physics,
- Duration? animationDuration,
- List<
Widget> ? customTabs,
Creates a tab widget integrated with AutoRoute.
Implementation
const JetTab.router({
Key? key,
required List<PageRouteInfo> routes,
required List<String> tabs,
Widget Function(BuildContext context, Widget child)? builder,
bool isScrollable = false,
TabAlignment? tabAlignment,
Color? indicatorColor,
Color? labelColor,
Color? unselectedLabelColor,
TextStyle? labelStyle,
TextStyle? unselectedLabelStyle,
TabBarIndicatorSize? indicatorSize,
EdgeInsetsGeometry? indicatorPadding,
Color? dividerColor,
double? dividerHeight,
ValueChanged<int>? onTap,
double? tabBarHeight,
ScrollPhysics? physics,
Duration? animationDuration,
List<Widget>? customTabs,
}) : this._(
key: key,
tabs: tabs,
routes: routes,
builder: builder,
isScrollable: isScrollable,
tabAlignment: tabAlignment,
indicatorColor: indicatorColor,
labelColor: labelColor,
unselectedLabelColor: unselectedLabelColor,
labelStyle: labelStyle,
unselectedLabelStyle: unselectedLabelStyle,
indicatorSize: indicatorSize,
indicatorPadding: indicatorPadding,
dividerColor: dividerColor,
dividerHeight: dividerHeight,
onTap: onTap,
tabBarHeight: tabBarHeight,
physics: physics,
animationDuration: animationDuration,
customTabs: customTabs,
useAutoRoute: true,
);