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 {
27
27
await Future .delayed (const Duration (seconds: 1 ));
28
28
await SmartDialog .dismiss (status: SmartStatus .loading);
29
29
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
+ // );
30
39
}
31
40
}
Original file line number Diff line number Diff line change @@ -233,6 +233,9 @@ class MainDialog {
233
233
);
234
234
235
235
DialogProxy .instance.smartOverlayController.dismiss ();
236
+
237
+ // safety await
238
+ await Future .delayed (const Duration (milliseconds: 20 ));
236
239
}
237
240
238
241
Widget getWidget () => Offstage (offstage: ! visible, child: _widget);
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.7+5
6
+ version : 4.9.7+6
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