AnimatedContainerModifier constructor
const
AnimatedContainerModifier({
- Key? key,
- Widget? child,
- Curve curve = Curves.linear,
- required Duration duration,
- VoidCallback? onEnd,
- Key? modifierKey,
- AlignmentGeometry? alignment,
- EdgeInsetsGeometry? padding,
- Color? color,
- Decoration? decoration,
- Decoration? foregroundDecoration,
- double? width,
- double? height,
- BoxConstraints? constraints,
- EdgeInsetsGeometry? margin,
- Matrix4? transform,
- AlignmentGeometry? transformAlignment,
- Clip clipBehavior = Clip.none,
Creates a container that animates its parameters implicitly.
The curve
and duration
arguments must not be null.
Implementation
const AnimatedContainerModifier({
super.key,
super.child,
super.curve,
required super.duration,
super.onEnd,
super.modifierKey,
this.alignment,
this.padding,
this.color,
this.decoration,
this.foregroundDecoration,
this.width,
this.height,
this.constraints,
this.margin,
this.transform,
this.transformAlignment,
this.clipBehavior = Clip.none,
});