reporter 0.3.0 reporter: ^0.3.0 copied to clipboard
A package that helps prepare tabular reports.
Reporter #
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 #
- Depend on the
reporter
packagedart pub add reporter
- Use
TabularReporter.calculateHeaderCells
to calculate the header cells from columns. - Use
TabularReporter.calculateCells
to calculate the body cells from rows and columns. - Optionally depend on other specific generators
- reporter_html for generating html elements.
- reporter_syncfusion_flutter_xlsio for generating excel files.
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 |