Skip to content
pubscout

flutter_screen_wake

1.0.2, released 6 years ago by an unverified publisher

Manage device screen wake state and brightness on Android and iOS.

WASM-ready
$ flutter pub add flutter_screen_wake
Source repository

What it does

A Flutter plugin that allows developers to read and set screen brightness, check if the screen is kept awake, and prevent the device from going into sleep mode. It supports both Android and iOS platforms.

AI-written summary of version 1.0.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to keep the screen awake during specific app activities
  • You need to read or adjust screen brightness programmatically

Skip it when

  • You do not need to interact with screen wake or brightness controls

Strengths

  • Simple API for managing screen wake and brightness
  • Supports both Android and iOS

Weaknesses

  • Requires manual Android manifest permission configuration
  • Limited to screen wake and brightness functionality

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
0

Requires adding the WAKE_LOCK permission to the Android Manifest.

import 'package:flutter_screen_wake/flutter_screen_wake.dart';

double brightness = await FlutterScreenWake.brightness;
FlutterScreenWake.setBrightness(0.5);
FlutterScreenWake.keepOn(true);

Alternatives

Packages that do the same job and could replace flutter_screen_wake.