Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move on other page #9

Open
tasaddaq-hussain opened this issue Apr 8, 2022 · 2 comments
Open

move on other page #9

tasaddaq-hussain opened this issue Apr 8, 2022 · 2 comments

Comments

@tasaddaq-hussain
Copy link

can you tell me how i move my real screen when i click on icon..

@MartinDewe
Copy link

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 ]

@parthiv0408
Copy link

parthiv0408 commented May 7, 2024

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),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants