mk_sizer 1.0.2 copy "mk_sizer: ^1.0.2" to clipboard
mk_sizer: ^1.0.2 copied to clipboard

Adaptive Size helper created using concept of responsive_sizer and flutter_screen_util package.

1.0.2 #

  • Added MKSizedBox, a const-capable SizedBox that scales width with .w and height with .h.
  • Added MKPadding, a const-capable Padding that scales horizontal insets with .w and vertical insets with .h, and updates on size change.

1.0.1 #

  • Added 10.gap: a responsive, axis-aware gap widget (MKGap) that scales with .w inside a Row and .h inside a Column, matching the main-axis detection used by package:gap but without depending on it.

1.0.0 #

  • Renamed the package to mk_sizer (import package:mk_sizer/mk_sizer.dart).
  • Responsive sizing extensions: .w, .h, .r, .sp, .pw, .ph, spacing widgets and EdgeInsets helpers.
  • Added MKEdgeInsets and MKEdgeInsetsDirectional; the directional variant scales horizontal values with .w and vertical with .h.
  • MKSizer.builder is now a WidgetBuilder.
  • Extensions no longer throw before MKSizer has built; they scale 1:1.
  • Added MKSizerModel (an InheritedModel) and context.w/h/r/sp/pw/ph, which rebuild a widget only when the axis it uses changes and work inside const subtrees.
  • MKSizer.rebuildOnChange (default true) rebuilds the subtree on size change so 10.w is correct inside const widgets.
  • Added tests.
0
likes
150
points
0
downloads

Documentation

API reference

Publisher

verified publisherkishormainali.com

Weekly Downloads

Adaptive Size helper created using concept of responsive_sizer and flutter_screen_util package.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on mk_sizer