Changed BottomNavigationBar background. (#6005)

When switching from shifting to fixed, the BottomNavigationBar no
longer displays the old color of the background.
This commit is contained in:
Dragoș Tiselice
2016-09-22 13:50:50 -07:00
committed by GitHub
parent 49df2354e6
commit d35a8c49fd

View File

@@ -446,7 +446,7 @@ class BottomNavigationBarState extends State<BottomNavigationBar> {
new Positioned.fill(
child: new Material( // Casts shadow.
elevation: 8,
color: _backgroundColor
color: config.type == BottomNavigationBarType.shifting ? _backgroundColor : null
)
),
new SizedBox(