Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeflutter_fgbg

Detects when the Flutter app goes to the background or foreground at the app level.

pub.devRemove
privacy_screen

Hides sensitive data in the app switcher and provides automatic lock triggers with native lifeCycle listeners.

pub.devRemove
ScoresHealth64 (best)56
Maintenance28 (best)6
Quality9191
Popularity86 (best)64
Community3452 (best)
Compatibility100100
UsageDownloads (30 days)142k (best)9k
Likes182 (best)79
Pub points140 / 160140 / 160
GitHub stars95 (best)6
MaintenanceLatest release0.8.0, 8 months ago (best)0.0.8, 2 years ago
Major versions in 12 months00
Contributors6 (best)3
PublisherUnverifiededdyuan.com
FitPlatformsAndroid, iOSAndroid, iOS
WASM-readyNoYes
KindPlugin (native code)Plugin (native code)
Code generationNoNo
Direct dependencies0 (best)1
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Avoids false positives from native container changes like FaceID prompts
  • Provides both a reactive widget and an event stream
  • Includes ignoreWhile API to bypass specific events like image picking
  • Uses native app lifecycles instead of Flutter's to ensure proper behavior when entering native views.
  • Supports custom privacy images and blur effects on iOS.
  • Provides a native lifecycle events stream and customizable lock gates.
Weaknesses
  • Can be triggered by actions like picking an image on newer Android versions that open external apps
  • Requires a clean build after adding to integrate native code
  • The plugin is explicitly marked as no longer maintained.
  • Android does not support custom privacy views and disables screenshots globally when enabled.
  • Lock screens cannot be presented on top of active native views on iOS.
Warnings
  • Native setup
  • Native setup
flutter_fgbg vs privacy_screen: which Flutter package should you use? | pubscout