image

dependencies:
  # ...
  merge_table:
    git:
      url: https://github.com/juniorise/merge_table.git
      ref: 1.0.1

MergeTable(
  borderColor: Colors.black,
  alignment: MergeTableAlignment.center,
  columns: [
    MColumn(header: "Pump"),
    MColumn(header: "Product"),
    MColumn(header: "Seal"),
    MMergedColumns(
      header: "Reading",
      columns: ["Before", "Then", "After"],
    ),
    MColumn(header: "Write"),
  ],
  rows: [
    [
      MRow(const Text("1")),
      MRow(const Text("2")),
      MRow(const Text("3")),
      MMergedRows([
        const Text("4"),
        const Text("5"),
        const Text("8"),
      ]),
      MRow(const Text("6")),
    ],
    [
      MRow(const Text("1")),
      MRow(const Text("2")),
      MRow(const Text("3")),
      MMergedRows([
        const Text("4"),
        const Text("5"),
        const Text("8"),
      ]),
      MRow(const Text("6")),
    ],
  ],
)

GitHub

View Github