BZTabBar constructor

BZTabBar({
  1. Key? key,
  2. required TabController controller,
  3. required List<String> tabTitles,
  4. double horizontalPadding = 10.0,
  5. double verticalPadding = 5.0,
  6. Color? tabBackgroundColor,
  7. BorderRadiusGeometry? tabBorderRadius,
  8. EdgeInsetsGeometry? tabPadding,
  9. Color? textColor,
  10. Color? selectedTextColor,
  11. Color? backgroundColor,
  12. Color? selectedBackgroundColor,
  13. BorderRadiusGeometry? borderRadius,
  14. double? borderWidth,
  15. Color? borderColor,
  16. double dividerWidth = 1.0,
  17. double dividerHeight = 10.0,
  18. Color dividerColor = Colors.grey,
  19. BZValueConfirmCallback<int>? onTabSelected,
})

Implementation

BZTabBar({
  Key? key,
  required this.controller,
  required this.tabTitles,
  this.horizontalPadding = 10.0,
  this.verticalPadding = 5.0,
  this.tabBackgroundColor,
  this.tabBorderRadius,
  this.tabPadding,
  this.textColor,
  this.selectedTextColor,
  this.backgroundColor,
  this.selectedBackgroundColor,
  this.borderRadius,
  this.borderWidth,
  this.borderColor,
  this.dividerWidth = 1.0,
  this.dividerHeight = 10.0,
  this.dividerColor = Colors.grey,
  this.onTabSelected,
}) : super(key: key) {
  controller.addListener(() {
    appTabController.update();
  });
}