Closed lijy91 closed 3 years ago
Is your feature request related to a problem? Please describe. Same as title
Describe the solution you'd like
FlowBuilder<RegisterFlowState>( state: RegisterFlowState(), onGeneratePages: (state) { return [ MaterialPage<void>(child: RegisterSetNicknameSubPage()), if (state.shouldSetGender) MaterialPage<void>(child: RegisterSetGenderSubPage()), ]; }, onComplete: (state) { Navigator.of(context).pushReplacement( FadeInPageRoute(builder: (_) => HomePage()), ); } );
Describe alternatives you've considered None
Additional context If my current route is the root route, adding onComplete can help me go to the next page better
onComplete
Hi @lijy91 👋 Thanks for opening an issue!
Definitely! I think that's a great idea and is being done as part of #6 👍
This is available as part of v0.0.1-dev.6 🎉
v0.0.1-dev.6
Great
Is your feature request related to a problem? Please describe. Same as title
Describe the solution you'd like
Describe alternatives you've considered None
Additional context If my current route is the root route, adding
onComplete
can help me go to the next page better