RollingNavBar.builder constructor
RollingNavBar.builder(- {@required RollingNavBarChildBuilder builder,
- @required int numChildren,
- List<Color> activeBadgeColors,
- int activeIndex = 0,
- Curve animationCurve = Curves.linear,
- AnimationType animationType = AnimationType.roll,
- List<Widget> badges,
- int baseAnimationSpeed = 200,
- List<Color> indicatorColors = const <Color>[Colors.black],
- double indicatorCornerRadius = 10,
- double indicatorRadius = 25,
- int indicatorSides = 6,
- BoxDecoration navBarDecoration,
- dynamic onAnimate(
- AnimationUpdate
),
- dynamic onTap(
- int
),
- double sidesPerListItem}
)
Implementation
RollingNavBar.builder({
@required this.builder,
@required this.numChildren,
this.activeBadgeColors,
this.activeIndex = 0,
this.animationCurve = Curves.linear,
this.animationType = AnimationType.roll,
this.badges,
this.baseAnimationSpeed = 200,
this.indicatorColors = const <Color>[Colors.black],
this.indicatorCornerRadius = 10,
this.indicatorRadius = 25,
this.indicatorSides = 6,
this.navBarDecoration,
this.onAnimate,
this.onTap,
this.sidesPerListItem,
}) : activeIconColors = null,
iconColors = null,
iconData = null,
iconSize = null,
iconText = null,
assert(activeBadgeColors == null ||
activeBadgeColors.length == 1 ||
activeBadgeColors.length == numChildren),
assert(badges == null || badges.length == numChildren),
assert(indicatorSides > 2),
assert(numChildren != null);