You can edit 8 Components for free. Get premium for unlimited access.
A segmented control is a linear set of two or more options with one segment selected at a time. A segmented control allows users to input, filter, change the presentation, or browse content in a view.
The Segment Control component allows users to switch between multiple options and provides an animated selection indicator.
This component inherits props from the Segmented Control.
You can edit the count with the 2, 3 or 4 parameter.

Image 2.1 : Count 2

Image 2.2 : Count 3

Image 2.3 : Count 4
You can edit the state with the default, selected or disabled parameter.

Image 3.1 : State default

Image 3.1 : State disabled
The SegmentControl component allows users to switch between multiple options and provides an animated selection indicator.
This component inherits props from the Segmented Control.
label
-
-
-
You can edit the items with the label parameter.
You can edit the state with the SegmentedControlState.default or SegmentedControlState.disabled parameter.
Preview
Code
DlSegmentedControl(
tabs: const [
DlSegmentedControlTab(
label: 'Label-1'
),
DlSegmentedControlTab(
label: 'Label-2'
),
],
)Add this code example to your project to see how the component works.
DlSegmentedControl(
tabs: const [
DlSegmentedControlTab(
label: 'Label',
badge: DlBadge(size: DlBadgeSize.sm),
),
DlSegmentedControlTab(
label: 'Label'
),
],
)DlSegmentedControl is a rounded-full segmented switch built from configurable tab items.
DlSegmentedControl
DlSegmentedControlTab
Disabled
Preview
Code
DlSegmentedControl(
tabs: const [
DlSegmentedControlTab(
label: 'Label-1'
),
DlSegmentedControlTab(
label: 'Label-2',
state: DlSegmentedControlTabState.disabled,
),
],
)You have questions or need help?
You want to try?
Save time and money?