buildRows method

List<TableRow> buildRows(
  1. int rowCount,
  2. int columnCount
)

Implementation

List<TableRow> buildRows(int rowCount, int columnCount) {
  return <TableRow>[
    for (int row = 0; row < rowCount; row += 1)
      TableRow(
        children: <Widget>[
          for (int column = 0; column < columnCount; column += 1)
            Container(
              margin: const EdgeInsets.all(2),
              height: 50,
              alignment: Alignment.center,
              color: _colorful(row, column),
              child: Text(
                '($row,$column)',
                style: const TextStyle(fontSize: 20, color: Colors.white),
              ),
            ),
        ],
      ),
  ];
}