├── .gitignore
├── .metadata
├── README.md
├── android
├── .project
├── .settings
│ └── org.eclipse.buildship.core.prefs
├── app
│ ├── .classpath
│ ├── .project
│ ├── .settings
│ │ └── org.eclipse.buildship.core.prefs
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── video_chat
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── 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
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── assets
├── i18n
│ ├── en.json
│ ├── es.json
│ └── fr.json
└── images
│ ├── Logoforchat.jpg
│ ├── Logoforchat.png
│ ├── backgroundpictureVIDEO.jpg
│ ├── campfire.jpg
│ ├── cartoonpicture.jpg
│ ├── gc_im1.jpeg
│ ├── gc_im2.jpeg
│ ├── gc_im3.png
│ ├── gc_im4.jpeg
│ ├── huddleBackground.png
│ ├── huddleLogo.png
│ ├── huddleLogoInternet.png
│ └── icon_huddlelogo.png
├── firebase.json
├── fonts
├── Baskervville-Regular.ttf
├── IndieFlower-Regular.ttf
├── Montserrat
│ ├── Montserrat-Black.ttf
│ ├── Montserrat-BlackItalic.ttf
│ ├── Montserrat-Bold.ttf
│ ├── Montserrat-BoldItalic.ttf
│ ├── Montserrat-ExtraBold.ttf
│ ├── Montserrat-ExtraBoldItalic.ttf
│ ├── Montserrat-ExtraLight.ttf
│ ├── Montserrat-ExtraLightItalic.ttf
│ ├── Montserrat-Italic.ttf
│ ├── Montserrat-Light.ttf
│ ├── Montserrat-LightItalic.ttf
│ ├── Montserrat-Medium.ttf
│ ├── Montserrat-MediumItalic.ttf
│ ├── Montserrat-Regular.ttf
│ ├── Montserrat-SemiBold.ttf
│ ├── Montserrat-SemiBoldItalic.ttf
│ ├── Montserrat-Thin.ttf
│ ├── Montserrat-ThinItalic.ttf
│ └── OFL.txt
└── NotoSerif-Regular.ttf
├── functions
├── .gitignore
├── index.js
├── package-lock.json
└── package.json
├── ios
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ └── contents.xcworkspacedata
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── 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-50x50@1x.png
│ │ ├── Icon-App-50x50@2x.png
│ │ ├── Icon-App-57x57@1x.png
│ │ ├── Icon-App-57x57@2x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-72x72@1x.png
│ │ ├── Icon-App-72x72@2x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
├── lib
├── Auth
│ ├── auth.dart
│ ├── login.dart
│ ├── logsignin_page.dart
│ └── register.dart
├── GeoLocation
│ ├── geolocation.dart
│ ├── getLocation.dart
│ └── maps.dart
├── Model
│ ├── group_model.dart
│ ├── message_model.dart
│ └── user.dart
├── Notification
│ └── notification.dart
├── SQFLITEMODEL
│ ├── db_utils.dart
│ ├── user_SQFLITE.dart
│ └── users_model.dart
├── charts.dart
├── chat_page.dart
├── groups_page.dart
├── i18n
│ └── i18n.dart
├── main.dart
├── messageui.dart
├── page_navigator.dart
├── snack.dart
├── video_room.dart
└── wrapper.dart
├── pubspec.lock
├── pubspec.yaml
└── test
└── widget_test.dart
/.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 | .dart_tool/
26 | .flutter-plugins
27 | .packages
28 | .pub-cache/
29 | .pub/
30 | /build/
31 |
32 | # Android related
33 | **/android/**/gradle-wrapper.jar
34 | **/android/.gradle
35 | **/android/captures/
36 | **/android/gradlew
37 | **/android/gradlew.bat
38 | **/android/local.properties
39 | **/android/**/GeneratedPluginRegistrant.java
40 |
41 | # iOS/XCode related
42 | **/ios/**/*.mode1v3
43 | **/ios/**/*.mode2v3
44 | **/ios/**/*.moved-aside
45 | **/ios/**/*.pbxuser
46 | **/ios/**/*.perspectivev3
47 | **/ios/**/*sync/
48 | **/ios/**/.sconsign.dblite
49 | **/ios/**/.tags*
50 | **/ios/**/.vagrant/
51 | **/ios/**/DerivedData/
52 | **/ios/**/Icon?
53 | **/ios/**/Pods/
54 | **/ios/**/.symlinks/
55 | **/ios/**/profile
56 | **/ios/**/xcuserdata
57 | **/ios/.generated/
58 | **/ios/Flutter/App.framework
59 | **/ios/Flutter/Flutter.framework
60 | **/ios/Flutter/Generated.xcconfig
61 | **/ios/Flutter/app.flx
62 | **/ios/Flutter/app.zip
63 | **/ios/Flutter/flutter_assets/
64 | **/ios/Flutter/flutter_export_environment.sh
65 | **/ios/ServiceDefinitions.json
66 | **/ios/Runner/GeneratedPluginRegistrant.*
67 |
68 | # Exceptions to above rules.
69 | !**/ios/**/default.mode1v3
70 | !**/ios/**/default.mode2v3
71 | !**/ios/**/default.pbxuser
72 | !**/ios/**/default.perspectivev3
73 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
74 |
--------------------------------------------------------------------------------
/.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: 1aedbb1835bd6eb44550293d57d4d124f19901f0
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Flutter Video Chat w/ Agora.io
2 |
3 | ## Collaborators
4 |
5 | - [Jeremy Friesen](https://github.com/jeremydavidfriesen)
6 | - [Tamilselvan Balasuntharam](https://github.com/MegaTlash)
7 | - [Harry Thasarathan](https://github.com/Harry-Thasarathan)
8 | - [Spencer Denford](https://github.com/spencerdenford)
9 |
10 | flutter_video_chat is a simple front-end combining text-messaging (using Google Firebase) and video chat (using Agora.io for Flutter)!!!!
11 |
12 | 
13 |
14 | ## Setup
15 |
16 | ### Firebase
17 | - In the cloned repository, replace the package names with your own
18 | - applicationId in build.gradle (android\app)
19 | - package in MainActivity.kt (android\app\src\main\kotlin\com\example\video_chat)
20 | - package in all three AndroidManifest.xml files (android\app\src\main, android\app\src\debug, android\app\src\profile)
21 |
22 | - go to https://console.firebase.google.com/
23 | - create a project
24 | - register project for android (use the package name you chose earlier)
25 | - Download 'google-services.json'
26 | - move 'google-services.json' to android > app
27 | - change pubspec.yaml and both gradle files to include firebase
28 | - run 'flutter pub get' to import dependencies
29 |
30 | - in the firebase console, under "Develop" select "Authentication"
31 | - Click "Set up sign-in method"
32 | - Enable the "Email/Password" sign-in method
33 |
34 | - in the firebase console, under "Develop" select Database
35 | - Click "Create Database"
36 | - Accept defaults
37 |
38 | ### Agora.io
39 |
40 | - go to Agora's website, https://www.agora.io/
41 | - sign up
42 | - create project
43 | - copy App ID and set the const APP_ID in lib\video_room.dart
44 |
--------------------------------------------------------------------------------
/android/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | android
4 | Project android created by Buildship.
5 |
6 |
7 |
8 |
9 | org.eclipse.buildship.core.gradleprojectbuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.buildship.core.gradleprojectnature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/android/.settings/org.eclipse.buildship.core.prefs:
--------------------------------------------------------------------------------
1 | connection.project.dir=
2 | eclipse.preferences.version=1
3 |
--------------------------------------------------------------------------------
/android/app/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/android/app/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | app
4 | Project app created by Buildship.
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.buildship.core.gradleprojectbuilder
15 |
16 |
17 |
18 |
19 |
20 | org.eclipse.jdt.core.javanature
21 | org.eclipse.buildship.core.gradleprojectnature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/android/app/.settings/org.eclipse.buildship.core.prefs:
--------------------------------------------------------------------------------
1 | connection.project.dir=..
2 | eclipse.preferences.version=1
3 |
--------------------------------------------------------------------------------
/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 plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 28
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | lintOptions {
36 | disable 'InvalidPackage'
37 | }
38 |
39 | defaultConfig {
40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41 | applicationId "com.example.example"
42 | minSdkVersion 21 //set to 21 if multi-dex error
43 | targetSdkVersion 28
44 | versionCode flutterVersionCode.toInteger()
45 | versionName flutterVersionName
46 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
47 | }
48 |
49 | buildTypes {
50 | release {
51 | // TODO: Add your own signing config for the release build.
52 | // Signing with the debug keys for now, so `flutter run --release` works.
53 | signingConfig signingConfigs.debug
54 | }
55 | }
56 | }
57 |
58 | flutter {
59 | source '../..'
60 | }
61 |
62 | dependencies {
63 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
64 | //implementation 'com.google.firebase:firebase-analytics:17.2.0'
65 | testImplementation 'junit:junit:4.12'
66 | androidTestImplementation 'com.android.support.test:runner:1.0.2'
67 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
68 | //implementation 'com.google.firebase:firebase-core:15.0.0'
69 | }
70 |
71 | //Add to the bottom of the file
72 | apply plugin: 'com.google.gms.google-services'
73 | //Gotta replace this with something else when you find a better fix because this might become dangerous in the future
74 | com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
75 |
76 |
77 |
78 | configurations.all {
79 | resolutionStrategy {
80 | resolutionStrategy.eachDependency { details ->
81 | if (details.requested.group == 'androidx.core') {
82 | details.useVersion "1.0.1"
83 | }
84 | if (details.requested.group == 'androidx.lifecycle') {
85 | details.useVersion "2.0.0"
86 | }
87 | if (details.requested.group == 'androidx.versionedparcelable') {
88 | details.useVersion "1.0.0"
89 | }
90 | if (details.requested.group == 'androidx.fragment') {
91 | details.useVersion "1.0.0"
92 | }
93 | if (details.requested.group == 'androidx.appcompat') {
94 | details.useVersion "1.0.1"
95 | }
96 | }
97 | }
98 | }
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
14 |
18 |
25 |
29 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/video_chat/MainActivity.kt:
--------------------------------------------------------------------------------
1 | /* Replace package name with your own */
2 | package com.example.example
3 |
4 | import android.os.Bundle
5 |
6 | import io.flutter.app.FlutterActivity
7 | import io.flutter.plugins.GeneratedPluginRegistrant
8 |
9 | class MainActivity: FlutterActivity() {
10 | override fun onCreate(savedInstanceState: Bundle?) {
11 | super.onCreate(savedInstanceState)
12 | GeneratedPluginRegistrant.registerWith(this)
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.3.0'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.3.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | classpath 'com.google.gms:google-services:4.2.0'
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | google()
18 | jcenter()
19 | }
20 | }
21 |
22 | rootProject.buildDir = '../build'
23 | subprojects {
24 | project.buildDir = "${rootProject.buildDir}/${project.name}"
25 | }
26 | subprojects {
27 | project.evaluationDependsOn(':app')
28 | }
29 |
30 | task clean(type: Delete) {
31 | delete rootProject.buildDir
32 | }
33 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | android.useAndroidX=true
2 | android.enableJetifier=true
3 | org.gradle.jvmargs=-Xmx1536M
4 |
5 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
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-4.10.2-all.zip
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
4 |
5 | def plugins = new Properties()
6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7 | if (pluginsFile.exists()) {
8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
9 | }
10 |
11 | plugins.each { name, path ->
12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13 | include ":$name"
14 | project(":$name").projectDir = pluginDirectory
15 | }
16 |
--------------------------------------------------------------------------------
/assets/i18n/en.json:
--------------------------------------------------------------------------------
1 | {
2 | "app": {
3 | "groups": "Groups",
4 | "newgroup": "New Group",
5 | "groupname": "Group Name",
6 | "creategroup": "Create Group",
7 | "extras": "Extras",
8 | "maps": "Maps",
9 | "analytics": "Analytics",
10 | "logout": "Logout",
11 | "successfullysignedout": "Successfully Signed Out",
12 | "settings": "Settings",
13 | "writeamessage": "Write a Message",
14 | "chatanaylitics": "Chat Anaylitics",
15 | "timespentonproject": "Time Spent on Project",
16 | "register": "Register",
17 | "joinus": "Join us!",
18 | "email": "Email",
19 | "login": "Login",
20 | "enteranemail": "Enter an Email",
21 | "password": "Password",
22 | "enterapassword": "Enter a Password",
23 | "pleaseenteravalidemail": "Please enter a valid email",
24 | "succesfullyregisteredanaccount": "Succesfully Registered an account!",
25 | "welcomeback": "Welcome Back",
26 | "loginsuccessful": "Login Successful",
27 | "emailpasswordincorrect": "Email or Password Incorrect",
28 | "connectwithothers": "Connect with Others",
29 | "chat": "Chat",
30 | "selectgroup": "<- Select a Group from the groups page\n(Swipe Right)",
31 | "usersettings": "User Settings"
32 | }
33 | }
--------------------------------------------------------------------------------
/assets/i18n/es.json:
--------------------------------------------------------------------------------
1 | {
2 | "app": {
3 | "groups": "Grupos",
4 | "newgroup": "Nuevo Grupo",
5 | "groupname": "Nombre del Grupo",
6 | "creategroup": "Crear Grupo",
7 | "extras": "Extras",
8 | "maps": "Mapas",
9 | "analytics": "Analítica",
10 | "logout": "Cerrar Sesión",
11 | "successfullysignedout": "Salió Exitosamente",
12 | "settings": "Configuración",
13 | "writeamessage": "Escribir un Mensaje",
14 | "chatanaylitics": "Análisis de la Conversación",
15 | "timespentonproject": "Tiempo Invertido en el Proyecto",
16 | "register": "Registrarse",
17 | "joinus": "¡Únete a Nosotros!",
18 | "email": "Correo Electrónico",
19 | "login": "Iniciar Sesión",
20 | "enteranemail": "Ingrese un Correo Electrónico",
21 | "password": "Contraseña",
22 | "enterapassword": "Ingrese una Contraseña",
23 | "pleaseenteravalidemail": "Ingrese un Correo Electrónico Válido",
24 | "succesfullyregisteredanaccount": "¡Se registró una cuenta con éxito!",
25 | "welcomeback": "Bienvenido de Ruevo",
26 | "loginsuccessful": "Inicio de Sesión Exitoso",
27 | "emailpasswordincorrect": "Correo Electrónico o Contraseña Incorrecta",
28 | "connectwithothers": "Conectarse con Otros",
29 | "chat": "Charla",
30 | "selectgroup": "<- Seleccione un Grupo de la Página de Grupos\n(Deslizar Hacia la Derecha)",
31 | "usersettings": "Ajustes de usuario"
32 | }
33 | }
--------------------------------------------------------------------------------
/assets/i18n/fr.json:
--------------------------------------------------------------------------------
1 | {
2 | "app": {
3 | "groups": "Groupes",
4 | "newgroup": "Nouveau Groupe",
5 | "groupname": "Nom de Groupe",
6 | "creategroup": "Créer un Groupe",
7 | "extras": "Extras",
8 | "maps": "Plans",
9 | "analytics": "Analytique",
10 | "logout": "Connectez - Out",
11 | "successfullysignedout": "Déconnexion Réussie",
12 | "settings": "Paramètres",
13 | "writeamessage": "Écrire un Message",
14 | "chatanaylitics": "Bavarder Analytique",
15 | "timespentonproject": "Temps Passé sur le Projet",
16 | "register": "Registre",
17 | "joinus": "Rejoignez-nous!",
18 | "email": "E-mail",
19 | "login": "Ouvrir une Session",
20 | "enteranemail": "Entrez un E-mail",
21 | "password": "Mot de Passe",
22 | "enterapassword": "Entrer un mot de Passe",
23 | "pleaseenteravalidemail": "Veuillez Saisir un E-mail Valide",
24 | "succesfullyregisteredanaccount": "Un Compte Enregistré Avec Succès!",
25 | "welcomeback": "Nous Saluons le Retour",
26 | "loginsuccessful": "Connexion Réussie",
27 | "emailpasswordincorrect": "E-mail ou mot de Pssse Incorrect",
28 | "connectwithothers": "Se Connecter avec les Autres",
29 | "chat": "Bavarder",
30 | "selectgroup": "<- Sélectionnez un Groupe dans la Page des Groupes\n(Balayez vers la Droite)",
31 | "usersettings": "Paramètres utilisateur"
32 | }
33 | }
--------------------------------------------------------------------------------
/assets/images/Logoforchat.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/assets/images/Logoforchat.jpg
--------------------------------------------------------------------------------
/assets/images/Logoforchat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/assets/images/Logoforchat.png
--------------------------------------------------------------------------------
/assets/images/backgroundpictureVIDEO.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/assets/images/backgroundpictureVIDEO.jpg
--------------------------------------------------------------------------------
/assets/images/campfire.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/assets/images/campfire.jpg
--------------------------------------------------------------------------------
/assets/images/cartoonpicture.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/assets/images/cartoonpicture.jpg
--------------------------------------------------------------------------------
/assets/images/gc_im1.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/assets/images/gc_im1.jpeg
--------------------------------------------------------------------------------
/assets/images/gc_im2.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/assets/images/gc_im2.jpeg
--------------------------------------------------------------------------------
/assets/images/gc_im3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/assets/images/gc_im3.png
--------------------------------------------------------------------------------
/assets/images/gc_im4.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/assets/images/gc_im4.jpeg
--------------------------------------------------------------------------------
/assets/images/huddleBackground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/assets/images/huddleBackground.png
--------------------------------------------------------------------------------
/assets/images/huddleLogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/assets/images/huddleLogo.png
--------------------------------------------------------------------------------
/assets/images/huddleLogoInternet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/assets/images/huddleLogoInternet.png
--------------------------------------------------------------------------------
/assets/images/icon_huddlelogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/assets/images/icon_huddlelogo.png
--------------------------------------------------------------------------------
/firebase.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/fonts/Baskervville-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/fonts/Baskervville-Regular.ttf
--------------------------------------------------------------------------------
/fonts/IndieFlower-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/fonts/IndieFlower-Regular.ttf
--------------------------------------------------------------------------------
/fonts/Montserrat/Montserrat-Black.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/fonts/Montserrat/Montserrat-Black.ttf
--------------------------------------------------------------------------------
/fonts/Montserrat/Montserrat-BlackItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/fonts/Montserrat/Montserrat-BlackItalic.ttf
--------------------------------------------------------------------------------
/fonts/Montserrat/Montserrat-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/fonts/Montserrat/Montserrat-Bold.ttf
--------------------------------------------------------------------------------
/fonts/Montserrat/Montserrat-BoldItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/fonts/Montserrat/Montserrat-BoldItalic.ttf
--------------------------------------------------------------------------------
/fonts/Montserrat/Montserrat-ExtraBold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/fonts/Montserrat/Montserrat-ExtraBold.ttf
--------------------------------------------------------------------------------
/fonts/Montserrat/Montserrat-ExtraBoldItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/fonts/Montserrat/Montserrat-ExtraBoldItalic.ttf
--------------------------------------------------------------------------------
/fonts/Montserrat/Montserrat-ExtraLight.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/fonts/Montserrat/Montserrat-ExtraLight.ttf
--------------------------------------------------------------------------------
/fonts/Montserrat/Montserrat-ExtraLightItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/fonts/Montserrat/Montserrat-ExtraLightItalic.ttf
--------------------------------------------------------------------------------
/fonts/Montserrat/Montserrat-Italic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/fonts/Montserrat/Montserrat-Italic.ttf
--------------------------------------------------------------------------------
/fonts/Montserrat/Montserrat-Light.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/fonts/Montserrat/Montserrat-Light.ttf
--------------------------------------------------------------------------------
/fonts/Montserrat/Montserrat-LightItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/fonts/Montserrat/Montserrat-LightItalic.ttf
--------------------------------------------------------------------------------
/fonts/Montserrat/Montserrat-Medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/fonts/Montserrat/Montserrat-Medium.ttf
--------------------------------------------------------------------------------
/fonts/Montserrat/Montserrat-MediumItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/fonts/Montserrat/Montserrat-MediumItalic.ttf
--------------------------------------------------------------------------------
/fonts/Montserrat/Montserrat-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/fonts/Montserrat/Montserrat-Regular.ttf
--------------------------------------------------------------------------------
/fonts/Montserrat/Montserrat-SemiBold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/fonts/Montserrat/Montserrat-SemiBold.ttf
--------------------------------------------------------------------------------
/fonts/Montserrat/Montserrat-SemiBoldItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/fonts/Montserrat/Montserrat-SemiBoldItalic.ttf
--------------------------------------------------------------------------------
/fonts/Montserrat/Montserrat-Thin.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/fonts/Montserrat/Montserrat-Thin.ttf
--------------------------------------------------------------------------------
/fonts/Montserrat/Montserrat-ThinItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/fonts/Montserrat/Montserrat-ThinItalic.ttf
--------------------------------------------------------------------------------
/fonts/Montserrat/OFL.txt:
--------------------------------------------------------------------------------
1 | Copyright 2011 The Montserrat Project Authors (https://github.com/JulietaUla/Montserrat)
2 |
3 | This Font Software is licensed under the SIL Open Font License, Version 1.1.
4 | This license is copied below, and is also available with a FAQ at:
5 | http://scripts.sil.org/OFL
6 |
7 |
8 | -----------------------------------------------------------
9 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10 | -----------------------------------------------------------
11 |
12 | PREAMBLE
13 | The goals of the Open Font License (OFL) are to stimulate worldwide
14 | development of collaborative font projects, to support the font creation
15 | efforts of academic and linguistic communities, and to provide a free and
16 | open framework in which fonts may be shared and improved in partnership
17 | with others.
18 |
19 | The OFL allows the licensed fonts to be used, studied, modified and
20 | redistributed freely as long as they are not sold by themselves. The
21 | fonts, including any derivative works, can be bundled, embedded,
22 | redistributed and/or sold with any software provided that any reserved
23 | names are not used by derivative works. The fonts and derivatives,
24 | however, cannot be released under any other type of license. The
25 | requirement for fonts to remain under this license does not apply
26 | to any document created using the fonts or their derivatives.
27 |
28 | DEFINITIONS
29 | "Font Software" refers to the set of files released by the Copyright
30 | Holder(s) under this license and clearly marked as such. This may
31 | include source files, build scripts and documentation.
32 |
33 | "Reserved Font Name" refers to any names specified as such after the
34 | copyright statement(s).
35 |
36 | "Original Version" refers to the collection of Font Software components as
37 | distributed by the Copyright Holder(s).
38 |
39 | "Modified Version" refers to any derivative made by adding to, deleting,
40 | or substituting -- in part or in whole -- any of the components of the
41 | Original Version, by changing formats or by porting the Font Software to a
42 | new environment.
43 |
44 | "Author" refers to any designer, engineer, programmer, technical
45 | writer or other person who contributed to the Font Software.
46 |
47 | PERMISSION & CONDITIONS
48 | Permission is hereby granted, free of charge, to any person obtaining
49 | a copy of the Font Software, to use, study, copy, merge, embed, modify,
50 | redistribute, and sell modified and unmodified copies of the Font
51 | Software, subject to the following conditions:
52 |
53 | 1) Neither the Font Software nor any of its individual components,
54 | in Original or Modified Versions, may be sold by itself.
55 |
56 | 2) Original or Modified Versions of the Font Software may be bundled,
57 | redistributed and/or sold with any software, provided that each copy
58 | contains the above copyright notice and this license. These can be
59 | included either as stand-alone text files, human-readable headers or
60 | in the appropriate machine-readable metadata fields within text or
61 | binary files as long as those fields can be easily viewed by the user.
62 |
63 | 3) No Modified Version of the Font Software may use the Reserved Font
64 | Name(s) unless explicit written permission is granted by the corresponding
65 | Copyright Holder. This restriction only applies to the primary font name as
66 | presented to the users.
67 |
68 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69 | Software shall not be used to promote, endorse or advertise any
70 | Modified Version, except to acknowledge the contribution(s) of the
71 | Copyright Holder(s) and the Author(s) or with their explicit written
72 | permission.
73 |
74 | 5) The Font Software, modified or unmodified, in part or in whole,
75 | must be distributed entirely under this license, and must not be
76 | distributed under any other license. The requirement for fonts to
77 | remain under this license does not apply to any document created
78 | using the Font Software.
79 |
80 | TERMINATION
81 | This license becomes null and void if any of the above conditions are
82 | not met.
83 |
84 | DISCLAIMER
85 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88 | OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89 | COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90 | INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91 | DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92 | FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93 | OTHER DEALINGS IN THE FONT SOFTWARE.
94 |
--------------------------------------------------------------------------------
/fonts/NotoSerif-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/fonts/NotoSerif-Regular.ttf
--------------------------------------------------------------------------------
/functions/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
--------------------------------------------------------------------------------
/functions/index.js:
--------------------------------------------------------------------------------
1 | const functions = require('firebase-functions')
2 | const admin = require('firebase-admin')
3 | admin.initializeApp()
4 |
5 | exports.sendNotification = functions.firestore
6 | .document('Groups/{groupId1}/{groupId2}/{message}')
7 | .onCreate((snap, context) => {
8 | console.log('----------------start function--------------------')
9 |
10 | const doc = snap.data()
11 | console.log(doc)
12 |
13 | const idFrom = doc.idFrom
14 | const idTo = doc.idTo
15 | const contentMessage = doc.text
16 |
17 | // Get push token user to (receive)
18 | admin
19 | .firestore()
20 | .collection('Users')
21 | .get()
22 | .then(querySnapshot => {
23 | querySnapshot.forEach(userTo => {
24 | console.log(`Found user to: ${userTo.data().username}`)
25 | if (userTo.data().pushToken) {
26 | // Get info user from (sent)
27 | const payload = {
28 | notification: {
29 | title: `You have a message from "${doc.username}"`,
30 | body: contentMessage,
31 | badge: '1',
32 | sound: 'default'
33 | }
34 | }
35 | // Let push to the target device
36 | admin
37 | .messaging()
38 | .sendToDevice(userTo.data().pushToken, payload)
39 | .then(response => {
40 | console.log('Successfully sent message:', response)
41 | })
42 | .catch(error => {
43 | console.log('Error sending message:', error)
44 | })
45 | } else {
46 | console.log('Can not find pushToken target user')
47 | }
48 | })
49 | })
50 | return null
51 | })
--------------------------------------------------------------------------------
/functions/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "functions",
3 | "description": "Cloud Functions for Firebase",
4 | "scripts": {
5 | "serve": "firebase serve --only functions",
6 | "shell": "firebase functions:shell",
7 | "start": "npm run shell",
8 | "deploy": "firebase deploy --only functions",
9 | "logs": "firebase functions:log"
10 | },
11 | "engines": {
12 | "node": "8"
13 | },
14 | "dependencies": {
15 | "firebase-admin": "^8.6.0",
16 | "firebase-functions": "^3.3.0"
17 | },
18 | "devDependencies": {
19 | "firebase-functions-test": "^0.1.6"
20 | },
21 | "private": true
22 | }
23 |
--------------------------------------------------------------------------------
/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 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/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 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
14 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
17 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; };
18 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
19 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
20 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
21 | /* End PBXBuildFile section */
22 |
23 | /* Begin PBXCopyFilesBuildPhase section */
24 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
25 | isa = PBXCopyFilesBuildPhase;
26 | buildActionMask = 2147483647;
27 | dstPath = "";
28 | dstSubfolderSpec = 10;
29 | files = (
30 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */,
31 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */,
32 | );
33 | name = "Embed Frameworks";
34 | runOnlyForDeploymentPostprocessing = 0;
35 | };
36 | /* End PBXCopyFilesBuildPhase section */
37 |
38 | /* Begin PBXFileReference section */
39 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
40 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
41 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
42 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; };
43 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
44 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
45 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
46 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
47 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
48 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; };
49 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
50 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
51 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
52 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
53 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
54 | /* End PBXFileReference section */
55 |
56 | /* Begin PBXFrameworksBuildPhase section */
57 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
58 | isa = PBXFrameworksBuildPhase;
59 | buildActionMask = 2147483647;
60 | files = (
61 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
62 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
63 | );
64 | runOnlyForDeploymentPostprocessing = 0;
65 | };
66 | /* End PBXFrameworksBuildPhase section */
67 |
68 | /* Begin PBXGroup section */
69 | 9740EEB11CF90186004384FC /* Flutter */ = {
70 | isa = PBXGroup;
71 | children = (
72 | 3B80C3931E831B6300D905FE /* App.framework */,
73 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
74 | 9740EEBA1CF902C7004384FC /* Flutter.framework */,
75 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
76 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
77 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
78 | );
79 | name = Flutter;
80 | sourceTree = "";
81 | };
82 | 97C146E51CF9000F007C117D = {
83 | isa = PBXGroup;
84 | children = (
85 | 9740EEB11CF90186004384FC /* Flutter */,
86 | 97C146F01CF9000F007C117D /* Runner */,
87 | 97C146EF1CF9000F007C117D /* Products */,
88 | );
89 | sourceTree = "";
90 | };
91 | 97C146EF1CF9000F007C117D /* Products */ = {
92 | isa = PBXGroup;
93 | children = (
94 | 97C146EE1CF9000F007C117D /* Runner.app */,
95 | );
96 | name = Products;
97 | sourceTree = "";
98 | };
99 | 97C146F01CF9000F007C117D /* Runner */ = {
100 | isa = PBXGroup;
101 | children = (
102 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
103 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
104 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
105 | 97C147021CF9000F007C117D /* Info.plist */,
106 | 97C146F11CF9000F007C117D /* Supporting Files */,
107 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
108 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
109 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
110 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
111 | );
112 | path = Runner;
113 | sourceTree = "";
114 | };
115 | 97C146F11CF9000F007C117D /* Supporting Files */ = {
116 | isa = PBXGroup;
117 | children = (
118 | );
119 | name = "Supporting Files";
120 | sourceTree = "";
121 | };
122 | /* End PBXGroup section */
123 |
124 | /* Begin PBXNativeTarget section */
125 | 97C146ED1CF9000F007C117D /* Runner */ = {
126 | isa = PBXNativeTarget;
127 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
128 | buildPhases = (
129 | 9740EEB61CF901F6004384FC /* Run Script */,
130 | 97C146EA1CF9000F007C117D /* Sources */,
131 | 97C146EB1CF9000F007C117D /* Frameworks */,
132 | 97C146EC1CF9000F007C117D /* Resources */,
133 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
134 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
135 | );
136 | buildRules = (
137 | );
138 | dependencies = (
139 | );
140 | name = Runner;
141 | productName = Runner;
142 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
143 | productType = "com.apple.product-type.application";
144 | };
145 | /* End PBXNativeTarget section */
146 |
147 | /* Begin PBXProject section */
148 | 97C146E61CF9000F007C117D /* Project object */ = {
149 | isa = PBXProject;
150 | attributes = {
151 | LastUpgradeCheck = 1020;
152 | ORGANIZATIONNAME = "The Chromium Authors";
153 | TargetAttributes = {
154 | 97C146ED1CF9000F007C117D = {
155 | CreatedOnToolsVersion = 7.3.1;
156 | LastSwiftMigration = 0910;
157 | };
158 | };
159 | };
160 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
161 | compatibilityVersion = "Xcode 3.2";
162 | developmentRegion = en;
163 | hasScannedForEncodings = 0;
164 | knownRegions = (
165 | en,
166 | Base,
167 | );
168 | mainGroup = 97C146E51CF9000F007C117D;
169 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
170 | projectDirPath = "";
171 | projectRoot = "";
172 | targets = (
173 | 97C146ED1CF9000F007C117D /* Runner */,
174 | );
175 | };
176 | /* End PBXProject section */
177 |
178 | /* Begin PBXResourcesBuildPhase section */
179 | 97C146EC1CF9000F007C117D /* Resources */ = {
180 | isa = PBXResourcesBuildPhase;
181 | buildActionMask = 2147483647;
182 | files = (
183 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
184 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
185 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */,
186 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
187 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
188 | );
189 | runOnlyForDeploymentPostprocessing = 0;
190 | };
191 | /* End PBXResourcesBuildPhase section */
192 |
193 | /* Begin PBXShellScriptBuildPhase section */
194 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
195 | isa = PBXShellScriptBuildPhase;
196 | buildActionMask = 2147483647;
197 | files = (
198 | );
199 | inputPaths = (
200 | );
201 | name = "Thin Binary";
202 | outputPaths = (
203 | );
204 | runOnlyForDeploymentPostprocessing = 0;
205 | shellPath = /bin/sh;
206 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
207 | };
208 | 9740EEB61CF901F6004384FC /* Run Script */ = {
209 | isa = PBXShellScriptBuildPhase;
210 | buildActionMask = 2147483647;
211 | files = (
212 | );
213 | inputPaths = (
214 | );
215 | name = "Run Script";
216 | outputPaths = (
217 | );
218 | runOnlyForDeploymentPostprocessing = 0;
219 | shellPath = /bin/sh;
220 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
221 | };
222 | /* End PBXShellScriptBuildPhase section */
223 |
224 | /* Begin PBXSourcesBuildPhase section */
225 | 97C146EA1CF9000F007C117D /* Sources */ = {
226 | isa = PBXSourcesBuildPhase;
227 | buildActionMask = 2147483647;
228 | files = (
229 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
230 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
231 | );
232 | runOnlyForDeploymentPostprocessing = 0;
233 | };
234 | /* End PBXSourcesBuildPhase section */
235 |
236 | /* Begin PBXVariantGroup section */
237 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
238 | isa = PBXVariantGroup;
239 | children = (
240 | 97C146FB1CF9000F007C117D /* Base */,
241 | );
242 | name = Main.storyboard;
243 | sourceTree = "";
244 | };
245 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
246 | isa = PBXVariantGroup;
247 | children = (
248 | 97C147001CF9000F007C117D /* Base */,
249 | );
250 | name = LaunchScreen.storyboard;
251 | sourceTree = "";
252 | };
253 | /* End PBXVariantGroup section */
254 |
255 | /* Begin XCBuildConfiguration section */
256 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
257 | isa = XCBuildConfiguration;
258 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
259 | buildSettings = {
260 | ALWAYS_SEARCH_USER_PATHS = NO;
261 | CLANG_ANALYZER_NONNULL = YES;
262 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
263 | CLANG_CXX_LIBRARY = "libc++";
264 | CLANG_ENABLE_MODULES = YES;
265 | CLANG_ENABLE_OBJC_ARC = YES;
266 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
267 | CLANG_WARN_BOOL_CONVERSION = YES;
268 | CLANG_WARN_COMMA = YES;
269 | CLANG_WARN_CONSTANT_CONVERSION = YES;
270 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
271 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
272 | CLANG_WARN_EMPTY_BODY = YES;
273 | CLANG_WARN_ENUM_CONVERSION = YES;
274 | CLANG_WARN_INFINITE_RECURSION = YES;
275 | CLANG_WARN_INT_CONVERSION = YES;
276 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
277 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
278 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
279 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
280 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
281 | CLANG_WARN_STRICT_PROTOTYPES = YES;
282 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
283 | CLANG_WARN_UNREACHABLE_CODE = YES;
284 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
285 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
286 | COPY_PHASE_STRIP = NO;
287 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
288 | ENABLE_NS_ASSERTIONS = NO;
289 | ENABLE_STRICT_OBJC_MSGSEND = YES;
290 | GCC_C_LANGUAGE_STANDARD = gnu99;
291 | GCC_NO_COMMON_BLOCKS = YES;
292 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
293 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
294 | GCC_WARN_UNDECLARED_SELECTOR = YES;
295 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
296 | GCC_WARN_UNUSED_FUNCTION = YES;
297 | GCC_WARN_UNUSED_VARIABLE = YES;
298 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
299 | MTL_ENABLE_DEBUG_INFO = NO;
300 | SDKROOT = iphoneos;
301 | TARGETED_DEVICE_FAMILY = "1,2";
302 | VALIDATE_PRODUCT = YES;
303 | };
304 | name = Profile;
305 | };
306 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
307 | isa = XCBuildConfiguration;
308 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
309 | buildSettings = {
310 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
311 | CLANG_ENABLE_MODULES = YES;
312 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
313 | ENABLE_BITCODE = NO;
314 | FRAMEWORK_SEARCH_PATHS = (
315 | "$(inherited)",
316 | "$(PROJECT_DIR)/Flutter",
317 | );
318 | INFOPLIST_FILE = Runner/Info.plist;
319 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
320 | LIBRARY_SEARCH_PATHS = (
321 | "$(inherited)",
322 | "$(PROJECT_DIR)/Flutter",
323 | );
324 | PRODUCT_BUNDLE_IDENTIFIER = com.example.videoChat;
325 | PRODUCT_NAME = "$(TARGET_NAME)";
326 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
327 | SWIFT_VERSION = 4.0;
328 | VERSIONING_SYSTEM = "apple-generic";
329 | };
330 | name = Profile;
331 | };
332 | 97C147031CF9000F007C117D /* Debug */ = {
333 | isa = XCBuildConfiguration;
334 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
335 | buildSettings = {
336 | ALWAYS_SEARCH_USER_PATHS = NO;
337 | CLANG_ANALYZER_NONNULL = YES;
338 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
339 | CLANG_CXX_LIBRARY = "libc++";
340 | CLANG_ENABLE_MODULES = YES;
341 | CLANG_ENABLE_OBJC_ARC = YES;
342 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
343 | CLANG_WARN_BOOL_CONVERSION = YES;
344 | CLANG_WARN_COMMA = YES;
345 | CLANG_WARN_CONSTANT_CONVERSION = YES;
346 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
347 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
348 | CLANG_WARN_EMPTY_BODY = YES;
349 | CLANG_WARN_ENUM_CONVERSION = YES;
350 | CLANG_WARN_INFINITE_RECURSION = YES;
351 | CLANG_WARN_INT_CONVERSION = YES;
352 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
353 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
354 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
355 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
356 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
357 | CLANG_WARN_STRICT_PROTOTYPES = YES;
358 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
359 | CLANG_WARN_UNREACHABLE_CODE = YES;
360 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
361 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
362 | COPY_PHASE_STRIP = NO;
363 | DEBUG_INFORMATION_FORMAT = dwarf;
364 | ENABLE_STRICT_OBJC_MSGSEND = YES;
365 | ENABLE_TESTABILITY = YES;
366 | GCC_C_LANGUAGE_STANDARD = gnu99;
367 | GCC_DYNAMIC_NO_PIC = NO;
368 | GCC_NO_COMMON_BLOCKS = YES;
369 | GCC_OPTIMIZATION_LEVEL = 0;
370 | GCC_PREPROCESSOR_DEFINITIONS = (
371 | "DEBUG=1",
372 | "$(inherited)",
373 | );
374 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
375 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
376 | GCC_WARN_UNDECLARED_SELECTOR = YES;
377 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
378 | GCC_WARN_UNUSED_FUNCTION = YES;
379 | GCC_WARN_UNUSED_VARIABLE = YES;
380 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
381 | MTL_ENABLE_DEBUG_INFO = YES;
382 | ONLY_ACTIVE_ARCH = YES;
383 | SDKROOT = iphoneos;
384 | TARGETED_DEVICE_FAMILY = "1,2";
385 | };
386 | name = Debug;
387 | };
388 | 97C147041CF9000F007C117D /* Release */ = {
389 | isa = XCBuildConfiguration;
390 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
391 | buildSettings = {
392 | ALWAYS_SEARCH_USER_PATHS = NO;
393 | CLANG_ANALYZER_NONNULL = YES;
394 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
395 | CLANG_CXX_LIBRARY = "libc++";
396 | CLANG_ENABLE_MODULES = YES;
397 | CLANG_ENABLE_OBJC_ARC = YES;
398 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
399 | CLANG_WARN_BOOL_CONVERSION = YES;
400 | CLANG_WARN_COMMA = YES;
401 | CLANG_WARN_CONSTANT_CONVERSION = YES;
402 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
403 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
404 | CLANG_WARN_EMPTY_BODY = YES;
405 | CLANG_WARN_ENUM_CONVERSION = YES;
406 | CLANG_WARN_INFINITE_RECURSION = YES;
407 | CLANG_WARN_INT_CONVERSION = YES;
408 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
409 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
410 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
411 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
412 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
413 | CLANG_WARN_STRICT_PROTOTYPES = YES;
414 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
415 | CLANG_WARN_UNREACHABLE_CODE = YES;
416 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
417 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
418 | COPY_PHASE_STRIP = NO;
419 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
420 | ENABLE_NS_ASSERTIONS = NO;
421 | ENABLE_STRICT_OBJC_MSGSEND = YES;
422 | GCC_C_LANGUAGE_STANDARD = gnu99;
423 | GCC_NO_COMMON_BLOCKS = YES;
424 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
425 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
426 | GCC_WARN_UNDECLARED_SELECTOR = YES;
427 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
428 | GCC_WARN_UNUSED_FUNCTION = YES;
429 | GCC_WARN_UNUSED_VARIABLE = YES;
430 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
431 | MTL_ENABLE_DEBUG_INFO = NO;
432 | SDKROOT = iphoneos;
433 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
434 | TARGETED_DEVICE_FAMILY = "1,2";
435 | VALIDATE_PRODUCT = YES;
436 | };
437 | name = Release;
438 | };
439 | 97C147061CF9000F007C117D /* Debug */ = {
440 | isa = XCBuildConfiguration;
441 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
442 | buildSettings = {
443 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
444 | CLANG_ENABLE_MODULES = YES;
445 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
446 | ENABLE_BITCODE = NO;
447 | FRAMEWORK_SEARCH_PATHS = (
448 | "$(inherited)",
449 | "$(PROJECT_DIR)/Flutter",
450 | );
451 | INFOPLIST_FILE = Runner/Info.plist;
452 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
453 | LIBRARY_SEARCH_PATHS = (
454 | "$(inherited)",
455 | "$(PROJECT_DIR)/Flutter",
456 | );
457 | PRODUCT_BUNDLE_IDENTIFIER = com.example.videoChat;
458 | PRODUCT_NAME = "$(TARGET_NAME)";
459 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
460 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
461 | SWIFT_VERSION = 4.0;
462 | VERSIONING_SYSTEM = "apple-generic";
463 | };
464 | name = Debug;
465 | };
466 | 97C147071CF9000F007C117D /* Release */ = {
467 | isa = XCBuildConfiguration;
468 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
469 | buildSettings = {
470 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
471 | CLANG_ENABLE_MODULES = YES;
472 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
473 | ENABLE_BITCODE = NO;
474 | FRAMEWORK_SEARCH_PATHS = (
475 | "$(inherited)",
476 | "$(PROJECT_DIR)/Flutter",
477 | );
478 | INFOPLIST_FILE = Runner/Info.plist;
479 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
480 | LIBRARY_SEARCH_PATHS = (
481 | "$(inherited)",
482 | "$(PROJECT_DIR)/Flutter",
483 | );
484 | PRODUCT_BUNDLE_IDENTIFIER = com.example.videoChat;
485 | PRODUCT_NAME = "$(TARGET_NAME)";
486 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
487 | SWIFT_VERSION = 4.0;
488 | VERSIONING_SYSTEM = "apple-generic";
489 | };
490 | name = Release;
491 | };
492 | /* End XCBuildConfiguration section */
493 |
494 | /* Begin XCConfigurationList section */
495 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
496 | isa = XCConfigurationList;
497 | buildConfigurations = (
498 | 97C147031CF9000F007C117D /* Debug */,
499 | 97C147041CF9000F007C117D /* Release */,
500 | 249021D3217E4FDB00AE95B9 /* Profile */,
501 | );
502 | defaultConfigurationIsVisible = 0;
503 | defaultConfigurationName = Release;
504 | };
505 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
506 | isa = XCConfigurationList;
507 | buildConfigurations = (
508 | 97C147061CF9000F007C117D /* Debug */,
509 | 97C147071CF9000F007C117D /* Release */,
510 | 249021D4217E4FDB00AE95B9 /* Profile */,
511 | );
512 | defaultConfigurationIsVisible = 0;
513 | defaultConfigurationName = Release;
514 | };
515 | /* End XCConfigurationList section */
516 |
517 | };
518 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
519 | }
520 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/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/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/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/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/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/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/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/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/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/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/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/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/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/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/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/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/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/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/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/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremy-friesen/flutter-video-chat/7d19b912f2158b9dc20516dc99925baa912884b3/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/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/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 |
--------------------------------------------------------------------------------
/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 | video_chat
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 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
--------------------------------------------------------------------------------
/lib/Auth/auth.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_auth/firebase_auth.dart';
2 | import 'package:video_chat/Model/user.dart';
3 |
4 | class AuthService{
5 |
6 | final FirebaseAuth _auth = FirebaseAuth.instance;
7 |
8 | //creating a user object based on the firebase user class
9 | User userFromFirebaseUser(FirebaseUser user){
10 | return user != null ? User(uid: user.uid, email: user.email) : null;
11 | }
12 |
13 | //Allowing us to see if the user is signed in or not
14 | Stream get user{
15 | return _auth.onAuthStateChanged.map(userFromFirebaseUser);
16 | }
17 |
18 | //Sign in with email & password
19 | Future signInWithEmailAndPassword(String email, String password) async{
20 | try{
21 | AuthResult result = await _auth.signInWithEmailAndPassword(email: email, password: password);
22 | FirebaseUser user = result.user;
23 | return userFromFirebaseUser(user);
24 | }catch(e){
25 | print(e.toString());
26 | return null;
27 | }
28 | }
29 | //Register with email & password
30 | Future registerWithEmailAndPassword(String email, String password) async{
31 | try{
32 | AuthResult result = await _auth.createUserWithEmailAndPassword(email: email, password: password);
33 | FirebaseUser user = result.user;
34 | return userFromFirebaseUser(user);
35 | }catch(e){
36 | print(e.toString());
37 | return null;
38 | }
39 | }
40 |
41 | // sign out
42 | Future signOut() async{
43 | try{
44 | return await _auth.signOut();
45 | }catch(e){
46 | print(e.toString());
47 | return null;
48 | }
49 | }
50 | }
51 |
52 |
53 |
--------------------------------------------------------------------------------
/lib/Auth/login.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_i18n/flutter_i18n.dart';
2 |
3 | import 'package:flutter/material.dart';
4 | import 'package:video_chat/Auth/auth.dart';
5 |
6 | //LOGIN
7 | class Login extends StatefulWidget {
8 | static const String id = "LOGIN";
9 | @override
10 | _LoginState createState() => _LoginState();
11 | }
12 |
13 | class _LoginState extends State {
14 | //Getting the class from Services/auth.dart
15 | final AuthService _auth = AuthService();
16 | //Getting a formkey for the validation section
17 | final _formKey = GlobalKey();
18 |
19 | //Text field state
20 | String email = '';
21 | String password = '';
22 | String error = '';
23 |
24 | @override
25 | Widget build(BuildContext context) {
26 | return Scaffold(
27 | backgroundColor: Colors.green[400],
28 | body: ListView(
29 | children:[
30 | Padding(
31 | padding: EdgeInsets.only(top: 15.0, left: 10.0),
32 | child:Row(
33 | mainAxisAlignment: MainAxisAlignment.start,
34 | crossAxisAlignment: CrossAxisAlignment.start,
35 | children: [
36 | IconButton(
37 | icon: Icon(Icons.arrow_back),
38 | color: Colors.white,
39 | iconSize: 30,
40 | onPressed: (){
41 | Navigator.pop(context);
42 | },
43 | ),
44 | Container(
45 | width: 300,
46 | padding: EdgeInsets.only(top: 5.5, left: 35.0),
47 | child: Text(
48 | FlutterI18n.translate(context, 'app.welcomeback'),
49 | style: TextStyle(
50 | color: Colors.white,
51 | fontFamily: 'Montserrat',
52 | fontSize: 25.0,
53 | ),
54 | ),
55 | ),
56 | ],
57 | ),
58 | ),
59 | SingleChildScrollView(
60 | child:Container(
61 | height: MediaQuery.of(context).size.height,
62 | decoration: BoxDecoration(
63 | color: Colors.white,
64 | borderRadius: BorderRadius.only(topLeft: Radius.circular(75.0)),
65 | ),
66 | padding: EdgeInsets.symmetric(vertical: 20.0, horizontal: 40.0),
67 | //Using the Form widget to create a validation for when the user inputs data
68 | child: Form(
69 | key: _formKey,
70 | child: Column(
71 | mainAxisAlignment: MainAxisAlignment.start,
72 | crossAxisAlignment: CrossAxisAlignment.center,
73 | children: [
74 | //Size box to make a space between
75 | SizedBox(height: 10.0,),
76 | //The LOGO
77 | Hero(
78 | tag: 'logo',
79 | child: Container(
80 | width: 150.0,
81 | child: Image.asset("assets/images/huddleLogo.png")
82 | ),
83 | ),
84 | //USERNAME section
85 | SizedBox(height: 20.0,),
86 | Text(
87 | FlutterI18n.translate(context, 'app.email'),
88 | style: TextStyle(
89 | color: Color(0xff0E6D6A),
90 | fontFamily: 'IndieFlower',
91 | fontSize: 25.0,
92 | ),
93 | ),
94 | TextFormField(
95 | //The validation error where if the user types an empty string
96 | validator: (val) => val.isEmpty ? FlutterI18n.translate(context, 'app.enteranemail'): null,
97 | textAlign: TextAlign.center,
98 | onChanged: (val){
99 | //Making the email variable be the value entered
100 | setState(() => email = val);
101 | },
102 | ),
103 | //PASSWORD section
104 | SizedBox(height: 30.0),
105 | Text(
106 | FlutterI18n.translate(context, 'app.password'),
107 | style: TextStyle(
108 | color: Color(0xff0E6D6A),
109 | fontFamily: 'IndieFlower',
110 | fontSize: 25.0,
111 | ),
112 | ),
113 | TextFormField(
114 | //The validation error if the user types in a password with less than 8 characters
115 | validator: (val) => val.length < 3 ? FlutterI18n.translate(context, 'app.enterapassword'): null,
116 | textAlign: TextAlign.center,
117 | obscureText: true,
118 | onChanged: (val){
119 | //making the password variable be the value entered
120 | setState(() => password = val);
121 | },
122 | ),
123 | //SIGNING IN
124 | SizedBox(height: 50.0,),
125 | RaisedButton(
126 | color: Colors.green[700],
127 | child: Text(
128 | FlutterI18n.translate(context, 'app.login'),
129 | style: TextStyle(
130 | color: Colors.white,
131 | fontFamily: 'IndieFlower',
132 | fontSize: 20.0,
133 | ),
134 | ),
135 | //When the presses the button and sends the email information to the firebase auth
136 | onPressed: () async{
137 | //This will check if the user has sent a valid email and password
138 | if (_formKey.currentState.validate()){
139 | //Sending the information and checking if the information given is correct
140 | dynamic result = await _auth.signInWithEmailAndPassword(email, password);
141 | //If the infomration is wrong
142 | if(result == null){
143 | setState(() => error = FlutterI18n.translate(context, 'app.emailpasswordincorrect'));
144 | }
145 | //Sending them to the main menu
146 | else{
147 | Navigator.pop(context);
148 | //snack(context, FlutterI18n.translate(context, 'app.loginsuccessful'));
149 | }
150 | }
151 | },
152 | ),
153 | //Making the space between the text and textfield
154 | SizedBox(height: 12.0,),
155 | //Giving the error from firebase to the bottom of the screen
156 | Text(
157 | error,
158 | style: TextStyle(color: Colors.red, fontFamily: 'IndieFlower'),
159 | )
160 | ],
161 | ),
162 | ),
163 | ),
164 | ),
165 | ],
166 | ),
167 | );
168 | }
169 | }
170 |
--------------------------------------------------------------------------------
/lib/Auth/logsignin_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_i18n/flutter_i18n.dart';
3 | import 'login.dart';
4 | import 'register.dart';
5 |
6 | //The main page of the sign it, this is where the user can either choose join or leave after
7 | class LogsignIn extends StatelessWidget {
8 | //This id is the "HOMESCREEN" of the applications
9 | static const String id = "HOMESCREEN";
10 | @override
11 | Widget build(BuildContext context) {
12 | return Scaffold(
13 | backgroundColor: Colors.white,
14 | body:Center(
15 | //the widgets of the app, logo, text, and two buttons go in
16 | child:
17 | Stack(
18 | children: [
19 | //For the image
20 | Container(
21 | height: MediaQuery.of(context).size.height,
22 | width: MediaQuery.of(context).size.width,
23 | decoration: BoxDecoration(
24 | image: new DecorationImage(
25 | image: AssetImage("assets/images/huddleBackground.png"),
26 | fit: BoxFit.cover,
27 | ),
28 | ),
29 | ),
30 | Center(
31 | child:Column(
32 | mainAxisAlignment: MainAxisAlignment.center,
33 | crossAxisAlignment: CrossAxisAlignment.center,
34 | children: [
35 | Column(
36 | mainAxisAlignment: MainAxisAlignment.center,
37 | children: [
38 | //Logo
39 | Hero(
40 | tag: 'logo',
41 | child: Container(
42 | width: 200.0,
43 | child: Image.asset("assets/images/huddleLogo.png")
44 | ),
45 | ),
46 | SizedBox(height: 40.0),
47 | ],
48 | ),
49 | //Seperates the space between the chat and the buttons
50 | SizedBox(height: 25.0),
51 | Text(
52 | FlutterI18n.translate(context, 'app.connectwithothers'),
53 | style: TextStyle(
54 | fontFamily: 'Montserrat',
55 | fontSize: 22.5,
56 | fontWeight: FontWeight.w900
57 | ),
58 | ),
59 | SizedBox(height: 25.0),
60 | //Navigates to the login page
61 | LogSigninButtons(
62 | text: FlutterI18n.translate(context, 'app.login'),
63 | callback: (){
64 | Navigator.of(context).pushNamed(Login.id);
65 | },
66 | ),
67 |
68 | SizedBox(height: 15.0),
69 | //Navigates to the register page
70 | LogSigninButtons(
71 | text: FlutterI18n.translate(context, 'app.register'),
72 | callback: (){
73 | Navigator.of(context).pushNamed(Register.id);
74 | },
75 | ),
76 | ],
77 | ),
78 | ),
79 | ],
80 | ),
81 | ),
82 | );
83 | }
84 | }
85 |
86 | //Creating the button
87 | class LogSigninButtons extends StatelessWidget {
88 |
89 | final VoidCallback callback;
90 | final String text;
91 |
92 | const LogSigninButtons({Key key, this.callback, this.text}) : super(key: key);
93 |
94 |
95 | @override
96 | Widget build(BuildContext context) {
97 | //Using a container so you can use the padding
98 | return Container(
99 | padding: EdgeInsets.all(10),
100 | //Customizing the button for visual purposes
101 | child: Opacity(
102 | opacity: 0.8,
103 | child: Material(
104 | elevation: 6.0,
105 | borderRadius: BorderRadius.circular(30.0),
106 | color: Colors.white,
107 | child: MaterialButton(
108 | //The callback is the function where it navigates through each page
109 | onPressed: callback,
110 | minWidth: 200.0,
111 | height: 50.0,
112 | child: Text(
113 | text,
114 | style: TextStyle(
115 | fontFamily: 'Montserrat',
116 | fontSize: 22.5,
117 | fontWeight: FontWeight.w500
118 | ),
119 | ),
120 | ),
121 | ),
122 | ),
123 | );
124 | }
125 | }
126 |
127 |
--------------------------------------------------------------------------------
/lib/Auth/register.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_i18n/flutter_i18n.dart';
2 | import 'package:video_chat/page_navigator.dart';
3 |
4 | import 'package:flutter/material.dart';
5 | import 'package:video_chat/Auth/auth.dart';
6 | import 'package:flushbar/flushbar.dart';
7 |
8 | // The Sign in and Register Widgets
9 |
10 | //REGISTER
11 | class Register extends StatefulWidget {
12 | static const String id = 'REGISTER';
13 | @override
14 | _RegisterState createState() => _RegisterState();
15 | }
16 |
17 | class _RegisterState extends State {
18 | //Getting the class AuthService from Services/auth.dart
19 | final AuthService _auth = AuthService();
20 | //Creating a form key used in validation
21 | final _formKey = GlobalKey();
22 | String email = '';
23 | String password = '';
24 | String error = '';
25 |
26 | @override
27 | Widget build(BuildContext context) {
28 | return Scaffold(
29 | //Creating an AppBar so the user can go back to the main page
30 | backgroundColor: Colors.green[400],
31 | //Where all the widgets of the page is in
32 | body: ListView(
33 | children: [
34 | Padding(
35 | padding: EdgeInsets.only(top: 15.0, left: 10.0),
36 | child:Row(
37 | mainAxisAlignment: MainAxisAlignment.start,
38 | crossAxisAlignment: CrossAxisAlignment.start,
39 | children: [
40 | IconButton(
41 | icon: Icon(Icons.arrow_back),
42 | color: Colors.white,
43 | iconSize: 30,
44 | onPressed: (){
45 | Navigator.pop(context);
46 | },
47 | ),
48 | Container(
49 | width: 300,
50 | padding: EdgeInsets.only(top: 5.5, left: 70.0),
51 | child: Text(
52 | FlutterI18n.translate(context, 'app.joinus'),
53 | style: TextStyle(
54 | color: Colors.white,
55 | fontFamily: 'Montserrat',
56 | fontSize: 25.0,
57 | ),
58 | ),
59 | ),
60 | ],
61 | ),
62 | ),
63 | SingleChildScrollView(
64 | child: Container(
65 | height: MediaQuery.of(context).size.height,
66 | decoration: BoxDecoration(
67 | color: Colors.white,
68 | borderRadius: BorderRadius.only(topLeft: Radius.circular(75.0)),
69 | ),
70 | padding: EdgeInsets.symmetric(vertical: 20.0, horizontal: 40.0),
71 | //Creating a form where you can use validations (validations tell the user what is wrong with the information they are putting in)
72 | child: Form(
73 | key: _formKey,
74 | child: (Column(
75 | mainAxisAlignment: MainAxisAlignment.start,
76 | crossAxisAlignment: CrossAxisAlignment.center,
77 | children: [
78 | SizedBox(height: 10.0,),
79 | //The LOGO
80 | Hero(
81 | tag: 'logo',
82 | child: Container(
83 | width: 150.0,
84 | child: Image.asset("assets/images/huddleLogo.png")
85 | ),
86 | ),
87 | //USERNAME section
88 | SizedBox(height: 20.0,),
89 | Text(
90 | FlutterI18n.translate(context, 'app.email'),
91 | style: TextStyle(
92 | color: Color(0xff0E6D6A),
93 | fontFamily: 'IndieFlower',
94 | fontSize: 25.0,
95 | ),
96 | ),
97 | TextFormField(
98 | //If the user does not put an email, the validation will tell them to enter an email
99 | validator: (val) => val.isEmpty ? FlutterI18n.translate(context, 'app.enteranemail'): null,
100 | onChanged: (val){
101 | setState(() => email = val);
102 | },
103 | ),
104 | //PASSWORD section
105 | SizedBox(height: 30.0,),
106 | Text(
107 | FlutterI18n.translate(context, 'app.password'),
108 | style: TextStyle(
109 | color: Color(0xff0E6D6A),
110 | fontFamily: 'IndieFlower',
111 | fontSize: 25.0,
112 | ),
113 | ),
114 | TextFormField(
115 | //If the user does not put a character with 8 or more characters it
116 | validator: (val) => val.length <= 3 ? FlutterI18n.translate(context, 'app.enterapassword'): null,
117 | obscureText: true,
118 | onChanged: (val){
119 | setState(() => password = val);
120 | },
121 | ),
122 | //REGISTERING IN
123 | SizedBox(height: 50.0,),
124 | RaisedButton(
125 | color: Colors.green[700],
126 | child: Text(
127 | FlutterI18n.translate(context, 'app.register'),
128 | style: TextStyle(
129 | color: Colors.white,
130 | fontFamily: 'IndieFlower',
131 | fontSize: 20.0,
132 | ),
133 | ),
134 | onPressed: () async{
135 | //Sending it to firebase so you can check with the system if the email and password is valid
136 | if (_formKey.currentState.validate()){
137 | //getting the results from firebase auth
138 | dynamic result = await _auth.registerWithEmailAndPassword(email, password);
139 | if(result == null){
140 | //If the email is not valid
141 | setState(() => error = FlutterI18n.translate(context, 'app.pleaseenteravalidemail'));
142 | }
143 | //Sending them to the main menu of the chat
144 | else{
145 | Navigator.pop(context);
146 | showSimpleFlushBar(context, FlutterI18n.translate(context, 'app.succesfullyregisteredanaccount'));
147 | // experimental:
148 | Navigator.push(
149 | context,
150 | MaterialPageRoute(
151 | builder: (context) => PageNavigator(),
152 | ),
153 | );
154 | }
155 | }
156 | },
157 | ),
158 | //Returning the error from firebase in text form
159 | SizedBox(height: 12.0,),
160 | Text(
161 | error,
162 | style: TextStyle(color: Colors.red, fontFamily: 'IndieFlower'),
163 | )
164 | ],
165 | )),
166 | ),
167 | ),
168 | ),
169 | ],
170 | ),
171 | );
172 | }
173 | //Simple flushbar
174 | void showSimpleFlushBar(BuildContext context, String message){
175 | Flushbar(
176 | message: message,
177 | duration: Duration(seconds: 3),
178 | backgroundColor: Colors.green,
179 | )..show(context);
180 | }
181 |
182 | }
--------------------------------------------------------------------------------
/lib/GeoLocation/geolocation.dart:
--------------------------------------------------------------------------------
1 | import 'package:geolocator/geolocator.dart';
2 |
3 | String sayLocation(){
4 | var location = Geolocator();
5 | var message = '';
6 |
7 | location.getCurrentPosition(
8 | desiredAccuracy: LocationAccuracy.best,
9 | ).then((Position userLocation){
10 |
11 | location.placemarkFromCoordinates(
12 | userLocation.latitude,
13 | userLocation.longitude,
14 | ).then((List places) {
15 | print('Reverse geocoding results: ');
16 | for (Placemark place in places){
17 | message = ('\t${place.name},${place.subThoroughfare},${place.thoroughfare},${place.locality}, ${place.subAdministrativeArea}');
18 | }
19 | });
20 | });
21 |
22 | return message;
23 | }
24 |
--------------------------------------------------------------------------------
/lib/GeoLocation/getLocation.dart:
--------------------------------------------------------------------------------
1 | import 'package:geolocator/geolocator.dart';
2 | import 'package:latlong/latlong.dart';
3 |
4 | import 'dart:async';
5 | import 'maps.dart';
6 |
7 | Future getLocation() async{
8 | var geolocator = Geolocator();
9 | Position currentLocation;
10 |
11 | try{
12 | currentLocation = await geolocator.getCurrentPosition(
13 | desiredAccuracy: LocationAccuracy.best,
14 | );
15 | } catch (e) {
16 | currentLocation = null;
17 | }
18 |
19 | mapcontroller.move(LatLng(currentLocation.latitude, currentLocation.longitude), 16.0);
20 |
21 | print('in _getLocation');
22 | print('lat: ${currentLocation.latitude} long: ${currentLocation.longitude} ');
23 |
24 | return currentLocation;
25 | }
--------------------------------------------------------------------------------
/lib/GeoLocation/maps.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter/cupertino.dart';
3 | import 'package:flutter_i18n/flutter_i18n.dart';
4 |
5 | import 'package:flutter_map/flutter_map.dart';
6 | import 'package:latlong/latlong.dart';
7 |
8 | import 'package:geolocator/geolocator.dart';
9 |
10 | import 'getLocation.dart';
11 |
12 | class MapsPage extends StatefulWidget {
13 | @override
14 | Maps createState() => Maps();
15 | }
16 |
17 | MapController mapcontroller = MapController();
18 |
19 | List _markers = [];
20 |
21 | class Maps extends State {
22 | Position user;
23 | LatLng loc;
24 |
25 | @override
26 | Widget build(BuildContext context) {
27 | double lat = 0.0;
28 | double long = 0.0;
29 |
30 | getLocation().then((position){
31 | user = position;
32 | setMarkers(user);
33 | });
34 |
35 | if (user == null){
36 | lat = 28.374139;
37 | long = -81.549396;
38 | }
39 | else{
40 | lat = user.latitude;
41 | long = user.longitude;
42 | }
43 |
44 | loc = LatLng(lat, long);
45 |
46 | return Scaffold(
47 | appBar: AppBar(
48 | title: Text(FlutterI18n.translate(context, 'app.maps')),
49 | backgroundColor: Colors.green,
50 | ),
51 | body: FlutterMap (
52 | mapController: mapcontroller,
53 |
54 | options: MapOptions(
55 | minZoom: 16.0,
56 | center: loc,
57 | ),
58 | layers: [
59 | TileLayerOptions(
60 | // for OpenStreetMaps:
61 | urlTemplate: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
62 | subdomains: ['a', 'b', 'c'],
63 | ),
64 | MarkerLayerOptions(
65 | markers: _markers,
66 | ),
67 | ],
68 | ),
69 | );
70 | }
71 |
72 | void setMarkers(pos){
73 | LatLng point = LatLng(pos.latitude, pos.longitude);
74 |
75 | List markers = [
76 | Marker(
77 | width: 45.0,
78 | height: 45.0,
79 | point: point,
80 | builder: (context) => Container(
81 | child: IconButton(
82 | icon: Icon(Icons.location_on),
83 | color: Colors.blue,
84 | iconSize: 45.0,
85 | onPressed: () {},
86 | ),
87 | ),
88 | ),
89 | ];
90 |
91 | setState(() {
92 | _markers.clear();
93 | _markers = markers;
94 | });
95 | }
96 | }
97 |
98 |
--------------------------------------------------------------------------------
/lib/Model/group_model.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 |
3 | import 'package:cloud_firestore/cloud_firestore.dart';
4 |
5 | class GroupModel {
6 | final databaseReference = Firestore.instance;
7 |
8 | Future insertGroup(Group group) async {
9 | await databaseReference.collection("Groups")
10 | .document(group.groupId).setData(group.toMap());
11 | }
12 |
13 | Future updateGroupName(Group group) async {
14 | await databaseReference.collection('Groups').document(group.groupId).updateData({
15 | "Name":group.groupName,
16 | });
17 | return 1;
18 | }
19 |
20 | Future deleteTodo(String sid) async {
21 | try{
22 | databaseReference.collection('Groups')
23 | .document(sid).delete();
24 | }catch(e){
25 | print(e);
26 | }
27 | return 0;
28 | }
29 |
30 | void getAllGroups() {
31 | databaseReference.collection('Groups')
32 | .getDocuments().then((QuerySnapshot snapshot){
33 | snapshot.documents.forEach((f)=> print('{f.data}'));
34 | });
35 | }
36 | }
37 |
38 | class Group{
39 | String groupId;
40 | //final String groupIconPath;
41 | String groupName;
42 | //var lastMessageTime;
43 | List memberIDs;
44 |
45 | DocumentReference documentReference;
46 |
47 | Group({this.groupId, this.groupName, this.memberIDs});
48 |
49 | Group.fromMap(Map map,{this.documentReference}) {
50 | this.groupId = map['id'];
51 | this.groupName = map['name'];
52 | this.memberIDs = map['member_ids'];
53 | }
54 |
55 | Map toMap() {
56 | return {
57 | 'id': this.groupId,
58 | 'name': this.groupName,
59 | 'member_ids': this.memberIDs,
60 | };
61 | }
62 | }
--------------------------------------------------------------------------------
/lib/Model/message_model.dart:
--------------------------------------------------------------------------------
1 | class Message {
2 | //final Group group;
3 | //final User sender;
4 | final String text;
5 | final bool isReacted;
6 | var lastMessageTime;
7 |
8 | Message({this.text, this.isReacted, this.lastMessageTime});
9 |
10 | }
--------------------------------------------------------------------------------
/lib/Model/user.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:intl/intl.dart';
3 |
4 | class User{
5 | String email;
6 | final String uid;
7 | String userName;
8 | String picture;
9 |
10 | //This is to check if the user has its unique user name from firebase
11 | User({this.uid, this.email, this.userName, this.picture});
12 | }
13 |
14 | String formatTimeOfDay(TimeOfDay tod) {
15 | final now = new DateTime.now();
16 | final dt = DateTime(now.year, now.month, now.day, tod.hour, tod.minute);
17 | final format = DateFormat.jm(); //"6:00 AM"
18 | return format.format(dt);
19 | }
20 |
21 | class UserModel {
22 | final int id;
23 | final String iconPath;
24 | final String userName;
25 |
26 | UserModel({this.id, this.iconPath, this.userName});
27 | }
--------------------------------------------------------------------------------
/lib/Notification/notification.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_local_notifications/flutter_local_notifications.dart';
2 |
3 | class Notifications {
4 | final channelId = 'testNotifications';
5 | final channelName = 'Test Notifications';
6 | final channelDescription = 'Test Notification Channel';
7 |
8 | var _flutterLocalNotificationsPlugin = new FlutterLocalNotificationsPlugin();
9 | NotificationDetails _platformChannelInfo;
10 | var notificationId = 100;
11 |
12 | void init() {
13 | var initializationSettingsAndroid = new AndroidInitializationSettings('mipmap/ic_launcher');
14 | var initializationSettingsIOS = new IOSInitializationSettings(
15 | onDidReceiveLocalNotification: (int id, String title, String body, String payload) { return null; }
16 | );
17 | var initializationSettings = new InitializationSettings(
18 | initializationSettingsAndroid,
19 | initializationSettingsIOS
20 | );
21 | _flutterLocalNotificationsPlugin.initialize(
22 | initializationSettings,
23 | onSelectNotification: onSelectNotification
24 | );
25 |
26 | // setup a channel for notifications
27 | var androidPlatformChannelInfo = AndroidNotificationDetails(
28 | channelId,
29 | channelName,
30 | channelDescription,
31 | importance: Importance.Max,
32 | priority: Priority.High,
33 | ticker: 'ticker');
34 |
35 | var iOSPlatformChannelInfo = IOSNotificationDetails();
36 | _platformChannelInfo = NotificationDetails(
37 | androidPlatformChannelInfo,
38 | iOSPlatformChannelInfo
39 | );
40 |
41 | }
42 |
43 | Future onSelectNotification(var payload) async {
44 | if (payload != null) {
45 | print('notificationSelected: payload=$payload.');
46 | }
47 | }
48 |
49 | Future sendNotificationNow(String title, String body, String payload) async {
50 | _flutterLocalNotificationsPlugin.show(
51 | notificationId++,
52 | title,
53 | body,
54 | _platformChannelInfo,
55 | payload: payload
56 | );
57 | }
58 |
59 | Future> getPendingNotificationRequests() async {
60 | return _flutterLocalNotificationsPlugin.pendingNotificationRequests();
61 | }
62 | }
--------------------------------------------------------------------------------
/lib/SQFLITEMODEL/db_utils.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'package:sqflite/sqflite.dart';
3 | import 'package:path/path.dart' as path;
4 |
5 | //Just used for sqflite
6 |
7 | class DBUtils{
8 | static Future init() async {
9 | return openDatabase(
10 | path.join(await getDatabasesPath(), 'user_items.db'),
11 | onCreate: (db, version) {
12 | if (version > 1) {
13 | // downgrade path
14 | }
15 | db.execute('CREATE TABLE user_items(id INTEGER PRIMARY KEY, userName TEXT, email TEXT, age INT)');
16 | },
17 | version: 1,
18 | );
19 | }
20 | }
--------------------------------------------------------------------------------
/lib/SQFLITEMODEL/user_SQFLITE.dart:
--------------------------------------------------------------------------------
1 | class User{
2 | //Creating the variables first
3 | int userName;
4 | int email;
5 | String age;
6 |
7 | //Making a Constructor
8 | User({
9 | this.userName,
10 | this.email,
11 | this.age,
12 | });
13 |
14 | User.fromMap(Map map){
15 | this.userName = map['userName'];
16 | this.email = map['email'];
17 | this.age = map['age'];
18 | }
19 |
20 | //Putting these elements to a map
21 | Map toMap(){
22 | return{
23 | 'id': this.userName,
24 | 'sid': this.email,
25 | 'grades' : this.age,
26 | };
27 | }
28 |
29 | //Overriding the toString function
30 | @override
31 | String toString(){
32 | return 'Grades{id: $userName, sid: $email, grades: $age}';
33 | }
34 |
35 | }// Grade
--------------------------------------------------------------------------------
/lib/SQFLITEMODEL/users_model.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'package:sqflite/sqflite.dart';
3 | import 'db_utils.dart';
4 | import 'user_SQFLITE.dart';
5 | //import 'package:lab045/grades.dart';
6 |
7 | class GradesModel {
8 | //For Inserting into the database
9 | Future insertUsers(User users) async {
10 | final db = await DBUtils.init();
11 | return await db.insert(
12 | 'user_items',
13 | users.toMap(),
14 | conflictAlgorithm: ConflictAlgorithm.replace,
15 | );
16 | }
17 |
18 | //For updating Grades in the database
19 | Future updateUsers(User users) async {
20 | final db = await DBUtils.init();
21 | return await db.update('user_items', users.toMap(),
22 | where: 'userName = ?', whereArgs: [users.userName]);
23 | }
24 |
25 | //For deleteing A student in the databse
26 | Future deleteUsers(int id) async {
27 | final db = await DBUtils.init();
28 | return await db.delete(
29 | 'user_items',
30 | where: 'userName = ?',
31 | whereArgs: [id],
32 | );
33 | }
34 |
35 | //Getting all the grades
36 | Future> getAllUsers() async {
37 | final db = await DBUtils.init();
38 | List