Skip to content

Commit

Permalink
process #185
Browse files Browse the repository at this point in the history
  • Loading branch information
xdd666t committed Apr 18, 2024
1 parent 6eca4e9 commit ed6142f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* add checkExist
* fix [#162](https://github.com/fluttercandies/flutter_smart_dialog/issues/162)
* break change: "AlignmentGeometry" adjust to "Alignment"
* fix [#185](https://github.com/fluttercandies/flutter_smart_dialog/issues/185)


# [4.9.0]
Expand Down
2 changes: 1 addition & 1 deletion lib/src/kit/view_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ WidgetsBinding get widgetsBinding => WidgetsBinding.instance;

SchedulerBinding get schedulerBinding => SchedulerBinding.instance;

OverlayState overlay(BuildContext context) => Overlay.of(context)!;
OverlayState overlay(BuildContext context) => Overlay.of(context);
8 changes: 8 additions & 0 deletions lib/src/widget/helper/smart_overlay_entry.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,12 @@ class SmartOverlayEntry extends OverlayEntry {
void markNeedsBuild() {
ViewUtils.addSafeUse(() => super.markNeedsBuild());
}

@override
void remove() {
if(!mounted) {
return;
}
super.remove();
}
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description:
An elegant Flutter Dialog solution,
Easily implement Toast, Loading and custom Dialog,
Make the use of the dialog easier!
version: 4.9.6
version: 4.9.6+1
homepage: https://github.com/fluttercandies/flutter_smart_dialog
# flutter pub publish --server=https://pub.dartlang.org

Expand Down

0 comments on commit ed6142f

Please sign in to comment.