CheckboxListTile

Widget nikoCheck2(WidgetRef ref,
    {required value, required String label, fnc, double? width}) {
  // return TextButton(
  //   onPressed: () {
  //     fnc();
  //     ref.read(scEditState2.notifier).state++; //state更新
  //   },
  //   child: Row(mainAxisAlignment: MainAxisAlignment.start, children: [
  //     SizedBox(
  //         height: 24.0,
  //         width: 24.0,
  //         child: Checkbox(
  //           value: value,
  //           onChanged: (value) {
  //             fnc();
  //             ref.read(scEditState2.notifier).state++; //state更新
  //           },
  //         )),
  //     const SizedBox(width: 10.0),
  //     SizedBox(
  //         width: (width ?? 20.0),
  //         child: Text(label, style: const TextStyle(fontSize: 18))),
  //   ]),
  // );
  return SizedBox(
      height: 24.0,
      width: (width ?? 20.0),
      child: CheckboxListTile(
      title: const Text("IconLabel"),
      value: value,
      onChanged: (value) {}
    )
    );
}
/* -----codeの行番号----- */