ElZoomAnimation constructor

const ElZoomAnimation(
  1. bool show, {
  2. Key? key,
  3. required Widget child,
  4. Duration? duration,
  5. Curve? curve = ElZoomAnimation.defaultCurve,
  6. Curve? reverseCurve,
  7. Curve opacityCurve = Curves.easeIn,
  8. ElZoomTransitionType type = ElZoomTransitionType.top,
})

实现 Element UI 内置的 Zoom 缩放动画,https://cn.element-plus.org/en-US/guide/transitions.html#zoom

Implementation

const ElZoomAnimation(
  super.show, {
  super.key,
  required super.child,
  super.duration,
  super.curve = ElZoomAnimation.defaultCurve,
  super.reverseCurve,
  this.opacityCurve = Curves.easeIn,
  this.type = ElZoomTransitionType.top,
});