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 <Widget>[
Positioned(
left: factor,
top: factor,
child: Container(
width: firstSlideTween.value,
height: (underlineHeight ?? s2) - factor,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(s10),
color: firstSlideColor ?? kBlack,
),
),
),
Positioned(
top: 0,
child: Container(
width: secondSlideTween.value,
height: underlineHeight ?? s3,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(s10),
color: secondSlideColor ?? kWhite,
),
),
)
].addStack().addSizedBox(
width: targetWidth,
height: underlineHeight ?? s2,
);
}