BottomNavigationBarItem class

An interactive button within either material's BottomNavigationBar or the iOS themed CupertinoTabBar with an icon and title.

This class is rarely used in isolation. It is typically embedded in one of the bottom navigation widgets above.

See also:

Constructors

BottomNavigationBarItem({Key? key, required Widget icon, String? label, Widget? activeIcon, Color? backgroundColor, String? tooltip})
Creates an item that is used with BottomNavigationBar.items.
const

Properties

activeIcon Widget
An alternative icon displayed when this bottom navigation item is selected.
final
backgroundColor Color?
The color of the background radial animation for material BottomNavigationBar.
final
hashCode int
The hash code for this object.
no setterinherited
icon Widget
The icon of the item.
final
key Key?
A key to be passed through to the resultant widget.
final
label String?
The text label for this BottomNavigationBarItem.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tooltip String?
The text to display in the Tooltip for this BottomNavigationBarItem.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited