AppDimens Diagonal

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

Scales by the window diagonal against the design baseline (√(300²+533²)) — orientation-stable and qualifier-independent.

Installation

dependencies:
  appdimens_diagonal: ^3.2.0

Prefer one dependency for everything? Use appdimens_bom.

Usage

import 'package:appdimens_diagonal/appdimens_diagonal.dart';
final size = 16.dgsdp;   // same value on every axis/rotation

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
dgsdp / dghdp / dgwdp any (independent) dgssp/dghsp/dgwsp dgsem/dghem/dgwem

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

License

Apache License 2.0 — © Jean Bodenberg.

Libraries

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