mo_adapt 0.1.0 copy "mo_adapt: ^0.1.0" to clipboard
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.

  • MoAdapt widget: wrap your app once and every logical dimension scales proportionally to the screen from a reference designSize — no .w/.h/.sp accessors, no child changes.
  • Scale strategies: width (default), height, min, max, plus minScale/maxScale clamps and an enabled toggle.
  • Design-space MediaQuery rewriting (size, devicePixelRatio, padding, viewPadding, viewInsets, systemGestureInsets, displayFeatures) so SafeArea, dialogs, and keyboard avoidance stay consistent.
  • MoAdapt.of(context) / maybeOf exposing MoAdaptData (scale, designSize, screenSize, adaptedSize, unscale).
1
likes
150
points
9
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on mo_adapt