appdimens_density 3.2.0
appdimens_density: ^3.2.0 copied to clipboard
AppDimens density strategy module — part of the modular AppDimens Flutter family (port of appdimens-dynamic / KMP).
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.