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