mo_adapt 0.1.0
mo_adapt: ^0.1.0 copied to clipboard
Wrap your app once and every UI dimension - text, padding, icons, radii, widths, heights - scales proportionally to the screen from a reference design size. No .w/.h/.sp accessors needed.
Changelog #
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).