Flutter SegmentedButton<String>.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
backgroundColor
→ const PropDef<
Color?> -
borderRadius
→ const PropDef<
BorderRadius?> -
shape: RoundedRectangleBorder(borderRadius); unset is Flutter's stadium. -
direction
→ const PropDef<
Axis> -
emptySelectionAllowed
→ const PropDef<
bool> -
enabled
→ const PropDef<
bool> -
expanded
→ const PropDef<
bool> -
The segments share the node's width equally (
expandedInsets: zero). -
foregroundColor
→ const PropDef<
Color?> -
multiSelectionEnabled
→ const PropDef<
bool> -
padding
→ const PropDef<
EdgeInsets?> -
Each segment's padding (
padding); unset is Flutter's. -
segmentHeight
→ const PropDef<
double?> -
Each segment's height (
ButtonStyle.minimumSize/maximumSize); unset is Flutter's 40. -
segments
→ const PropDef<
List< ButtonSegment> > - The segments, in order: each a value, a label and an optional icon.
-
selected
→ const PropDef<
List< String> > - The values of the selected segments.
-
selectedBackgroundColor
→ const PropDef<
Color?> -
selectedForegroundColor
→ const PropDef<
Color?> -
selectedIcon
→ const PropDef<
InputIcon?> -
selectedShadows
→ const PropDef<
List< Effect> > - The shadows under a track's selected segment.
-
showSelectedIcon
→ const PropDef<
bool> -
shrinkTapTarget
→ const PropDef<
bool> -
No extra space round the segments for touch (
MaterialTapTargetSize.shrinkWrap). -
side
→ const PropDef<
BorderSide?> -
slidingThumb
→ const PropDef<
bool> - A track's selection is one thumb that slides between its segments (single selection, horizontal, segments sharing the width); otherwise each segment fills in place.
- spec → const WidgetSpec
-
textStyle
→ const PropDef<
TextStyle> -
trackPadding
→ const PropDef<
double> - A track's inset around its segments.
-
variant
→ const PropDef<
SegmentedVariant> - Material's segmented button, or a SegmentedVariant.track.