flutter 組件

const ListTile({
    Key key,
    this.leading, //左侧的组件
    this.title, //中间的主标题
    this.subtitle, //中间的副标题
    this.trailing, //右侧组件,通常是一个值或者一个图标
    this.isThreeLine = false, //是否显示三行
    this.dense, //是否以垂直密集的方式显示,这样文字会更小
    this.visualDensity,
    this.shape, //定义外观形状
    this.contentPadding, //内容与边框之间的边距,默认16
    this.enabled = true, //是否可以互动事件
    this.onTap, //点击事件
    this.onLongPress, //长按事件
    this.mouseCursor, //鼠标悬停在ListTile上时的处理效果,给web用的
    this.selected = false, //如果是true,文本和图标将会以相同的颜色呈现
    this.focusColor, 
    this.hoverColor, //指针悬停在ListTile上的颜色
    this.focusNode, //聚焦事件
    this.autofocus = false, //是否默认聚焦
    this.tileColor, //listTile的背景颜色,selected=false时生效
    this.selectedTileColor, //listTile的背景颜色,selected=true时生效
  })

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值