cupertino_segment_control 0.0.1 cupertino_segment_control: ^0.0.1 copied to clipboard
A Cupertino-stype segment control
cupertino_segment_control #
A flutter package which adds the Apple's iOS Segment Control UI element.
Getting Started #
- Add the package to your pubspec
- Add following code:
new CupertinoSegmentControl([ new CupertinoSegmentControlItem("test1", new Text("test1")), new CupertinoSegmentControlItem("test2", new Text("test2")), new CupertinoSegmentControlItem("test3", new Text("test3")), ]),
PS: minimum of 1 CupertinoSegmentControlItem
and maximum of 3 CupertinoSegmentControlItem
due to this bug: https://github.com/flutter/flutter/issues/12583