display_metrics 0.1.0 copy "display_metrics: ^0.1.0" to clipboard
display_metrics: ^0.1.0 copied to clipboard

outdated

Flutter plugin that provides display metrics such as real screen resolution, physical display size, ppi, diagonal. Also it contains BuildContext extension to transform inches & cm into Flutter logical pixels.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add display_metrics

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  display_metrics: ^0.1.0

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:display_metrics/display_metrics.dart';
16
likes
0
points
946
downloads

Publisher

verified publishernukeolay.dev

Weekly Downloads

Flutter plugin that provides display metrics such as real screen resolution, physical display size, ppi, diagonal. Also it contains BuildContext extension to transform inches & cm into Flutter logical pixels.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on display_metrics

Packages that implement display_metrics