BubbleBottomBar constructor
BubbleBottomBar({
- Key? key,
- required List<
BubbleBottomBarItem> items, - ValueChanged<
int?> ? onTap, - int? currentIndex = 0,
- required double opacity,
- double? iconSize = 24.0,
- BorderRadius? borderRadius,
- double? elevation,
- Color? backgroundColor,
- bool hasNotch = false,
- bool hasInk = false,
- Color? inkColor,
- BubbleBottomBarFabLocation? fabLocation,
- EdgeInsets tilesPadding = EdgeInsets.zero,
Implementation
BubbleBottomBar({
Key? key,
required this.items,
this.onTap,
this.currentIndex = 0,
required this.opacity,
this.iconSize = 24.0,
this.borderRadius,
this.elevation,
this.backgroundColor,
this.hasNotch = false,
this.hasInk = false,
this.inkColor,
this.fabLocation,
this.tilesPadding = EdgeInsets.zero,
}) : assert(items.length >= 2),
assert(
items.every((BubbleBottomBarItem item) => item.title != null) == true,
'Every item must have a non-null title',
),
assert(0 <= currentIndex! && currentIndex < items.length),
assert(iconSize != null),
super(key: key);