pkg_calc_module version: 0.0.18

Published 2025-07-23

reinbeumer

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

TODO: Put a short description of the package here that helps potential users know whether this package might be useful for them.

Features

Calculate (possible) multiple scenarios of print productions for an given item.

Getting started

TODO: List prerequisites and provide or point to information on how to start using the package.

Usage

TODO: Include short and useful examples for package users. Add longer examples to /example folder.

const like = 'sample';

Additional information

The gist:

Provide a json like string and calculate different scenarios witch are applicable for the provided options in the string. The base data is provided via the database, but can be overwritten for this case with a spreadsheet or provided solely by a spreadsheet.

If the required data is not provided within the spreadsheet, it wil be looked up in the database

Flow:

  • Provide a json like string like this:
final String inputOrderContext =
      '{itemSize: 320x430,materialName:HVO,materialWeight:170,itemNumOfPages:2,itemNumOfItemsInSet:2,itemSides:DSOI}';
  • Convert this to a proper JSON:
final Map<String, dynamic> inputOrderMap = JsonStringConverter(
    rawJsonString: inputOrderContext,
  ).jsonString;
  • Create a ModelOrder object from the JSON:
final ModelOrder inputOrderModel = ModelerOrder(
    orderMap: inputOrderMap,
  ).modelOrder;
  • Create a ModelContext object
final ModelContext orderContext = ModelerContextOrder(
    modelInputOrder: inputOrderModel,
    spreadsheetBase: baseSpreadsheet,
  ).modelOrderContext;

--- The ModelContext creates the models needed to calculate the different scenarios: --- ModelItem, witch contains the item related data. --- List<ModelMaterial>, witch contains the applicable materials. --- ModelJT - modelJtMaterialDefaultSizes, witch contains the many to many lookups for the material and default sizes. --- ModelJT - modelJtMaterialPrinters, witch contains the many to many lookups for the material and printers. --- List<ModelPrinter>, witch contains the applicable printers. --- List<ModelDefaultSheetSize, witch contains the applicable default sheet sizes.

  • Create a ModelCalculations object
  • Create a ModelOutputSpreadheet object

A calculation module for print productions.

graph

Changelog

0.0.18 - 2025-07-23

Changed

  • Version bump from 0.0.17 to 0.0.18 (test -> 1.26.3 (was 1.26.2)).

0.0.17 - 2025-05-22

Changed

  • Version bump from 0.0.16 to 0.0.17 (lints -> 6.0.0 (was 5.1.1)).

0.0.16 - 2025-05-22

Changed

  • Version bump from 0.0.15 to 0.0.16 (test -> 1.26.2 (was 1.26.1)).

0.0.15 - 2025-05-20

Changed

  • Version bump from 0.0.14 to 0.0.15 (test -> 1.26.1 (was 1.26.0)).

0.0.14 - 2025-05-13

Changed

  • Version bump from 0.0.13 to 0.0.14 (test -> 1.26.0 (was 1.25.15)).

0.0.13 - 2025-04-02

Changed

  • Version bump from 0.0.12 to 0.0.13 (test -> 1.25.15 (was 1.25.14)).

0.0.12 - 2024-12-23

Changed

  • Version bump from 0.0.11 to 0.0.12 (test -> 1.25.14 (was 1.25.13)).

0.0.11 - 2024-12-23

Changed

  • Version bump from 0.0.10 to 0.0.11 (lints -> 5.1.1 (was 5.1.0)).

0.0.10 - 2024-12-19

Changed

  • Version bump from 0.0.9 to 0.0.10 (Support Apple silicon (arm64)).

0.0.9 - 2024-12-18

Changed

  • Version bump from 0.0.8 to 0.0.9 (test -> 1.25.13 (was 1.25.12)).

0.0.8 - 2024-12-12

Changed

  • Version bump from 0.0.7 to 0.0.8 (lints -> 5.1.0 (was 5.0.0)).

0.0.7 - 2024-12-05

Changed

  • Version bump from 0.0.6 to 0.0.7 (test -> 1.25.12 (was 1.25.11)).

0.0.6 - 2024-12-04

Changed

  • Version bump from 0.0.5 to 0.0.6 (test -> 1.25.11 (was 1.25.10)).

0.0.5 - 2024-12-03

Changed

  • Version bump from 0.0.4 to 0.0.5 (test -> 1.25.10 (was 1.25.9)).

0.0.4 - 2024-11-27

Changed

  • Version bump from 0.0.3 to 0.0.4 (test -> 1.25.9 (was 1.25.8)).

0.0.3 - 2024-08-22

Changed

  • Version bump from 0.0.2 to 0.0.3 (SDK update 3.5.1).

0.0.2 - 2024-02-01

Changed

  • Version bump from 0.0.1 to 0.0.2 (Resolve package version confusions).

0.0.1 - 2023-07-26

  • Initial version.

0.0.18

2025-07-23 download

0.0.17

2025-05-22 download

0.0.15

2025-05-20 download

0.0.14

2025-05-13 download

0.0.13

2025-04-02 download

0.0.12

2024-12-23 download

0.0.10

2024-12-19 download

0.0.9

2024-12-18 download

0.0.8

2024-12-12 download

0.0.4

2024-11-27 download

0.0.3

2024-08-22 download

0.0.2

2024-02-01 download

0.0.1

2023-07-26 download