tabBar method

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

Implementation

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