App keeps redirecting to homepage on navigation

Resolved

I have a list of conditional actions occurring on homepage page load that redirect user to specific parts of the onboarding journey to ensure that they complete the journey. (E.g., if a user closes the app during the onboarding questionnaire, they are automatically redirected to the questionnaire - is there a better way of doing this?).

Sometimes when I navigate to a new page, the conditional actions above get triggered and the user is immediately taken to another page, i.e. it seems that the Flutter app briefly redirects user to the Homepage before it continues to the originally specified page.

Is there a way this behaviour can be prevented? Or would anyone have a suggestion how to achieve the above better?

3
4 replies