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.
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 aaddPostFrameCallbackininitStatefor my route, but the intro didn't show reliably. I guessed a race condition, and I think I'm right._IntroStepBuilderStateand perhaps other places useaddPostFrameCallbackto 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.