Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to hide the skip button on last target? #103

Closed
Wesleychung93 opened this issue Jan 12, 2022 · 8 comments
Closed

How to hide the skip button on last target? #103

Wesleychung93 opened this issue Jan 12, 2022 · 8 comments

Comments

@Wesleychung93
Copy link

I understood there is a hideSkip property when initializing the TutorialCoachMark, Appreciate could you guide how to hide skip button on last/final target ?

@chenrilima
Copy link

chenrilima commented Feb 14, 2022

I don't know if is possible, i know that you can put skip button in all steps from tutorial.

@Wesleychung93
Copy link
Author

@chenrilima What's the point adding skip button on last step/target from tutorial ? IMO, the skip button should be hide automatically when reach to last step from tutorial

@dragongesa
Copy link

absolutely agreed

@pratik97179
Copy link

@Wesleychung93 There is no way to conditionally show or hide the built-in skip button but there is a workaround for this. You will have to add the skip button as a TargetContent for each target and in the onTap property, you can call the skip() method on your TutorialCoachMark variable. Don't add the skip button on the last screen. It's can cause code redundancy, but this is the only way by which we can have the skip button removed from the last screen

@felipecastrosales
Copy link

@RafaelBarbosatec we can close this issue as it has already been resolved in version 1.2.6.

@atrope
Copy link
Contributor

atrope commented Feb 28, 2023

IMHO this should be a breaking change and we should have the option to show "Skip" or Any other text/widget we want in the last (or only) target.

In our app it changed the behaviour of our 1-step tutorial and user now need to click the target only instead of the "ok" to skip.

I urge you to reconsider @RafaelBarbosatec or at least make it optional.

@RafaelBarbosatec
Copy link
Owner

Good point @atrope ! I will make it optional!

@atrope
Copy link
Contributor

atrope commented Mar 13, 2023

@RafaelBarbosatec 1.2.7 is ok the only thing i would argue is that for this is to be a non-breaking change showSkipInLastTarget should be true by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants