appdimens_units 3.2.0 copy "appdimens_units: ^3.2.0" to clipboard
appdimens_units: ^3.2.0 copied to clipboard

AppDimens units strategy module — part of the modular AppDimens Flutter family (port of appdimens-dynamic / KMP).

AppDimens Units #

Part of the AppDimens Flutter family — Flutter port of AppDimens Dynamic / AppDimens KMP.

Physical units: mm/cm/inch → dp/px/sp conversions with optional calibrated ppi, pure unit↔unit converters and radius helpers.

Installation #

dependencies:
  appdimens_units: ^3.2.0

Prefer one dependency for everything? Use appdimens_bom.

Usage #

import 'package:appdimens_units/appdimens_units.dart';
final card = DimenPhysicalUnits.toDpFromMm(85, scope: scope);
final cm   = 25.4.mmToCm;

Family grammar #

Every strategy shares the same API grammar — suffixes (a · i · ia), orientation inverters (Ph/Lh/Pw/Lw), facilitators (Rotate/Mode/Qualifier/ Screen + Plain pairs), sp twins (ssp) and no-font-scale stems (sem):

Stem Axis Sp No font scale
Stem Axis Text (sp) No font scale
mm / cm / inch converters physical

See the complete guide: DOCUMENTATION/physical-units.md · Math · API conventions

License #

Apache License 2.0 — © Jean Bodenberg.

1
likes
150
points
92
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

AppDimens units strategy module — part of the modular AppDimens Flutter family (port of appdimens-dynamic / KMP).

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#responsive #ui #scaling

License

Apache-2.0 (license)

Dependencies

appdimens_flutter, flutter

More

Packages that depend on appdimens_units