I am adding children to tab navigator dynamically . Now this
is the problem that I am facing.
I have a list of tabs from which the user can choose for the
tabs that he wants to add to the tab navigator.
Suppose the list is:
Now, to begin with user selects Child 1 & Child 2.
In the tab Navigator he selects 2nd tab, i.e., Child 2.
Now, he goes back to the list and selects Child 3 & Child
In the code, I am doing:
tabNavigator.selectedIndex = 0;
The surprising thing is that now in tab navigator, the
contents of selected tab are those of Child 3 but the name is shown
as Child 4. Then when I click on Child 3, then the selected name
Can anyone suggest a work-around for this or is there
something that I am missing?
Thanks for replying:) I am sorry for acknowledging so late. I
tried the above method but it gives rise to another problem. I am
calling a method when any of the tabs in the tab navigator is
clicked for the first time. After using callLater() that method is
not called for the first time the tabs are visited. However if I
visit the tabs the second time, it gets called! So, may be I need