ButtonsTabBar constructor
ButtonsTabBar({
- Key? key,
- required List<
Widget> tabs, - TabController? controller,
- int duration = 250,
- Color? backgroundColor,
- Color? unselectedBackgroundColor,
- BoxDecoration? decoration,
- BoxDecoration? unselectedDecoration,
- TextStyle? labelStyle,
- TextStyle? unselectedLabelStyle,
- Color? splashColor,
- double borderWidth = 0,
- Color borderColor = Colors.black,
- Color unselectedBorderColor = Colors.black,
- ScrollPhysics physics = const BouncingScrollPhysics(),
- EdgeInsets contentPadding = const EdgeInsets.symmetric(horizontal: 4),
- EdgeInsets buttonMargin = const EdgeInsets.all(4),
- double labelSpacing = 4.0,
- double radius = 7.0,
- double elevation = 0,
- double? height = _kTabHeight,
- double? width = _kTabWidth,
- bool center = false,
- bool contentCenter = false,
- void onTap()?,
Implementation
ButtonsTabBar({
Key? key,
required this.tabs,
this.controller,
this.duration = 250,
this.backgroundColor,
this.unselectedBackgroundColor,
this.decoration,
this.unselectedDecoration,
this.labelStyle,
this.unselectedLabelStyle,
this.splashColor,
this.borderWidth = 0,
this.borderColor = Colors.black,
this.unselectedBorderColor = Colors.black,
this.physics = const BouncingScrollPhysics(),
this.contentPadding = const EdgeInsets.symmetric(horizontal: 4),
this.buttonMargin = const EdgeInsets.all(4),
this.labelSpacing = 4.0,
this.radius = 7.0,
this.elevation = 0,
this.height = _kTabHeight,
this.width = _kTabWidth,
this.center = false,
this.contentCenter = false,
this.onTap,
}) : super(key: key) {
assert(backgroundColor == null || decoration == null);
assert(unselectedBackgroundColor == null || unselectedDecoration == null);
}