android_sleep_tracker 0.0.1
android_sleep_tracker: ^0.0.1 copied to clipboard
Flutter API over Android's native sleep tracking (Google Play Services Activity Recognition Sleep API). Android-only, no UI, no health scoring.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add android_sleep_trackerThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
android_sleep_tracker: ^0.0.1Alternatively, 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:android_sleep_tracker/android_sleep_tracker.dart';