animatedContainer method
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,
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,
),
);