NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #3821 most downloaded on pub.dev
Simple and light units conversion package for all your needs.
Last release 12 days ago
26 Sep 2026
Ships fairly regularly
a new release about every 3 months
Nearly every release is documented
notes for 28 of 28 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
28 releases · first in 2021
One column per quarter.
Added the decimalSeparator parameter to every property: it lets you choose the string used to separate the integer part from the decimal one in string
decimalSeparator parameter to every property: it lets you choose
the string used to separate the integer part from the decimal one in
stringValues (default is "."). It can also be changed at runtime through the
public decimalSeparator fieldPerformance improvements thanks to caching + minor code revision
3625045)convertFromTo extensions by caching the
underlying property instances instead of rebuilding them on every callBump actions/checkout from 6 to 7
Added the following units:
Breaking
VOLUME.cups has been renamed to VOLUME.usCupsBump codecov/codecov-action from 5 to 6
Documentation and comments update
Breaking
MASS.tons has been renamed to MASS.tonnes since these are two different
unitsNew pressure units: gigapascal ( @Kheirlb )
New mass unit: grains ( @TheRealFakeAdmin )
Minor refinements to US volume units (cups, tablespoon, teaspoon)
Full changelog: 3.0.1...3.0.2
New unit: imperial quarts ( @jacksonlo )
Full changelog: 3.0.0...3.0.1
Improvements to the conversion algorithm: now it is simpler and ~10% faster
Breaking:
leafNodes has been renamed to childrenFull changelog: 2.1.1...3.0.0
Added Illuminance property ( @denxorz )
Added 5 new properties: density, amount of substance, molar volume, molar mass and reciprocal of molar mass. Now it is also possible to define a compo
Added 5 new properties: density, amount of substance, molar volume, molar mass and reciprocal of molar mass. Now it is also possible to define a compound unit in the form of a ratio (e.g. Density units are defined as the ratio between mass and volume).
Thanks to @Dokotela for his PRs!
We forced the use of types. So that many more error will be caught at compile-time. E.g. ConversionNode has an associated type that is the type of the
We finally introduce extensions on num and String. Checkout the documentation for more details. Now you can easily convert in this way: `dart 1.conver
num and String. Checkout the
documentation for more details. Now you can easily convert in this way:1.convertFromTo(LENGTH.meters, LENGTH.inches)
We also refactor a little bit the code: now all the properties inherit from
CustomProperty, this change leads to a reduction of ~500 lines of code.
We fixed a wrong conversion (energy foot pound)
Breaking:
Node becomes ConversionNodeSimpleCustomConversion becomes
SimpleCustomPropertyCustomConversion becomes CustomPropertyImproved the formatting of the string representation of the number (stringValue): now it is also possible to choose between decimal or scientific nota
Improved the formatting of the string representation of the number
(stringValue): now it is also possible to choose between decimal or
scientific notation. Added feet (US survey), feet squared (US survey) and
kilocalories.
Fix compatibility issue of 1.1.0 with the previous release.
Fix compatibility issue of 1.1.0 with the previous release.
Updated README.md.
Updated README.md.
Fix links in README.md.
Fix links in README.md.
In this release we added a complete CustomConversion definition. You are not anymore tied to SimpleCustomProperty! Check it out in the updated README.
In this release we added a complete CustomConversion definition. You are not
anymore tied to SimpleCustomProperty! Check it out in the updated README. We
also simplified all the code!
units_converter is stable since some releases. In this first 1.x version we made a huge work to improve the algorithm conversion. Now it is 2x faster
units_converter is stable since some releases. In this first 1.x version we
made a huge work to improve the algorithm conversion. Now it is 2x faster
then the previous one and it is simpler (less line of code with known
algorithms). We added more test, the code coverage is now 100%. This release
will not break anything, it is compatible with the previous one.
Added hectoPascal. Added a bunch of other test (99% code coverage). Minor bug fix (non-critical).
Added hectoPascal. Added a bunch of other test (99% code coverage). Minor bug fix (non-critical).
Breaking. In this release we used the lints package and changed enum to camelCase. We also added minutes/kilometer and energy foot pounds units.
Breaking. In this release we used the lints package and changed enum to
camelCase. We also added minutes/kilometer and energy foot pounds units.
Add support for null safety. Added some test. Added fluid ounces, gill, pennyweight, troy ounce. Bugfix.
Add support for null safety. Added some test. Added fluid ounces, gill, pennyweight, troy ounce. Bugfix.
Added mils.
Added mils.
Added Property class. It is the parent of all the properties. In this way we can also remove some code. Now you can assign a custom name to a Property
Added Property class. It is the parent of all the properties. In this way we can also remove some code. Now you can assign a custom name to a Property object.
Fix force conversion. Fix some comment and README
Fix force conversion. Fix some comment and README
Fix time typo and time symbols
Fix time typo and time symbols
First release
First release
Your coding agent can read these notes before it upgrades. Set up the MCP server →