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,
- Function? onSelectedTabPressWhenNoScreensPushed,
- 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.routeAndNavigatorSettings = const RouteAndNavigatorSettings(),
this.onPressed}) {
assert(opacity >= 0 && opacity <= 1.0);
}