List<Widget> getTabBarTitlesToTabs(List<String> tabBarTitles) { return tabBarTitles .map((e) => Tab( text: e, )) .toList(); }