From 46766181a53a199b1bdbaf30d2f675dde6b23e74 Mon Sep 17 00:00:00 2001 From: Pawan Bangar <34831511+pawanbangar@users.noreply.github.com> Date: Wed, 7 Aug 2024 08:06:33 +0530 Subject: [PATCH] Update showcase.dart added prop allowTargetInteraction which will allow target's default behaviour --- lib/src/showcase.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/src/showcase.dart b/lib/src/showcase.dart index 1779f98b..895b20f7 100644 --- a/lib/src/showcase.dart +++ b/lib/src/showcase.dart @@ -252,6 +252,8 @@ class Showcase extends StatefulWidget { /// Defaults to 7. final double toolTipSlideEndDistance; + final bool allowTargetInteraction; + const Showcase({ required this.key, required this.description, @@ -298,6 +300,7 @@ class Showcase extends StatefulWidget { this.onBarrierClick, this.disableBarrierInteraction = false, this.toolTipSlideEndDistance = 7, + this.allowTargetInteraction = false }) : height = null, width = null, container = null, @@ -339,6 +342,7 @@ class Showcase extends StatefulWidget { this.onBarrierClick, this.disableBarrierInteraction = false, this.toolTipSlideEndDistance = 7, + this.allowTargetInteraction = false }) : showArrow = false, onToolTipClick = null, scaleAnimationDuration = const Duration(milliseconds: 300), @@ -587,6 +591,7 @@ class _ShowcaseState extends State { ), if (_isScrollRunning) Center(child: widget.scrollLoadingWidget), if (!_isScrollRunning) ...[ + if(!widget.allowTargetInteraction) _TargetWidget( offset: rectBound.topLeft, size: size,