How can I use my image like icon in BottomNavigationItem? I have something like this:
BottomNavigationBarItem(
icon: Icon(
Icons.schedule,
),
But want:
BottomNavigationBarItem(
icon: Image.asset("name")
),
icon property is a Widget icon
so you can pass an Image like that or any other widget just fine
Here is the documentation
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.