File tree Expand file tree Collapse file tree 5 files changed +10
-7
lines changed Expand file tree Collapse file tree 5 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 9
9
* Add AdjustBuilder
10
10
* Fix [ #229 ] ( https://github.com/fluttercandies/flutter_smart_dialog/issues/229 ) , [ #235 ] ( https://github.com/fluttercandies/flutter_smart_dialog/issues/235 )
11
11
* Fix [ #248 ] ( https://github.com/fluttercandies/flutter_smart_dialog/issues/248 )
12
+ * Fix [ #253 ] ( https://github.com/fluttercandies/flutter_smart_dialog/issues/253 )
12
13
13
14
* # [ 4.9.7+x]
14
15
* optimize bindWidget, when bindWidget is not null, bindPage will be automatically set to false.
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ class SmartDialogPage extends StatelessWidget {
111
111
SmartDialog .showAttach (
112
112
targetContext: context,
113
113
alignment: Alignment .bottomCenter,
114
- animationType: SmartAnimationType .scale ,
114
+ animationType: SmartAnimationType .centerScale_otherSlide ,
115
115
builder: (_) {
116
116
return Container (height: 50 , width: 30 , color: Colors .red);
117
117
},
Original file line number Diff line number Diff line change @@ -136,8 +136,8 @@ class _AttachWidgetState extends State<AttachWidget>
136
136
_originChild = widget.originChild;
137
137
_postFrameOpacity = 0 ;
138
138
139
- if (widget.targetContext != null ) {
140
- final renderBox = widget.targetContext ! . findRenderObject () as RenderBox ;
139
+ final renderBox = widget.targetContext ? . findRenderObject () as RenderBox ? ;
140
+ if ( renderBox != null ) {
141
141
targetOffset = renderBox.localToGlobal (Offset .zero);
142
142
targetSize = renderBox.size;
143
143
}
Original file line number Diff line number Diff line change @@ -32,9 +32,11 @@ class _ToastHelperState extends State<ToastHelper> with WidgetsBindingObserver {
32
32
ViewUtils .addSafeUse (() {
33
33
if (! mounted) return ;
34
34
35
- final renderBox = _childContext! .findRenderObject () as RenderBox ;
36
- selfOffset = renderBox.localToGlobal (Offset .zero);
37
- selfSize = renderBox.size;
35
+ final renderBox = _childContext? .findRenderObject () as RenderBox ? ;
36
+ if (renderBox != null ) {
37
+ selfOffset = renderBox.localToGlobal (Offset .zero);
38
+ selfSize = renderBox.size;
39
+ }
38
40
_dealKeyboard ();
39
41
});
40
42
super .initState ();
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ description:
3
3
An elegant Flutter Dialog solution,
4
4
Easily implement Toast, Loading and custom Dialog,
5
5
Make the use of the dialog easier!
6
- version : 4.9.8+6
6
+ version : 4.9.8+7
7
7
homepage : https://github.com/fluttercandies/flutter_smart_dialog
8
8
# flutter pub publish --server=https://pub.dartlang.org
9
9
# flutter build web --release --base-href="/flutter_smart_dialog/web/"
You can’t perform that action at this time.
0 commit comments