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.
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.
- wakelock_plus
Keep the device screen awake across mobile, desktop, and web platforms.
92Compare - display_metrics
Retrieve physical display size, resolution, and PPI, and convert inches and mm to logical pixels.
78Compare - corner_radius_plugin
Flutter plugin to read device screen corner radii on Android and iOS
69Compare - contacts_service_plus
Retrieve and manage device contacts on Android and iOS devices.
64Compare