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

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

AppDimens Percent #

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

Percentage strategy: the linear Scaled law under the psdp/phdp/pwdp stems plus a literal percentage family — 30.spaceW is exactly 30 % of the window width.

Installation #

dependencies:
  appdimens_percent: ^3.2.0

Prefer one dependency for everything? Use appdimens_bom.

Usage #

import 'package:appdimens_percent/appdimens_percent.dart';
final frac = 30.spaceW;     // 30% of current width
final band = 25.spaceH;     // 25% of current height
final pad  = 10.psdp;       // Scaled-law percent stem

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
psdp / phdp / pwdp smallest width / height / width pssp/phsp/pwsp psem/phem/pwem

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

License #

Apache License 2.0 — © Jean Bodenberg.

1
likes
150
points
88
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

AppDimens percent 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_percent