DropAnimationWidget constructor
DropAnimationWidget({})
Implementation
DropAnimationWidget(
{Key? key,
required this.animateColor,
required this.controller,
required this.screenHeight,
required this.screenWidth})
:
// Each animation defined here transforms its value during the subset
// of the controller's duration defined by the animation's interval.
// For example the opacity animation transforms its value during
// the first 10% of the controller's duration.
height = Tween<double>(
begin: 0,
end: screenHeight,
).animate(
CurvedAnimation(
parent: controller,
curve: const Interval(
0.0,
1.0,
curve: Curves.slowMiddle,
),
),
),
borderRadius = Tween<double>(
begin: 700,
end: 0,
).animate(
CurvedAnimation(
parent: controller,
curve: const Interval(
0.0,
1.0,
curve: Curves.slowMiddle,
),
),
),
super(key: key);