TabBuilderRF constructor
TabBuilderRF({
- List<
Widget> ? tabs, - List<
Widget> ? views, - TabController? controller,
- Color? selectedLabelColor,
- Color? unselectedLabelColor,
- TabBarIndicatorSize indicatorSize = TabBarIndicatorSize.tab,
- Decoration? indicatorDecoration,
- Function? onTap,
- TickerProvider? tickerProvider,
- Function? tabBuilder,
Implementation
TabBuilderRF({
this.tabs,
this.views,
this.controller,
this.selectedLabelColor,
this.unselectedLabelColor,
this.indicatorSize = TabBarIndicatorSize.tab,
this.indicatorDecoration, // = const BoxDecoration(color: Colors.blue),
this.onTap,
this.tickerProvider,
this.tabBuilder,
}) {
_moveBefore = moveBefore;
_moveAfter = moveAfter;
//var tabs1 = tabBuilder(0) as List<Widget>;
if (tabBuilder != null) this.tabs = tabBuilder!(0) as List<Widget>;
this.controller =
TabController(length: tabs!.length, vsync: tickerProvider!);
}