BottomNavigationItemIconExtension extension
Extension on Icon that provides convenient methods for creating BottomNavigationBarItem instances.
This extension simplifies the process of converting an Icon widget into a BottomNavigationBarItem for use in bottom navigation bars.
Example usage:
Icon(Icons.home).bottomNavigationItem(
'Home',
activeIcon: Icon(Icons.home_filled),
tooltip: 'Navigate to home screen',
)
- on
Methods
-
Available on Icon, provided by the BottomNavigationItemIconExtension extension
Creates a BottomNavigationBarItem using this icon.