Skip to content

Commit 7286c8c

Browse files
committed
publish 4.9.8+9
1 parent 24a28e1 commit 7286c8c

File tree

7 files changed

+3
-7
lines changed

7 files changed

+3
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* Fix [#229](https://github.com/fluttercandies/flutter_smart_dialog/issues/229), [#235](https://github.com/fluttercandies/flutter_smart_dialog/issues/235)
1111
* Fix [#248](https://github.com/fluttercandies/flutter_smart_dialog/issues/248)
1212
* Fix [#253](https://github.com/fluttercandies/flutter_smart_dialog/issues/253)
13+
* Merge [#272](https://github.com/fluttercandies/flutter_smart_dialog/pull/272)
1314

1415
* # [4.9.7+x]
1516
* optimize bindWidget, when bindWidget is not null, bindPage will be automatically set to false.

lib/src/custom/custom_dialog.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,6 @@ class CustomDialog extends BaseDialog {
384384
closeType: closeType,
385385
);
386386
customDialog.overlayEntry.remove();
387-
customDialog.overlayEntry.dispose();
388387
}
389388

390389
static DialogInfo? _getDialog({

lib/src/custom/custom_notify.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ class CustomNotify extends BaseDialog {
211211
closeType: closeType,
212212
);
213213
customDialog.overlayEntry.remove();
214-
customDialog.overlayEntry.dispose();
215214
}
216215

217216
static NotifyInfo? _getDialog({String? tag}) {

lib/src/custom/toast/custom_toast.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ class CustomToast extends BaseDialog {
145145
for (var item in toastQueue) {
146146
await ViewUtils.awaitPostFrame(onPostFrame: () {
147147
item.mainDialog.overlayEntry.remove();
148-
item.mainDialog.overlayEntry.dispose();
149148
});
150149
}
151150
toastQueue.clear();
@@ -225,7 +224,6 @@ class CustomToast extends BaseDialog {
225224
Timer(time, () async {
226225
await mainDialog.dismiss();
227226
mainDialog.overlayEntry.remove();
228-
mainDialog.overlayEntry.dispose();
229227
});
230228
}
231229

lib/src/custom/toast/toast_tool.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ class ToastTool {
3838
await curToast.mainDialog.dismiss();
3939
if (curToast.mainDialog.overlayEntry.mounted) {
4040
curToast.mainDialog.overlayEntry.remove();
41-
curToast.mainDialog.overlayEntry.dispose();
4241
}
4342
await Future.delayed(SmartDialog.config.toast.intervalTime);
4443
}
@@ -52,7 +51,6 @@ class ToastTool {
5251
for (var element in toastQueue) {
5352
if (element.mainDialog.overlayEntry.mounted) {
5453
element.mainDialog.overlayEntry.remove();
55-
element.mainDialog.overlayEntry.dispose();
5654
}
5755
}
5856
toastQueue.clear();

lib/src/widget/helper/smart_overlay_entry.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ class SmartOverlayEntry extends OverlayEntry {
1919
return;
2020
}
2121
super.remove();
22+
super.dispose();
2223
}
2324
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.8+8
6+
version: 4.9.8+9
77
homepage: 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/"

0 commit comments

Comments
 (0)