Skip to content

Update BottomNavigationBar.didUpdateWidget() - #20890

Merged
HansMuller merged 2 commits into
flutter:masterfrom
HansMuller:bottom_navbar_background
Aug 22, 2018
Merged

HansMuller merged 2 commits into
flutter:masterfrom
HansMuller:bottom_navbar_background

Conversation

@HansMuller

Copy link
Copy Markdown
Contributor

BottomNavigationBar's state needs to update _backgroundColor when its configuration changes.

Fixes #19653

The original version of this fix was provided by @nathansamson in #19661.

@gspencergoog

Copy link
Copy Markdown
Contributor

32384589-a60f0e74-c078-11e7-9bc1-e5b5287aea9d

@HansMuller
HansMuller merged commit 18e7549 into flutter:master Aug 22, 2018
@HansMuller
HansMuller deleted the bottom_navbar_background branch August 22, 2018 00:10
tvolkert pushed a commit that referenced this pull request Nov 7, 2018
…g tabs (#22264)

Should fix #22226.

Code introduced in #20890 caused a regression that broke color flooding animations in a BottomNavigationBar that has BottomNavigationBarType.shifting.

The original issue (#19653) dealt with background color changes not occurring until another tab was selected. The result is that the background color instantly changes whenever the state changes and when the widget changes, instead of allowing a new widget to animate the background color change.
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BottomNavigationBar uses the wrong theme

3 participants