pkg_spreadsheet version: 1.4.75

Published 2025-10-03

ruud

sdk | dart
repository | svn
platform | generic
status | n/a
  • Readme
  • Changelog
  • Versions

Spreadsheet wrappers and tools.

Format Read Write Styles
ods x
xlsx x * x
xls
csv x x
tsv x x

graph

Notes

  • XLS is an obsolete proprietary (binary) format and is not supported.
  • All data types are ignored and values are always converted to string.
  • Dates from xlsx files are converted to yyyy-mm-dd format (ignoring all formatting), dates from other formats are as-is (text).

Usage

// open a spreadsheet (which is a collection of `Sheet` objects)
final Spreadsheet spreadsheet = await Spreadsheet(File('test.ods')).read();

// get the first sheet (don't care about its name)
final Sheet sheet = spreadsheet.getFirstSheet();

// get a specific sheet
final Sheet sheet = spreadsheet.getSheet('Sheet1');

// get sheet names
print(spreadsheet.getSheets());

// set a cell value at row 2, column 3, to value 4 (int value 4 is converted to string internally)
sheet.setCell(2, 3, 4);

// cell is always a string
final String cell = sheet.getCell(2, 3);

// don't forget to look at tests/index_test.dart for the workings of accessing cells
// by using indexed rows and columns, for example when the first row contains
// filenames, and the first column shop id's, it is easy to retrieve a specific cell by 
// using something with a meaning instead of hard integer indexes.
final String shopid = '0001';
final String kaartje = 'roomboter.pdf';
final int verdubbeling = sheet.getCell(filiaalnummer, kaartje).toInt();

|      | kaas.pdf | roomboter.pdf | brood.pdf |
| 0001 | 1        | 0             | 2         |
| 0002 | 3        | 2             | 1         |
| 0003 | 1        | 0             | 2         |

so sheet.getCell('0002', 'roomboter.pdf') returns '2'.

Conversion

With the pkg_local_services package, it is possible to create ODS or XLSX files.

See the file /test/create_test.dart.

