FlashyTabBar constructor

FlashyTabBar({
  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<FlashyTabBarItem> items,
  11. required ValueChanged<int> onItemSelected,
})

Implementation

FlashyTabBar({
  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,
}) : super(key: key) {
  assert(height >= 55 && height <= 100);
  assert(items.length >= 2 && items.length <= 5);
  assert(iconSize >= 15 && iconSize <= 50);
}