segmentLabelStyle

Animated label style matching the built-in segment animations.

Use this in SegmentedControlScope.custom content to get the same text colour and weight transitions that the standard segment types use.

Return

SegmentLabelStyle with animated Color and TextStyle.

Parameters

selected

Whether this segment is currently selected.

enabled

Whether the parent control is enabled.