carpenter_units 0.3.0 copy "carpenter_units: ^0.3.0" to clipboard
carpenter_units: ^0.3.0 copied to clipboard

Cascading relative units for Flutter.

0.3.0 #

  • Added typed deg, rad, and turn angle units with explicit conversions between degrees, radians, and complete turns.
  • Added numeric literals and canonical parsing for all angle units.

0.2.2 #

  • Added the pure-Dart package:carpenter_units/units.dart entrypoint for build-time consumers that must not load the Flutter widget runtime.

0.2.1 #

  • Restored the Flutter UnitsRoot and BuildContext cascade APIs.
  • Reject time units from length-only Flutter context resolution.

0.2.0 #

  • Added a pure-Dart physical unit model while preserving the Flutter cascade.
  • Added canonical parsing and serialization for px, rem, em, ms, and s.
  • Added explicit length resolution contexts and typed missing-context errors.
  • Added Milliseconds and Seconds with deterministic Duration conversion.

0.1.0 #

  • Initial release.
  • Added typed px, em, and rem units.
  • Added contextual unit resolution.
  • Added element-local em cascading.
  • Added local set() and reset() operations.