CNTabBar constructor

const CNTabBar({
  1. Key? key,
  2. required List<CNTabBarItem> items,
  3. required int currentIndex,
  4. required ValueChanged<int> onTap,
  5. Color? tint,
  6. Color? backgroundColor,
  7. double? iconSize,
  8. double? height,
  9. bool split = false,
  10. int rightCount = 1,
  11. bool shrinkCentered = true,
  12. double splitSpacing = 8.0,
})

Creates a Cupertino-native tab bar.

Implementation

const CNTabBar({
  super.key,
  required this.items,
  required this.currentIndex,
  required this.onTap,
  this.tint,
  this.backgroundColor,
  this.iconSize,
  this.height,
  this.split = false,
  this.rightCount = 1,
  this.shrinkCentered = true,
  this.splitSpacing = 8.0,
});