screen_down_detector 0.0.1 copy "screen_down_detector: ^0.0.1" to clipboard
screen_down_detector: ^0.0.1 copied to clipboard

A Flutter widget that detects when a device is placed with its screen facing down.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add screen_down_detector

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

dependencies:
  screen_down_detector: ^0.0.1

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:screen_down_detector/screen_down_detector.dart';
1
likes
160
points
9
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter widget that detects when a device is placed with its screen facing down.

Repository (GitHub)
View/report issues

Topics

#accelerometer #device-orientation #sensors

License

MIT (license)

Dependencies

flutter, sensors_plus

More

Packages that depend on screen_down_detector