TabPages constructor

const TabPages({
  1. Key? key,
  2. List<Widget>? tabs,
  3. List<Widget>? pages,
  4. double tabHeight = 40,
  5. Color tabBackgroundColor = Colors.transparent,
  6. Color? selectedLabelColor,
  7. Color? unselectedLabelColor,
  8. double indicatorWeight = 2,
  9. Color? indicatorColor,
  10. EdgeInsetsGeometry indicatorPadding = EdgeInsets.zero,
  11. int initialIndex = 0,
  12. TabBuildCallback? buildCallback,
  13. TabChangeListener? change,
  14. bool isScrollable = true,
  15. TextStyle? selectedLabelStyle,
  16. TextStyle? unselectedLabelStyle,
  17. TabPageStyle style = TabPageStyle.normal,
  18. double elevation = 0.8,
  19. Color elevationColor = const Color(0xFFEEEEEE),
  20. double topViewHeight = 0,
  21. Widget? topWidget,
  22. String title = "",
  23. Color titleColor = const Color(0xff333333),
  24. List<Widget>? actions,
  25. double? paddingTop,
  26. Widget? backIcon,
  27. VoidCallback? backClick,
  28. String? indicatorImageNameOrAlias,
  29. double? imageIndicatorOffsetDy,
  30. BorderRadius? tabBorderRadius,
  31. double? indicatorBaseLineWeight,
  32. Color? indicatorBaseLineColor,
  33. EdgeInsetsGeometry? indicatorBaseLineMargin,
  34. bool enableActionBarGradient = false,
  35. double customActionBarHeight = 0,
  36. dynamic loadCall(
    1. BuildContext context
    )?,
  37. Color? tabBarViewBackground,
  38. ScrollController? scrollController,
  39. double scrollMaxRatioLoad = 0.7,
})

Implementation

const TabPages({
  Key? key,
  this.tabs,
  this.pages,
  this.tabHeight = 40,
  this.tabBackgroundColor = Colors.transparent,
  this.selectedLabelColor,
  this.unselectedLabelColor,
  this.indicatorWeight = 2,
  this.indicatorColor,
  this.indicatorPadding = EdgeInsets.zero,
  this.initialIndex = 0,
  this.buildCallback,
  this.change,
  this.isScrollable = true,
  this.selectedLabelStyle,
  this.unselectedLabelStyle,
  this.style = TabPageStyle.normal,
  this.elevation = 0.8,
  this.elevationColor = const Color(0xFFEEEEEE),
  this.topViewHeight = 0,
  this.topWidget,
  this.title = "",
  this.titleColor = const Color(0xff333333),
  this.actions,
  this.paddingTop,
  this.backIcon,
  this.backClick,
  this.indicatorImageNameOrAlias,
  this.imageIndicatorOffsetDy,
  this.tabBorderRadius,
  this.indicatorBaseLineWeight,
  this.indicatorBaseLineColor,
  this.indicatorBaseLineMargin,
  this.enableActionBarGradient = false,
  this.customActionBarHeight = 0,
  this.loadCall,
  this.tabBarViewBackground,
  this.scrollController,
  this.scrollMaxRatioLoad = 0.7,
}) : super(key: key);