Skip to content

About

Mr. Defence is a Flutter-based emergency app that lets users quickly alert guardians or authorities during danger. With one tap or a triple-press, it sends real-time location, media, and personal info for fast response.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

Β 

History

64 Commits

Folders and files

Repository files navigation

🚨 Mr. Defence - Safety & Emergency Companion App

Mr. Defence is a Flutter-based safety and security mobile application developed as our graduation project during the journey at ITI - ICC Frontend & Cross-Platform Mobile Development Track.


πŸ“± App Overview

Mr. Defence empowers users to report emergencies effectively using their smartphones. It provides two main safety features:

  • πŸ”˜ Alert Button – For generic or non-extreme emergencies.
  • πŸ†˜ SOS Button – For urgent, life-threatening situations requiring immediate autonomous response.

πŸ‘₯ Team

This app was developed by a team of four:

  • Yousef Khalaf
  • Malak Haitham
  • Alaa Ahmed

πŸš€ Key Features

πŸ”˜ Alert Button

  • Used for less urgent emergencies (e.g., fire, harassment, theft, missing pet).
  • Users can:
    • Choose from predefined tags (or skip).
    • Proceed to a form for optional attachments:
      • Images
      • Description
      • GPS Location
      • Time of alert
      • User profile data
  • Requires user to assign guardians before activation.
  • Sends notifications and all attached data to selected guardians (who must be Dispatcher users).

πŸ†˜ SOS Button

  • Designed for extreme emergencies (e.g., accidents, violence, serious injuries).
  • Triggered by triple-press gesture for quick action.
  • Autonomous data capture includes:
    • Front camera snapshot
    • Rear camera snapshot
    • 1-minute voice recording
    • GPS location, time, and optional tag
  • Sends request to both:
    • Guardians
    • Nearest authorities (e.g., police, hospital, fire station)
  • Strong notification behavior for recipients (e.g., vibration until response).
  • Guardians can Accept or Decline the SOS request via the app.

πŸ” Authentication

  • Phone number sign-in and sign-up via Firebase Authentication.
  • No passwords or usernames required.
  • Onboarding and splash screen experience included.

πŸ“‚ Technologies Used

  • Flutter with FVM for version management
  • Firebase (Authentication & Firestore)
  • Cloudinary for media storage
  • goRouter for navigation
  • Cubit for state management
  • Shared Preferences for local data
  • VS Code for development
  • Trello for task management and planning

🧍 Victim Profile Data

Users can pre-fill critical personal information such as:

String nid = '';
String passport = '';
String driverLicense = '';
String firstName = '';
String lastName = '';
String birthDate = '';
String bloodType = '';
bool wheelchair = false;
bool diabetes = false;
bool heartDisease = false;
String profileImage = '';
String height = '';
String weight = '';
String gender = '';
String tattoo = '';
String scar = '';
String nationality = '';
GeoPoint? homeLocation;
GeoPoint? workLocation;
String nativeLanguage = '';
String email = '';
List<String>? guardians;

This data is automatically attached to every emergency request for quick assistance.


🧭 App Flow

  1. User signs in with phone number

  2. Sets up profile & adds guardians

  3. Uses:

    • Alert Button for minor emergencies
    • SOS Button for extreme cases
  4. Guardian (also Dispatcher user) receives:

    • Normal notification for Alert
    • Strong, unmissable notification for SOS
  5. Guardian can Accept or Decline request


πŸ“Έ Screenshots

Splash & Onboarding Alert Flow SOS Flow
Splash Alert SOS
Onboarding Alert Tags SOS
Onboarding Alert SOS
Onboarding Received Alert SOS
Onboarding image Notifications

Demo Video

Watch the app in action: http://bit.ly/3IshXpW


πŸ›  Installation

flutter pub get
fvm use
flutter run

Make sure to configure your own Firebase project and Cloudinary keys before running.


βœ… Future Improvements

  • Real-time location tracking for guardians
  • Panic shortcut via volume keys
  • Multilingual support
  • Accessibility options

πŸ“¬ Contact

For any inquiries, suggestions, or bug reports, please contact yousef.mohamed.abdelhameed@gmail.com .

About

Mr. Defence is a Flutter-based emergency app that lets users quickly alert guardians or authorities during danger. With one tap or a triple-press, it sends real-time location, media, and personal info for fast response.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages