美文网首页
IconButton

IconButton

作者: 不二客 | 来源:发表于2020-08-26 09:41 被阅读0次

const IconButton({
    Key key,
    this.iconSize = 24.0,// 按钮内图标的大小。
    this.visualDensity, //定义图标按钮布局的紧凑程度
    this.padding = const EdgeInsets.all(8.0), //间距
    this.alignment = Alignment.center, //位置
    @required this.icon,
    this.color, //按钮颜色
    this.focusColor,
    this.hoverColor,
    this.highlightColor,
    this.splashColor,
    this.disabledColor,
    @required this.onPressed,
    this.focusNode,
    this.autofocus = false,
    this.tooltip,
    this.enableFeedback = true,//检测到的手势是否应提供声音和/或触觉反馈。    
                                                   在Android上,点击会产生一个点击的声音和一个 长压机将产生短的振动,当启用反馈时。
    this.constraints, //按钮的可选大小约束。
  }) 

相关文章

网友评论

      本文标题:IconButton

      本文链接:https://www.haomeiwen.com/subject/nchslktx.html