FlutterFlowButtonTabBar constructor

const FlutterFlowButtonTabBar({
  1. Key? key,
  2. required List<Widget> tabs,
  3. TabController? controller,
  4. bool isScrollable = false,
  5. bool useToggleButtonStyle = false,
  6. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  7. ValueChanged<int>? onTap,
  8. Color? backgroundColor,
  9. Color? unselectedBackgroundColor,
  10. BoxDecoration? decoration,
  11. BoxDecoration? unselectedDecoration,
  12. TextStyle? labelStyle,
  13. TextStyle? unselectedLabelStyle,
  14. Color? labelColor,
  15. Color? unselectedLabelColor,
  16. double borderWidth = 0,
  17. Color? borderColor = Colors.transparent,
  18. Color? unselectedBorderColor = Colors.transparent,
  19. ScrollPhysics? physics = const BouncingScrollPhysics(),
  20. EdgeInsetsGeometry labelPadding = const EdgeInsets.symmetric(horizontal: 4),
  21. EdgeInsetsGeometry buttonMargin = const EdgeInsets.all(4),
  22. EdgeInsetsGeometry? padding = EdgeInsets.zero,
  23. double borderRadius = 8.0,
  24. double elevation = 0,
})

The tabs argument must not be null and its length must match the controller's TabController.length.

If a TabController is not provided, then there must be a DefaultTabController ancestor.

Implementation

const FlutterFlowButtonTabBar({
  Key? key,
  required this.tabs,
  this.controller,
  this.isScrollable = false,
  this.useToggleButtonStyle = false,
  this.dragStartBehavior = DragStartBehavior.start,
  this.onTap,
  this.backgroundColor,
  this.unselectedBackgroundColor,
  this.decoration,
  this.unselectedDecoration,
  this.labelStyle,
  this.unselectedLabelStyle,
  this.labelColor,
  this.unselectedLabelColor,
  this.borderWidth = 0,
  this.borderColor = Colors.transparent,
  this.unselectedBorderColor = Colors.transparent,
  this.physics = const BouncingScrollPhysics(),
  this.labelPadding = const EdgeInsets.symmetric(horizontal: 4),
  this.buttonMargin = const EdgeInsets.all(4),
  this.padding = EdgeInsets.zero,
  this.borderRadius = 8.0,
  this.elevation = 0,
}) : super(key: key);