SnakeNavigationBar.color constructor
SnakeNavigationBar.color({
- Key? key,
- Color? snakeViewColor,
- Color? backgroundColor,
- Color? selectedItemColor,
- Color? unselectedItemColor,
- bool showSelectedLabels = false,
- bool showUnselectedLabels = false,
- List<
BottomNavigationBarItem> ? items, - int currentIndex = 0,
- ShapeBorder? shape,
- EdgeInsets padding = EdgeInsets.zero,
- double elevation = 0.0,
- ValueChanged<
int> ? onTap, - SnakeBarBehaviour behaviour = SnakeBarBehaviour.pinned,
- SnakeShape snakeShape = SnakeShape.circle,
- Color shadowColor = Colors.black,
- TextStyle? selectedLabelStyle,
- TextStyle? unselectedLabelStyle,
- double? height,
Implementation
factory SnakeNavigationBar.color({
Key? key,
Color? snakeViewColor,
Color? backgroundColor,
Color? selectedItemColor,
Color? unselectedItemColor,
bool showSelectedLabels = false,
bool showUnselectedLabels = false,
List<BottomNavigationBarItem>? items,
int currentIndex = 0,
ShapeBorder? shape,
EdgeInsets padding = EdgeInsets.zero,
double elevation = 0.0,
ValueChanged<int>? onTap,
SnakeBarBehaviour behaviour = SnakeBarBehaviour.pinned,
SnakeShape snakeShape = SnakeShape.circle,
Color shadowColor = Colors.black,
TextStyle? selectedLabelStyle,
TextStyle? unselectedLabelStyle,
double? height,
}) =>
SnakeNavigationBar._(
SelectionStyle.color,
key: key,
snakeViewGradient: snakeViewColor?.toGradient,
backgroundGradient: backgroundColor?.toGradient,
selectedItemGradient: selectedItemColor?.toGradient,
unselectedItemGradient: unselectedItemColor?.toGradient,
showSelectedLabels: showSelectedLabels,
showUnselectedLabels: showUnselectedLabels,
items: items,
currentIndex: currentIndex,
shape: shape,
padding: padding,
elevation: elevation,
onTap: onTap,
behaviour: behaviour,
snakeShape: snakeShape,
shadowColor: shadowColor,
selectedLabelStyle: selectedLabelStyle,
unselectedLabelStyle: unselectedLabelStyle,
height: height ?? kBottomNavigationBarHeight,
);