appdimens_resize 3.2.0
appdimens_resize: ^3.2.0 copied to clipboard
AppDimens resize strategy module — part of the modular AppDimens Flutter family (port of appdimens-dynamic / KMP).
AppDimens Resize #
Part of the AppDimens Flutter family — Flutter port of AppDimens Dynamic / AppDimens KMP.
Constraint-based auto-fit: builds a step table and binary-searches the largest candidate that fits — plus ready widgets AutoResizeText and AutoResizeSquare.
Installation #
dependencies:
appdimens_resize: ^3.2.0
Prefer one dependency for everything? Use
appdimens_bom.
Usage #
import 'package:appdimens_resize/appdimens_resize.dart';
AutoResizeText('Headline', minSp: 10, maxSp: 28),
AutoResizeSquare(min: 40, max: 120, child: Icon(Icons.aspect_ratio));
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 |
|---|---|---|---|
| Range search + fitting predicates | not axis-bound | sp bounds supported | — |
See the complete guide: DOCUMENTATION/resize.md · Math · API conventions
License #
Apache License 2.0 — © Jean Bodenberg.