You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 17, 2018. It is now read-only.
Copy file name to clipboardexpand all lines: README.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -7,14 +7,14 @@ A flutter package which adds the [Apple's iOS Segment Control UI element](https:
7
7
- Add the package to your pubspec
8
8
- Add following code:
9
9
```dart
10
-
new CupertinoSegmentControl([
11
-
new CupertinoSegmentControlItem("test1", new Text("test1")),
12
-
new CupertinoSegmentControlItem("test2", new Text("test2")),
13
-
new CupertinoSegmentControlItem("test3", new Text("test3")),
10
+
new SegmentControl([
11
+
new SegmentControlItem("test1", new Text("test1")),
12
+
new SegmentControlItem("test2", new Text("test2")),
13
+
new SegmentControlItem("test3", new Text("test3")),
14
14
]),
15
15
```
16
16
17
-
PS: minimum of 1 `CupertinoSegmentControlItem` and maximum of 3 `CupertinoSegmentControlItem` due to this bug: https://github.com/flutter/flutter/issues/12583
17
+
PS: minimum of 1 `SegmentControlItem` and maximum of 3 `SegmentControlItem` due to this bug: https://github.com/flutter/flutter/issues/12583
0 commit comments