EaseNavBar constructor

EaseNavBar({
  1. Key? key,
  2. int selectedIndex = 0,
  3. double height = 60,
  4. bool showElevation = true,
  5. double iconSize = 20,
  6. Color? backgroundColor,
  7. Duration animationDuration = const Duration(milliseconds: 170),
  8. Curve animationCurve = Curves.linear,
  9. List<BoxShadow> shadows = const [BoxShadow(color: Colors.black12, blurRadius: 3)],
  10. required List<EaseNavBarItem> items,
  11. required ValueChanged<int> onItemSelected,
  12. bool floating = true,
})

Implementation

EaseNavBar({
  Key? key,
  this.selectedIndex = 0,
  this.height = 60,
  this.showElevation = true,
  this.iconSize = 20,
  this.backgroundColor,
  this.animationDuration = const Duration(milliseconds: 170),
  this.animationCurve = Curves.linear,
  this.shadows = const [
    BoxShadow(
      color: Colors.black12,
      blurRadius: 3,
    ),
  ],
  required this.items,
  required this.onItemSelected,
  this.floating = true,
}) : super(key: key) {
  assert(height >= 55 && height <= 100);
  assert(items.length >= 2 && items.length <= 5);
}