Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final Map<int, Widget> children = <int, Widget>{
- 0: Text('Basic'),
- 1: Text('Advanced'),
- };
- CupertinoSegmentedControl<int>(
- children: children,
- onValueChanged: (int newValue) {
- setState(() {
- sharedValue = newValue;
- });
- },
- groupValue: sharedValue,
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement