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
flutter_lifecycle_detector

A Flutter plugin to detect when the app enters background or foreground mode.

pub.devRemove
ScoresHealth64 (best)46
Maintenance28 (best)4
Quality9191
Popularity86 (best)27
Community3441 (best)
Compatibility100100
UsageDownloads (30 days)142k (best)2.7k
Likes182 (best)9
Pub points140 / 160140 / 160
GitHub stars95 (best)0
MaintenanceLatest release0.8.0, 8 months ago (best)0.0.8, 2 years ago
Major versions in 12 months00
Contributors6 (best)1
PublisherUnverifiedngovang.com
FitPlatformsAndroid, iOSAndroid, iOS
WASM-readyNoYes
KindPlugin (native code)Plugin (native code)
Code generationNoNo
Direct dependencies00
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
  • Simple stream-based API for monitoring background and foreground transitions.
  • Easy integration with minimal boilerplate code.
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
  • Limited platform support (only Android and iOS).
  • Minimal documentation and features beyond basic detection.
Warnings
  • Native setup
  • Native setup
flutter_fgbg vs flutter_lifecycle_detector: which Flutter package should you use? | pubscout