FLUTTER ECOSYSTEM

wakelock_plus

Plugin that allows you to keep the device screen awake, i.e. prevent the screen from sleeping on Android, iOS, macOS, Windows, Linux, and web.

Latest version
1.8.1
30-day downloads
2.4M
Likes
645
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

wakelock_plus is a Flutter plugin that prevents the device screen from sleeping, keeping it awake across multiple platforms including Android, iOS, web, macOS, Windows, and Linux. It's ideal for applications requiring continuous screen visibility, such as video players, navigation apps, or kiosk modes. The package provides simple APIs to enable or disable the wakelock, ensuring consistent behavior regardless of the platform. It’s lightweight and integrates seamlessly into existing Flutter projects.

Use cases
  • Video playback
  • Navigation apps
  • Kiosk mode
  • Digital signage
  • Interactive tutorials
  • Long-running processes
Key features
  • Cross-platform support
  • Simple API
  • Low battery impact
  • Auto-release on app exit
  • Platform-specific optimizations
  • No native code required
Suitable for
  • Media apps
  • Point-of-sale systems
  • Educational tools
  • Presentation apps
  • Applications needing uninterrupted display
Considerations
  • May increase battery usage
  • Requires user permission on some platforms
  • Not suitable for background tasks
  • Can interfere with system power management
  • Should be disabled when not needed
  • Potential usability issues if overused
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add wakelock_plus

Categories

Dependencies

Dependency list 6 items

Source repository

Related projects

Rankings