make method
Implementation
@override
Widget make({Key? key}) {
if (!willRender) return const VxNone();
return AnimatedContainer(
curve: velocityCurve ?? Curves.linear,
duration: velocityDuration ?? const Duration(seconds: 100),
height: _height,
width: _width,
padding: velocityPadding,
margin: _margin,
alignment: velocityAlignment,
transform: _transform,
decoration: _velocityNeumorph != null
? BoxDecoration(
borderRadius: _isCircleRounded || (roundedValue == null)
? null
: (radiusGeometry ?? BorderRadius.circular(roundedValue!)),
shape: _isCircleRounded ? BoxShape.circle : BoxShape.rectangle,
boxShadow: _velocityNeumorph!.shadows,
border: _border,
gradient: velocityGradient ?? _velocityNeumorph!.gradient,
image: _bgImage,
)
: _decoration ??
BoxDecoration(
color: velocityColor,
borderRadius: _isCircleRounded || (roundedValue == null)
? null
: (radiusGeometry ??
BorderRadius.circular(roundedValue!)),
shape:
_isCircleRounded ? BoxShape.circle : BoxShape.rectangle,
boxShadow: velocityShadow ?? _boxShadow ?? [],
border: _border,
gradient: velocityGradient ?? _gradient,
image: _bgImage,
),
child: child);
}