AppDimens Flutter

August 22, 2026 · View on GitHub

Version 3.2.0 · Flutter port of the AppDimens Dynamic / KMP family

Every strategy guide follows the same skeleton: what it is → calculation → how to use → why use it → when to use it → advantages & trade-offs → recommended usage — mirroring the documentation of the Kotlin family.

Strategy guides (14)

#StrategyPackageGuideDp stems
1Scaled (default)appdimens_flutterscaled.mdsdp / hdp / wdp
2Percentappdimens_percentpercent.mdpsdp / phdp / pwdp
3Powerappdimens_powerpower.mdpwsdp / pwhdp / pwwdp
4Fluidappdimens_fluidfluid.mdfsdp / fhdp / fwdp
5Autoappdimens_autoauto.mdasdp / ahdp / awdp
6Diagonalappdimens_diagonaldiagonal.mddgsdp / dghdp / dgwdp
7Fill (cover)appdimens_fillfill.mdflsdp / flhdp / flwdp
8Fit (contain)appdimens_fitfit.mdftsdp / fthdp / ftwdp
9Interpolatedappdimens_interpolatedinterpolated.mdisdp / ihdp / iwdp
10Logarithmicappdimens_logarithmiclogarithmic.mdlogsdp / loghdp / logwdp
11Perimeterappdimens_perimeterperimeter.mdprsdp / prhdp / prwdp
12Densityappdimens_densitydensity.mddsdp / dhdp / dwdp
13Resizeappdimens_resizeresize.mdAutoResizeText, AutoResizeSquare, ResizeBound
14Physical unitsappdimens_unitsphysical-units.mdmm / cm / inch converters

Every dp stem has sp twins (ssp, hsp, wsp with the strategy prefix, e.g. pssp) and no-font-scale variants (sem, hem, wem).

Cross-cutting documents

DocumentContent
API-CONVENTIONS.mdSuffix grammar, inverters, facilitators, builders, Px twins, Flutter adaptations
MATHEMATICS-AND-CALCULUS.mdFormal formulas, hardcoded constants, precomputation matrix, precision policy
MODULES.mdPackage graph and dependency rules
../LLMS.txtLLM-oriented library index
../skills/SKILL.mdAI-agent workflow skill (with library-map / reference)

Decision flowchart

Need a size that grows with the screen?

├─ Just "bigger screen = bigger UI"          → Scaled (sdp/hdp/wdp)      ← start here
├─ Text must never overflow                  → Resize (AutoResizeText)
├─ Size as a fraction of the screen          → Percent (or literal spaceW/spaceH)
├─ Sub-linear growth on big screens          → Auto or Logarithmic
├─ Smooth clamp between min/max              → Fluid
├─ Preserve shape on extreme aspect ratios   → add the a suffix (aspect ratio)
└─ Real-world physical size                  → Units (mm/cm/inch)

Precision policy

All math runs in IEEE-754 doubles using the same constants as the Kotlin engine (ι = 0.0033333334, k = 0.0026666667, reference AR 1.78). Parity against the Kotlin formulas is verified by generated reference vectors with a tolerance far below the family's < 0.05 dp policy.