Created
August 13, 2019 11:23
-
-
Save webianks/dbbb1c7a495a5485013f8a3cacfba0ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment