SHARE
TWEET

Untitled

a guest Aug 25th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.    )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top