"Tab Initial Index" takes into account the given value once... not when the page is displayed a second time

Actions & Logic

Hello everyone,

I have a pageA which initializes an 'AppStateTabbarindex' with 0 or 1, then it navigate to a pageB.

In pageB I have a Tabbar with 2 tabs, and I initialize the value of "Tab Initial Index" with the value of 'AppStateTabbarindex'.

In pageB I have the value 0 or 1 of 'AppStateTabbarindex' (I check this with a Text widget).

Problem:

- "Tab Initial Index" only takes into account the value of 'AppStateTabbarindex' the first time I arrive on pageB and keeps this value in memory (e.g. if 'AppStateTabbarindex' is equal to 1, Tab 1 is selected).

- But the second time I navigate to pageB, if now 'AppStateTabbarindex' is 0, Tab 0 is not selected.

Could this be due to the latest version of FF, and does anyone have a solution to suggest?

What have you tried so far?

one day of testing and research

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