Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeis_lock_screen

Detects if a device is currently in the lock screen.

pub.devRemove
is_lock_screen2

Detects whether an Android or iOS device is currently in the lock screen state.

pub.devRemove
ScoresHealth5056 (best)
Maintenance045 (best)
Quality91100 (best)
Popularity51 (best)27
Community41 (best)17
Compatibility100100
UsageDownloads (30 days)4.1k (best)2.7k
Likes47 (best)8
Pub points140 / 160160 / 160 (best)
GitHub stars4 (best)1
MaintenanceLatest release2.0.0, 6 years ago2.1.0, 5 months ago (best)
Major versions in 12 months00
Contributors13 (best)
Publishertarosago.xyzUnverified
FitPlatformsAndroid, iOSAndroid, iOS
WASM-readyYesYes
KindPlugin (native code)Plugin (native code)
Code generationNoNo
Direct dependencies00
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Simple, single-purpose API.
  • Avoids using non-public APIs on iOS to comply with App Store requirements.
  • Distinguishes between app minimization and screen locking.
  • Provides both a nullable API and a throwing API for handling errors.
  • Uses safe native APIs instead of private APIs that violate App Store guidelines.
Weaknesses
  • iOS detection relies on screen brightness checking and only works on physical devices.
  • No stream-based listening out of the box, requires manual polling via lifecycle observers.
  • iOS implementation is purely heuristic and does not use a stable public lock-screen API.
  • Does not work on iOS simulators (physical device required).
Warnings
  • Native setup
  • Native setup
is_lock_screen vs is_lock_screen2: which Flutter package should you use? | pubscout