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

使用BottomNavigationBar切换页面时,状态未更改也会build page #503

Open
nancy54264 opened this issue Oct 25, 2019 · 1 comment

Comments

@nancy54264
Copy link

`
List pages = [
Page1.buildPage(null),
Page2.buildPage(null),
];

// app view ......
Scaffold(
body: pages[state.pageIndex],
bottomNavigationBar:BottomNavigationBar(
...

onTap(int index){
dispatch(AppActionCreator.changePageAction(index));
}
)
)

`

@zjuwjf
Copy link
Contributor

zjuwjf commented Oct 28, 2019

不是很清楚你的描述,是哪一个page-rebuild?state.pageIndex状态没变化?

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

2 participants