display_metrics_web 0.0.2 copy "display_metrics_web: ^0.0.2" to clipboard
display_metrics_web: ^0.0.2 copied to clipboard

Platformweb
unlisted

Web platform implementation of display_metrics plugin. This package will be automatically included in your app when you use display_metrics in Web project

display_metrics_web #

The web implementation of display_metrics.

Usage #

This package is endorsed, which means you can simply use display_metrics normally. This package will be automatically included in your app when you do, so you do not need to add it to your pubspec.yaml.

However, if you import this package to use any of its APIs directly, you should add it to your pubspec.yaml as usual.

Limitations #

Due to browser limitations, it's not possible to accurately determine the physical screen dimensions or the actual DPI on the web platform. Browsers use a unit called a CSS pixel, which is not a physical pixel but a unit based on a reference pixel, defined as 1/96th of an inch. This system depends on the viewing angle of the device and varies across displays, making it impossible to obtain accurate physical measurements or DPI through web APIs. You can read more here.

0
likes
150
points
902
downloads

Publisher

verified publishernukeolay.dev

Weekly Downloads

2024.09.16 - 2025.03.31

Web platform implementation of display_metrics plugin. This package will be automatically included in your app when you use display_metrics in Web project

Repository (GitHub)

Topics

#screen #ppi #size #resolution #pixels

Documentation

API reference

License

MIT (license)

Dependencies

display_metrics_platform_interface, flutter, flutter_web_plugins

More

Packages that depend on display_metrics_web