JetTab.router constructor

const JetTab.router({
  1. Key? key,
  2. required List<PageRouteInfo<Object?>> routes,
  3. required List<String> tabs,
  4. Widget builder(
    1. BuildContext context,
    2. Widget child
    )?,
  5. bool isScrollable = false,
  6. TabAlignment? tabAlignment,
  7. Color? indicatorColor,
  8. Color? labelColor,
  9. Color? unselectedLabelColor,
  10. TextStyle? labelStyle,
  11. TextStyle? unselectedLabelStyle,
  12. TabBarIndicatorSize? indicatorSize,
  13. EdgeInsetsGeometry? indicatorPadding,
  14. Color? dividerColor,
  15. double? dividerHeight,
  16. ValueChanged<int>? onTap,
  17. double? tabBarHeight,
  18. ScrollPhysics? physics,
  19. Duration? animationDuration,
  20. 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,
     );