From 248d1fe13f113714351a2335b6f574bec64e7ac5 Mon Sep 17 00:00:00 2001 From: Parth Baraiya <36261739+ParthBaraiya@users.noreply.github.com> Date: Fri, 25 Feb 2022 11:12:02 +0530 Subject: [PATCH] :bug: fix issue #182 fetch blur value from context only when _showShowCase is true. (#191) --- CHANGELOG.md | 5 +++-- lib/src/showcase.dart | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 51c77fc9..8abae46a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,9 @@ -## [1.1.5] - December 2, 2021 [Unreleased] +## [1.1.5] - February 24, 2022 [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 +- Fixed [#121](https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/issues/121) - SlideTransition widget in tooltip_widget.dart is constantly rebuilding even after the showcasing is supposed to have stopped +- Fixed [#182](https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/issues/182) - Not providing blurValue causes Exception: Please provide ShowCaseView context ## [1.1.4] - November 26, 2021 diff --git a/lib/src/showcase.dart b/lib/src/showcase.dart index c91c1202..216bcf83 100644 --- a/lib/src/showcase.dart +++ b/lib/src/showcase.dart @@ -225,7 +225,10 @@ class _ShowcaseState extends State { Rect rectBound, Size screenSize, ) { - var blur = widget.blurValue ?? (ShowCaseWidget.of(context)?.blurValue) ?? 0; + var blur = 0.0; + if (_showShowCase) { + blur = widget.blurValue ?? (ShowCaseWidget.of(context)?.blurValue) ?? 0; + } // Set blur to 0 if application is running on web and // provided blur is less than 0.