SegmentedTabControl class
Widget based on TabController. Can simply replace TabBar.
Requires TabController, witch can be read from context
with
DefaultTabController using. Or you can provide controller in the constructor.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- SegmentedTabControl
Constructors
-
SegmentedTabControl({Key? key, required List<
SegmentTab> tabs, double height = kTextTabBarHeight, TabController? controller, Color? tabTextColor, TextStyle? textStyle, TextStyle? selectedTextStyle, Color? selectedTabTextColor, double squeezeIntensity = 1, Duration squeezeDuration = const Duration(milliseconds: 500), EdgeInsets indicatorPadding = EdgeInsets.zero, EdgeInsets tabPadding = const EdgeInsets.symmetric(horizontal: 8), Color? splashColor, Color? splashHighlightColor, BoxDecoration? barDecoration = const BoxDecoration(color: Colors.grey, borderRadius: BorderRadius.all(Radius.circular(10))), BoxDecoration? indicatorDecoration = const BoxDecoration(color: Colors.white, borderRadius: BorderRadius.all(Radius.circular(10)))}) -
const
Properties
- barDecoration → BoxDecoration?
-
Segmented control bar decoration
final
- controller → TabController?
-
Can be provided by DefaultTabController.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
Height of the widget.
final
- indicatorDecoration → BoxDecoration?
-
Indicator decoration
final
- indicatorPadding → EdgeInsets
-
Only vertical padding will be applied.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedTabTextColor → Color?
-
The color of the text inside the indicator.
final
- selectedTextStyle → TextStyle?
-
Style of selected tab label. Color will not be applied.
final
- splashColor → Color?
-
Splash color of options.
final
- splashHighlightColor → Color?
-
Splash highlight color of options.
final
- squeezeDuration → Duration
-
Duration of squeeze animation.
final
- squeezeIntensity → double
-
Intensity of squeeze animation.
final
- tabPadding → EdgeInsets
-
Padding of labels.
final
-
tabs
→ List<
SegmentTab> -
Selection options.
final
- tabTextColor → Color?
-
The color of the text beyond the indicator.
final
- textStyle → TextStyle?
-
Style of all labels. Color will not be applied.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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