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

outdatedDart 1 only

A new Flutter plugin.

Screen #

A Flutter plugin to manage the device's screen on Android and iOS.

Usage #

To use this plugin, add screen as a dependency in your pubspec.yaml file.

Make sure you add the following permissions to your Android Manifest

<uses-permission android:name="android.permission.WAKE_LOCK" />

Example #

// Import package
import 'package:screen/screen.dart';

// Get the current brightness:
double brightness = await Screen.brightness;

// Set the brightness:
Screen.setBrightness(0.5);

// Prevent screen from going into sleep mode:
Screen.keepOn(true);
121
likes
0
pub points
90%
popularity

Publisher

unverified uploader

A new Flutter plugin.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on screen