TabBuilderRF constructor

TabBuilderRF({
  1. List<Widget>? tabs,
  2. List<Widget>? views,
  3. TabController? controller,
  4. Color? selectedLabelColor,
  5. Color? unselectedLabelColor,
  6. TabBarIndicatorSize indicatorSize = TabBarIndicatorSize.tab,
  7. Decoration? indicatorDecoration,
  8. Function? onTap,
  9. TickerProvider? tickerProvider,
  10. 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!);
}