FlutterFlowButtonTabBar constructor
const
FlutterFlowButtonTabBar({
- Key? key,
- required List<
Widget> tabs, - TabController? controller,
- bool isScrollable = false,
- bool useToggleButtonStyle = false,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ValueChanged<
int> ? onTap, - Color? backgroundColor,
- Color? unselectedBackgroundColor,
- BoxDecoration? decoration,
- BoxDecoration? unselectedDecoration,
- TextStyle? labelStyle,
- TextStyle? unselectedLabelStyle,
- Color? labelColor,
- Color? unselectedLabelColor,
- double borderWidth = 0,
- Color? borderColor = Colors.transparent,
- Color? unselectedBorderColor = Colors.transparent,
- ScrollPhysics? physics = const BouncingScrollPhysics(),
- EdgeInsetsGeometry labelPadding = const EdgeInsets.symmetric(horizontal: 4),
- EdgeInsetsGeometry buttonMargin = const EdgeInsets.all(4),
- EdgeInsetsGeometry? padding = EdgeInsets.zero,
- double borderRadius = 8.0,
- 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);