AppDimens Density

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

Anchors sizes to the physical pixel density (dpi/160) instead of the window size — for games, AR overlays and calibration UIs.

Installation

dependencies:
  appdimens_density: ^3.2.0

Prefer one dependency for everything? Use appdimens_bom.

Usage

import 'package:appdimens_density/appdimens_density.dart';
final marker = 24.dsdp;

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
dsdp / dhdp / dwdp density-driven dssp/dhsp/dwsp dsem/dhem/dwem

See the complete guide: DOCUMENTATION/density.md · Math · API conventions

License

Apache License 2.0 — © Jean Bodenberg.

Libraries

appdimens_density
Author & Developer: Jean Bodenberg GIT: https://github.com/bodenberg/appdimens