Wrap( alignment: WrapAlignment.end, spacing: 5.0, runSpacing: 5.0, children: everyFlagWidget, )
碎片,一般是用作标签 const Chip({ Key key, this.avatar,//标签左侧Widget,一般为小图标 @required this.label,//标签 this.labelStyle, this.labelPadding, this.deleteIcon,//删除图标 this.onDeleted,//删除回调,为空时不显示删除图标 this.deleteIconColor,//删除图标的颜 this.deleteButtonTooltipMessage,//删除按钮的tip文字 this.shape,//形状.默认两端是半圆形 this.clipBehavior = Clip.none this.backgroundColor,//背景颜色 this.padding, this.materialTapTargetSize,//设置为MaterialTapTargetSize.shrinkWrap时,clip距顶部距离为0;设置为MaterialTapTargetSize.padded时距顶部有一个距离 })
----------------------------------------
若 wrap里若用
Container(
child: Text(
假如有 2个标签 一个里纯中文 一个里纯英文 则会出现这两个Container高度不同 文字不在同一水平线的情况