Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
faiyaz-shaikh committed Feb 24, 2022
1 parent 40463a6 commit f23ea07
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] - November 29, 2021 [Unreleased]

- Fixed [#173](https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/issues/173) - showArrow not working
- Fixed [#179](https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/issues/179) - Add condition for determine state is active

## [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 f23ea07

Please sign in to comment.