buildAnimatedContainer method
Implementation
@protected
Widget buildAnimatedContainer(BuildParameters params) {
final onEnd = events.getFunction(params.context, params.actions["onEnd"],
params.state, params.parentContext);
final child = builder.tryBuildWidget(params.context,
params.widgets["child"], params.state, params.parentContext);
final decoration = params.buildProp("decoration");
return AnimatedContainer(
key: properties.getKey(params.id),
width: tryParseDouble(params.props["width"]),
height: tryParseDouble(params.props["height"]),
padding: params.buildProp("padding"),
alignment: params.buildProp("alignment"),
constraints: params.buildProp("constraints"),
decoration: decoration,
clipBehavior: decoration != null ? Clip.antiAlias : Clip.none,
curve: params.buildProp("curve") ?? Curves.linear,
duration: Duration(
milliseconds: parseInt(params.props["duration"], defaultValue: 500)),
onEnd: onEnd,
child: child,
);
}