JetTab.simple constructor

const JetTab.simple({
  1. Key? key,
  2. required List<String> tabs,
  3. required List<Widget> children,
  4. int? initialLength,
  5. int initialIndex = 0,
  6. TabController? controller,
  7. bool isScrollable = false,
  8. TabAlignment? tabAlignment,
  9. Color? indicatorColor,
  10. Color? labelColor,
  11. Color? unselectedLabelColor,
  12. TextStyle? labelStyle,
  13. TextStyle? unselectedLabelStyle,
  14. TabBarIndicatorSize? indicatorSize,
  15. EdgeInsetsGeometry? indicatorPadding,
  16. Color? dividerColor,
  17. double? dividerHeight,
  18. ValueChanged<int>? onTap,
  19. double? tabBarHeight,
  20. ScrollPhysics? physics,
  21. Duration? animationDuration,
  22. List<Widget>? customTabs,
})

Creates a simple tab widget with widget children.

Implementation

const JetTab.simple({
  Key? key,
  required List<String> tabs,
  required List<Widget> children,
  int? initialLength,
  int initialIndex = 0,
  TabController? controller,
  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,
       children: children,
       initialLength: initialLength ?? children.length,
       initialIndex: initialIndex,
       controller: controller,
       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: false,
     );