Skip to content

Commit edf2e84

Browse files
author
xuyingjun
committed
v1.0.16
1 parent 76998cb commit edf2e84

File tree

6 files changed

+27
-14
lines changed

6 files changed

+27
-14
lines changed

Diff for: CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,8 @@
6161

6262
## 1.0.15
6363

64-
* add callback
64+
* add callback
65+
66+
## 1.0.16
67+
68+
* add decoration property

Diff for: README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Global dialog function encapsulation, with a semantic way to fill the content in
1717

1818
```yaml
1919
dependencies:
20-
flutter_custom_dialog: ^1.0.15
20+
flutter_custom_dialog: ^1.0.16
2121
```
2222
2323
**2、import**
@@ -270,6 +270,7 @@ gravity|Where the dialog appears|center
270270
gravityAnimationEnable|The dialog appears with the default animation available|false
271271
margin|The margin of a dialog|EdgeInsets.all(0.0)
272272
barrierColor|Dialog barrierColor|30% of black
273+
decoration|Dialog decoration|null
273274
backgroundColor|Dialog backgroundColor|white
274275
borderRadius|Dialog borderRadius|0.0
275276
constraints|Dialog constraints|no constraints
@@ -278,6 +279,9 @@ showCallBack|dialog show callbacks|not
278279
dismissCallBack|dialog dismiss callbacks|not
279280
barrierDismissible|Whether to click to pop up the external disappear|true
280281

282+
* After setting gravity, set gravityAnimationEnable = true if animation is needed
283+
* If the decoration property is set, the backgroundColor and borderRadius are not in effect; they are mutually exclusive
284+
281285
Supported method
282286

283287
method|description

Diff for: README_CN.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
```yaml
1717
dependencies:
18-
flutter_custom_dialog: ^1.0.15
18+
flutter_custom_dialog: ^1.0.16
1919
```
2020
2121
**2、import**
@@ -268,6 +268,7 @@ gravity|弹窗出现的位置|居中
268268
gravityAnimationEnable|弹窗出现的位置带有的默认动画是否可用|false
269269
margin|弹窗的外边距|EdgeInsets.all(0.0)
270270
barrierColor|弹窗外的背景色|30%黑色
271+
decoration|弹窗内的装饰|null
271272
backgroundColor|弹窗内的背景色|白色
272273
borderRadius|弹窗圆角|0.0
273274
constraints|弹窗约束|无
@@ -276,6 +277,9 @@ showCallBack|弹窗展示的回调|无
276277
dismissCallBack|弹窗消失的回调|无
277278
barrierDismissible|是否点击弹出外部消失|true
278279

280+
* 设置完gravity后,若需要动画则设置gravityAnimationEnable = true
281+
* 若设置decoration属性,则backgroundColor和borderRadius不生效,他们是互斥关系
282+
279283
支持的方法
280284

281285
method|description

Diff for: lib/flutter_custom_dialog.dart

+4-3
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ class YYDialog {
1616
Gravity gravity = Gravity.center; //弹窗出现的位置
1717
bool gravityAnimationEnable = false; //弹窗出现的位置带有的默认动画是否可用
1818
Color barrierColor = Colors.black.withOpacity(.3); //弹窗外的背景色
19-
Color backgroundColor = Colors.white; //弹窗内的背景色
20-
Decoration decoration;
21-
double borderRadius = 0.0; //弹窗圆角
2219
BoxConstraints constraints; //弹窗约束
2320
Function(Widget child, Animation<double> animation) animatedFunc; //弹窗出现的动画
2421
bool barrierDismissible = true; //是否点击弹出外部消失
2522
EdgeInsets margin = EdgeInsets.all(0.0); //弹窗布局的外边距
2623

24+
Decoration decoration; //弹窗内的装饰,与backgroundColor和borderRadius互斥
25+
Color backgroundColor = Colors.white; //弹窗内的背景色
26+
double borderRadius = 0.0; //弹窗圆角
27+
2728
Function() showCallBack; //展示的回调
2829
Function() dismissCallBack; //消失的回调
2930

Diff for: pubspec.lock

+7-7
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ packages:
77
name: async
88
url: "https://pub.dartlang.org"
99
source: hosted
10-
version: "2.3.0"
10+
version: "2.2.0"
1111
boolean_selector:
1212
dependency: transitive
1313
description:
1414
name: boolean_selector
1515
url: "https://pub.dartlang.org"
1616
source: hosted
17-
version: "1.0.5"
17+
version: "1.0.4"
1818
charcode:
1919
dependency: transitive
2020
description:
@@ -52,28 +52,28 @@ packages:
5252
name: meta
5353
url: "https://pub.dartlang.org"
5454
source: hosted
55-
version: "1.1.7"
55+
version: "1.1.6"
5656
path:
5757
dependency: transitive
5858
description:
5959
name: path
6060
url: "https://pub.dartlang.org"
6161
source: hosted
62-
version: "1.6.4"
62+
version: "1.6.2"
6363
pedantic:
6464
dependency: transitive
6565
description:
6666
name: pedantic
6767
url: "https://pub.dartlang.org"
6868
source: hosted
69-
version: "1.8.0+1"
69+
version: "1.7.0"
7070
quiver:
7171
dependency: transitive
7272
description:
7373
name: quiver
7474
url: "https://pub.dartlang.org"
7575
source: hosted
76-
version: "2.0.5"
76+
version: "2.0.3"
7777
sky_engine:
7878
dependency: transitive
7979
description: flutter
@@ -106,7 +106,7 @@ packages:
106106
name: string_scanner
107107
url: "https://pub.dartlang.org"
108108
source: hosted
109-
version: "1.0.5"
109+
version: "1.0.4"
110110
term_glyph:
111111
dependency: transitive
112112
description:

Diff for: pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_custom_dialog
22
description: Semantic dialog
3-
version: 1.0.15
3+
version: 1.0.16
44
author: AndroidHensen <[email protected]>
55
homepage: https://github.com/YYFlutter/flutter-custom-dialog.git
66

0 commit comments

Comments
 (0)