animatedContainer method

Niku animatedContainer({
  1. Alignment? alignment,
  2. EdgeInsets? padding,
  3. Color? color,
  4. Decoration? decoration,
  5. BoxDecoration? foregroundDecoration,
  6. double? width,
  7. double? height,
  8. BoxConstraints? constraints,
  9. EdgeInsets? margin,
  10. Matrix4? transform,
  11. AlignmentGeometry? transformAlignment,
  12. Clip clipBehavior = Clip.none,
  13. Curve curve = Curves.linear,
  14. required Duration duration,
  15. VoidCallback? onEnd,
})

Wrap widget in animated container

Example usage

Niku()
  .animatedBuilder(
    animation: animation,
    builder: (context, child) => Container(
      child: child,
      margin: EdgeInsets.all(animation.value)
    )
  })
  .build()

Implementation

Niku animatedContainer({
  Alignment? alignment,
  EdgeInsets? padding,
  Color? color,
  Decoration? decoration,
  BoxDecoration? foregroundDecoration,
  double? width,
  double? height,
  BoxConstraints? constraints,
  EdgeInsets? margin,
  Matrix4? transform,
  AlignmentGeometry? transformAlignment,
  Clip clipBehavior = Clip.none,
  Curve curve = Curves.linear,
  required Duration duration,
  VoidCallback? onEnd,
}) =>
    Niku(
      AnimatedContainer(
        child: this._widget,
        alignment: alignment,
        padding: padding,
        color: color,
        decoration: decoration,
        foregroundDecoration: foregroundDecoration,
        width: width,
        height: height,
        constraints: constraints,
        margin: margin,
        transform: transform,
        transformAlignment: transformAlignment,
        clipBehavior: clipBehavior,
        curve: curve,
        duration: duration,
        onEnd: onEnd,
      ),
    );