segmented_control 1.0.2 copy "segmented_control: ^1.0.2" to clipboard
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

0
likes
140
pub points
56%
popularity

Publisher

unverified uploader

Use the segmented control to present your list of data into selectable segments that are also customizable.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on segmented_control