build method

  1. @override
Widget build(
  1. BuildContext context
)
override

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,
        ),
        color: Colors.transparent,
      ),
      padding: EdgeInsets.symmetric(
        vertical: _verticalBorderAnimation.value,
        horizontal: _horizontalBorderAnimation.value,
      ),
      child: child);
}