File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class DialogProxy {
42
42
factory DialogProxy () => instance;
43
43
static DialogProxy ? _instance;
44
44
45
- static DialogProxy get instance => _instance ?? = DialogProxy ._ ();
45
+ static DialogProxy get instance => _instance ?? = DialogProxy ._internal ();
46
46
47
47
static late BuildContext contextCustom;
48
48
static late BuildContext contextAttach;
@@ -54,12 +54,12 @@ class DialogProxy {
54
54
///set default toast widget
55
55
late FlutterSmartToastBuilder toastBuilder;
56
56
57
- DialogProxy ._();
58
-
59
- void initialize (Set <SmartInitType > initType) {
57
+ DialogProxy ._internal () {
60
58
config = SmartConfig ();
61
59
dialogQueue = ListQueue ();
60
+ }
62
61
62
+ void initialize (Set <SmartInitType > initType) {
63
63
if (initType.contains (SmartInitType .loading)) {
64
64
entryLoading = SmartOverlayEntry (builder: (_) => _loading.getWidget ());
65
65
_loading = CustomLoading (overlayEntry: entryLoading);
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.8.1
6
+ version : 4.8.2
7
7
homepage : https://github.com/fluttercandies/flutter_smart_dialog
8
8
# flutter pub publish --server=https://pub.dartlang.org
9
9
You can’t perform that action at this time.
0 commit comments