I'm creating a Bottom Navigation Bar with Container. there is this color in the background which I'm trying to eliminate. I need to solve it
How can I remove that color in the background?
@override
Widget build(BuildContext context) {
return Scaffold(
extendBody: true,
body: pages[pageIndex],
bottomNavigationBar: Container(
width: double.infinity,
height: Sizes.height_120,
decoration: BoxDecoration(
color: Colors.black.withOpacity(0.5),
boxShadow: AppShadows.navBarBoxShadow,
),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.center,
children: List.generate(
pages.length,
(index) => BottomNavigationIcons(
imageName: pageIndex == index
? activeIcons[index]
: inactiveIcons[index],
vertical: index == 0 ? 28 : 36,
onTap: () {
setState(() {
pageIndex = index;
});
},
),
),
),
),
);
}