Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

Allow async callback function in bubbleSlides Array #6

Closed
lunaticcoding opened this issue Apr 30, 2020 · 2 comments
Closed

Allow async callback function in bubbleSlides Array #6

lunaticcoding opened this issue Apr 30, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@lunaticcoding
Copy link

Is your feature request related to a problem? Please describe.
Some of the widgets I need to be scrolled to first, before highlighting them.

Describe the solution you'd like
Inside the bubbleSlides array, allow for void and async returns. Something like

bubbleSlides: [
      BubbleSlide(key1),
      () async {
            await Scrollable.ensureVisible(key2.currentContext);
      }(),
      BubbleSlide2(key2),
],

Describe alternatives you've considered
Other Packages allow for this feature but don't provide enough flexibility with regards to where to place the explanation text for the highlighted widget.

Additional context
Add any other context or screenshots about the feature request here.

@lunaticcoding lunaticcoding added the enhancement New feature or request label Apr 30, 2020
@Skyost
Copy link
Owner

Skyost commented Apr 30, 2020

Other Packages allow for this feature but don't provide enough flexibility with regards to where to place the explanation text for the highlighted widget.

Can you please provide me an example of such packages ?

@lunaticcoding
Copy link
Author

showcaseview allows it. I can simply do the following:

WidgetsBinding.instance.addPostFrameCallback((_) async {
        ShowCaseWidget.startShowCase(context, [_one, ]));
        await Scrollable.ensureVisible(_two.currentContext);
        ShowCaseWidget.startShowCase(context, [_two, _three]);
});

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

No branches or pull requests

2 participants