tutorial_coach_mark icon indicating copy to clipboard operation
tutorial_coach_mark copied to clipboard

TutorialCoachMark overlaps a new instance in hot reaload.

Open SalahAdDin opened this issue 3 years ago • 3 comments

Hello,

Thanks for your help to us with any ew issue.

We have been suffering an overlapping problem with hot realoading: image

It happends when there is a change on TargetFocus widgets most of the time and at hot realoading it just creates a new instance of the coach which overlaps the existing one.

Why does this happen?

SalahAdDin avatar Aug 05 '21 17:08 SalahAdDin

Any updates on this? Thanks

nmazidi avatar Nov 03 '21 10:11 nmazidi

save tutorial instance and show again if u need

if (tutorials.first.instanse != null) { tutorials.first.instanse.show(); return; } var tutorial = TutorialCoachMark(context,.......

ashkryab-fl avatar Dec 07 '21 12:12 ashkryab-fl

call setState after calling "show()"

ashkryab-fl avatar Dec 07 '21 13:12 ashkryab-fl

call setState after calling "show()"

Can you share a gist or a full piece of code?

Thanks.

SalahAdDin avatar Feb 18 '23 20:02 SalahAdDin