segmented_control 1.0.2 segmented_control: ^1.0.2 copied to clipboard
Use the segmented control to present your list of data into selectable segments that are also customizable.
Present your list of items into selectable customizable segments
Features #
Change border radius Change colors of segment, text and borders Get the index of the selected value
Usage #
body: Center(
child: SegmentedControl(
segmentCount: 3,
borderRadius: 30,
borderColor: Colors.blueAccent,
segmentColor: Colors.white,
selectedSegmentColor: Colors.blue,
textColor: Colors.blue,
selectedTextColor: Colors.white,
segmentText: const ['One', 'Two', 'Three'],
onSelected: (val) {
print('value is $val');
}),
));
Additional information #
For the code repository: https://github.com/Yashinvinz/segmented_control
To report issues: https://github.com/Yashinvinz/segmented_control/issues