StxBottomNavBar constructor

const StxBottomNavBar({
  1. Key? key,
  2. required List<StxBottomNavBarItem> items,
  3. int activeIndex = 0,
  4. ValueChanged<int>? onTap,
  5. Color backgroundColor = Colors.white,
  6. double navBarHeight = 80.0,
  7. EdgeInsets navBarPadding = const EdgeInsets.all(0),
  8. EdgeInsets navBarItemsPadding = const EdgeInsets.all(0),
  9. NavBarDecoration? navBarDecoration,
  10. NavBarStyle navBarStyle = NavBarStyle.style6,
  11. bool hideNavigationBar = false,
  12. bool confineToSafeArea = true,
  13. ItemAnimationProperties? itemAnimationProperties,
  14. dynamic onAnimationComplete(
    1. bool,
    2. bool
    )?,
  15. NeumorphicProperties? neumorphicProperties = const NeumorphicProperties(),
})

Implementation

const StxBottomNavBar({
  Key? key,
  required this.items,
  this.activeIndex = 0,
  this.onTap,
  this.backgroundColor = Colors.white,
  this.navBarHeight = 80.0,
  this.navBarPadding = const EdgeInsets.all(0),
  this.navBarItemsPadding = const EdgeInsets.all(0),
  this.navBarDecoration,
  this.navBarStyle = NavBarStyle.style6,
  this.hideNavigationBar = false,
  this.confineToSafeArea = true,
  this.itemAnimationProperties,
  this.onAnimationComplete,
  this.neumorphicProperties = const NeumorphicProperties(),
}) : super(key: key);