ButtonsTabBar constructor

ButtonsTabBar({
  1. Key? key,
  2. required List<Widget> tabs,
  3. TabController? controller,
  4. int duration = 250,
  5. Color? backgroundColor,
  6. Color? unselectedBackgroundColor,
  7. BoxDecoration? decoration,
  8. BoxDecoration? unselectedDecoration,
  9. TextStyle? labelStyle,
  10. TextStyle? unselectedLabelStyle,
  11. Color? splashColor,
  12. double borderWidth = 0,
  13. Color borderColor = Colors.black,
  14. Color unselectedBorderColor = Colors.black,
  15. ScrollPhysics physics = const BouncingScrollPhysics(),
  16. EdgeInsets contentPadding = const EdgeInsets.symmetric(horizontal: 4),
  17. EdgeInsets buttonMargin = const EdgeInsets.all(4),
  18. double labelSpacing = 4.0,
  19. double radius = 7.0,
  20. double elevation = 0,
  21. double? height = _kTabHeight,
  22. bool center = false,
  23. void onTap(
    1. int
    )?,
})

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.center = false,
  this.onTap,
}) : super(key: key) {
  assert(backgroundColor == null || decoration == null);
  assert(unselectedBackgroundColor == null || unselectedDecoration == null);
}