CheckboxListTile

2020-08-17  本文已影响0人  不二客

CheckboxListTile

 const CheckboxListTile({
    Key key,
    @required this.value, // 是否选中此复选框。
    @required this.onChanged,  // ValueChanged<bool> 状态改变时 回调
    this.activeColor,,//选中时的背景颜色
    this.checkColor,  //选中时对号的颜色
    this.title, // 标题widget 
    this.subtitle, //副标题widget
    this.isThreeLine = false, //
    this.dense,
    this.secondary,
    this.selected = false,
    this.controlAffinity = ListTileControlAffinity.platform, //选择框对于文本的位置   leading(主要的)  trailing(尾随)  platform
  })
上一篇 下一篇

猜你喜欢

热点阅读