A material design switch.
bool _value = true; Switch( value: _value, onChanged: (bool newValue) { setState(() { _value = newValue; }); }, )