fix: BottomNavigationbar colors

This commit is contained in:
Christian Pauly 2021-02-02 16:46:59 +01:00
parent 3ee1c70042
commit 7fa3deaba9

View file

@ -211,13 +211,13 @@ class _HomeViewState extends State<HomeView> {
), ),
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked, floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
bottomNavigationBar: BottomNavigationBar( bottomNavigationBar: BottomNavigationBar(
unselectedItemColor: Colors.black, unselectedItemColor: Theme.of(context).textTheme.bodyText1.color,
currentIndex: currentIndex, currentIndex: currentIndex,
showSelectedLabels: true, showSelectedLabels: true,
showUnselectedLabels: false, showUnselectedLabels: false,
type: BottomNavigationBarType.fixed, type: BottomNavigationBarType.fixed,
elevation: 20, elevation: 20,
backgroundColor: Theme.of(context).scaffoldBackgroundColor, backgroundColor: Theme.of(context).appBarTheme.color,
onTap: (i) { onTap: (i) {
_pageController.animateToPage( _pageController.animateToPage(
i, i,