# flutter_screen_wake **Repository Path**: BlakeKing/flutter_screen_wake ## Basic Information - **Project Name**: flutter_screen_wake - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-11 - **Last Updated**: 2025-07-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Flutter Screen Wake ``` Plugin is Null Safety` ``` [![pub package](https://img.shields.io/pub/v/flutter_screen_wake.svg)](https://pub.dartlang.org/packages/flutter_screen_wake) A Flutter plugin to manage the device's screen on Android and iOS. ## Usage To use this plugin, add `flutter_screen_wake` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/). Make sure you add the following permissions to your Android Manifest ```xml ``` ## Example ``` dart // Import package import 'package:flutter_screen_wake/flutter_screen_wake.dart'; // Get the current brightness: double brightness = await FlutterScreenWake.brightness; // Set the brightness: FlutterScreenWake.setBrightness(0.5); // Check if the screen is kept on: bool isKeptOn = await FlutterScreenWake.isKeptOn; // Prevent screen from going into sleep mode: FlutterScreenWake.keepOn(true); ```