📜  颤振复选框颜色 - Dart 代码示例

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

代码示例1
bool isChecked = false;
Checkbox(
            activeColor: Colors.red, //The color to use when this checkbox is checked.
            checkColor: Colors.black, // The color to use for the check icon when this checkbox is checked.
            value: isChecked,
            onChanged: (value) {
              setState(() {
                isChecked = value!;
              });
            },
          ),