BZTabBar constructor
BZTabBar({
- Key? key,
- required TabController controller,
- required List<
String> tabTitles, - double horizontalPadding = 10.0,
- double verticalPadding = 5.0,
- Color? tabBackgroundColor,
- BorderRadiusGeometry? tabBorderRadius,
- EdgeInsetsGeometry? tabPadding,
- Color? textColor,
- Color? selectedTextColor,
- Color? backgroundColor,
- Color? selectedBackgroundColor,
- BorderRadiusGeometry? borderRadius,
- double? borderWidth,
- Color? borderColor,
- double dividerWidth = 1.0,
- double dividerHeight = 10.0,
- Color dividerColor = Colors.grey,
- 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();
});
}