Skip to main content

flutter_screen_time_api 1.0.0 copy "flutter_screen_time_api: ^1.0.0" to clipboard
flutter_screen_time_api: ^1.0.0 copied to clipboard

Screen time

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add flutter_screen_time_api

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

dependencies:
  flutter_screen_time_api: ^1.0.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:flutter_screen_time_api/android_overlay_configuration.dart';
import 'package:flutter_screen_time_api/flutter_screen_time.dart';
import 'package:flutter_screen_time_api/flutter_screen_time_method_channel.dart';
import 'package:flutter_screen_time_api/flutter_screen_time_platform_interface.dart';