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

I request a skip button to stop showcasing the widgets. #99

Closed
giritlgc opened this issue Apr 16, 2021 · 14 comments
Closed

I request a skip button to stop showcasing the widgets. #99

giritlgc opened this issue Apr 16, 2021 · 14 comments
Labels
enhancement New feature or request

Comments

@giritlgc
Copy link

I am very happy using this package. I have one request for a feature. I want an option to skip the process of showcasing the widgets.

For example, If I have five widgets to show, the process starts showing each widget in a sequence. Right now, I need to look at all widgets to complete the process. I want to stop the process after looking first two widgets.

Please add a feature that enables user to skip or stop the process in the middle of squence.

@giritlgc giritlgc changed the title I request a skip button to stop the stop showcasing the widgets. I request a skip button to stop showcasing the widgets. Apr 16, 2021
@mike-gallego
Copy link

This would be useful

@BirjuVachhani BirjuVachhani added the enhancement New feature or request label Apr 21, 2021
@GarryLaly
Copy link

You can make it self UI for Skip, with run method

ShowCaseWidget.of(context).dismiss();

@AMuellerAtAHS
Copy link

ShowCaseWidget.of(context).dismiss();

@GarryLaly
Could you describe how to do this? Is there a way to show a button or dialog, while the showcase is running?

@AMuellerAtAHS
Copy link

Ok I find a solution for that. If anybody is interested.
You can use Showcase.withWidget() constructor.

Showcase.withWidget(
   key: YOURWIDGETKEY,
   width: double.infinity, // need fix width, you can use the whole width like this
   height: MediaQuery.of(context).size.height / 2, // for displaying showcase upper or lower to the widget
   container: Container(
      width: MediaQuery.of(context).size.width - 24
      child: Column(
         children: [
            Text("Title", style: Theme.of(context).textTheme.headline6),
            Text("Description"),
            Divider(),
            TextButton(
               style: TextButton.styleFrom(primary: Colors.grey),
               child: Text("skip"),
               onPressed: ShowCaseWidget.of(context).dismiss, // dismisses the current showcase procedure
            ),
         ],
      ),
   ),
)

@SalishKumar
Copy link

@AMuellerAtAHS, how did you show the skip button throughout the app tour?

@Anneress
Copy link

Anneress commented Nov 24, 2021

@SalishKumar

@AMuellerAtAHS, how did you show the skip button throughout the app tour?

I don't understand this question. Can you please explain it?

@MehmetMcfly
Copy link

@SalishKumar

@AMuellerAtAHS, how did you show the skip button throughout the app tour?

I don't understand this question. Can you please explain it?

With the method of @AMuellerAtAHS the dismiss button/option will only be shown for the Showcase you are including it in.
It would make more sense to have one button somewhere on the screen that skips the showcase.

I couldn't find a way to overlay the showcase with a button to do this. When I use a stack, the button seems to get blurred and stay "behind" the showcasewidget.

@vitulgoyani
Copy link

any update for the skip button?

@amatier2
Copy link

any update for the skip button?

If you use Showcase.withWidget() you can pass in any widget to be the "dialog" that pops up. Inside there you can use a button with an onPressed set to ShowCaseWidget.of(context)!.dismiss() to skip, unless you are looking to just skip the current step then the logic gets a little fuzzy.

@AMuellerAtAHS
Copy link

There is a pull request waiting to get reviewed and merged: #156

@sharpsaravanan
Copy link

Please add the global skip button

1 similar comment
@qpalzm963
Copy link

Please add the global skip button

@pawarn
Copy link

pawarn commented Sep 21, 2023

I need a similar global skip button (to skip all sequences) and NEXT button (to go next sequence) button in Showcaseview

@MehmetMcfly @sharpsaravanan @qpalzm963 Did you find any alternate solution for this?

@aditya-css
Copy link
Collaborator

One can certainly use Showcase.withWidget to create a custom skip button along with ShowCaseWidget.of(context).dismiss() function. If it is desired that such a button stays at a constant place and not attached to any particular Showcase then an issue (#395) with PR (#396) is already open and thus I am closing this one. Thanks for participating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet