dealCol method

List<Widget> dealCol(
  1. double allWidth
)

Implementation

List<Widget> dealCol(double allWidth) {
  List<Widget> list = <Widget>[];
  // 根据 span 不超过 24 处理为二维数组
  List doubleList = _dealToDouble();
  for (var j = 0; j < doubleList.length; j++) {
    List itemList = doubleList[j];
    double spanWidth = _calcSpanWidth(itemList.length, allWidth);
    for (var i = 0; i < itemList.length; i++) {
      Widget child = itemList[i].getChild();
      Map props = itemList[i].getProps();
      list.add(EasyCol(
        child: child,
        span: props['span'],
        offset: props['offset'],
        spanWidth: spanWidth,
      ));
    }
  }

  return list;
}