Skip to content

Commit

Permalink
Fix bug #150 (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
faiyaz-shaikh authored Feb 24, 2022
1 parent d0b2a0c commit 617e95a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## [1.1.5] - December 2, 2021 [Unreleased]

- Fixed [#173](https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/issues/173) - showArrow not working
- Fixed [#150](https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/issues/150) - Add condition for determine state is active
- Fixed [#121](https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/issues/121) - SlideTransition widget in tooltip_widget.dart is constantly rebuildung even after the showcasing is supposed to have stopped

## [1.1.4] - November 26, 2021
Expand Down
14 changes: 8 additions & 6 deletions lib/src/layout_overlays.dart
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,14 @@ class _OverlayBuilderState extends State<OverlayBuilder> {
}

void addToOverlay(OverlayEntry overlayEntry) async {
if (ShowCaseWidget.of(context)?.context != null &&
Overlay.of(ShowCaseWidget.of(context)!.context) != null) {
Overlay.of(ShowCaseWidget.of(context)!.context)!.insert(overlayEntry);
} else {
if (Overlay.of(context) != null) {
Overlay.of(context)!.insert(overlayEntry);
if (mounted) {
if (ShowCaseWidget.of(context)?.context != null &&
Overlay.of(ShowCaseWidget.of(context)!.context) != null) {
Overlay.of(ShowCaseWidget.of(context)!.context)!.insert(overlayEntry);
} else {
if (Overlay.of(context) != null) {
Overlay.of(context)!.insert(overlayEntry);
}
}
}
}
Expand Down

0 comments on commit 617e95a

Please sign in to comment.