How akshaybaiju18/resqer works
ResQer is a Flutter emergency-response app for users, bystanders, and hospitals. Its main flow is to detect or report an incident, gather location and incident details, then notify emergency contacts and responders; hospitals can monitor requests and dispatch ambulances. Separate branches handle one-tap SOS and blood-donor matching. The README documents these capabilities and integrations, but the sampled source is platform scaffolding rather than Dart runtime code, so edges below reflect documented flows, not inspected call sites.
Main entry points: accident_photo.dart Accident Report · sos_service.dart SOS Dispatch · crash_detection_service.dart Crash Detection · main.dart App Entry
Components 22
User Journeys
- App Entry
lib/main.dart - Home and Account
lib/screens/home_page.dart - SOS Screen
lib/screens/sos_page.dart - Crash Alert
lib/screens/crash_detection_alert.dart - Accident Report
lib/screens/accident_photo.dart - Hospital Dashboard
lib/screens/hospital_dashboard.dart - Blood Requests
lib/screens/BloodReq.dart
Emergency Response
- SOS Dispatch
lib/services/sos_service.dart - Location Service
lib/services/location_service.dart - Donor Matching
lib/services/blood_request_service.dart - Hospital Requests
lib/services/hospital_service.dart
Detection and Reporting
- Crash Detection
lib/services/crash_detection_service.dart - Accident and Severity Models
lib/utils/accident_detector.dart - Image Preprocessing
lib/utils/image_preprocessor.dart
Backend and Integrations
- Firebase Backend
- Cloudinary Media
- Twilio SMS
lib/services/twilio_service.dart - Crash Validation API
- Device Sensors
- GPS Provider
Other components
- User / Bystander
- Hospital Staff
Connections 24
- User / Bystander → App Entry: opens
README.md - App Entry → Home and Account: navigates to
README.md - User / Bystander → SOS Screen: triggers SOS
README.md - User / Bystander → Accident Report: reports incident
README.md - Device Sensors → Crash Detection: provides readings
README.md - Crash Detection → Crash Validation API: validates crash
README.md - Crash Detection → Crash Alert: starts countdown
README.md - Crash Alert → SOS Dispatch: dispatches alert
README.md - Accident Report → Image Preprocessing: compresses image
README.md - Accident Report → Accident and Severity Models: checks accident
README.md - Accident Report → Cloudinary Media: uploads image
README.md - Accident and Severity Models → Accident Report: estimates severity
README.md - SOS Screen → SOS Dispatch: requests dispatch
README.md - SOS Dispatch → Location Service: gets coordinates
README.md - Location Service → GPS Provider: reads position
README.md - SOS Dispatch → Twilio SMS: sends SMS
README.md - SOS Dispatch → Firebase Backend: notifies responders
README.md - User / Bystander → Blood Requests: requests donor
README.md - Blood Requests → Donor Matching: submits request
README.md - Donor Matching → Firebase Backend: queries nearby donors
README.md - Hospital Staff → Hospital Dashboard: monitors requests
README.md - Hospital Dashboard → Hospital Requests: manages dispatch
README.md - Hospital Requests → Firebase Backend: reads requests
README.md - Home and Account → Firebase Backend: uses accounts
README.md