Skip to content

[Bug] overlayBuilder race condition? #23

@EnduringBeta

Description

@EnduringBeta

Thank you for creating this package. I want to suggest that the documentation explain how best to show an intro on route load.

I tried to simply call Intro.start() in a addPostFrameCallback in initState for my route, but the intro didn't show reliably. I guessed a race condition, and I think I'm right. _IntroStepBuilderState and perhaps other places use addPostFrameCallback to build _stepsMap.

Once I added a Future.delayed() of 10ms, the guide shows reliably.

Is there a better technique? If not, this being in the readme would be helpful, I think.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions