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

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 Dart:

 $ dart pub add display_metrics

With Flutter:

 $ flutter pub add display_metrics

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

dependencies:
  display_metrics: ^0.1.0

Alternatively, your editor might support dart pub get or 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';
14
likes
0
points
1.01k
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