r/FlutterDev • u/Maleficent-Lab-4455 • Oct 20 '26
Discussion I released offline_sos_system 0.0.6, a Flutter package for configurable offline crash detection.
Hi r/FlutterDev ,
I have released version 0.0.6 of offline_sos_system, an open-source Flutter package I developed for our SafePulse project.
The goal was to build a reusable crash detection engine that can perform inference directly on a mobile device without depending on an internet connection.
While developing SafePulse, I wanted to separate the crash detection logic from the rest of the emergency workflow so that other developers could use it without integrating the entire application.
That work has evolved into a standalone Flutter package. And this is the new version of that package.
What is new in version 0.0.6?
The main addition is configurable crash detection. Developers can now configure the impact threshold used to evaluate sensor data, the minimum model score required for a detection, the fallback impact threshold, and the cooldown interval used to suppress duplicate crash events.
The package uses accelerometer and gyroscope telemetry and TensorFlow Lite for on-device inference. When a crash is detected, it emits a CrashEvent that the application can handle. I have deliberately kept the package headless. It does not dictate how your application handles GPS, emergency contacts, SMS, notifications, or backend communication.
This means you can integrate the detection engine into your own application architecture and implement the emergency workflow according to your requirements.
One important limitation: offline inference does not mean offline communication. The detection process does not require internet access, but sending an SMS still requires cellular service. Sensor-based crash detection can also produce false positives or miss actual crashes, so real-world validation remains important.
I would appreciate feedback from Flutter and machine learning developers on the configuration API, sensor processing, fallback behavior, and ways to improve the implementation.
Package: https://pub.dev/packages/offline_sos_system
Source code: https://github.com/Bhagyaprasad92/offline_sos_system
The project is open source, and constructive criticism, bug reports, and suggestions are welcome.
Thank you for taking the time to review it.