# screen-0.0.5 **Repository Path**: zexzcm/screen-0.0.5 ## Basic Information - **Project Name**: screen-0.0.5 - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-18 - **Last Updated**: 2021-03-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Screen [![pub package](https://img.shields.io/pub/v/screen.svg)](https://pub.dartlang.org/packages/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](https://flutter.io/platform-plugins/). Make sure you add the following permissions to your Android Manifest ``` ``` ## Example ``` dart // Import package import 'package:screen/screen.dart'; // Get the current brightness: double brightness = await Screen.brightness; // Set the brightness: Screen.setBrightness(0.5); // Check if the screen is kept on: bool isKeptOn = await Screen.isKeptOn; // Prevent screen from going into sleep mode: Screen.keepOn(true); ```