![](/img/trans.png)
[英]How to change the checkBox color inside the checkBoxListTile in flutter?
[英]Flutter - CheckboxListTile - Border color white
试试这个解决方案:
Theme(
data: ThemeData(unselectedWidgetColor: Colors.white),
child: CheckboxListTile(....),
)
这两个属性检查颜色和活动颜色可帮助您更改复选框的颜色.. 以靠近文本。您可以使用容器或行:您可以使用主轴为 alignment 的行。
您可以在行内使用复选框
Row(children:[Checkbox(...), Text(...)]);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.