bottomNavigationBar: BottomNavigationBar(
items: bottomTabs.map((text) => BottomNavigationBarItem(
icon: Icon(bottomTabIcon[text]),
label: text,
)).toList(),
currentIndex: _selectIndex,
unselectedItemColor: Colors.grey,
selectedItemColor: Colors.red,
unselectedIconTheme: IconThemeData(color: Colors.orange),
selectedIconTheme: IconThemeData(color: Colors.cyanAccent),
unselectedLabelStyle: TextStyle(color: Colors.green),
selectedLabelStyle: TextStyle(color: Colors.yellow),
iconSize: 30,
type: BottomNavigationBarType.fixed,
onTap: (index) {
setState(() {
_selectIndex = index;
});
},
),