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

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

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.

1
likes
150
points
89
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

AppDimens fluid 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_fluid