📜  颤振复选框 - 任何代码示例

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

代码示例4
// Please format your code

  CheckboxListTile _ = CheckboxListTile(
    title: const Text("title text"),
    value: checkedValue,
    onChanged: (newValue) {
      setState(() {
        checkedValue = newValue;
      });
    },
    controlAffinity: ListTileControlAffinity.leading, //  <-- leading Checkbox
  );