File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -144,11 +144,9 @@ import 'package:flutter_custom_dialog/flutter_custom_dialog.dart';
144
144
</tr >
145
145
</table >
146
146
147
- ** 3、use **
147
+ ## ⚡ Dialog Property
148
148
149
- > 功能属性的设置
150
-
151
- 属性的设置通过成员变量的方法去调用,具体详见下表
149
+ 弹窗的属性设置可以通过成员变量的方法去调用,具体详见下表
152
150
153
151
``` dart
154
152
YYDialog YYDialogDemo(BuildContext context) {
@@ -167,7 +165,7 @@ YYDialog YYDialogDemo(BuildContext context) {
167
165
}
168
166
```
169
167
170
- 支持的功能属性
168
+ 支持的属性
171
169
172
170
property|description|default
173
171
--|--|--|
@@ -182,7 +180,7 @@ constraints|弹窗约束|最小宽高不低于10%
182
180
animatedFunc|弹窗出现的动画|从中间出现
183
181
barrierDismissible|是否点击弹出外部消失|true
184
182
185
- > 语义化组件
183
+ ## ⚡ Semantic Widget
186
184
187
185
弹窗内部的组件内容提前通过语义化的函数封装好常用的组件,以便快速构建出弹窗,具体见下表
188
186
@@ -235,6 +233,10 @@ divider|分割线组件
235
233
height|弹窗高度
236
234
widget|自定义语义化组件
237
235
236
+ ## ⚡ Custom Widget
237
+
238
+ 自定义弹窗内部组件内容
239
+
238
240
* 由于当前已有的语义化组件只是辅助快速搭建UI,在实际项目开发中远远不能满足需求
239
241
* 所以提供了自定义语义化组件的插入,由开发者自行将组件加入到弹窗内
240
242
You can’t perform that action at this time.
0 commit comments