appdimens_fit 3.2.0
appdimens_fit: ^3.2.0 copied to clipboard
AppDimens fit strategy module — part of the modular AppDimens Flutter family (port of appdimens-dynamic / KMP).
AppDimens Fit #
Part of the AppDimens Flutter family — Flutter port of AppDimens Dynamic / AppDimens KMP.
CSS contain semantics: uses the smaller axis ratio so elements always fit inside their target area.
Installation #
flutter pub add appdimens_fit # Flutter apps
dart pub add appdimens_fit # pure-Dart packages
Or manually in pubspec.yaml:
dependencies:
appdimens_fit: ^3.2.0
📦 Package page: pub.dev/packages/appdimens_fit
Prefer one dependency for everything? Use
appdimens_bom.
Usage #
import 'package:appdimens_fit/appdimens_fit.dart';
final logo = 64.ftsdp;
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 |
|---|---|---|---|
ftsdp / fthdp / ftwdp |
contain ratio | ftssp/fthsp/ftwsp |
ftsem/fthem/ftwem |
See the complete guide: DOCUMENTATION/fit.md · Math · API conventions
License #
Apache License 2.0 — © Jean Bodenberg.