I have an onboarding flow that asks for user's input which shares the same top bar showing the current progress.
My initial attempt was using a horizontal pager. The structure is a Scaffold with top bar showing the progress bar, a bottom bar that varies based on the current step, and the main content is the horizontal pager.
However, with this approach, the onboarding flow composable is becoming a bit bloated.
With Nav3, I am wondering if
SceneStrategy
could a good fit for this scenario. The scene would be responsible for handling the shared top progress bar and each step in the onboarding flow is a
NavEntry
. Also, how should I scope the ViewModel so that it's only shared among these NavEntry.