lerp static method
Implementation
static ZeroTabBarStyle lerp(
ZeroTabBarStyle? a, ZeroTabBarStyle? b, double t) {
return ZeroTabBarStyle(
backgroundColor: Color.lerp(a?.backgroundColor, b?.backgroundColor, t),
activeColor: Color.lerp(a?.activeColor, b?.activeColor, t),
inactiveColor: Color.lerp(a?.inactiveColor, b?.inactiveColor, t),
indicatorColor: Color.lerp(a?.indicatorColor, b?.indicatorColor, t),
padding: EdgeInsetsGeometry.lerp(a?.padding, b?.padding, t),
labelPadding:
EdgeInsetsGeometry.lerp(a?.labelPadding, b?.labelPadding, t),
iconSize: t < 0.5 ? a?.iconSize : b?.iconSize,
labelStyle: TextStyle.lerp(a?.labelStyle, b?.labelStyle, t),
isScrollable: (t < 0.5 ? a?.isScrollable : b?.isScrollable) ?? false,
);
}