Open tasaddaq-hussain opened 2 years ago
Create List for navigation pages and warp to the body with the index.
Example :
List Pages = [ HomePage(), History(), Profile(), ];
var tabindex = _SelectedTab.values.indexOf(_selectedTab);
body : Pages[ tabindex ]
Full App Controller
int currentIndex = 0;
void onItemTapped(int index) {
currentIndex = index;
update();
}
List screen = [
HomePage(),
History(),
Profile(),
];
Full App Screen
body: controller.screen.elementAt(controller.currentIndex),
can you tell me how i move my real screen when i click on icon..