Deprecated (and removed).

  • XLSX is writable via the (excel)[https://pub.dev/packages/excel] package. See the unit tests for an example (export).

Changelog

1.4.75 - 2025-10-03

Changed

  • Version bump from 1.4.74 to 1.4.75 (build_runner -> 2.9.0 (was 2.8.0)).

1.4.74 - 2025-09-22

Changed

  • Version bump from 1.4.73 to 1.4.74 (build_runner -> 2.8.0 (was 2.7.1)).

1.4.73 - 2025-09-22

Changed

  • Version bump from 1.4.72 to 1.4.73 (copy_with_extension_gen -> 10.0.1 (was 9.1.1)).

1.4.72 - 2025-09-22

Changed

  • Version bump from 1.4.71 to 1.4.72 (copy_with_extension -> 10.0.1 (was 9.1.1)).

1.4.71 - 2025-09-16

Changed

  • Version bump from 1.4.70 to 1.4.71 (xml -> 6.6.1 (was 6.5.0)).

1.4.70 - 2025-09-04

Changed

  • Version bump from 1.4.69 to 1.4.70 (build_runner -> 2.7.1 (was 2.7.2)).

1.4.69 - 2025-09-04

Changed

  • Version bump from 1.4.68 to 1.4.69 (build_runner -> 2.7.2 (was 2.7.1)).

1.4.68 - 2025-09-04

Fixed

  • Unawaited futures.

1.4.67 - 2025-09-03

Changed

  • Version bump from 1.4.66 to 1.4.67 (copy_with_extension_gen -> 9.1.1 (was 9.1.0)).

1.4.66 - 2025-09-03

Changed

  • Version bump from 1.4.65 to 1.4.66 (copy_with_extension -> 9.1.1 (was 9.1.0)).

1.4.65 - 2025-09-03

Changed

  • Version bump from 1.4.64 to 1.4.65 (build_runner -> 2.7.1 (was 2.7.0)).

1.4.64 - 2025-09-01

Changed

  • Version bump from 1.4.63 to 1.4.64 (build_runner -> 2.7.0 (was 2.6.0)).

1.4.63 - 2025-08-08

Changed

  • Version bump from 1.4.62 to 1.4.63 (build_runner -> 2.6.0 (was 2.6.1)).

1.4.62 - 2025-08-08

Changed

  • Version bump from 1.4.61 to 1.4.62 (build_runner -> 2.6.1 (was 2.6.0)).

1.4.61 - 2025-08-07

Changed

  • Version bump from 1.4.60 to 1.4.61 (copy_with_extension_gen -> 9.1.0 (was 9.0.0)).

1.4.60 - 2025-08-07

Changed

  • Version bump from 1.4.59 to 1.4.60 (copy_with_extension -> 9.1.0 (was 9.0.0)).

1.4.59 - 2025-08-06

Changed

  • Version bump from 1.4.58 to 1.4.59 (copy_with_extension_gen -> 9.0.0 (was 8.0.0)).

1.4.58 - 2025-08-06

Changed

  • Version bump from 1.4.57 to 1.4.58 (copy_with_extension -> 9.0.0 (was 8.0.0)).

1.4.57 - 2025-08-04

Changed

  • Version bump from 1.4.56 to 1.4.57 (copy_with_extension_gen -> 8.0.0 (was 7.1.0)).

1.4.56 - 2025-08-04

Changed

  • Version bump from 1.4.55 to 1.4.56 (copy_with_extension -> 8.0.0 (was 7.1.0)).

1.4.55 - 2025-07-28

Changed

  • Version bump from 1.4.54 to 1.4.55 (build_runner -> 2.6.0 (was 2.5.4)).

1.4.54 - 2025-07-28

Changed

  • Version bump from 1.4.53 to 1.4.54 (copy_with_extension_gen -> 7.1.0 (was 6.0.1)).

1.4.53 - 2025-07-28

Changed

  • Version bump from 1.4.52 to 1.4.53 (copy_with_extension -> 7.1.0 (was 6.0.1)).

1.4.52 - 2025-07-23

Changed

  • Version bump from 1.4.51 to 1.4.52 (test -> 1.26.3 (was 1.26.2)).

1.4.51 - 2025-06-24

Changed

  • Version bump from 1.4.50 to 1.4.51 (build_runner -> 2.5.4 (was 2.5.3)).

1.4.50 - 2025-06-23

Changed

  • Version bump from 1.4.49 to 1.4.50 (build_runner -> 2.5.3 (was 2.5.2)).

1.4.49 - 2025-06-18

Changed

  • Version bump from 1.4.48 to 1.4.49 (build_runner -> 2.5.2 (was 2.4.12)).

1.4.48 - 2025-06-18

Changed

  • Version bump from 1.4.47 to 1.4.48 (build_runner -> 2.4.12 (was 2.5.1)).

1.4.47 - 2025-06-17

Changed

  • Version bump from 1.4.46 to 1.4.47 (build_runner -> 2.5.1 (was 2.5.0)).

1.4.46 - 2025-06-17

Changed

  • Version bump from 1.4.45 to 1.4.46 (build_runner -> 2.5.0 (was 2.4.15)).

1.4.45 - 2025-05-22

Changed

  • Version bump from 1.4.44 to 1.4.45 (lints -> 6.0.0 (was 5.1.1)).

1.4.44 - 2025-05-22

Changed

  • Version bump from 1.4.43 to 1.4.44 (test -> 1.26.2 (was 1.26.1)).

1.4.43 - 2025-05-20

Changed

  • Version bump from 1.4.42 to 1.4.43 (test -> 1.26.1 (was 1.26.0)).

1.4.42 - 2025-05-13

Changed

  • Version bump from 1.4.41 to 1.4.42 (test -> 1.26.0 (was 1.25.15)).

1.4.41 - 2025-04-24

Changed

  • Version bump from 1.4.40 to 1.4.41 (archive -> 4.0.7 (was 4.0.6)).

1.4.40 - 2025-04-18

Changed

  • Version bump from 1.4.39 to 1.4.40 (archive -> 4.0.6 (was 4.0.5)).

1.4.39 - 2025-04-02

Changed

  • Version bump from 1.4.38 to 1.4.39 (collection -> 1.19.1 (was 1.19.0)).

1.4.38 - 2025-04-02

Changed

  • Version bump from 1.4.37 to 1.4.38 (test -> 1.25.15 (was 1.25.14)).

1.4.37 - 2025-04-01

Added

  • Sheet::doRemoveRowAt.

1.4.36 - 2025-03-25

Changed

  • Version bump from 1.4.35 to 1.4.36 (archive -> 4.0.5 (was 4.0.4)).

1.4.35 - 2025-03-19

Added

  • Sheet::doInsertColumnAt.

1.4.34 - 2025-03-05

Changed

  • Try to read a tsv with utf-8 encoding first, if it fails, try to read it with latin1 encoding.
  • Removed flutter-test package, changed to dart test.

1.4.33 - 2025-02-28

Changed

  • Version bump from 1.4.32 to 1.4.33 (archive -> 4.0.4 (was 4.0.3)).

1.4.32 - 2025-02-28

Changed

  • Version bump from 1.4.31 to 1.4.32 (copy_with_extension_gen -> 6.0.1 (was 5.0.4)).

1.4.31 - 2025-02-28

Changed

  • Version bump from 1.4.30 to 1.4.31 (copy_with_extension -> 6.0.1 (was 5.0.4)).

1.4.30 - 2025-02-28

Changed

  • Version bump from 1.4.29 to 1.4.30 (copy_with_extension_gen -> 5.0.4 (was 6.0.1)).

1.4.29 - 2025-02-28

Changed

  • Version bump from 1.4.28 to 1.4.29 (copy_with_extension -> 5.0.4 (was 6.0.1)).

1.4.28 - 2025-02-28

Changed

  • Version bump from 1.4.27 to 1.4.28 (copy_with_extension -> 6.0.1 (was 6.0.0)).

1.4.27 - 2025-02-28

Changed

  • Version bump from 1.4.26 to 1.4.27 (copy_with_extension_gen -> 6.0.1 (was 6.0.0)).

1.4.26 - 2025-02-28

Changed

  • Version bump from 1.4.25 to 1.4.26 (build_runner -> 2.4.15 (was 2.4.14)).

1.4.25 - 2025-02-24

Changed

  • Version bump from 1.4.24 to 1.4.25 (archive -> 4.0.3 (was 4.0.2)).

1.4.24 - 2025-01-22

Changed

  • Version bump from 1.4.23 to 1.4.24 (copy_with_extension -> 6.0.0 (was 5.0.4)).

1.4.23 - 2025-01-22

Changed

  • Version bump from 1.4.22 to 1.4.23 (copy_with_extension_gen -> 6.0.0 (was 5.0.4)).

1.4.22 - 2025-01-22

Changed

  • Version bump from 1.4.21 to 1.4.22 (copy_with_extension_gen -> 5.0.4 (was 6.0.1)).

1.4.21 - 2025-01-22

Changed

  • Version bump from 1.4.20 to 1.4.21 (copy_with_extension -> 5.0.4 (was 6.0.1)).

1.4.20 - 2025-01-21

Changed

  • Version bump from 1.4.19 to 1.4.20 (copy_with_extension_gen -> 6.0.1 (was 6.0.0)).

1.4.19 - 2025-01-21

Changed

  • Version bump from 1.4.18 to 1.4.19 (copy_with_extension -> 6.0.1 (was 6.0.0)).

1.4.18 - 2024-12-23

Changed

  • Version bump from 1.4.17 to 1.4.18 (collection -> 1.19.0 (was 1.19.1)).

1.4.17 - 2024-12-23

Changed

  • Version bump from 1.4.16 to 1.4.17 (collection -> 1.19.1 (was 1.19.0)).

1.4.16 - 2024-12-23

Changed

  • Version bump from 1.4.15 to 1.4.16 (lints -> 5.1.1 (was 5.1.0)).

1.4.15 - 2024-12-23

Changed

  • Version bump from 1.4.14 to 1.4.15 (archive -> 4.0.2 (was 4.0.1)).

1.4.14 - 2024-12-19

Changed

  • Version bump from 1.4.13 to 1.4.14 (Support Apple silicon (arm64)).

1.4.13 - 2024-12-19

Changed

  • Version bump from 1.4.12 to 1.4.13 (archive -> 4.0.1 (was 3.6.1)).

1.4.12 - 2024-12-19

Changed

  • Version bump from 1.4.11 to 1.4.12 (collection -> 1.19.0 (was 1.19.1)).

1.4.11 - 2024-12-19

Changed

  • Version bump from 1.4.10 to 1.4.11 (collection -> 1.19.1 (was 1.19.0)).

1.4.10 - 2024-12-19

Changed

  • Version bump from 1.4.9 to 1.4.10 (build_runner -> 2.4.14 (was 2.4.13)).

1.4.9 - 2024-12-13

Changed

  • Version bump from 1.4.8 to 1.4.9 (archive -> 3.6.1 (was 4.0.1)).

1.4.8 - 2024-12-13

Changed

  • Version bump from 1.4.7 to 1.4.8 (archive -> 4.0.1 (was 3.6.1)).

1.4.7 - 2024-12-12

Changed

  • Version bump from 1.4.6 to 1.4.7 (lints -> 5.1.0 (was 5.0.0)).

1.4.6 - 2024-12-12

Changed

  • Version bump from 1.4.5 to 1.4.6 (collection -> 1.19.0 (was 1.18.0)).

1.4.5 - 2024-12-02

Changed

  • Version bump from 1.4.4 to 1.4.5 (copy_with_extension_gen -> 6.0.0 (was 5.0.4)).

1.4.4 - 2024-12-02

Changed

  • Version bump from 1.4.3 to 1.4.4 (copy_with_extension -> 6.0.0 (was 5.0.4)).

1.4.3 - 2024-11-22

Changed

  • Version bump from 1.4.2 to 1.4.3 (equatable -> 2.0.7 (was 2.0.6)).

1.4.2 - 2024-08-22

Changed

  • Version bump from 1.4.1 to 1.4.2 (SDK update 3.5.1).

1.4.1 - 2024-08-07

Fixed

  • Range error tests were changed from RangeError (index) to RangeError (length) (caused by SDK update?).

1.4.0 - 2024-04-05

Added

  • Spreadsheet.fromByData.

1.3.19 - 2024-03-26

Removed

  • tp_grizzly_io dependency (project is dead).

Added

  • csv.dart from tp_grizzly_io.

1.3.18 - 2024-02-01

Changed

  • Version bump from 1.3.17 to 1.3.18 (Resolve package version confusions).

1.3.17 - 2023-07-11

Added

  • toString to Sheet.

1.3.16 - 2023-06-20

Added

  • align property to Style.

1.3.15 - 2023-06-07

Fixed

  • csv text separator.

1.3.14 - 2023-06-06

Fixed

  • GrizzlyIO text separators set from double-quote to escape so reading of cells with quotes does not throw anymore.

1.3.13 - 2023-05-22

Fixed

  • Wrong async constructs.

1.3.12 - 2023-04-17

Fixed

  • When fallback to csv with tabs, we set 'escape' as cell delimiter.

1.3.11 - 2023-04-17

Fixed

  • Fallback to csv with tabs when all else fails.

1.3.10 - 2023-04-13

Fixed

  • await unawaited futures.
  • Marked some futures unawaited.

1.3.9 - 2023-02-09

Changed

  • Version bump from 1.3.8 to 1.3.9 (Version confusion after compiler bug chaos).

1.3.8 - 2022-12-27

Added

  • readSync and writeSync for synchronous reading and writing (duh...).

Changed

  • Updated grizzly_io from 3.0.1 to 4.0.0 and moved it to tp_grizzly_io.
  • Version bump from 1.3.8 to 1.3.9 (Recompile due to http to https switch for pub.dev.huighaverlag.nl).
  • Version bump from 1.3.7 to 1.3.8.

1.3.7 - 2022-12-22

Changed

  • Version bump from 1.3.6 to 1.3.7.

1.3.6 - 2022-12-22

Changed

  • Version bump from 1.3.5 to 1.3.6 (Recompile due to installer optimizations).

1.3.5 - 2022-12-21

Fixed

  • Reading of csv files with ; separator.

1.3.4 - 2022-12-12

Changed

  • Trim sheet names when read from ods or xlsx.

1.3.3 - 2022-12-07

Changed

  • README.md.

1.3.2 - 2022-12-07

Fixed

  • Speed penalty by using _doConvertSpecialCharacters on each cell update.

1.3.1 - 2022-12-05

Added

  • Row/column indexing.

Changed

  • Just throws RangeError exceptions when targeting rows/columns/cells that are out of range instead of trying to be nice and return an empty value (that way you would not know you did something wrong().

1.3.0 - 2022-12-02

Changed

  • Specified all types everywhere.
  • Refactored to Spreadsheet and Sheet, removed all sheet name references.
  • Moved relevant functions from Spreadsheet to Sheet.

1.2.15 - 2022-12-01

Changed

  • Spreadsheet::write now returns a list of output files.
  • When reading csv files, when no data was read, try ; as field separator.

1.2.14 - 2022-12-01

Added

  • resolveSpans to read function to control the copying of spanned cell values.
  • _applySpans function to OdsDecoder and XlsxDecoder.

Changed

  • Default background color from none to FFFFFFFF.

1.2.13 - 2022-11-30

Changed

  • Only prefix a cell with a soft-hyphen if it starts with '0' on export to html.

1.2.12 - 2022-11-24

Added

  • Spreadsheet.fromCsvString factory constructor.
  • Spreadsheet.fromTsvString factory constructor.

1.2.11 - 2022-11-14

Changed

  • Remove soft-hyphen (0xAD) from start of cells (if any) when reading.

1.2.10 - 2022-10-19

Changed

  • Removed all print statements for logging.

1.2.9 - 2022-10-11

Changed

  • Version bump from 1.2.8 to 1.2.9 (Recompile due to wrong GetIt.instance syntax.).

1.2.8 - 2022-10-05

Changed

  • Version bump from 1.2.7 to 1.2.8 (fixed pdflib searchpath macos crash).

1.2.7 - 2022-10-01

Changed

  • Version bump from 1.2.6 to 1.2.7 (pkg_pdflib bundle macos dylib).

1.2.6 - 2022-09-30

Changed

  • Made pure dart.

1.2.5 - 2022-09-29

Changed

  • Version bump from 1.2.4 to 1.2.5 (dependencies upgraded).

1.2.4 - 2022-09-22

Added

  • doRemoveRowsWhere.
  • sheet selection to export and write.

1.2.3 - 2022-09-16

Changed

  • export now returns the File.
  • Removed raw strings from sources.
  • Prefix cells starting with '0' with a soft-hyphen on export to preserve leading zero's when converting to ods or xlsx.

Fixed

  • Index out-of-bounds in export.

1.2.2 - 2022-09-05

Fixed

  • xlsx line 414, apply default style when not present on xml tag.

1.2.1 - 2022-08-31

Changed

  • removed various finals due to new linter rules.

1.2.0 - 2022-08-08

Fixed

  • ODS: Changed table.findElements('table:table-row'); to table.findAllElements('table:table-row');, so now fixed headers are read.

1.1.0 - 2022-08-06

Changed

  • Removed tp_excel dependency.

1.0.0-dev - 2022-07-25

Changed

  • First major version.

0.0.1-dev+10 - 2022-06-16

Changed

  • doPivot() function to rotate (pivot) a table (including it's styles).

0.0.1-dev+9 - 2022-06-16

Changed

  • Removed 'tp_expressions' dependency.

0.0.1-dev+8 - 2022-06-15

Changed

  • Dev because of excel: ^2.0.0-null-safety-4

0.0.1+8 - 2022-05-19

Added

  • Incorporated spreadsheet_decoder within the package. it is our responsibility now.
  • Color parsing to spreadsheet_decoder.

Changed

  • Removed dependency spreadsheet_decoder
  • Disabled parsing with 'excel' package (for now).

Fixed

  • spreadsheet_decoder sources (types, typography).

0.0.1 - 2022-01-31

Changed

  • Initial version.

1.4.75

2025-10-03 download

1.4.74

2025-09-22 download

1.4.70

2025-09-04 download

1.4.67

2025-09-03 download

1.4.63

2025-08-08 download

1.4.59

2025-08-06 download

1.4.57

2025-08-04 download

1.4.55

2025-07-28 download

1.4.52

2025-07-23 download

1.4.51

2025-06-24 download

1.4.50

2025-06-23 download

1.4.46

2025-06-17 download

1.4.45

2025-05-22 download

1.4.43

2025-05-20 download

1.4.42

2025-05-13 download

1.4.41

2025-04-24 download

1.4.40

2025-04-18 download

1.4.39

2025-04-02 download

1.4.37

2025-04-01 download

1.4.36

2025-03-25 download

1.4.35

2025-03-19 download

1.4.34

2025-03-05 download

1.4.33

2025-02-28 download

1.4.25

2025-02-24 download

1.4.24

2025-01-22 download

1.4.20

2025-01-21 download

1.4.18

2024-12-23 download

1.4.14

2024-12-19 download

1.4.9

2024-12-13 download

1.4.7

2024-12-12 download

1.4.3

2024-11-22 download

1.4.2

2024-08-22 download

1.4.1

2024-08-07 download

1.4.0

2024-04-05 download

1.3.19

2024-03-26 download

1.3.18

2024-02-01 download

1.3.17

2023-07-11 download

1.3.16

2023-06-20 download

1.3.15

2023-06-07 download

1.3.14

2023-06-06 download

1.3.13

2023-05-22 download

1.3.12

2023-04-17 download

1.3.10

2023-04-13 download

1.3.9

2023-02-09 download

1.3.8

2022-12-27 download

1.3.7

2022-12-22 download

1.3.6

2022-12-22 download

1.3.5

2022-12-21 download

1.3.4

2022-12-12 download

1.3.3

2022-12-07 download

1.3.2

2022-12-07 download

1.3.1

2022-12-05 download

1.3.0

2022-12-02 download

1.2.13

2022-11-30 download

1.2.12

2022-11-24 download

1.2.11

2022-11-14 download

1.2.10

2022-10-19 download

1.2.9

2022-10-11 download

1.2.8

2022-10-05 download

1.2.7

2022-10-01 download

1.2.6

2022-09-30 download

1.2.5

2022-09-29 download

1.2.4

2022-09-22 download

1.2.3

2022-09-16 download

1.2.2

2022-09-05 download

1.2.1

2022-08-31 download

1.2.0

2022-08-08 download

1.1.0

2022-08-06 download

1.0.0-dev

2022-07-25 download