From d35a8c49fd05aa468385c96966aa97ac460a2a57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Drago=C8=99=20Tiselice?= Date: Thu, 22 Sep 2016 13:50:50 -0700 Subject: [PATCH] Changed BottomNavigationBar background. (#6005) When switching from shifting to fixed, the BottomNavigationBar no longer displays the old color of the background. --- packages/flutter/lib/src/material/bottom_navigation_bar.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter/lib/src/material/bottom_navigation_bar.dart b/packages/flutter/lib/src/material/bottom_navigation_bar.dart index 9a8b390683..a66e40ef46 100644 --- a/packages/flutter/lib/src/material/bottom_navigation_bar.dart +++ b/packages/flutter/lib/src/material/bottom_navigation_bar.dart @@ -446,7 +446,7 @@ class BottomNavigationBarState extends State { new Positioned.fill( child: new Material( // Casts shadow. elevation: 8, - color: _backgroundColor + color: config.type == BottomNavigationBarType.shifting ? _backgroundColor : null ) ), new SizedBox(