buildRow method

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

Implementation

@protected
Widget buildRow(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 Row(
    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,
  );
}