display_metrics_web 0.0.2
display_metrics_web: ^0.0.2 copied to clipboard
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.