Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeproximity_sensor

Flutter plugin to read proximity sensor events on Android and iOS

pub.devRemove
screen_state

Tracks screen state events on Android and iOS.

pub.devRemove
ScoresHealth6981 (best)
Maintenance4780 (best)
Quality9797
Popularity71 (best)53
Community4580 (best)
Compatibility100100
UsageDownloads (30 days)48k (best)6.2k
Likes48 (best)40
Pub points160 / 160160 / 160
GitHub stars8610 (best)
MaintenanceLatest release2.0.0, 4 months ago5.0.2, 4 months ago (best)
Major versions in 12 months11
Contributors893 (best)
PublisherUnverifiedcachet.dk
FitPlatformsAndroid, iOSAndroid, iOS
WASM-readyNoNo
KindPlugin (native code)Plugin (native code)
Code generationNoNo
Direct dependencies00
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Simple API with a single Stream
  • Cross‑platform support (Android & iOS)
  • Handles required permissions and platform quirks
  • Provides a simple stream-based API for screen events.
  • Supports both Android and iOS platforms.
Weaknesses
  • Requires Flutter >=3.44 and Dart ^3.12
  • Android 12+ needed for explicit exported activity
  • No support for virtual proximity sensors on some devices
  • iOS detection has specific limitations such as requiring passcodes for unlock events and not working in the simulator.
  • Low brightness settings on iOS may erroneously generate screen on events.
Warnings
  • Native setup
  • Native setup
proximity_sensor vs screen_state: which Flutter package should you use? | pubscout