📜  在点击时颤动切换色卡 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:05.248000             🧑  作者: Mango

代码示例1
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),
);