Skip to content

Commit

Permalink
fix: 🐛 Fixed Null check operator used on a null value (#449) (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
manoj-simform authored May 31, 2024
1 parent 078a2ac commit c0f67f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## [3.0.0]
- [BREAKING] Fixed [#434](https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/issues/434) removed deprecated text style after Flutter 3.22 follow [migration guide](https://docs.flutter.dev/release/breaking-changes/3-19-deprecations#texttheme)
- Updated minimum support to dart sdk 2.18.0
- Fixed [#449](https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/issues/449) - Null check operator used on a null value

## [2.1.1]
- Fixed [#425](https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/issues/425) - Unhandled breaking change in v2.1.0
Expand Down
1 change: 1 addition & 0 deletions lib/src/showcase.dart
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ class _ShowcaseState extends State<Showcase> {

void initRootWidget() {
WidgetsBinding.instance.addPostFrameCallback((_) {
if (!mounted) return;
rootWidgetSize = showCaseWidgetState.rootWidgetSize;
rootRenderObject = showCaseWidgetState.rootRenderObject;
});
Expand Down
1 change: 1 addition & 0 deletions lib/src/showcase_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ class ShowCaseWidgetState extends State<ShowCaseWidget> {

void initRootWidget() {
WidgetsBinding.instance.addPostFrameCallback((_) {
if (!mounted) return;
final rootWidget = context.findAncestorStateOfType<State<WidgetsApp>>();
rootRenderObject = rootWidget?.context.findRenderObject() as RenderBox?;
rootWidgetSize = rootWidget == null
Expand Down

0 comments on commit c0f67f1

Please sign in to comment.