SlideAnimation constructor
SlideAnimation({
- Key? key,
- required Duration duration,
- required Duration delay,
- required Widget child,
- required double begin,
- required double end,
- required OffsetBuilder offsetBuild,
- ValueSetter<
AnimationController> ? onComplete, - double idleValue = 0,
Implementation
SlideAnimation({
super.key,
required super.duration,
required super.delay,
required super.child,
required double begin,
required double end,
required OffsetBuilder offsetBuild,
super.onComplete,
super.idleValue = 0,
}) : super(
builder: (context, value, child) => Transform.translate(
offset: offsetBuild(context, value),
child: child,
),
tween: Tween<double>(begin: begin, end: end),
);