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?
Hello, I would like to add a
Tooltip
to every item inBottomNavyBar.items
.Currently, the items cannot easily be wrapped in a
Tooltip
sinceBottomNavyBar.items
has the explicit typeList<BottomNavyBarItem>
.Ideally, I think
BottomNavyBar.items
should be of typeList<Widget>
instead. Then, theBottomNavyBarItem
s can be wrapped with other Widgets without impacting the interface.This works well in existing native Widgets, for example
IconButton
.IconButton.icon
is typically anIcon
, but the interface specifiesWidget
.What are your thoughts on using the generic
Widget
type in this case?