diff --git a/lib/src/showcase/showcase.dart b/lib/src/showcase/showcase.dart index b836ee39..64a0be48 100644 --- a/lib/src/showcase/showcase.dart +++ b/lib/src/showcase/showcase.dart @@ -535,7 +535,7 @@ class _ShowcaseState extends State { late ShowcaseScope _showCaseWidgetManager; - late final int _uniqueId = widget.hashCode; + late final int _uniqueId = UniqueKey().hashCode; @override void initState() { diff --git a/lib/src/showcase/showcase_controller.dart b/lib/src/showcase/showcase_controller.dart index 31e33b48..c09c7101 100644 --- a/lib/src/showcase/showcase_controller.dart +++ b/lib/src/showcase/showcase_controller.dart @@ -310,7 +310,6 @@ class ShowcaseController { targetPadding: config.targetPadding, ), ToolTipWrapper( - key: ValueKey(id), title: config.title, titleTextAlign: config.titleTextAlign, description: config.description, diff --git a/lib/src/utils/overlay_manager.dart b/lib/src/utils/overlay_manager.dart index 7f764483..a15054b3 100644 --- a/lib/src/utils/overlay_manager.dart +++ b/lib/src/utils/overlay_manager.dart @@ -181,7 +181,7 @@ class OverlayManager { // This key is used to force rebuild the overlay when needed. // this key enables `_overlayEntry?.markNeedsBuild();` to detect that // output of the builder has changed. - key: ValueKey(firstShowcaseConfig.hashCode), + key: ValueKey(firstController.id), children: [ GestureDetector( onTap: firstController.handleBarrierTap,