├── ios
├── Flutter
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── AppFrameworkInfo.plist
├── Runner
│ ├── Runner-Bridging-Header.h
│ ├── Assets.xcassets
│ │ ├── LaunchImage.imageset
│ │ │ ├── LaunchImage.png
│ │ │ ├── LaunchImage@2x.png
│ │ │ ├── LaunchImage@3x.png
│ │ │ ├── README.md
│ │ │ └── Contents.json
│ │ └── AppIcon.appiconset
│ │ │ ├── Icon-App-20x20@1x.png
│ │ │ ├── Icon-App-20x20@2x.png
│ │ │ ├── Icon-App-20x20@3x.png
│ │ │ ├── Icon-App-29x29@1x.png
│ │ │ ├── Icon-App-29x29@2x.png
│ │ │ ├── Icon-App-29x29@3x.png
│ │ │ ├── Icon-App-40x40@1x.png
│ │ │ ├── Icon-App-40x40@2x.png
│ │ │ ├── Icon-App-40x40@3x.png
│ │ │ ├── Icon-App-60x60@2x.png
│ │ │ ├── Icon-App-60x60@3x.png
│ │ │ ├── Icon-App-76x76@1x.png
│ │ │ ├── Icon-App-76x76@2x.png
│ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ ├── Icon-App-83.5x83.5@2x.png
│ │ │ └── Contents.json
│ ├── AppDelegate.swift
│ ├── Base.lproj
│ │ ├── Main.storyboard
│ │ └── LaunchScreen.storyboard
│ └── Info.plist
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── WorkspaceSettings.xcsettings
│ │ └── IDEWorkspaceChecks.plist
├── Runner.xcodeproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── WorkspaceSettings.xcsettings
│ │ │ └── IDEWorkspaceChecks.plist
│ ├── xcshareddata
│ │ └── xcschemes
│ │ │ └── Runner.xcscheme
│ └── project.pbxproj
└── .gitignore
├── images
├── ss.jpg
├── banner.jpg
├── glogo.png
└── background.png
├── web
├── favicon.png
├── icons
│ ├── Icon-192.png
│ └── Icon-512.png
├── manifest.json
└── index.html
├── fonts
├── GoogleSans-Regular.ttf
└── LobsterTwo-Regular.ttf
├── android
├── gradle.properties
├── app
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── drawable
│ │ │ │ │ └── launch_background.xml
│ │ │ │ └── values
│ │ │ │ │ └── styles.xml
│ │ │ ├── java
│ │ │ │ └── com
│ │ │ │ │ └── arjunsinha
│ │ │ │ │ └── her_care
│ │ │ │ │ └── MainActivity.java
│ │ │ └── AndroidManifest.xml
│ │ ├── profile
│ │ │ └── AndroidManifest.xml
│ │ └── debug
│ │ │ └── AndroidManifest.xml
│ └── build.gradle
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── .gitignore
├── settings.gradle
└── build.gradle
├── .metadata
├── .gitignore
├── test
└── widget_test.dart
├── README.md
├── lib
├── theme.dart
├── main.dart
├── signin.dart
└── screens
│ ├── contacts.dart
│ ├── login.dart
│ └── home.dart
├── pubspec.yaml
├── LICENSE
└── pubspec.lock
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/images/ss.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/images/ss.jpg
--------------------------------------------------------------------------------
/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/web/favicon.png
--------------------------------------------------------------------------------
/images/banner.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/images/banner.jpg
--------------------------------------------------------------------------------
/images/glogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/images/glogo.png
--------------------------------------------------------------------------------
/images/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/images/background.png
--------------------------------------------------------------------------------
/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/fonts/GoogleSans-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/fonts/GoogleSans-Regular.ttf
--------------------------------------------------------------------------------
/fonts/LobsterTwo-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/fonts/LobsterTwo-Regular.ttf
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 | android.enableR8=true
5 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DrunkOnBytes/Her-Care/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/android/app/src/main/java/com/arjunsinha/her_care/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.arjunsinha.her_care;
2 |
3 | import io.flutter.embedding.android.FlutterActivity;
4 | public class MainActivity extends FlutterActivity {
5 | }
6 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Sat Nov 21 10:00:30 IST 2020
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
7 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: d408d302e22179d598f467e11da5dd968dbdc9ec
8 | channel: beta
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "her_care",
3 | "short_name": "her_care",
4 | "start_url": ".",
5 | "display": "standalone",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "A new Flutter application.",
9 | "orientation": "portrait-primary",
10 | "prefer_related_applications": false,
11 | "icons": [
12 | {
13 | "src": "icons/Icon-192.png",
14 | "sizes": "192x192",
15 | "type": "image/png"
16 | },
17 | {
18 | "src": "icons/Icon-512.png",
19 | "sizes": "512x512",
20 | "type": "image/png"
21 | }
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/app.flx
22 | Flutter/app.zip
23 | Flutter/flutter_assets/
24 | Flutter/flutter_export_environment.sh
25 | ServiceDefinitions.json
26 | Runner/GeneratedPluginRegistrant.*
27 |
28 | # Exceptions to above rules.
29 | !default.mode1v3
30 | !default.mode2v3
31 | !default.pbxuser
32 | !default.perspectivev3
33 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | repositories {
3 | google()
4 | jcenter()
5 | }
6 |
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:4.1.1'
9 | classpath 'com.google.gms:google-services:4.3.4' // Google Services plugin
10 | }
11 | }
12 |
13 | allprojects {
14 | repositories {
15 | google()
16 | jcenter()
17 | }
18 | }
19 |
20 | rootProject.buildDir = '../build'
21 | subprojects {
22 | project.buildDir = "${rootProject.buildDir}/${project.name}"
23 | }
24 | subprojects {
25 | project.evaluationDependsOn(':app')
26 | }
27 |
28 | task clean(type: Delete) {
29 | delete rootProject.buildDir
30 | }
31 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | **/ios/Flutter/.last_build_id
26 | .dart_tool/
27 | .flutter-plugins
28 | .flutter-plugins-dependencies
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | /build/
33 |
34 | # Web related
35 | lib/generated_plugin_registrant.dart
36 |
37 | # Symbolication related
38 | app.*.symbols
39 |
40 | # Obfuscation related
41 | app.*.map.json
42 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 9.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility that Flutter provides. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 |
11 | import 'package:her_care/main.dart';
12 |
13 | void main() {
14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15 | // Build our app and trigger a frame.
16 | await tester.pumpWidget(MyApp());
17 |
18 | // Verify that our counter starts at 0.
19 | expect(find.text('0'), findsOneWidget);
20 | expect(find.text('1'), findsNothing);
21 |
22 | // Tap the '+' icon and trigger a frame.
23 | await tester.tap(find.byIcon(Icons.add));
24 | await tester.pump();
25 |
26 | // Verify that our counter has incremented.
27 | expect(find.text('0'), findsNothing);
28 | expect(find.text('1'), findsOneWidget);
29 | });
30 | }
31 |
--------------------------------------------------------------------------------
/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | her_care
18 |
19 |
20 |
21 |
24 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | her_care
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 
2 | # Her-Care
3 | -----------------------------------
4 | An SOS Alert application to help send SMS alerts to the police and to your emergency contacts.
5 |
6 | ## The problem Her Care strives to solve
7 | ### Women safety is of paramount importance in today's society
8 | ------------------------------------------------
9 | - Women nowadays are not safe to travel at night or in less urban areas due to various criminal activities.
10 | - If they are threatened there is no single platform which they can use for help.
11 | - There are a few applications to help them but none are very reliable.
12 | - The people the woman will most look out for help is her close ones and the police.
13 | - Our application helps solve this basic necessity which every girl should have.
14 |
15 | ### Our Solution
16 | -------------------------------------------------
17 | - I have developed an SOS platform to help women when they are in need of help: “Her Care”.
18 | - The project consists of one mobile app and a web dashboard.
19 | - Users/Women can use the app to send an SOS to the police and all their emergency contacts when feel threatened/distressed.
20 | - The police can view all the SOS alerts on the web dashboard.
21 | - The emergency contacts will receive the SOS in the form of a SMS with their coordinates.
22 |
23 | ### App Features
24 | ---------------------------------------------------
25 | - One click SOS: Send SOS to all emergency contacts and to the police.
26 | - Hardware buttons: Pressing 2 times volume down & 1 time volume up triggers SOS service. (NOT WORKING ON CERTAIN DEVICES)
27 | - Dark mode: To allow easy usage at night
28 | - Real-time Location: Option to share live location with people.
29 |
30 |
31 | ## Screenshots
32 | --------------------------------------------------
33 | 
34 |
35 | ### Web Dashboard is still WORK IN PROGRESS............
36 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
26 | apply plugin: 'com.google.gms.google-services' // Google Services plugin
27 | android {
28 | compileSdkVersion 29
29 |
30 | lintOptions {
31 | disable 'InvalidPackage'
32 | checkReleaseBuilds false
33 | }
34 |
35 | defaultConfig {
36 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
37 | applicationId "com.arjunsinha.her_care"
38 | minSdkVersion 21
39 | targetSdkVersion 29
40 | versionCode flutterVersionCode.toInteger()
41 | versionName flutterVersionName
42 | multiDexEnabled true
43 | }
44 |
45 | buildTypes {
46 | release {
47 | // TODO: Add your own signing config for the release build.
48 | // Signing with the debug keys for now, so `flutter run --release` works.
49 | signingConfig signingConfigs.debug
50 | }
51 | }
52 | }
53 |
54 | flutter {
55 | source '../..'
56 | }
57 |
--------------------------------------------------------------------------------
/lib/theme.dart:
--------------------------------------------------------------------------------
1 | import 'dart:ui';
2 |
3 | import 'package:flutter/material.dart';
4 | import 'package:shared_preferences/shared_preferences.dart';
5 |
6 | class DarkThemePreference {
7 | static const THEME_STATUS = "THEMESTATUS";
8 |
9 | setDarkTheme(bool value) async {
10 | SharedPreferences prefs = await SharedPreferences.getInstance();
11 | prefs.setBool(THEME_STATUS, value);
12 | }
13 |
14 | Future getTheme() async {
15 | SharedPreferences prefs = await SharedPreferences.getInstance();
16 | return prefs.getBool(THEME_STATUS) ?? false;
17 | }
18 | }
19 |
20 | class DarkThemeProvider with ChangeNotifier {
21 | DarkThemePreference darkThemePreference = DarkThemePreference();
22 | bool _darkTheme = false;
23 |
24 | bool get darkTheme => _darkTheme;
25 |
26 | set darkTheme(bool value) {
27 | _darkTheme = value;
28 | darkThemePreference.setDarkTheme(value);
29 | notifyListeners();
30 | }
31 | }
32 |
33 | class Styles {
34 | static ThemeData themeData(bool isDarkTheme, BuildContext context) {
35 | return ThemeData(
36 | primaryColor: isDarkTheme ? Color(0xff070452) : Color(0xfff06292),
37 | accentColor: Color(0xff55cec7),
38 |
39 | fontFamily: 'GoogleSans',
40 |
41 | backgroundColor: isDarkTheme ? Color(0xff3f2b7f) : Color(0xfffbdbf4),
42 | cardColor: isDarkTheme ? Color(0xff009c96) : Color(0xffffffff),
43 | canvasColor: isDarkTheme ? Colors.green : Color(0xff42a5f5),
44 | buttonColor: isDarkTheme ? Color(0xff55cec7) : Color(0xff009c96),
45 | splashColor: isDarkTheme ? Color(0xffff77a9) : Color(0xffb4004e),
46 | // highlightColor: isDarkTheme ? Color(0xff372901) : Color(0xffFCE192),
47 | // hoverColor: isDarkTheme ? Color(0xff3A3A3B) : Color(0xff4285F4),
48 |
49 | // focusColor: isDarkTheme ? Color(0xff0B2512) : Color(0xffA8DAB5),
50 | disabledColor: Colors.grey,
51 | // textSelectionColor: isDarkTheme ? Colors.white : Colors.black,
52 | // cardColor: isDarkTheme ? Color(0xFF151515) : Colors.white,
53 | // canvasColor: isDarkTheme ? Colors.black : Colors.grey[50],
54 | brightness: isDarkTheme ? Brightness.dark : Brightness.light,
55 | buttonTheme: Theme.of(context).buttonTheme.copyWith(
56 | colorScheme: isDarkTheme ? ColorScheme.dark() : ColorScheme.light()),
57 | );
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:get/get.dart';
3 | import 'package:firebase_core/firebase_core.dart';
4 | import 'package:provider/provider.dart';
5 |
6 | import 'theme.dart';
7 | import './screens/home.dart';
8 | import './screens/login.dart';
9 | import './screens/contacts.dart';
10 |
11 | void main() {
12 | WidgetsFlutterBinding.ensureInitialized();
13 | runApp(MyApp());
14 | }
15 |
16 | class MyApp extends StatefulWidget {
17 | @override
18 | _MyAppState createState() => _MyAppState();
19 | }
20 |
21 | class _MyAppState extends State {
22 | final Future _initialization = Firebase.initializeApp();
23 | DarkThemeProvider themeChangeProvider = new DarkThemeProvider();
24 |
25 | @override
26 | void initState() {
27 | super.initState();
28 | getCurrentAppTheme();
29 | }
30 |
31 | void getCurrentAppTheme() async {
32 | themeChangeProvider.darkTheme =
33 | await themeChangeProvider.darkThemePreference.getTheme();
34 | }
35 |
36 | @override
37 | Widget build(BuildContext context) {
38 | return ChangeNotifierProvider(
39 | create: (_)=> themeChangeProvider,
40 | child: Consumer(
41 | builder: (BuildContext context, value, Widget child){
42 | return GetMaterialApp(
43 | debugShowCheckedModeBanner: false,
44 | theme: Styles.themeData(themeChangeProvider.darkTheme, context),
45 | title: 'College Companion',
46 | home: FutureBuilder(
47 | // Initialize FlutterFire:
48 | future: _initialization,
49 | builder: (context, snapshot) {
50 | // Check for errors
51 | if (snapshot.hasError) {
52 | return Center(child: Text("Error"));
53 | }
54 |
55 | // Once complete, show your application
56 | if (snapshot.connectionState == ConnectionState.done) {
57 | return Login();
58 | }
59 |
60 | // Otherwise, show something whilst waiting for initialization to complete
61 | return Center(child: CircularProgressIndicator());
62 | },
63 | ),
64 | initialRoute: '/',
65 | routes: {
66 | '/home': (ctx) => Home(),
67 | '/contacts': (ctx) => Contacts(),
68 | },
69 | );
70 | },
71 | )
72 | );
73 | }
74 | }
75 |
--------------------------------------------------------------------------------
/lib/signin.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_auth/firebase_auth.dart';
2 | import 'package:google_sign_in/google_sign_in.dart';
3 | import 'package:cloud_firestore/cloud_firestore.dart';
4 |
5 |
6 | final FirebaseAuth _auth = FirebaseAuth.instance;
7 | final GoogleSignIn googleSignIn = GoogleSignIn();
8 |
9 | String userName;
10 | String userEmail;
11 | String userImageUrl;
12 | String uid;
13 | String phone;
14 | bool admin;
15 |
16 | Future signInWithGoogle(ctx) async {
17 | final GoogleSignInAccount googleSignInAccount = await googleSignIn.signIn();
18 | final GoogleSignInAuthentication googleSignInAuthentication = await googleSignInAccount.authentication;
19 |
20 | final AuthCredential credential = GoogleAuthProvider.credential(
21 | accessToken: googleSignInAuthentication.accessToken,
22 | idToken: googleSignInAuthentication.idToken,
23 | );
24 |
25 | final authResult = await _auth.signInWithCredential(credential);
26 | final User user = authResult.user;
27 |
28 | assert(!user.isAnonymous);
29 | assert(await user.getIdToken() != null);
30 |
31 | final User currentUser = _auth.currentUser;
32 | assert(user.uid == currentUser.uid);
33 |
34 | assert(user.email != null);
35 | assert(user.displayName != null);
36 | assert(user.photoURL != null);
37 |
38 | userName = user.displayName;
39 | userEmail = user.email;
40 | userImageUrl = user.photoURL;
41 | uid = user.uid;
42 | admin = false;
43 | phone = '';
44 |
45 | if (user != null) {
46 | // Check is already sign up
47 | final QuerySnapshot result = await FirebaseFirestore.instance.collection('users').where('id', isEqualTo: user.uid).get();
48 | final List documents = result.docs;
49 | if (documents.length == 0) {
50 | // Update data to server if new user
51 | FirebaseFirestore.instance.collection('users').doc(user.uid).set(
52 | { 'username': userName, 'photoUrl': userImageUrl, 'id': user.uid, 'email': userEmail, 'phone': '', 'admin': false});
53 | }
54 | else{
55 | phone = documents[0]['phone'];
56 | admin = documents[0]['admin'];
57 | }
58 | }
59 | print('Signed in with Google: $userEmail');
60 | return "Signed In";
61 | }
62 |
63 | void signOut() async{
64 | await _auth.signOut();
65 | await googleSignIn.signOut();
66 | userEmail=null;
67 | userName=null;
68 | userImageUrl=null;
69 | uid = null;
70 | print("User Sign Out");
71 | }
72 |
73 | Future currentUser() async {
74 | return _auth.currentUser.uid;
75 | }
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/lib/screens/contacts.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:fluttercontactpicker/fluttercontactpicker.dart';
3 | import 'package:shared_preferences/shared_preferences.dart';
4 |
5 | class Contacts extends StatefulWidget {
6 | @override
7 | _ContactsState createState() => _ContactsState();
8 | }
9 |
10 | class _ContactsState extends State {
11 | List contactsNums = [];
12 | List contactsNames = [];
13 |
14 | SharedPreferences prefs;
15 |
16 | _initializeContacts() async {
17 | prefs = await SharedPreferences.getInstance();
18 | setState(() {
19 | contactsNums = prefs.getStringList('nums') ?? [];
20 | contactsNames = prefs.getStringList('names') ?? [];
21 | });
22 | }
23 |
24 | @override
25 | void initState() {
26 | _initializeContacts();
27 | super.initState();
28 | }
29 |
30 | @override
31 | Widget build(BuildContext context) {
32 | return Scaffold(
33 | backgroundColor: Theme.of(context).backgroundColor,
34 | appBar: AppBar(
35 | title: Text("Emergency Contacts"),
36 | ),
37 | body: contactsNames.length > 0
38 | ? ListView.builder(
39 | itemCount: contactsNames.length,
40 | itemBuilder: (BuildContext ctx, int i) {
41 | return Card(
42 | margin: EdgeInsets.all(5),
43 | child: ListTile(
44 | leading: Icon(
45 | Icons.account_circle,
46 | size: 35,
47 | ),
48 | title: Text(contactsNames[i]),
49 | subtitle: Text(contactsNums[i]),
50 | trailing: GestureDetector(
51 | child: Icon(Icons.delete),
52 | onTap: () async {
53 | setState(() {
54 | contactsNames.removeAt(i);
55 | contactsNums.removeAt(i);
56 | });
57 | await prefs.setStringList('nums', contactsNums);
58 | await prefs.setStringList('names', contactsNames);
59 | },
60 | ),
61 | ),
62 | );
63 | },
64 | )
65 | : Center(
66 | child: Text('No contacts added yet'),
67 | ),
68 | floatingActionButton: FloatingActionButton(
69 | child: Icon(Icons.add),
70 | onPressed: () async {
71 | final PhoneContact contact =
72 | await FlutterContactPicker.pickPhoneContact();
73 | setState(() {
74 | contactsNames.add(contact.fullName);
75 | contactsNums.add(contact.phoneNumber.number);
76 | });
77 | await prefs.setStringList('nums', contactsNums);
78 | await prefs.setStringList('names', contactsNames);
79 | },
80 | ),
81 | );
82 | }
83 | }
84 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
8 |
9 |
10 |
11 |
12 |
16 |
23 |
27 |
31 |
36 |
40 |
41 |
42 |
43 |
44 |
45 |
47 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: her_care
2 | description: A new Flutter application.
3 |
4 | # The following line prevents the package from being accidentally published to
5 | # pub.dev using `pub publish`. This is preferred for private packages.
6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev
7 |
8 | # The following defines the version and build number for your application.
9 | # A version number is three numbers separated by dots, like 1.2.43
10 | # followed by an optional build number separated by a +.
11 | # Both the version and the builder number may be overridden in flutter
12 | # build by specifying --build-name and --build-number, respectively.
13 | # In Android, build-name is used as versionName while build-number used as versionCode.
14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
16 | # Read more about iOS versioning at
17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18 | version: 1.0.0+1
19 |
20 | environment:
21 | sdk: ">=2.7.0 <3.0.0"
22 |
23 | dependencies:
24 | flutter:
25 | sdk: flutter
26 |
27 |
28 | # The following adds the Cupertino Icons font to your application.
29 | # Use with the CupertinoIcons class for iOS style icons.
30 | cupertino_icons:
31 | get:
32 | rflutter_alert:
33 | sms_maintained:
34 | geolocator:
35 | geocoder:
36 | fluttercontactpicker:
37 | shared_preferences:
38 | avatar_glow:
39 | provider:
40 |
41 | firebase_core: ^0.5.0+1
42 | firebase_auth: ^0.18.1+2
43 | google_sign_in: ^4.5.5
44 | cloud_firestore: ^0.14.1+3
45 | hardware_buttons: ^1.0.0
46 |
47 | # firebase_storage: ^4.0.1
48 |
49 | dev_dependencies:
50 | flutter_test:
51 | sdk: flutter
52 |
53 | # For information on the generic Dart part of this file, see the
54 | # following page: https://dart.dev/tools/pub/pubspec
55 |
56 | # The following section is specific to Flutter.
57 | flutter:
58 |
59 | # The following line ensures that the Material Icons font is
60 | # included with your application, so that you can use the icons in
61 | # the material Icons class.
62 | uses-material-design: true
63 |
64 | # To add assets to your application, add an assets section, like this:
65 | assets:
66 | - images/
67 | # - images/a_dot_ham.jpeg
68 |
69 | # An image asset can refer to one or more resolution-specific "variants", see
70 | # https://flutter.dev/assets-and-images/#resolution-aware.
71 |
72 | # For details regarding adding assets from package dependencies, see
73 | # https://flutter.dev/assets-and-images/#from-packages
74 |
75 | # To add custom fonts to your application, add a fonts section here,
76 | # in this "flutter" section. Each entry in this list should have a
77 | # "family" key with the font family name, and a "fonts" key with a
78 | # list giving the asset and other descriptors for the font. For
79 | # example:
80 | fonts:
81 | - family: GoogleSans
82 | fonts:
83 | - asset: fonts/GoogleSans-Regular.ttf
84 | - family: Lobster
85 | fonts:
86 | - asset: fonts/LobsterTwo-Regular.ttf
87 | # - asset: fonts/TrajanPro_Bold.ttf
88 | # weight: 700
89 | #
90 | # For details regarding fonts from package dependencies,
91 | # see https://flutter.dev/custom-fonts/#from-packages
92 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/lib/screens/login.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | import 'package:flutter/material.dart';
4 | import 'package:get/get.dart';
5 |
6 | import '../signin.dart';
7 |
8 | class Login extends StatefulWidget {
9 | @override
10 | _LoginState createState() => _LoginState();
11 | }
12 |
13 | class _LoginState extends State {
14 | double wd, ht;
15 |
16 | void signIn() async {
17 | try {
18 | final result = await InternetAddress.lookup('google.com');
19 | if (result.isNotEmpty && result[0].rawAddress.isNotEmpty) {
20 | Get.snackbar("", "",
21 | titleText: Row(
22 | children: [
23 | CircularProgressIndicator(
24 | valueColor: new AlwaysStoppedAnimation(
25 | Theme.of(context).accentColor),
26 | ),
27 | Text(
28 | ' Logging In.....',
29 | style: TextStyle(color: Colors.white),
30 | ),
31 | ],
32 | ),
33 | messageText: Text(
34 | " Please wait...",
35 | style: TextStyle(color: Colors.white),
36 | ),
37 | snackPosition: SnackPosition.BOTTOM,
38 | backgroundColor: Color(0xfff06292),
39 | duration: Duration(days: 1));
40 | try {
41 | signInWithGoogle(context).then((val) {
42 | if (val == "Signed In") {
43 | Get.back();
44 | Get.offNamed('/home');
45 | } else {
46 | Get.back();
47 | Get.snackbar("Unable to sign in now.", "Try Again Later.",
48 | snackPosition: SnackPosition.BOTTOM,
49 | backgroundColor: Theme.of(context).primaryColor,
50 | duration: Duration(seconds: 2));
51 | }
52 | });
53 | } catch (e) {
54 | Get.back();
55 | }
56 | }
57 | } on SocketException catch (_) {
58 | Get.snackbar("No Internet Connection.", "Try Again Later.",
59 | snackPosition: SnackPosition.BOTTOM,
60 | backgroundColor: Theme.of(context).primaryColor,
61 | duration: Duration(seconds: 2));
62 | }
63 | }
64 |
65 | void alreadySignedIn() async {
66 | if (await googleSignIn.isSignedIn()) {
67 | signIn();
68 | }
69 | }
70 |
71 | @override
72 | void initState() {
73 | alreadySignedIn();
74 | super.initState();
75 | }
76 |
77 | @override
78 | Widget build(BuildContext context) {
79 | wd = MediaQuery.of(context).size.width;
80 | ht = MediaQuery.of(context).size.height;
81 | return Scaffold(
82 | body: Stack(
83 | children: [
84 | Container(
85 | height: ht,
86 | width: wd,
87 | color: Color(0xfffbdbf4),
88 | ),
89 | Positioned(
90 | top: ht * 0.1,
91 | child: Container(
92 | height: ht * 0.9,
93 | width: wd,
94 | color: Color(0xff009c96),
95 | ),
96 | ),
97 | Positioned(
98 | top: ht * 0.1,
99 | child: Image.asset(
100 | 'images/background.png',
101 | width: wd,
102 | ),
103 | ),
104 | Positioned(
105 | bottom: ht * 0.12,
106 | child: Container(
107 | width: wd,
108 | height: ht * 0.27,
109 | padding: EdgeInsets.fromLTRB(10, 0, 10, 20),
110 | child: Column(
111 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
112 | crossAxisAlignment: CrossAxisAlignment.start,
113 | children: [
114 | Column(
115 | mainAxisAlignment: MainAxisAlignment.start,
116 | crossAxisAlignment: CrossAxisAlignment.start,
117 | children: [
118 | Text(
119 | 'Her Care',
120 | style: TextStyle(
121 | color: Colors.white,
122 | fontSize: 30,
123 | fontWeight: FontWeight.w600,
124 | ),
125 | ),
126 | SizedBox(
127 | height: 8,
128 | ),
129 | Text(
130 | 'The best protection any woman can have.....is courage.',
131 | style: TextStyle(
132 | color: Colors.white,
133 | fontSize: 20,
134 | fontWeight: FontWeight.normal,
135 | ),
136 | ),
137 | ],
138 | ),
139 | ElevatedButton(
140 | style: ButtonStyle(
141 | // splashColor: Color(0xffff80ab),
142 | // color: Color(0xffffafef),
143 | // shape: RoundedRectangleBorder(
144 | // borderRadius: BorderRadius.circular(40),
145 | // side: BorderSide(color: Colors.black38, width: 0.5)),
146 | // highlightElevation: 0,
147 | foregroundColor:
148 | MaterialStateProperty.all(Color(0xffffafef)),
149 | backgroundColor:
150 | MaterialStateProperty.all(Color(0xffffafef)),
151 | shape: MaterialStateProperty.all(
152 | RoundedRectangleBorder(
153 | borderRadius: BorderRadius.circular(40),
154 | side: BorderSide(
155 | color: Colors.black38, width: 0.5))),
156 | ),
157 | onPressed: () => signIn(),
158 | child: Padding(
159 | padding: const EdgeInsets.fromLTRB(0, 10, 0, 10),
160 | child: Row(
161 | mainAxisSize: MainAxisSize.min,
162 | mainAxisAlignment: MainAxisAlignment.center,
163 | children: [
164 | Image.asset(
165 | "images/glogo.png",
166 | height: 35,
167 | ),
168 | Padding(
169 | padding: const EdgeInsets.only(left: 10),
170 | child: Text(
171 | 'Sign in with Google',
172 | style: TextStyle(
173 | fontSize: 20,
174 | color: Colors.black54,
175 | fontWeight: FontWeight.w600),
176 | maxLines: 1,
177 | ),
178 | )
179 | ],
180 | ),
181 | ),
182 | ),
183 | ],
184 | ),
185 | ),
186 | )
187 | ],
188 | ),
189 | );
190 | }
191 | }
192 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright [2020] [Arjun Sinha]
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/lib/screens/home.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 |
3 | import 'package:avatar_glow/avatar_glow.dart';
4 | import 'package:cloud_firestore/cloud_firestore.dart';
5 | import 'package:flutter/cupertino.dart';
6 | import 'package:flutter/material.dart';
7 | import 'package:flutter/services.dart';
8 | import 'package:geocoder/geocoder.dart';
9 | import 'package:geolocator/geolocator.dart';
10 | import 'package:get/get.dart';
11 | import 'package:hardware_buttons/hardware_buttons.dart';
12 | import 'package:provider/provider.dart';
13 | import 'package:rflutter_alert/rflutter_alert.dart';
14 | import 'package:shared_preferences/shared_preferences.dart';
15 | import 'package:sms_maintained/sms.dart';
16 |
17 | import '../signin.dart';
18 | import '../theme.dart';
19 |
20 | class Home extends StatefulWidget {
21 | @override
22 | _HomeState createState() => _HomeState();
23 | }
24 |
25 | class _HomeState extends State {
26 | double wd, ht;
27 | SharedPreferences prefs;
28 | bool loc = true, hardware = false;
29 | int down = 0, up = 0;
30 | StreamSubscription _volumeButtonSubscription;
31 |
32 | void _enterNumber() {
33 | final _key = GlobalKey();
34 | String number;
35 | Alert(
36 | context: context,
37 | style: AlertStyle(
38 | isCloseButton: false,
39 | isOverlayTapDismiss: false,
40 | ),
41 | title: "Contact number",
42 | desc: "Enter your mobile number to continue.",
43 | content: StatefulBuilder(
44 | builder: (BuildContext context, StateSetter setState) {
45 | return Form(
46 | key: _key,
47 | child: Column(
48 | children: [
49 | TextFormField(
50 | maxLines: 1,
51 | keyboardType: TextInputType.phone,
52 | validator: (value) =>
53 | value.isEmpty ? 'Contact Number can\'t be empty' : null,
54 | onSaved: (value) => number = value,
55 | decoration: InputDecoration(
56 | hintText: 'Enter contact number...',
57 | ),
58 | style: TextStyle(
59 | fontSize: 15,
60 | ),
61 | ),
62 | ],
63 | ),
64 | );
65 | },
66 | ),
67 | buttons: [
68 | DialogButton(
69 | color: Colors.green,
70 | child: Text(
71 | "SAVE",
72 | style: TextStyle(color: Colors.white, fontSize: 20),
73 | ),
74 | onPressed: () {
75 | if (_key.currentState.validate()) {
76 | _key.currentState.save();
77 | FirebaseFirestore.instance.collection('users').doc(uid).update(
78 | {'phone': number}).then((value) => print("User Updated"));
79 | print('username : ' + userName);
80 | print('email : ' + userEmail);
81 | print('phone : ' + phone);
82 | Get.back();
83 | }
84 | },
85 | width: 120,
86 | )
87 | ],
88 | ).show();
89 | }
90 |
91 | void _sendSMS() async {
92 | List recipients = prefs.getStringList('nums') ?? [];
93 |
94 | Position position = await Geolocator.getCurrentPosition(
95 | desiredAccuracy: LocationAccuracy.high);
96 | String latlng =
97 | position.latitude.toString() + ',' + position.longitude.toString();
98 | final coordinates = new Coordinates(position.latitude, position.longitude);
99 | var addresses =
100 | await Geocoder.local.findAddressesFromCoordinates(coordinates);
101 | var first = addresses.first.addressLine;
102 | print('Local Address: $first');
103 |
104 | FirebaseFirestore.instance
105 | .collection('sos')
106 | .doc('$uid ${DateTime.now().toString()}')
107 | .set({
108 | 'username': userName,
109 | 'photoUrl': userImageUrl,
110 | 'id': uid,
111 | 'email': userEmail,
112 | 'phone': phone,
113 | 'address': first,
114 | 'latitude': position.latitude.toString(),
115 | 'longitude': position.longitude.toString(),
116 | 'time': DateTime.now(),
117 | 'emergencyContacts': recipients
118 | });
119 | if (recipients.length == 0) {
120 | Get.snackbar('No phone numbers found! Only police will be notified.',
121 | 'Please check Emergency contacts list.');
122 | } else {
123 | String messageBody = 'Help me! I am in trouble.';
124 | if (loc) {
125 | messageBody +=
126 | '\n\nMy current location is:\nhttps://www.google.com/maps/search/?api=1&query=$latlng';
127 | }
128 |
129 | SmsSender sender = new SmsSender();
130 | for (int i = 0; i < recipients.length; i++) {
131 | SmsMessage message = new SmsMessage(recipients[i], messageBody);
132 | message.onStateChanged.listen((state) {
133 | if (state == SmsMessageState.Sent) {
134 | print("SMS $i is sent!");
135 | } else if (state == SmsMessageState.Delivered) {
136 | print("SMS $i is delivered!");
137 | print(messageBody);
138 | }
139 | });
140 | sender.sendSms(message);
141 | }
142 | Get.snackbar(
143 | 'SOS sent!', 'All emergency contacts & police have been notified.');
144 | }
145 | }
146 |
147 | void locationServices() async {
148 | await Geolocator.checkPermission().then((permission) async {
149 | if (permission != LocationPermission.always &&
150 | permission != LocationPermission.whileInUse) {
151 | await Geolocator.requestPermission();
152 | }
153 | });
154 | await Geolocator.isLocationServiceEnabled().then((locationStatus) async {
155 | if (!locationStatus) {
156 | await Geolocator.openAppSettings();
157 | await Geolocator.openLocationSettings();
158 | }
159 | });
160 | prefs = await SharedPreferences.getInstance();
161 | setState(() {
162 | loc = prefs.getBool('loc') ?? true;
163 | hardware = prefs.getBool('hardware') ?? false;
164 | });
165 | }
166 |
167 | @override
168 | void initState() {
169 | _volumeButtonSubscription =
170 | volumeButtonEvents.listen((VolumeButtonEvent event) {
171 | print('zzzzzzzzzzzzzzzzzzzzzzzzzzz');
172 | // if(hardware){
173 | // if(event==VolumeButtonEvent.VOLUME_DOWN){
174 | // print('Volume Down Button Detected');
175 | // down++;
176 | // }
177 | // if(event==VolumeButtonEvent.VOLUME_UP){
178 | // print('Volume Up Button Detected');
179 | // up++;
180 | // }
181 | // if(down == 2 && up ==1){
182 | // print('DETECTED HARDWARE BUTTON SEQUENCE');
183 | // _sendSMS();
184 | // }
185 | // }
186 | // if(event==VolumeButtonEvent.VOLUME_DOWN && down==1){
187 | // Timer(Duration(seconds: 2), () async {
188 | // down = 0;
189 | // up = 0;
190 | // });
191 | // }
192 | });
193 |
194 | RawKeyboard.instance.addListener((RawKeyEvent event) {
195 | print('hhhhhkhbkbkbkbkn');
196 | if (hardware) {
197 | if (event.runtimeType == RawKeyDownEvent &&
198 | event.physicalKey.debugName == 'Audio Volume Down') {
199 | print('Volume Down Button Detected');
200 | down++;
201 | }
202 | if (event.runtimeType == RawKeyDownEvent &&
203 | event.physicalKey.debugName == 'Audio Volume Up') {
204 | print('Volume Up Button Detected');
205 | up++;
206 | }
207 | if (event.runtimeType == RawKeyDownEvent && down == 2 && up == 1) {
208 | print('DETECTED HARDWARE BUTTON SEQUENCE');
209 | _sendSMS();
210 | }
211 | }
212 | if (event.runtimeType == RawKeyDownEvent &&
213 | event.physicalKey.debugName == 'Audio Volume Down' &&
214 | down == 1) {
215 | Timer(Duration(seconds: 2), () async {
216 | down = 0;
217 | up = 0;
218 | });
219 | }
220 | });
221 |
222 | locationServices();
223 |
224 | Timer(Duration(seconds: 2), () async {
225 | if (phone == '') {
226 | _enterNumber();
227 | } else {
228 | print('username : ' + userName);
229 | print('email : ' + userEmail);
230 | print('phone : ' + phone);
231 | }
232 | });
233 | super.initState();
234 | }
235 |
236 | @override
237 | Widget build(BuildContext context) {
238 | wd = MediaQuery.of(context).size.width;
239 | ht = MediaQuery.of(context).size.height;
240 |
241 | final themeChange = Provider.of(context);
242 | return Scaffold(
243 | backgroundColor: Theme.of(context).backgroundColor,
244 | appBar: AppBar(
245 | backgroundColor: Theme.of(context).primaryColor,
246 | title: Text(
247 | '😁 Hello ${userName.substring(0, userName.indexOf(' '))}',
248 | style: TextStyle(
249 | fontFamily: 'Lobster',
250 | fontSize: 25,
251 | ),
252 | ),
253 | actions: [
254 | Padding(
255 | padding: const EdgeInsets.only(right: 25),
256 | child: GestureDetector(
257 | onTap: () => Get.toNamed('/contacts'),
258 | child: Icon(
259 | Icons.contacts,
260 | size: 30,
261 | ),
262 | ),
263 | ),
264 | ],
265 | ),
266 | body: Column(
267 | mainAxisAlignment: MainAxisAlignment.spaceEvenly,
268 | children: [
269 | Text(
270 | 'Send SOS signal to all Emergency Contacts\nPress\n👇',
271 | textAlign: TextAlign.center,
272 | style: TextStyle(fontSize: 18),
273 | ),
274 | AvatarGlow(
275 | glowColor: Theme.of(context).accentColor,
276 | endRadius: wd * 0.5,
277 | duration: Duration(milliseconds: 1700),
278 | repeat: true,
279 | showTwoGlows: true,
280 | repeatPauseDuration: Duration(milliseconds: 100),
281 | child: MaterialButton(
282 | elevation: 3,
283 | onPressed: () => _sendSMS(),
284 | color: Theme.of(context).buttonColor,
285 | textColor: Colors.white,
286 | child: Text(
287 | 'SOS',
288 | style: TextStyle(fontSize: wd * 0.2),
289 | ),
290 | padding: EdgeInsets.all(wd * 0.2),
291 | shape: CircleBorder(),
292 | ),
293 | ),
294 | SizedBox(
295 | width: wd * 0.8,
296 | child: Table(
297 | defaultVerticalAlignment: TableCellVerticalAlignment.middle,
298 | columnWidths: {0: FractionColumnWidth(0.7)},
299 | children: [
300 | TableRow(children: [
301 | Text('Send Location Coordinates:'),
302 | CupertinoSwitch(
303 | activeColor: Theme.of(context).canvasColor,
304 | value: loc,
305 | onChanged: (val) async {
306 | setState(() {
307 | loc = val;
308 | });
309 | await prefs.setBool('loc', loc);
310 | },
311 | ),
312 | ]),
313 | TableRow(children: [
314 | Text('Dark Mode'),
315 | CupertinoSwitch(
316 | activeColor: Theme.of(context).canvasColor,
317 | value: themeChange.darkTheme,
318 | onChanged: (isDarkMode) {
319 | themeChange.darkTheme = isDarkMode;
320 | },
321 | ),
322 | ]),
323 | TableRow(children: [
324 | Text(
325 | 'Hardware Shortcut\nPress VOLUME DOWN twice & VOLUME UP once'),
326 | CupertinoSwitch(
327 | activeColor: Theme.of(context).canvasColor,
328 | value: hardware,
329 | onChanged: (val) async {
330 | setState(() {
331 | hardware = val;
332 | });
333 | await prefs.setBool('hardware', hardware);
334 | },
335 | ),
336 | ]),
337 | ],
338 | ),
339 | ),
340 | ],
341 | ),
342 | );
343 | }
344 |
345 | @override
346 | void dispose() {
347 | super.dispose();
348 | // be sure to cancel on dispose
349 | _volumeButtonSubscription?.cancel();
350 | }
351 | }
352 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | async:
5 | dependency: transitive
6 | description:
7 | name: async
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "2.5.0"
11 | avatar_glow:
12 | dependency: "direct main"
13 | description:
14 | name: avatar_glow
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "1.2.0"
18 | boolean_selector:
19 | dependency: transitive
20 | description:
21 | name: boolean_selector
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "2.1.0"
25 | characters:
26 | dependency: transitive
27 | description:
28 | name: characters
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.1.0"
32 | charcode:
33 | dependency: transitive
34 | description:
35 | name: charcode
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "1.2.0"
39 | clock:
40 | dependency: transitive
41 | description:
42 | name: clock
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "1.1.0"
46 | cloud_firestore:
47 | dependency: "direct main"
48 | description:
49 | name: cloud_firestore
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "0.14.4"
53 | cloud_firestore_platform_interface:
54 | dependency: transitive
55 | description:
56 | name: cloud_firestore_platform_interface
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "2.2.1"
60 | cloud_firestore_web:
61 | dependency: transitive
62 | description:
63 | name: cloud_firestore_web
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "0.2.1+2"
67 | collection:
68 | dependency: transitive
69 | description:
70 | name: collection
71 | url: "https://pub.dartlang.org"
72 | source: hosted
73 | version: "1.15.0"
74 | contact_picker_platform_interface:
75 | dependency: transitive
76 | description:
77 | name: contact_picker_platform_interface
78 | url: "https://pub.dartlang.org"
79 | source: hosted
80 | version: "4.2.0"
81 | contact_picker_web:
82 | dependency: transitive
83 | description:
84 | name: contact_picker_web
85 | url: "https://pub.dartlang.org"
86 | source: hosted
87 | version: "4.2.1"
88 | cupertino_icons:
89 | dependency: "direct main"
90 | description:
91 | name: cupertino_icons
92 | url: "https://pub.dartlang.org"
93 | source: hosted
94 | version: "1.0.2"
95 | fake_async:
96 | dependency: transitive
97 | description:
98 | name: fake_async
99 | url: "https://pub.dartlang.org"
100 | source: hosted
101 | version: "1.2.0"
102 | ffi:
103 | dependency: transitive
104 | description:
105 | name: ffi
106 | url: "https://pub.dartlang.org"
107 | source: hosted
108 | version: "1.0.0"
109 | file:
110 | dependency: transitive
111 | description:
112 | name: file
113 | url: "https://pub.dartlang.org"
114 | source: hosted
115 | version: "6.1.0"
116 | firebase_auth:
117 | dependency: "direct main"
118 | description:
119 | name: firebase_auth
120 | url: "https://pub.dartlang.org"
121 | source: hosted
122 | version: "0.18.4+1"
123 | firebase_auth_platform_interface:
124 | dependency: transitive
125 | description:
126 | name: firebase_auth_platform_interface
127 | url: "https://pub.dartlang.org"
128 | source: hosted
129 | version: "2.1.4"
130 | firebase_auth_web:
131 | dependency: transitive
132 | description:
133 | name: firebase_auth_web
134 | url: "https://pub.dartlang.org"
135 | source: hosted
136 | version: "0.3.2+3"
137 | firebase_core:
138 | dependency: "direct main"
139 | description:
140 | name: firebase_core
141 | url: "https://pub.dartlang.org"
142 | source: hosted
143 | version: "0.5.3"
144 | firebase_core_platform_interface:
145 | dependency: transitive
146 | description:
147 | name: firebase_core_platform_interface
148 | url: "https://pub.dartlang.org"
149 | source: hosted
150 | version: "2.1.0"
151 | firebase_core_web:
152 | dependency: transitive
153 | description:
154 | name: firebase_core_web
155 | url: "https://pub.dartlang.org"
156 | source: hosted
157 | version: "0.2.1+1"
158 | flutter:
159 | dependency: "direct main"
160 | description: flutter
161 | source: sdk
162 | version: "0.0.0"
163 | flutter_test:
164 | dependency: "direct dev"
165 | description: flutter
166 | source: sdk
167 | version: "0.0.0"
168 | flutter_web_plugins:
169 | dependency: transitive
170 | description: flutter
171 | source: sdk
172 | version: "0.0.0"
173 | fluttercontactpicker:
174 | dependency: "direct main"
175 | description:
176 | name: fluttercontactpicker
177 | url: "https://pub.dartlang.org"
178 | source: hosted
179 | version: "4.2.1"
180 | geocoder:
181 | dependency: "direct main"
182 | description:
183 | name: geocoder
184 | url: "https://pub.dartlang.org"
185 | source: hosted
186 | version: "0.2.1"
187 | geolocator:
188 | dependency: "direct main"
189 | description:
190 | name: geolocator
191 | url: "https://pub.dartlang.org"
192 | source: hosted
193 | version: "6.2.1"
194 | geolocator_platform_interface:
195 | dependency: transitive
196 | description:
197 | name: geolocator_platform_interface
198 | url: "https://pub.dartlang.org"
199 | source: hosted
200 | version: "1.0.9"
201 | geolocator_web:
202 | dependency: transitive
203 | description:
204 | name: geolocator_web
205 | url: "https://pub.dartlang.org"
206 | source: hosted
207 | version: "1.0.1"
208 | get:
209 | dependency: "direct main"
210 | description:
211 | name: get
212 | url: "https://pub.dartlang.org"
213 | source: hosted
214 | version: "3.26.0"
215 | google_sign_in:
216 | dependency: "direct main"
217 | description:
218 | name: google_sign_in
219 | url: "https://pub.dartlang.org"
220 | source: hosted
221 | version: "4.5.9"
222 | google_sign_in_platform_interface:
223 | dependency: transitive
224 | description:
225 | name: google_sign_in_platform_interface
226 | url: "https://pub.dartlang.org"
227 | source: hosted
228 | version: "1.1.2"
229 | google_sign_in_web:
230 | dependency: transitive
231 | description:
232 | name: google_sign_in_web
233 | url: "https://pub.dartlang.org"
234 | source: hosted
235 | version: "0.9.2"
236 | hardware_buttons:
237 | dependency: "direct main"
238 | description:
239 | name: hardware_buttons
240 | url: "https://pub.dartlang.org"
241 | source: hosted
242 | version: "1.0.0"
243 | http_parser:
244 | dependency: transitive
245 | description:
246 | name: http_parser
247 | url: "https://pub.dartlang.org"
248 | source: hosted
249 | version: "3.1.4"
250 | intl:
251 | dependency: transitive
252 | description:
253 | name: intl
254 | url: "https://pub.dartlang.org"
255 | source: hosted
256 | version: "0.16.1"
257 | js:
258 | dependency: transitive
259 | description:
260 | name: js
261 | url: "https://pub.dartlang.org"
262 | source: hosted
263 | version: "0.6.3"
264 | matcher:
265 | dependency: transitive
266 | description:
267 | name: matcher
268 | url: "https://pub.dartlang.org"
269 | source: hosted
270 | version: "0.12.10"
271 | meta:
272 | dependency: transitive
273 | description:
274 | name: meta
275 | url: "https://pub.dartlang.org"
276 | source: hosted
277 | version: "1.3.0"
278 | nested:
279 | dependency: transitive
280 | description:
281 | name: nested
282 | url: "https://pub.dartlang.org"
283 | source: hosted
284 | version: "1.0.0"
285 | path:
286 | dependency: transitive
287 | description:
288 | name: path
289 | url: "https://pub.dartlang.org"
290 | source: hosted
291 | version: "1.8.0"
292 | path_provider_linux:
293 | dependency: transitive
294 | description:
295 | name: path_provider_linux
296 | url: "https://pub.dartlang.org"
297 | source: hosted
298 | version: "2.0.0"
299 | path_provider_platform_interface:
300 | dependency: transitive
301 | description:
302 | name: path_provider_platform_interface
303 | url: "https://pub.dartlang.org"
304 | source: hosted
305 | version: "2.0.0"
306 | path_provider_windows:
307 | dependency: transitive
308 | description:
309 | name: path_provider_windows
310 | url: "https://pub.dartlang.org"
311 | source: hosted
312 | version: "2.0.0"
313 | platform:
314 | dependency: transitive
315 | description:
316 | name: platform
317 | url: "https://pub.dartlang.org"
318 | source: hosted
319 | version: "3.0.0"
320 | plugin_platform_interface:
321 | dependency: transitive
322 | description:
323 | name: plugin_platform_interface
324 | url: "https://pub.dartlang.org"
325 | source: hosted
326 | version: "1.0.3"
327 | process:
328 | dependency: transitive
329 | description:
330 | name: process
331 | url: "https://pub.dartlang.org"
332 | source: hosted
333 | version: "4.1.0"
334 | provider:
335 | dependency: "direct main"
336 | description:
337 | name: provider
338 | url: "https://pub.dartlang.org"
339 | source: hosted
340 | version: "5.0.0"
341 | quiver:
342 | dependency: transitive
343 | description:
344 | name: quiver
345 | url: "https://pub.dartlang.org"
346 | source: hosted
347 | version: "2.1.5"
348 | rflutter_alert:
349 | dependency: "direct main"
350 | description:
351 | name: rflutter_alert
352 | url: "https://pub.dartlang.org"
353 | source: hosted
354 | version: "1.1.0"
355 | shared_preferences:
356 | dependency: "direct main"
357 | description:
358 | name: shared_preferences
359 | url: "https://pub.dartlang.org"
360 | source: hosted
361 | version: "2.0.3"
362 | shared_preferences_linux:
363 | dependency: transitive
364 | description:
365 | name: shared_preferences_linux
366 | url: "https://pub.dartlang.org"
367 | source: hosted
368 | version: "2.0.0"
369 | shared_preferences_macos:
370 | dependency: transitive
371 | description:
372 | name: shared_preferences_macos
373 | url: "https://pub.dartlang.org"
374 | source: hosted
375 | version: "2.0.0"
376 | shared_preferences_platform_interface:
377 | dependency: transitive
378 | description:
379 | name: shared_preferences_platform_interface
380 | url: "https://pub.dartlang.org"
381 | source: hosted
382 | version: "2.0.0"
383 | shared_preferences_web:
384 | dependency: transitive
385 | description:
386 | name: shared_preferences_web
387 | url: "https://pub.dartlang.org"
388 | source: hosted
389 | version: "2.0.0"
390 | shared_preferences_windows:
391 | dependency: transitive
392 | description:
393 | name: shared_preferences_windows
394 | url: "https://pub.dartlang.org"
395 | source: hosted
396 | version: "2.0.0"
397 | sky_engine:
398 | dependency: transitive
399 | description: flutter
400 | source: sdk
401 | version: "0.0.99"
402 | sms_maintained:
403 | dependency: "direct main"
404 | description:
405 | name: sms_maintained
406 | url: "https://pub.dartlang.org"
407 | source: hosted
408 | version: "0.2.5"
409 | source_span:
410 | dependency: transitive
411 | description:
412 | name: source_span
413 | url: "https://pub.dartlang.org"
414 | source: hosted
415 | version: "1.8.0"
416 | stack_trace:
417 | dependency: transitive
418 | description:
419 | name: stack_trace
420 | url: "https://pub.dartlang.org"
421 | source: hosted
422 | version: "1.10.0"
423 | stream_channel:
424 | dependency: transitive
425 | description:
426 | name: stream_channel
427 | url: "https://pub.dartlang.org"
428 | source: hosted
429 | version: "2.1.0"
430 | string_scanner:
431 | dependency: transitive
432 | description:
433 | name: string_scanner
434 | url: "https://pub.dartlang.org"
435 | source: hosted
436 | version: "1.1.0"
437 | term_glyph:
438 | dependency: transitive
439 | description:
440 | name: term_glyph
441 | url: "https://pub.dartlang.org"
442 | source: hosted
443 | version: "1.2.0"
444 | test_api:
445 | dependency: transitive
446 | description:
447 | name: test_api
448 | url: "https://pub.dartlang.org"
449 | source: hosted
450 | version: "0.2.19"
451 | typed_data:
452 | dependency: transitive
453 | description:
454 | name: typed_data
455 | url: "https://pub.dartlang.org"
456 | source: hosted
457 | version: "1.3.0"
458 | vector_math:
459 | dependency: transitive
460 | description:
461 | name: vector_math
462 | url: "https://pub.dartlang.org"
463 | source: hosted
464 | version: "2.1.0"
465 | win32:
466 | dependency: transitive
467 | description:
468 | name: win32
469 | url: "https://pub.dartlang.org"
470 | source: hosted
471 | version: "2.0.0"
472 | xdg_directories:
473 | dependency: transitive
474 | description:
475 | name: xdg_directories
476 | url: "https://pub.dartlang.org"
477 | source: hosted
478 | version: "0.2.0"
479 | sdks:
480 | dart: ">=2.12.0-259.9.beta <3.0.0"
481 | flutter: ">=1.22.0"
482 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
16 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXCopyFilesBuildPhase section */
19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
20 | isa = PBXCopyFilesBuildPhase;
21 | buildActionMask = 2147483647;
22 | dstPath = "";
23 | dstSubfolderSpec = 10;
24 | files = (
25 | );
26 | name = "Embed Frameworks";
27 | runOnlyForDeploymentPostprocessing = 0;
28 | };
29 | /* End PBXCopyFilesBuildPhase section */
30 |
31 | /* Begin PBXFileReference section */
32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
45 | /* End PBXFileReference section */
46 |
47 | /* Begin PBXFrameworksBuildPhase section */
48 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
49 | isa = PBXFrameworksBuildPhase;
50 | buildActionMask = 2147483647;
51 | files = (
52 | );
53 | runOnlyForDeploymentPostprocessing = 0;
54 | };
55 | /* End PBXFrameworksBuildPhase section */
56 |
57 | /* Begin PBXGroup section */
58 | 9740EEB11CF90186004384FC /* Flutter */ = {
59 | isa = PBXGroup;
60 | children = (
61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
65 | );
66 | name = Flutter;
67 | sourceTree = "";
68 | };
69 | 97C146E51CF9000F007C117D = {
70 | isa = PBXGroup;
71 | children = (
72 | 9740EEB11CF90186004384FC /* Flutter */,
73 | 97C146F01CF9000F007C117D /* Runner */,
74 | 97C146EF1CF9000F007C117D /* Products */,
75 | );
76 | sourceTree = "";
77 | };
78 | 97C146EF1CF9000F007C117D /* Products */ = {
79 | isa = PBXGroup;
80 | children = (
81 | 97C146EE1CF9000F007C117D /* Runner.app */,
82 | );
83 | name = Products;
84 | sourceTree = "";
85 | };
86 | 97C146F01CF9000F007C117D /* Runner */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
92 | 97C147021CF9000F007C117D /* Info.plist */,
93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
97 | );
98 | path = Runner;
99 | sourceTree = "";
100 | };
101 | /* End PBXGroup section */
102 |
103 | /* Begin PBXNativeTarget section */
104 | 97C146ED1CF9000F007C117D /* Runner */ = {
105 | isa = PBXNativeTarget;
106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
107 | buildPhases = (
108 | 9740EEB61CF901F6004384FC /* Run Script */,
109 | 97C146EA1CF9000F007C117D /* Sources */,
110 | 97C146EB1CF9000F007C117D /* Frameworks */,
111 | 97C146EC1CF9000F007C117D /* Resources */,
112 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
114 | );
115 | buildRules = (
116 | );
117 | dependencies = (
118 | );
119 | name = Runner;
120 | productName = Runner;
121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
122 | productType = "com.apple.product-type.application";
123 | };
124 | /* End PBXNativeTarget section */
125 |
126 | /* Begin PBXProject section */
127 | 97C146E61CF9000F007C117D /* Project object */ = {
128 | isa = PBXProject;
129 | attributes = {
130 | LastUpgradeCheck = 1020;
131 | ORGANIZATIONNAME = "";
132 | TargetAttributes = {
133 | 97C146ED1CF9000F007C117D = {
134 | CreatedOnToolsVersion = 7.3.1;
135 | LastSwiftMigration = 1100;
136 | };
137 | };
138 | };
139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
140 | compatibilityVersion = "Xcode 9.3";
141 | developmentRegion = en;
142 | hasScannedForEncodings = 0;
143 | knownRegions = (
144 | en,
145 | Base,
146 | );
147 | mainGroup = 97C146E51CF9000F007C117D;
148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
149 | projectDirPath = "";
150 | projectRoot = "";
151 | targets = (
152 | 97C146ED1CF9000F007C117D /* Runner */,
153 | );
154 | };
155 | /* End PBXProject section */
156 |
157 | /* Begin PBXResourcesBuildPhase section */
158 | 97C146EC1CF9000F007C117D /* Resources */ = {
159 | isa = PBXResourcesBuildPhase;
160 | buildActionMask = 2147483647;
161 | files = (
162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
166 | );
167 | runOnlyForDeploymentPostprocessing = 0;
168 | };
169 | /* End PBXResourcesBuildPhase section */
170 |
171 | /* Begin PBXShellScriptBuildPhase section */
172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
173 | isa = PBXShellScriptBuildPhase;
174 | buildActionMask = 2147483647;
175 | files = (
176 | );
177 | inputPaths = (
178 | );
179 | name = "Thin Binary";
180 | outputPaths = (
181 | );
182 | runOnlyForDeploymentPostprocessing = 0;
183 | shellPath = /bin/sh;
184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
185 | };
186 | 9740EEB61CF901F6004384FC /* Run Script */ = {
187 | isa = PBXShellScriptBuildPhase;
188 | buildActionMask = 2147483647;
189 | files = (
190 | );
191 | inputPaths = (
192 | );
193 | name = "Run Script";
194 | outputPaths = (
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | shellPath = /bin/sh;
198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
199 | };
200 | /* End PBXShellScriptBuildPhase section */
201 |
202 | /* Begin PBXSourcesBuildPhase section */
203 | 97C146EA1CF9000F007C117D /* Sources */ = {
204 | isa = PBXSourcesBuildPhase;
205 | buildActionMask = 2147483647;
206 | files = (
207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
209 | );
210 | runOnlyForDeploymentPostprocessing = 0;
211 | };
212 | /* End PBXSourcesBuildPhase section */
213 |
214 | /* Begin PBXVariantGroup section */
215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
216 | isa = PBXVariantGroup;
217 | children = (
218 | 97C146FB1CF9000F007C117D /* Base */,
219 | );
220 | name = Main.storyboard;
221 | sourceTree = "";
222 | };
223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
224 | isa = PBXVariantGroup;
225 | children = (
226 | 97C147001CF9000F007C117D /* Base */,
227 | );
228 | name = LaunchScreen.storyboard;
229 | sourceTree = "";
230 | };
231 | /* End PBXVariantGroup section */
232 |
233 | /* Begin XCBuildConfiguration section */
234 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
235 | isa = XCBuildConfiguration;
236 | buildSettings = {
237 | ALWAYS_SEARCH_USER_PATHS = NO;
238 | CLANG_ANALYZER_NONNULL = YES;
239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
240 | CLANG_CXX_LIBRARY = "libc++";
241 | CLANG_ENABLE_MODULES = YES;
242 | CLANG_ENABLE_OBJC_ARC = YES;
243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
244 | CLANG_WARN_BOOL_CONVERSION = YES;
245 | CLANG_WARN_COMMA = YES;
246 | CLANG_WARN_CONSTANT_CONVERSION = YES;
247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
249 | CLANG_WARN_EMPTY_BODY = YES;
250 | CLANG_WARN_ENUM_CONVERSION = YES;
251 | CLANG_WARN_INFINITE_RECURSION = YES;
252 | CLANG_WARN_INT_CONVERSION = YES;
253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
258 | CLANG_WARN_STRICT_PROTOTYPES = YES;
259 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
260 | CLANG_WARN_UNREACHABLE_CODE = YES;
261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
263 | COPY_PHASE_STRIP = NO;
264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
265 | ENABLE_NS_ASSERTIONS = NO;
266 | ENABLE_STRICT_OBJC_MSGSEND = YES;
267 | GCC_C_LANGUAGE_STANDARD = gnu99;
268 | GCC_NO_COMMON_BLOCKS = YES;
269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
271 | GCC_WARN_UNDECLARED_SELECTOR = YES;
272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
273 | GCC_WARN_UNUSED_FUNCTION = YES;
274 | GCC_WARN_UNUSED_VARIABLE = YES;
275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
276 | MTL_ENABLE_DEBUG_INFO = NO;
277 | SDKROOT = iphoneos;
278 | SUPPORTED_PLATFORMS = iphoneos;
279 | TARGETED_DEVICE_FAMILY = "1,2";
280 | VALIDATE_PRODUCT = YES;
281 | };
282 | name = Profile;
283 | };
284 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
285 | isa = XCBuildConfiguration;
286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
287 | buildSettings = {
288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
289 | CLANG_ENABLE_MODULES = YES;
290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
291 | ENABLE_BITCODE = NO;
292 | FRAMEWORK_SEARCH_PATHS = (
293 | "$(inherited)",
294 | "$(PROJECT_DIR)/Flutter",
295 | );
296 | INFOPLIST_FILE = Runner/Info.plist;
297 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
298 | LIBRARY_SEARCH_PATHS = (
299 | "$(inherited)",
300 | "$(PROJECT_DIR)/Flutter",
301 | );
302 | PRODUCT_BUNDLE_IDENTIFIER = com.arjunsinha.herCare;
303 | PRODUCT_NAME = "$(TARGET_NAME)";
304 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
305 | SWIFT_VERSION = 5.0;
306 | VERSIONING_SYSTEM = "apple-generic";
307 | };
308 | name = Profile;
309 | };
310 | 97C147031CF9000F007C117D /* Debug */ = {
311 | isa = XCBuildConfiguration;
312 | buildSettings = {
313 | ALWAYS_SEARCH_USER_PATHS = NO;
314 | CLANG_ANALYZER_NONNULL = YES;
315 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
316 | CLANG_CXX_LIBRARY = "libc++";
317 | CLANG_ENABLE_MODULES = YES;
318 | CLANG_ENABLE_OBJC_ARC = YES;
319 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
320 | CLANG_WARN_BOOL_CONVERSION = YES;
321 | CLANG_WARN_COMMA = YES;
322 | CLANG_WARN_CONSTANT_CONVERSION = YES;
323 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
324 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
325 | CLANG_WARN_EMPTY_BODY = YES;
326 | CLANG_WARN_ENUM_CONVERSION = YES;
327 | CLANG_WARN_INFINITE_RECURSION = YES;
328 | CLANG_WARN_INT_CONVERSION = YES;
329 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
330 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
331 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
332 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
333 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
334 | CLANG_WARN_STRICT_PROTOTYPES = YES;
335 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
336 | CLANG_WARN_UNREACHABLE_CODE = YES;
337 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
338 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
339 | COPY_PHASE_STRIP = NO;
340 | DEBUG_INFORMATION_FORMAT = dwarf;
341 | ENABLE_STRICT_OBJC_MSGSEND = YES;
342 | ENABLE_TESTABILITY = YES;
343 | GCC_C_LANGUAGE_STANDARD = gnu99;
344 | GCC_DYNAMIC_NO_PIC = NO;
345 | GCC_NO_COMMON_BLOCKS = YES;
346 | GCC_OPTIMIZATION_LEVEL = 0;
347 | GCC_PREPROCESSOR_DEFINITIONS = (
348 | "DEBUG=1",
349 | "$(inherited)",
350 | );
351 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
352 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
353 | GCC_WARN_UNDECLARED_SELECTOR = YES;
354 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
355 | GCC_WARN_UNUSED_FUNCTION = YES;
356 | GCC_WARN_UNUSED_VARIABLE = YES;
357 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
358 | MTL_ENABLE_DEBUG_INFO = YES;
359 | ONLY_ACTIVE_ARCH = YES;
360 | SDKROOT = iphoneos;
361 | TARGETED_DEVICE_FAMILY = "1,2";
362 | };
363 | name = Debug;
364 | };
365 | 97C147041CF9000F007C117D /* Release */ = {
366 | isa = XCBuildConfiguration;
367 | buildSettings = {
368 | ALWAYS_SEARCH_USER_PATHS = NO;
369 | CLANG_ANALYZER_NONNULL = YES;
370 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
371 | CLANG_CXX_LIBRARY = "libc++";
372 | CLANG_ENABLE_MODULES = YES;
373 | CLANG_ENABLE_OBJC_ARC = YES;
374 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
375 | CLANG_WARN_BOOL_CONVERSION = YES;
376 | CLANG_WARN_COMMA = YES;
377 | CLANG_WARN_CONSTANT_CONVERSION = YES;
378 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
379 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
380 | CLANG_WARN_EMPTY_BODY = YES;
381 | CLANG_WARN_ENUM_CONVERSION = YES;
382 | CLANG_WARN_INFINITE_RECURSION = YES;
383 | CLANG_WARN_INT_CONVERSION = YES;
384 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
385 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
386 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
387 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
388 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
389 | CLANG_WARN_STRICT_PROTOTYPES = YES;
390 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
391 | CLANG_WARN_UNREACHABLE_CODE = YES;
392 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
393 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
394 | COPY_PHASE_STRIP = NO;
395 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
396 | ENABLE_NS_ASSERTIONS = NO;
397 | ENABLE_STRICT_OBJC_MSGSEND = YES;
398 | GCC_C_LANGUAGE_STANDARD = gnu99;
399 | GCC_NO_COMMON_BLOCKS = YES;
400 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
401 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
402 | GCC_WARN_UNDECLARED_SELECTOR = YES;
403 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
404 | GCC_WARN_UNUSED_FUNCTION = YES;
405 | GCC_WARN_UNUSED_VARIABLE = YES;
406 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
407 | MTL_ENABLE_DEBUG_INFO = NO;
408 | SDKROOT = iphoneos;
409 | SUPPORTED_PLATFORMS = iphoneos;
410 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
411 | TARGETED_DEVICE_FAMILY = "1,2";
412 | VALIDATE_PRODUCT = YES;
413 | };
414 | name = Release;
415 | };
416 | 97C147061CF9000F007C117D /* Debug */ = {
417 | isa = XCBuildConfiguration;
418 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
419 | buildSettings = {
420 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
421 | CLANG_ENABLE_MODULES = YES;
422 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
423 | ENABLE_BITCODE = NO;
424 | FRAMEWORK_SEARCH_PATHS = (
425 | "$(inherited)",
426 | "$(PROJECT_DIR)/Flutter",
427 | );
428 | INFOPLIST_FILE = Runner/Info.plist;
429 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
430 | LIBRARY_SEARCH_PATHS = (
431 | "$(inherited)",
432 | "$(PROJECT_DIR)/Flutter",
433 | );
434 | PRODUCT_BUNDLE_IDENTIFIER = com.arjunsinha.herCare;
435 | PRODUCT_NAME = "$(TARGET_NAME)";
436 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
437 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
438 | SWIFT_VERSION = 5.0;
439 | VERSIONING_SYSTEM = "apple-generic";
440 | };
441 | name = Debug;
442 | };
443 | 97C147071CF9000F007C117D /* Release */ = {
444 | isa = XCBuildConfiguration;
445 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
446 | buildSettings = {
447 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
448 | CLANG_ENABLE_MODULES = YES;
449 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
450 | ENABLE_BITCODE = NO;
451 | FRAMEWORK_SEARCH_PATHS = (
452 | "$(inherited)",
453 | "$(PROJECT_DIR)/Flutter",
454 | );
455 | INFOPLIST_FILE = Runner/Info.plist;
456 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
457 | LIBRARY_SEARCH_PATHS = (
458 | "$(inherited)",
459 | "$(PROJECT_DIR)/Flutter",
460 | );
461 | PRODUCT_BUNDLE_IDENTIFIER = com.arjunsinha.herCare;
462 | PRODUCT_NAME = "$(TARGET_NAME)";
463 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
464 | SWIFT_VERSION = 5.0;
465 | VERSIONING_SYSTEM = "apple-generic";
466 | };
467 | name = Release;
468 | };
469 | /* End XCBuildConfiguration section */
470 |
471 | /* Begin XCConfigurationList section */
472 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
473 | isa = XCConfigurationList;
474 | buildConfigurations = (
475 | 97C147031CF9000F007C117D /* Debug */,
476 | 97C147041CF9000F007C117D /* Release */,
477 | 249021D3217E4FDB00AE95B9 /* Profile */,
478 | );
479 | defaultConfigurationIsVisible = 0;
480 | defaultConfigurationName = Release;
481 | };
482 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
483 | isa = XCConfigurationList;
484 | buildConfigurations = (
485 | 97C147061CF9000F007C117D /* Debug */,
486 | 97C147071CF9000F007C117D /* Release */,
487 | 249021D4217E4FDB00AE95B9 /* Profile */,
488 | );
489 | defaultConfigurationIsVisible = 0;
490 | defaultConfigurationName = Release;
491 | };
492 | /* End XCConfigurationList section */
493 | };
494 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
495 | }
496 |
--------------------------------------------------------------------------------