mo_adapt 0.1.1
mo_adapt: ^0.1.1 copied to clipboard
Every UI dimension scales proportionally to the screen. No .w/.h/.sp.
Changelog #
0.1.1 #
- Pubspec adjust
0.1.0 #
Initial release.
MoAdaptwidget: wrap your app once and every logical dimension scales proportionally to the screen from a referencedesignSize— no.w/.h/.spaccessors, no child changes.- Scale strategies:
width(default),height,min,max, plusminScale/maxScaleclamps and anenabledtoggle. - Design-space
MediaQueryrewriting (size, devicePixelRatio, padding, viewPadding, viewInsets, systemGestureInsets, displayFeatures) soSafeArea, dialogs, and keyboard avoidance stay consistent. MoAdapt.of(context)/maybeOfexposingMoAdaptData(scale,designSize,screenSize,adaptedSize,unscale).