fadeSlideIn method

Widget fadeSlideIn({
  1. int milliseconds = 1000,
  2. double offset = 24,
})

Fades and slides up once when first shown. card.fadeSlideIn()

Implementation

Widget fadeSlideIn({int milliseconds = 1000, double offset = 24}) => TweenAnimationBuilder<double>(
  tween: Tween<double>(begin: 0, end: 1),
  duration: Duration(milliseconds: milliseconds),
  curve: Curves.easeOutCubic,
  builder: (BuildContext context, double value, Widget? child) => Opacity(
    opacity: value,
    child: Transform.translate(offset: Offset(0, offset * (1 - value)), child: child),
  ),
  child: this,
);