screen_helper 1.0.0 copy "screen_helper: ^1.0.0" to clipboard
screen_helper: ^1.0.0 copied to clipboard

A package that provides essential tools to access device screen details, including PPI, screen size in inches, resolution in pixels, and conversion from millimeters to pixels.

1.0.0 #

  • changed the implementation to use inherited widget. so you can access the screen information from any widget in the widget tree.
  • changed method to convert to be an extension method. so you can use it like context.mmToPx(15)
  • added support to get the screen diagonal in pixels.
  • added support to convert pixels to mm.
  • added support to convert inches to pixels and pixels to inches.
  • added support to convert cm to pixels and pixels to cm.

0.0.3 #

  • Updated README.md file.

0.0.2 #

  • Updated README.md file.

0.0.1 #

  • Added support to get device PPI.
  • Added support to get device screen size (width, hight and diagonal). in inches.
  • Added support to get device screen resolution (width and hight). in pixels.
  • Added support to convert mm to pixels.
2
likes
160
points
35
downloads
screenshot

Publisher

unverified uploader

Weekly Downloads

A package that provides essential tools to access device screen details, including PPI, screen size in inches, resolution in pixels, and conversion from millimeters to pixels.

Repository (GitHub)
View/report issues

Topics

#screen #size #mm #px #ppi

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on screen_helper