"On Page Load" triggered just once

Actions & Logic

Hello everyone,

I have a page A with a button. When I click on this button I get an action that initializes an AppState 'tabbarindex' to 0 or 1, then I navigate to page B.

The page B has a Tabbar with 2 tabs. I select the tab I want according to AppState 'tabbarindex' initialized in page A.

Problem: when I click on the button on page A the first time, I enter in the "On Page Load" of page B (it allows me to select the tab I want), but if I repeat this scenario a second time, I don't enter in the "On Page Load" of page B (for exemple to select the other tab).

Does anyone have a solution for entering in the "On Page Load" of page B each time (without having to create 2 pages, one B0 and one B1)?

What have you tried so far?

lots of testing and research

Did you check FlutterFlow's Documentation for this topic?
Yes
14 replies