appdimens_auto 3.2.0
appdimens_auto: ^3.2.0 copied to clipboard
AppDimens auto strategy module — part of the modular AppDimens Flutter family (port of appdimens-dynamic / KMP).
AppDimens Auto #
Part of the AppDimens Flutter family — Flutter port of AppDimens Dynamic / AppDimens KMP.
Linear on phones, logarithmically damped beyond the 480 dp transition — the pragmatic hybrid recommended as the second choice after Scaled.
Installation #
dependencies:
appdimens_auto: ^3.2.0
Prefer one dependency for everything? Use
appdimens_bom.
Usage #
import 'package:appdimens_auto/appdimens_auto.dart';
final pad = 16.asdp;
final w = 800.awdp;
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 |
|---|---|---|---|
asdp / ahdp / awdp |
smallest width / height / width | assp/ahsp/awsp |
asem/ahem/awem |
See the complete guide: DOCUMENTATION/auto.md · Math · API conventions
License #
Apache License 2.0 — © Jean Bodenberg.