Skip to content

Commit bb6fe9d

Browse files
author
xuyingjun
committed
Add Log v1.0.10
1 parent 7a229f0 commit bb6fe9d

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,8 @@
3737

3838
## 1.0.9
3939

40-
* Update Android kotlin version to 1.3.0
40+
* Update Android kotlin version to 1.3.0
41+
42+
## 1.0.10
43+
44+
* add Log

README.md

+1-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.9
20+
flutter_custom_dialog: ^1.0.10
2121
```
2222
2323
**2、import**

README_CN.md

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

1616
```yaml
1717
dependencies:
18-
flutter_custom_dialog: ^1.0.9
18+
flutter_custom_dialog: ^1.0.10
1919
```
2020
2121
**2、import**

lib/flutter_custom_dialog.dart

+8-6
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ class YYDialog {
189189
Color activeColor,
190190
Function(int) onClickItemListener,
191191
}) {
192-
Size size = MediaQuery.of(context).size;
192+
Size size = MediaQuery
193+
.of(context)
194+
.size;
193195
return this.widget(
194196
Container(
195197
height: height,
@@ -377,6 +379,7 @@ class CustomDialogChildState extends State<CustomDialogChildren> {
377379

378380
@override
379381
void dispose() {
382+
print('[YYDialog] Your dialog has been dismiss');
380383
widget.isShowingChange(false);
381384
super.dispose();
382385
}
@@ -404,7 +407,8 @@ class CustomDialog {
404407
bool gravityAnimationEnable,
405408
Function animatedFunc,
406409
bool barrierDismissible,
407-
}) : _child = child,
410+
})
411+
: _child = child,
408412
_context = context,
409413
_gravity = gravity,
410414
_gravityAnimationEnable = gravityAnimationEnable,
@@ -431,19 +435,17 @@ class CustomDialog {
431435
transitionBuilder: _transitionsBuilder ?? _buildMaterialDialogTransitions,
432436
pageBuilder: (BuildContext buildContext, Animation<double> animation,
433437
Animation<double> secondaryAnimation) {
434-
print('[YYDialog] buildContext => #$buildContext');
438+
print('[YYDialog] Your dialog has been shown');
435439
return Builder(
436440
builder: (BuildContext context) {
437-
print('[YYDialog] context => #$context');
438441
return _child;
439442
},
440443
);
441444
},
442445
);
443446
}
444447

445-
Widget _buildMaterialDialogTransitions(
446-
BuildContext context,
448+
Widget _buildMaterialDialogTransitions(BuildContext context,
447449
Animation<double> animation,
448450
Animation<double> secondaryAnimation,
449451
Widget child) {

0 commit comments

Comments
 (0)