pedromassango / bottom_navy_bar

A beautiful and animated bottom navigation
https://youtu.be/jJPSKEEiN-E
Apache License 2.0
1.04k stars 219 forks source link

Adding Tooltip to BottomNavyBar.items #50

Closed sterrenb closed 4 months ago

sterrenb commented 4 years ago

Hello, I would like to add a Tooltip to every item in BottomNavyBar.items.

Currently, the items cannot easily be wrapped in a Tooltip since BottomNavyBar.items has the explicit type List<BottomNavyBarItem>.

Ideally, I think BottomNavyBar.items should be of type List<Widget> instead. Then, the BottomNavyBarItems can be wrapped with other Widgets without impacting the interface.

This works well in existing native Widgets, for example IconButton. IconButton.icon is typically an Icon, but the interface specifies Widget.

What are your thoughts on using the generic Widget type in this case?

pedromassango commented 4 years ago

I will probably work on this in January when I will have more free time.