I have searched pretty long but sadly can not find a related answer. How can I change the background color of my active route-item? See on the picture or the current Audible or Clock App on the iPhone. I'm using CupertinoTabBar but can´t find any solution to this problem. I just want a rounded Square behind my active item.
Audible App - Bottom Navigation Bar
followed my current Navbar Code
CupertinoTabScaffold(
tabBar: CupertinoTabBar(
iconSize: 30,
activeColor: SymeColorPurple,
backgroundColor: Colors.white,
inactiveColor: Colors.black12,
items: [
BottomNavigationBarItem(
icon: Padding(
padding: const EdgeInsets.only(top: 6.0),
child: Icon(
Icons.settings
),
),
title: Text(
"Inventory",
style: const TextStyle(fontWeight: FontWeight.w600),
),
),
BottomNavigationBarItem(
icon: Padding(
child: Icon(Icons.home),
padding: const EdgeInsets.only(top: 6.0),
),
title: Text(
"Home",
style: const TextStyle(fontWeight: FontWeight.w600),
),
),
BottomNavigationBarItem(
icon: Padding(
child: Icon(
Icons.camera_alt
),
padding: const EdgeInsets.only(top: 6.0),
),
title: Text(
"Camera",
style: const TextStyle(fontWeight: FontWeight.w600),
),
),
],
),
tabBuilder: (context, index) {
switch (index) {
case 0:
return InventoryPage();
break;
case 1:
return HomeView();
break;
case 2:
return CameraPage();
break;
default:
return HomeView();
break;
}
}),