class StartApp extends StatelessWidget {
const StartApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
body: Provider.of<BottomNavBarController>(context)
.widgetOptions
.elementAt(
Provider.of<BottomNavBarController>(context).selectedIndex),
bottomNavigationBar: Container(
decoration: footercontainerDecoration,
child: BottomNavigationBar(
backgroundColor: Colors.white,
currentIndex:
Provider.of<BottomNavBarController>(context).selectedIndex,
onTap: Provider.of<BottomNavBarController>(context).onItemTapped,
type: BottomNavigationBarType.fixed,
selectedItemColor: Colors.black,
selectedLabelStyle: const TextStyle(color: Colors.black),
unselectedItemColor: Colors.grey,
unselectedLabelStyle: const TextStyle(color: Colors.grey),
items: const [
BottomNavigationBarItem(
icon: ImageIcon(
AssetImage("assets/flavicons/home.png"),
),
label: "Home",
),
BottomNavigationBarItem(
icon: ImageIcon(
AssetImage("assets/flavicons/charts.png"),
),
label: "Home"),
BottomNavigationBarItem(
icon: ImageIcon(
AssetImage("assets/flavicons/ticket.png"),
),
label: "Home"),
BottomNavigationBarItem(
icon: ImageIcon(
AssetImage("assets/flavicons/atm.png"),
),
label: "Home"),
],
),
),
);
}
}
Asked
Active
Viewed 35 times
0

Timileyin Bakare
- 1
- 1
-
2Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Dani3le_ May 11 '22 at 15:29
-
Can you include desirable output image ? – Md. Yeasin Sheikh May 11 '22 at 15:41