PersistentBottomNavBarItem class
An item widget for the PersistentTabView.
Constructors
Properties
- activeColorPrimary → Color
-
Color for the current selected item in the navigation bar. If
activeColorSecondaryproperty is empty, this will act in its place (recommended).cupertino activeBlueby default.final - activeColorSecondary → Color?
-
Color for the item's
iconandtitle. In most styles, declaring the theactiveColorPrimarywill be enough. But in some styles likestyle7, this might come help in differentiating the colors.final - contentPadding → double
-
Padding of the navigation bar item. Applies on all sides.
5.0by default.final - filter → ImageFilter?
-
Filter used when
opacity < 1.0. Can be used to create 'frosted glass' effect.final - hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Widget
-
Icon for the bar item.
final
- iconAnimationController → AnimationController?
-
For animated icons to work, this property must not be
nullor left empty.final - iconSize → double
-
final
- inactiveColorPrimary → Color?
-
Color for the unselected item(s) in the navigation bar.
final
- inactiveColorSecondary → Color
-
Color for the item's
inactiveIconandtitle. In most styles, declaring the theinactiveColorPrimarywill be enough. But in some styles likestyle7, this might come help in differentiating the colors.final - inactiveIcon → Widget?
-
In-Active icon for the bar item. This is an optional property and will only be used if defined.
final
- onPressed → dynamic Function(BuildContext?)?
-
If you want custom behavior on a press of a NavBar item like display a modal screen, you can declare your logic here.
final
- onSelectedTabPressWhenNoScreensPushed → VoidCallback?
-
Use it when you want to run some code when user presses the NavBar when on the initial screen of that respective tab. The inspiration was taken from the native iOS navigation bar behavior where when performing similar operation, you taken to the top of the list.
final
- opacity → double
-
Enables and controls the transparency effect of the entire NavBar when this tab is selected.
final
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollController → ScrollController?
-
For
scrollToTopOnNavBarItemPressto work, this property must not benullor left empty.final -
If an already selected navigation bar is tapped again, the scroll controller provided in
PersistentBottomNavBarItemwill animate to top.final - textStyle → TextStyle?
-
TextStyleof the title's text.final - title → String?
-
Title for the bar item. Might not appear is some
styles.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