BottomBarItem class
Constructors
- BottomBarItem({required Widget icon, required Widget? title, Widget? selectedIcon, Color? backgroundColor, Color unSelectedColor = Colors.grey, Color selectedColor = Colors.green, Widget? badge, Color badgeColor = Colors.grey, bool showBadge = false, EdgeInsets? badgePadding, Color borderColor = Colors.black})
Properties
- backgroundColor → Color?
-
The
backgroundColor
property is used to assign a backgroundColor to BottomBarItem. If a value is assigned to this property, the BottomBarItem will be displayed with the specified backgroundColor. If value is not assigned or null, the selectedColor and unSelectedColor properties will be used to determine the color of the BottomBarItem.final - badge → Widget?
-
Set the widget to display as a badge
final
- badgeColor → Color
-
Change the badge color
final
- badgePadding → EdgeInsets?
-
The badgePadding property is used to set the padding for the badge label.
It specifies the amount of space to be left around the badge label content.
final
- borderColor → Color
-
Use this to change the border color
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Widget
-
Use this to add item icon
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedColor → Color
-
Use this to change the selected item's icon color
default color is Colors.green
final
- selectedIcon → Widget?
-
Use this to change the selected item icon
final
- showBadge → bool
-
Use this to show or hide the badge
final
- title → Widget?
-
Use this to add item title
final
- unSelectedColor → Color
-
Use this to change the unselected item's icon color
default color is Colors.grey
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