build method
Override this method to build widgets that depend on the state of the listenable (e.g., the current value of the animation).
Implementation
@override
Widget build(BuildContext context) {
return Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(borderRadius),
border: Border.all(
color: backgroundColor,
width: borderAnimation.value,
strokeAlign: BorderSide.strokeAlignInside,
),
color: kTransparent,
),
padding: EdgeInsets.symmetric(
vertical: verticalBorderAnimation.value,
horizontal: horizontalBorderAnimation.value,
),
child: child,
);
}