Skip to content

Commit

Permalink
fix: AnchoredOverlayKey key init (#486)
Browse files Browse the repository at this point in the history
- Fixed anchoredOverlayKey key init
- Improved readability with anchoredOverlayKey init
- Made anchoredOverlayKey immutable
  • Loading branch information
vongrad authored Dec 3, 2024
1 parent d8d494e commit 433095c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/showcase_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class ShowCaseWidgetState extends State<ShowCaseWidget> {
int? activeWidgetId;
RenderBox? rootRenderObject;
Size? rootWidgetSize;
Key? anchoredOverlayKey;
final Key anchoredOverlayKey = UniqueKey();

late final TooltipActionConfig? globalTooltipActionConfig;

Expand Down Expand Up @@ -203,7 +203,6 @@ class ShowCaseWidgetState extends State<ShowCaseWidget> {
rootWidgetSize = rootWidget == null
? MediaQuery.of(context).size
: rootRenderObject?.size;
anchoredOverlayKey = UniqueKey();
});
}

Expand Down

0 comments on commit 433095c

Please sign in to comment.