PersistentBottomNavBarItem constructor
PersistentBottomNavBarItem({
- required Widget icon,
- Widget? inactiveIcon,
- String? title,
- double contentPadding = 5.0,
- Color activeColorPrimary = CupertinoColors.activeBlue,
- Color? activeColorSecondary,
- Color? inactiveColorPrimary,
- Color inactiveColorSecondary = CupertinoColors.systemGrey,
- double opacity = 1.0,
- ImageFilter? filter,
- TextStyle? textStyle,
- double iconSize = 26.0,
- VoidCallback? onSelectedTabPressWhenNoScreensPushed,
- AnimationController? iconAnimationController,
- ScrollController? scrollController,
- dynamic onPressed()?,
Implementation
PersistentBottomNavBarItem(
{required this.icon,
this.inactiveIcon,
this.title,
this.contentPadding = 5.0,
this.activeColorPrimary = CupertinoColors.activeBlue,
this.activeColorSecondary,
this.inactiveColorPrimary,
this.inactiveColorSecondary = CupertinoColors.systemGrey,
this.opacity = 1.0,
this.filter,
this.textStyle,
this.iconSize = 26.0,
this.onSelectedTabPressWhenNoScreensPushed,
this.iconAnimationController,
this.scrollController,
this.routeAndNavigatorSettings,
this.scrollToTopOnNavBarItemPress = true,
this.onPressed})
: assert(opacity >= 0 && opacity <= 1.0,
"Opacity cannot be greater than 1 and less than 0");