Reporter

Pub Version GitHub last commit on main

A standard for generating reports in pure dart.

Note: Currently only supports tabular reports.

Example

Check the dedicated example project

Features

  • Build tabular reports.
  • Handles column nesting (colspan).
  • Handles row nesting (rowspan).
  • Fully customizable.
  • Unopinionated.
  • Format independent, can be adapted for Excel, Html, Pdf, Markdown, txt, etc ...
  • Surprisingly easy to use.

Getting started

  1. Depend on the reporter package dart pub add reporter
  2. Use TabularReporter.calculateHeaderCells to calculate the header cells from columns.
  3. Use TabularReporter.calculateCells to calculate the body cells from rows and columns.
  4. Optionally depend on other specific generators

Preview

Client payments
reason total to pay instances
date amount
person1 project1 5000.0 2023-08-01 00:00:00.000 2000.0
2023-08-15 00:00:00.000 1500.0
2023-08-30 00:00:00.000 1500.0
project2 1000.0
project3 4000.0 2023-09-01 00:00:00.000 1000.0
2023-09-15 00:00:00.000 2000.0
person2 project4 0.0

Libraries

reporter
Support for doing something awesome.