buildColumn method

  1. @protected
Widget buildColumn(
  1. BuildParameters params
)

Implementation

@protected
Widget buildColumn(BuildParameters params) {
  final children = <Widget>[];
  if (params.widgets["children"] != null) {
    for (Map childSpec in params.widgets["children"] as List<Map>) {
      children.add(builder.buildWidget(
          params.context, childSpec, params.state, params.parentContext));
    }
  }

  return Column(
    key: properties.getKey(params.id),
    verticalDirection: params.buildProp("verticalDirection"),
    crossAxisAlignment: params.buildProp("crossAxisAlignment"),
    mainAxisAlignment: params.buildProp("mainAxisAlignment"),
    mainAxisSize: params.props["mainAxisSize"] == "min"
        ? MainAxisSize.min
        : MainAxisSize.max,
    children: children,
  );
}