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.

Libraries

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