Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributekeep_screen_on

Disables automatic screen off and prevents the screen from turning off.

pub.devRemove
no_screenshot

Disable screenshots and screen recording, detect events, and show overlays in the app switcher.

pub.devRemove
ScoresHealth7587 (best)
Maintenance6578 (best)
Quality9497 (best)
Popularity6987 (best)
Community5280 (best)
Compatibility100100
UsageDownloads (30 days)30k127k (best)
Likes54298 (best)
Pub points160 / 160160 / 160
GitHub stars1344 (best)
MaintenanceLatest release7.0.0, 3 months ago (best)2.0.1, 3 months ago
Major versions in 12 months21 (best)
Contributors310 (best)
Publishercraftsoft.devflutterplaza.com
FitPlatformsAndroid, iOSAndroid, iOS, Web, Windows, macOS, Linux
WASM-readyNoYes
KindPlugin (native code)Plugin (native code)
Code generationNoNo
Direct dependencies1 (best)2
LicenseMITBSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Simple API to turn the screen lock on and off.
  • Supports fine-grained Android-specific flags like FLAG_ALLOW_LOCK_WHILE_SCREEN_ON.
  • Cross-platform support covering Android, iOS, macOS, Linux, Windows, and Web.
  • Provides both imperative methods and stream-based screenshot/recording detection.
  • Supports app-switcher overlay modes like blur, color, and images.
Weaknesses
  • Requires manual cleanup in dispose methods to prevent the screen from staying on indefinitely.
  • Some methods and features are only available on Android.
  • Platform limitations on Linux and Web prevent actual blocking of screenshots or screen recordings.
  • Screenshot file paths are only available on macOS and Linux due to platform restrictions.
Warnings
  • Native setup
  • Native setup
keep_screen_on vs no_screenshot: which Flutter package should you use? | pubscout