AppDimens Fluid

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

CSS-clamp-like strategy: plateaus at b×0.8 below 320 dp and b×1.2 above 768 dp, with a smooth lerp between — hard bounds guaranteed.

Installation

dependencies:
  appdimens_fluid: ^3.2.0

Prefer one dependency for everything? Use appdimens_bom.

Usage

import 'package:appdimens_fluid/appdimens_fluid.dart';
final text = 16.fsdp;    // fluid clamp on smallest width

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
fsdp / fhdp / fwdp smallest width / height / width fssp/fhsp/fwsp fsem/fhem/fwem

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

License

Apache License 2.0 — © Jean Bodenberg.

Libraries

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