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, //按钮的可选大小约束。
})
网友评论