FxCurvedNavigationBar constructor

FxCurvedNavigationBar({
  1. Key? key,
  2. required List<Widget> items,
  3. int index = 0,
  4. Color color = Colors.white,
  5. Color? buttonBackgroundColor,
  6. Color backgroundColor = Colors.blueAccent,
  7. ValueChanged<int>? onTap,
  8. _LetIndexPage? letIndexChange,
  9. Curve animationCurve = Curves.easeOut,
  10. Duration animationDuration = const Duration(milliseconds: 600),
  11. double height = 75.0,
})

Implementation

FxCurvedNavigationBar({
  Key? key,
  required this.items,
  this.index = 0,
  this.color = Colors.white,
  this.buttonBackgroundColor,
  this.backgroundColor = Colors.blueAccent,
  this.onTap,
  _LetIndexPage? letIndexChange,
  this.animationCurve = Curves.easeOut,
  this.animationDuration = const Duration(milliseconds: 600),
  this.height = 75.0,
})  : letIndexChange = letIndexChange ?? ((_) => true),
      assert(items.length >= 1),
      assert(0 <= index && index < items.length),
      assert(0 <= height && height <= 75.0),
      super(key: key);