BottomAnimation constructor

const BottomAnimation({
  1. Key? key,
  2. required int selectedIndex,
  3. required List<BottomNavItem> items,
  4. required Color activeIconColor,
  5. required Color deActiveIconColor,
  6. required Color backgroundColor,
  7. required ValueChanged<int> onItemSelect,
  8. required Color itemHoverColor,
  9. int hoverAlignmentDuration = 700,
  10. double iconSize = 30,
  11. TextStyle? textStyle,
  12. double barHeight = 80,
  13. double barRadius = 0,
  14. double itemHoverBorderRadius = 15,
  15. double itemHoverColorOpacity = .13,
  16. double itemHoverHeight = 55,
  17. double itemHoverWidth = 150,
})

Implementation

const BottomAnimation({
  Key? key,
  required this.selectedIndex,
  required this.items,
  required this.activeIconColor,
  required this.deActiveIconColor,
  required this.backgroundColor,
  required this.onItemSelect,
  required this.itemHoverColor,
  this.hoverAlignmentDuration = 700,
  this.iconSize = 30,
  this.textStyle,
  this.barHeight = 80,
  this.barRadius = 0,
  this.itemHoverBorderRadius = 15,
  this.itemHoverColorOpacity = .13,
  this.itemHoverHeight = 55,
  this.itemHoverWidth = 150,
}) : super(key: key);