Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. final Map<int, Widget> children = <int, Widget>{
  2. 0: Text('Basic'),
  3. 1: Text('Advanced'),
  4. };
  5.  
  6. CupertinoSegmentedControl<int>(
  7. children: children,
  8. onValueChanged: (int newValue) {
  9. setState(() {
  10. sharedValue = newValue;
  11. });
  12. },
  13. groupValue: sharedValue,
  14. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement