build method

  1. @override
Widget build(
  1. AnimationController controller,
  2. Widget? child,
  3. AntdAnimatedContext<WidgetType, StateType> context
)
override

Implementation

@override
Widget build(AnimationController controller, Widget? child,
    AntdAnimatedContext<WidgetType, StateType> context) {
  var tween = Tween(begin: 0.0, end: 1.0).animate(
    CurvedAnimation(
      parent: controller,
      curve: const Interval(0, 1, curve: Curves.easeOut),
    ),
  );
  return FadeTransition(
    opacity: tween,
    child: child,
  );
}