TabPages constructor
const
TabPages({
- Key? key,
- List<
Widget> ? tabs, - List<
Widget> ? pages, - double tabHeight = 40,
- Color tabBackgroundColor = Colors.transparent,
- Color? selectedLabelColor,
- Color? unselectedLabelColor,
- double indicatorWeight = 2,
- Color? indicatorColor,
- EdgeInsetsGeometry indicatorPadding = EdgeInsets.zero,
- int initialIndex = 0,
- TabBuildCallback? buildCallback,
- TabChangeListener? change,
- bool isScrollable = true,
- TextStyle? selectedLabelStyle,
- TextStyle? unselectedLabelStyle,
- TabPageStyle style = TabPageStyle.normal,
- double elevation = 0.8,
- Color elevationColor = const Color(0xFFEEEEEE),
- double topViewHeight = 0,
- Widget? topWidget,
- String title = "",
- Color titleColor = const Color(0xff333333),
- List<
Widget> ? actions, - double? paddingTop,
- Widget? backIcon,
- VoidCallback? backClick,
- String? indicatorImageNameOrAlias,
- double? imageIndicatorOffsetDy,
- BorderRadius? tabBorderRadius,
- double? indicatorBaseLineWeight,
- Color? indicatorBaseLineColor,
- EdgeInsetsGeometry? indicatorBaseLineMargin,
- bool enableActionBarGradient = false,
- double customActionBarHeight = 0,
- dynamic loadCall(
- BuildContext context
- Color? tabBarViewBackground,
- ScrollController? scrollController,
- 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);