buildRows method

List<TableRow> buildRows(
  1. int cellCount
)

Implementation

List<TableRow> buildRows(int cellCount) {
  return List.generate(children.length, (index) {
    final child = children[index] as TrNode;
    final List<Widget> widgets =
        List.generate(cellCount, (index) => Container());
    for (var i = 0; i < child.children.length; ++i) {
      var c = child.children[i];
      widgets[i] = Padding(
          padding: config.table.bodyPadding,
          child: ProxyRichText(
            c.build(),
            richTextBuilder: visitor.richTextBuilder,
          ));
    }
    return TableRow(
        decoration: config.table.bodyRowDecoration, children: widgets);
  });
}