tabBar2 method

  1. @override
Widget tabBar2(
  1. AppModel app,
  2. BuildContext context, {
  3. required List<Widget> items,
  4. required TabController tabController,
})
override

Implementation

@override
Widget tabBar2(AppModel app, BuildContext context,
    {required List<Widget> items, required TabController tabController}) {
  var tabItems = <TabItem>[];
  for (var item in items) {
    tabItems.add(TabItem(color: Colors.black12, title: item));
  }
  return ColorfulTabBar(
    tabs: tabItems,
    controller: tabController,
  );
}