Answers for "flutter toggle color card on tap"

0

flutter toggle color card on tap

new RaisedButton(
  child: new Text('Attention'),
  textColor: Colors.white,
  shape: new RoundedRectangleBorder(
    borderRadius: new BorderRadius.circular(30.0),
  ),
  color: pressAttention ? Colors.grey : Colors.blue,
  onPressed: () => setState(() => pressAttention = !pressAttention),
);
Posted by: Guest on April-16-2020

Code answers related to "flutter toggle color card on tap"

Code answers related to "Dart"

Browse Popular Code Answers by Language