Skip to main content

size_helper 2.2.0 copy "size_helper: ^2.2.0" to clipboard
size_helper: ^2.2.0 copied to clipboard

SizeHelper is a Flutter package for developing a responsive UI, with more control on UI components based on the current screen-size.

2.2.0 #

  • Fix tabletNormal: it had the same width as tabletSmall (400), so it was never picked. It is now 425.
  • Export ScreenInfo from package:size_helper/size_helper.dart, so helpBuilder callbacks can name the type without importing src/.
  • Remove mockito from runtime dependencies (it was pulled into every app that used this package) and build_runner: any from dev dependencies.
  • Raise minimum versions to Dart 3.0 and Flutter 3.10. 2.1.0 already needed Flutter 3.10 for MediaQuery.sizeOf.
  • README fixes (tabletNormal/tabletLarge names, landscape behavior on web and desktop, sample log line). The demo GIF is no longer shipped in the package archive.
  • Add widget tests, Maestro flows and GitHub Actions CI.

2.1.0 #

  • Start using .sizeOf(context)instead of .of(context).size.

2.0.0 #

  • Make the breakpoints depend on Width not Height.
  • Update breakpoints values.

1.1.1+4 #

  • Fix README.md screenshot gif.

1.1.0+3 #

  • Enhance README.md and add more explanation for the package.
  • Add some sort of caching approach for not calculating the suitable breakpoint if the widget rebuild with that same the screen width and height.
  • Use ScreenInfo model for helpBuilder method.
// Old
SizeBox(
    height: SizeHelper.of(context).helpBuilder(
        mobileLarge: (_,height , __) => height,
        desktopNormal: (_,height, __) => height * 1.5,
    ),
)

// New
SizeBox(
    height: SizeHelper.of(context).helpBuilder(
        mobileLarge: (info) => info.height,
        desktopNormal: (info) => info.height * 1.5,
    ),
)

1.0.0+2 #

  • Use log instead of print.
  • Move package to stable version 1.0.0+2.

0.0.1+1 #

  • Update pubspec.yaml description.
  • Add valid homepage URL.
  • Add orientation option with helpBuilder method.

0.0.1 #

  • Initial release.
59
likes
140
points
262
downloads

Documentation

API reference

Publisher

verified publisherabdelazeem-kuratem.engineer

Weekly Downloads

SizeHelper is a Flutter package for developing a responsive UI, with more control on UI components based on the current screen-size.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on size_helper