units_converter
Simple and light units conversion package for all your needs.
3.3.1
6.4K downloads/mo
#3513 most downloaded on pub.dev
ferraridamiano/units_converter
What this package is like to depend on
Last release 4 days ago
20 Aug 2026
Ships fairly regularly
a new release about every 4 months
Nearly every release is documented
notes for 27 of 27 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
27 releases · first in 2021
4 releases in the last 12 months
see the full history below
Release timeline
27 releases · Jan 2021 to Aug 2026Releases
latest 27-
3.3.120 Aug 2026Release notes
Open source →⚡ Performance
- Performance improvements thanks to caching + minor code revision (
3625045)
Release notes
Open source →- Significant speedup of the
convertFromToextensions by caching the underlying property instances instead of rebuilding them on every call - Numeral systems conversion is now faster: cached regular expressions and more efficient base conversion algorithms
- Performance improvements thanks to caching + minor code revision (
-
3.3.011 Jul 2026Release notes
Open source →🚀 Features
🧰 Miscellaneous Tasks
- Bump actions/checkout from 6 to 7 (#69) (
2920ccc) - Bump codecov/codecov-action from 6 to 7 (#68) (
a470343)
👥 Contributors
Release notes
Open source →Added the following units:
- Average month
- Speed of sound
- Metric cup
- US cup
- British cup
- Miles / Liter
- Short ton
- Long ton
- US Barrel
- Cubic yard
Breaking
VOLUME.cupshas been renamed toVOLUME.usCups
- Bump actions/checkout from 6 to 7 (#69) (
-
3.2.019 May 2026Release notes
Open source →⚡ Performance
🧰 Miscellaneous Tasks
- Bump codecov/codecov-action from 5 to 6 (#65) (
8cbfad8) - Bump softprops/action-gh-release from 2 to 3 (#66) (
62ac417)
👥 Contributors
Release notes
Open source →- This release significantly boosts conversion performance by introducing lazy string conversion and variable reference buffering.
- Bump codecov/codecov-action from 5 to 6 (#65) (
-
3.1.008 Feb 2026Release notes
Open source →🐛 Bug Fixes
- Fixed github action tag (
76f2dea)
📝 Documentation
- Documentation and comments update (
4f0e9ee)
🚀 Features
- Added speed of light, teaspoon metric, pound force inch, watt hours, BTU (
9cea857) - Added git cliff for github release changelog (
bb21a9d)
🧰 Miscellaneous Tasks
Release notes
Open source →- New units added: speed of light, teaspoon metric, pound force inch, watt hours, BTU
Breaking
MASS.tonshas been renamed toMASS.tonnessince these are two different units
- Fixed github action tag (
-
3.0.411 May 2025 -
3.0.312 Apr 2025Release notes
Open source →- New mass unit: grains (@TheRealFakeAdmin)
- New density units: lb/in³ and lb/ft³ (@Kheirlb)
- New pressure units: ksi, megapascal (@Kheirlb)
Release notes
Open source →- New mass unit: grains (@TheRealFakeAdmin)
- New density units: lb/in³ and lb/ft³ (@Kheirlb)
- New pressure units: ksi, megapascal (@Kheirlb)
-
3.0.222 Sep 2024Release notes
Open source →- Minor refinements to US volume units (cups, tablespoon, teaspoon)
Full changelog:
3.0.1...3.0.2 -
3.0.120 Jul 2024Release notes
Open source →- New unit: imperial quarts (@jacksonlo)
- New unit: teaspoon US (@vasba)
Full changelog:
3.0.0...3.0.1 -
3.0.021 Jan 2024Release notes
Open source →- Improvements to the conversion algorithm: now it is simpler and ~10% faster
- Now requires Dart >= 3.0
- New unit: kilopascal (@jmguazzo)
Breaking:
- In custom conversion
leafNodeshas been renamed tochildren
Full changelog:
2.1.1...3.0.0Release notes
Open source →- Improvements to the conversion algorithm: now it is simpler and ~10% faster
- Now requires Dart >= 3.0
- New unit: kilopascal (@jmguazzo)
Breaking:
- In custom conversion
leafNodeshas been renamed tochildren
-
2.1.118 Aug 2023Release notes
Open source →- Added Illuminance property (@denxorz)
- Added kilojoules (@lhengl)
- Fixed typos (@denxorz)
- Bump Dart constraints
-
2.1.011 Dec 2022Release notes
Open source →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!
-
2.0.130 Jul 2022Release notes
Open source →- Improved Pascal-Bar conversion
- 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 name (e.g. LENGTH, AREA, etc.)
-
2.0.017 May 2022Release notes
Open source →- We finally introduce extensions on
numandString. 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:
NodebecomesConversionNodeSimpleCustomConversionbecomesSimpleCustomPropertyCustomConversionbecomesCustomProperty
- We finally introduce extensions on
-
1.2.004 May 2022Release notes
Open source →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. -
1.1.101 Nov 2021 -
1.1.1+113 Dec 2021 -
1.1.1+213 Dec 2021 -
1.1.001 Nov 2021Release notes
Open source →In this release we added a complete
CustomConversiondefinition. You are not anymore tied toSimpleCustomProperty! Check it out in the updated README. We also simplified all the code! -
1.0.026 Oct 2021Release notes
Open source →units_converteris 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. -
0.4.112 Oct 2021Release notes
Open source →Added hectoPascal. Added a bunch of other test (99% code coverage). Minor bug fix (non-critical).
-
0.4.014 Sep 2021Release notes
Open source →Breaking. In this release we used the
lintspackage and changed enum to camelCase. We also added minutes/kilometer and energy foot pounds units. -
0.3.005 Mar 2021Release notes
Open source →Add support for null safety. Added some test. Added fluid ounces, gill, pennyweight, troy ounce. Bugfix.
-
0.3.0+121 Apr 2021 -
0.2.012 Feb 2021Release notes
Open source →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.
-
0.2.0+113 Feb 2021 -
0.2.0+213 Feb 2021 -
0.1.007 Jan 2021