Skip to content

Commit 57c6336

Browse files
samsam
authored andcommitted
feat: chip
1 parent ee0aa88 commit 57c6336

File tree

1 file changed

+45
-6
lines changed

1 file changed

+45
-6
lines changed

docs/widget/common/chip/index.md

Lines changed: 45 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,46 @@
1-
## **文档完善中**
1+
## **Chip**
22

3-
## **文档完善中**
4-
## **文档完善中**
5-
## **文档完善中**
6-
## **文档完善中**
7-
## **文档完善中**
3+
>
4+
一般用于显示标签的控件
5+
6+
### 构造方法
7+
``` dart
8+
Chip({
9+
Key key,
10+
this.avatar,
11+
@required this.label,
12+
this.labelStyle,
13+
this.labelPadding,
14+
this.deleteIcon,
15+
this.onDeleted,
16+
this.deleteIconColor,
17+
this.deleteButtonTooltipMessage,
18+
this.shape,
19+
this.clipBehavior = Clip.none,
20+
this.backgroundColor,
21+
this.padding,
22+
this.materialTapTargetSize,
23+
this.elevation,
24+
})
25+
```
26+
27+
### 属性介绍
28+
29+
* avatar:标签左侧widget,一般为小图标
30+
* label:标签内容
31+
* labelStyle:标签样式
32+
* labelPadding:标签周围填充
33+
* deleteIcon:删除图标
34+
* onDeleted:删除回调,为空时不显示删除图标
35+
* deleteIconColor:删除图标颜色
36+
* deleteButtonTooltipMessage:删除图标的tip提示文字
37+
* shape:形状
38+
* backgroundColor:背景颜色
39+
* padding:标签内容和外形之间的填充
40+
* materialTapTargetSize:配置点击目标的最小尺寸
41+
* elevation:标签阴影
42+
43+
### 延生
44+
* ActionChip
45+
* FilterChip
46+
* ChoiceChip

0 commit comments

Comments
 (0)