复选框错误:位置参数太少:

时间:2019-02-14 10:22:23

标签: button checkbox dart flutter

 new Checkbox (
        onChanged: (bool resp)
        {
         setState(() {
          _sel=resp;

         });
        },
        value: _sel,
      ),

1 个答案:

答案 0 :(得分:0)

来自https://docs.flutter.io/flutter/material/Checkbox-class.html

enter image description here

您需要传递必需的参数value