Skip to content
pubscout

units_converter

3.3.2, released 8 weeks ago by an unverified publisher

Lightweight Dart package for internationalizing and converting units of measurement.

WASM-ready
$ flutter pub add units_converter
Source repository

What it does

It converts between a vast range of measurement units like length, mass, temperature, and numeral systems. It also allows developers to define custom simple or complex linear/non-linear conversions.

AI-written summary of version 3.3.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to convert units of measurement in a Flutter or Dart app.
  • You want to internationalize measurement units with custom formatting and decimal separators.

Skip it when

  • You require real-time currency conversion rates fetched from an online API (this package only handles static mapping).

Strengths

  • Zero dependencies
  • Supports a wide array of built-in unit categories
  • Supports custom conversions and numeral systems

Weaknesses

  • Does not automatically fetch live exchange rates or external data

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
var inches = 1.convertFromTo(LENGTH.meters, LENGTH.inches);
print(inches);

Alternatives

Packages that do the same job and could replace units_converter.

  • fling_units

    Dependency-free, type-safe Dart library for unit conversion.

  • physical

    Library for dealing with physical quantities, units, and conversions.

  • quantify

    Type-safe unit conversion and measurement library for Dart and Flutter.

  • byte_converter

    High‑performance byte and data‑rate conversion with BigInt precision and built‑in localization.