flutter_showcaseview icon indicating copy to clipboard operation
flutter_showcaseview copied to clipboard

let user possibility to interact directly with target widget

Open Dekhnar opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. No.

Describe the solution you'd like My targeted widget has two buttons, one for accepting the other for refusing. I would be nice, if you can propagate gesture event to the target children for letting the user ability to click on those buttons and managing the showcase flow manually? Currently onTap from TargetWidget handles the event and then stops propagating.

Dekhnar avatar Aug 07 '22 22:08 Dekhnar

I find a workaround and programmatically running my wanted action.

Dekhnar avatar Aug 09 '22 12:08 Dekhnar

@Dekhnar It will be great if you can share some information regarding the same feature you required in way of code, screenshots or workaround you have found.

DhavalRKansara avatar Aug 10 '22 04:08 DhavalRKansara

I used onTargetClick function exposed by Showcase Widget to fired an event into my event bus, listen to this event and then execute my action.

Dekhnar avatar Aug 11 '22 10:08 Dekhnar

@DhavalRKansara I would be great if we can manually manage gesture. Maybe possible by letting us set null onTap, onLongPress, onDoubleTap there : https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/blob/8af0bc1f3924b92e06275cff11c9dc79a49c37b4/lib/src/showcase.dart#L382 Or letting us change the hitBehavior

Dekhnar avatar Aug 11 '22 11:08 Dekhnar

@Dekhnar Sure, We will check on it from our end we will let you know if plan to make those changes...

DhavalRKansara avatar Aug 17 '22 06:08 DhavalRKansara

Hi @Dekhnar , I tried to investigate your suggestion and I belive the current behaviour is implemented because usually the target widget has their own action(like screen change) which is not required to be performed while showcase of the application feature. And even if that is the necessory behaviour then user can use the different call back of gesture like onTap, onDoubleTap or onLongPress. Please let us know if there is any other usecase you require ?

vatsaltanna avatar Aug 20 '22 18:08 vatsaltanna

Hi @vatsaltanna, for example if you want to let the user swiping a card to the right, onTap, onDoubleTap, orLongPress will not be enought. By letting us setting behaviour on the focused area, we will be able to catch these king of gesture.

Dekhnar avatar Aug 21 '22 11:08 Dekhnar

Got it, Thanks for the information. I will work on this feature soon. Thanks for reporting.

vatsaltanna avatar Aug 21 '22 13:08 vatsaltanna