File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -27,5 +27,14 @@ class MyApp extends StatelessWidget {
2727 await Future .delayed (const Duration (seconds: 1 ));
2828 await SmartDialog .dismiss (status: SmartStatus .loading);
2929 SmartDialog .showToast ('test toast' );
30+ // SmartDialog.show(
31+ // builder: (_) {
32+ // return Container(
33+ // color: Colors.white,
34+ // padding: const EdgeInsets.all(30),
35+ // child: const Text('test dialog'),
36+ // );
37+ // },
38+ // );
3039 }
3140}
Original file line number Diff line number Diff line change @@ -233,6 +233,9 @@ class MainDialog {
233233 );
234234
235235 DialogProxy .instance.smartOverlayController.dismiss ();
236+
237+ // safety await
238+ await Future .delayed (const Duration (milliseconds: 20 ));
236239 }
237240
238241 Widget getWidget () => Offstage (offstage: ! visible, child: _widget);
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ description:
33 An elegant Flutter Dialog solution,
44 Easily implement Toast, Loading and custom Dialog,
55 Make the use of the dialog easier!
6- version : 4.9.7+5
6+ version : 4.9.7+6
77homepage : https://github.com/fluttercandies/flutter_smart_dialog
88# flutter pub publish --server=https://pub.dartlang.org
99# flutter build web --release --base-href="/flutter_smart_dialog/web/"
You can’t perform that action at this time.
0 commit comments