FlutterFlowButtonTabBar class
A Flutterflow Design widget that displays a horizontal row of tabs.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FlutterFlowButtonTabBar
- Implemented types
- Available extensions
Constructors
-
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 thecontroller
's TabController.length.const
Properties
- backgroundColor → Color?
-
The background Color of the button on its selected state.
final
- borderColor → Color?
-
The Color of solid Border for each button.
final
- borderRadius → double
-
The value of the BorderRadius.circular applied to each button.
final
- borderWidth → double
-
The with of solid Border for each button. If no value is provided, the border
is not drawn.
final
-
The EdgeInsets used for the
Margin
of the buttons.final - controller → TabController?
-
This widget's selection and animation state.
final
- decoration → BoxDecoration?
-
The BoxDecoration of the button on its selected state.
final
- dragStartBehavior → DragStartBehavior
-
final
- elevation → double
-
The value of the elevation applied to each button.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isScrollable → bool
-
Whether this tab bar can be scrolled horizontally.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- labelColor → Color?
-
The color of selected tab labels.
final
- labelPadding → EdgeInsetsGeometry
-
The EdgeInsets used for the Padding of the buttons' content.
final
- labelStyle → TextStyle?
-
The TextStyle of the button's Text on its selected state. The color provided
on the TextStyle will be used for the Icon's color.
final
-
onTap
→ ValueChanged<
int> ? -
final
- padding → EdgeInsetsGeometry?
-
The amount of space by which to inset the tab bar.
final
- physics → ScrollPhysics?
-
final
- preferredSize → Size
-
A size whose height depends on if the tabs have both icons and text.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tabs
→ List<
Widget> -
Typically a list of two or more Tab widgets.
final
- unselectedBackgroundColor → Color?
-
The background Color of the button on its unselected state.
final
- unselectedBorderColor → Color?
-
The Color of solid Border for each button. If no value is provided, the value of
this.borderColor
is used.final - unselectedDecoration → BoxDecoration?
-
The BoxDecoration of the button on its unselected state.
final
- unselectedLabelColor → Color?
-
The color of unselected tab labels.
final
- unselectedLabelStyle → TextStyle?
-
The TextStyle of the button's Text on its unselected state. The color provided
on the TextStyle will be used for the Icon's color.
final
- useToggleButtonStyle → bool
-
Whether the tab buttons should be styled as toggle buttons.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< FlutterFlowButtonTabBar> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited