screen_dimension 0.0.1 icon indicating copy to clipboard operation
screen_dimension: ^0.0.1 copied to clipboard

PlatformAndroid

Flutter plugin for getting android device screen height.

screen_dimension #

Flutter plugin for getting Android device height.

Usage #

Future<void> _getHeight() async {
    double height;
    try {
      height = await ScreenDimension.getHeight;
    } on PlatformException {
      height = 0;
    }
}

ScreenDimension.getHeight is asynchronous task.

Contributing #

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License #

BSD

0
likes
100
pub points
0%
popularity

Publisher

unverified uploader

Flutter plugin for getting android device screen height.

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.BSD-2-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on screen_dimension