├── README.md ├── ios ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner │ ├── Runner-Bridging-Header.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── Main.storyboard.xml │ │ └── LaunchScreen.storyboard.xml │ └── Info.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata.xml │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings.xml │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme.xml │ └── project.pbxproj ├── Runner.xcworkspace │ ├── contents.xcworkspacedata.xml │ └── xcshareddata │ │ ├── WorkspaceSettings.xcsettings.xml │ │ └── IDEWorkspaceChecks.plist └── .gitignore ├── .vscode └── settings.json ├── web ├── favicon.png ├── icons │ ├── Icon-192.png │ └── Icon-512.png ├── manifest.json └── index.html ├── assets ├── splash.gif ├── appbarImage.jpeg ├── background2.jpeg ├── homescreen.jpeg └── backgroundImage.jpeg ├── lib ├── backgroundImage.jpeg ├── routes.dart ├── Themes │ └── themes.dart ├── Authenticate │ ├── Autheticate.dart │ ├── Methods.dart │ ├── CreateAccount.dart │ └── LoginScree.dart ├── main.dart ├── startup.dart ├── group_chats │ ├── group_chat_screen.dart │ ├── create_group │ │ ├── create_group.dart │ │ └── add_members.dart │ ├── add_members.dart │ └── group_chat_room.dart └── Screens │ ├── HomeScreen.dart │ └── ChatRoom.dart ├── android ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── drawable-v21 │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── values-night │ │ │ │ │ └── styles.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── chat_app │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ ├── google-services.json │ └── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── .gitignore ├── settings.gradle └── build.gradle ├── .metadata ├── .gitignore ├── test └── widget_test.dart ├── pubspec.yaml └── pubspec.lock /README.md: -------------------------------------------------------------------------------- 1 | # chat_app 2 | 3 | A new Flutter project. 4 | 5 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "git.ignoreLimitWarning": true 3 | } -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/web/favicon.png -------------------------------------------------------------------------------- /assets/splash.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/assets/splash.gif -------------------------------------------------------------------------------- /assets/appbarImage.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/assets/appbarImage.jpeg -------------------------------------------------------------------------------- /assets/background2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/assets/background2.jpeg -------------------------------------------------------------------------------- /assets/homescreen.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/assets/homescreen.jpeg -------------------------------------------------------------------------------- /lib/backgroundImage.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/lib/backgroundImage.jpeg -------------------------------------------------------------------------------- /web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/web/icons/Icon-192.png -------------------------------------------------------------------------------- /web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/web/icons/Icon-512.png -------------------------------------------------------------------------------- /assets/backgroundImage.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/assets/backgroundImage.jpeg -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /lib/routes.dart: -------------------------------------------------------------------------------- 1 | class MyRoutes { 2 | static String startupRoute = "/startupRoute"; 3 | static String homescreen = "/homeRoute"; 4 | static String login = "/login"; 5 | } -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vishwashibare/Gossipers-/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/chat_app/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.chat_app 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # org.gradle.jvmargs=-Xmx1536M 2 | # android.useAndroidX=true 3 | # android.enableJetifier=true 4 | org.gradle.jvmargs=-Xmx1536M 5 | android.enableR8=true 6 | android.useAndroidX=true 7 | android.enableJetifier=true 8 | -------------------------------------------------------------------------------- /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-6.7.1-all.zip 7 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 4d7946a68d26794349189cf21b3f68cc6fe61dcb 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /lib/Themes/themes.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | TextStyle ListTitleDefaultTextStyle = TextStyle( 4 | color: Colors.white70, fontSize: 20.0, fontWeight: FontWeight.w600); 5 | TextStyle ListTitleSelectedTextStyle = 6 | TextStyle(color: Colors.white, fontSize: 20.0, fontWeight: FontWeight.w600); 7 | 8 | Color selectedColor = Color(0xFF4AC8EA); 9 | Color drawerBackgroundColor = Color(0xFF272D34); 10 | Color drawerBackgroundColor1 = Color(0xffffEfEE); 11 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/Authenticate/Autheticate.dart: -------------------------------------------------------------------------------- 1 | import 'package:chat_app/Screens/HomeScreen.dart'; 2 | import 'package:chat_app/Authenticate/LoginScree.dart'; 3 | import 'package:firebase_auth/firebase_auth.dart'; 4 | import 'package:flutter/material.dart'; 5 | 6 | class Authenticate extends StatelessWidget { 7 | final FirebaseAuth _auth = FirebaseAuth.instance; 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | if (_auth.currentUser != null) { 12 | return HomeScreen(); 13 | } else { 14 | return LoginScreen(); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "chat_app", 3 | "short_name": "chat_app", 4 | "start_url": ".", 5 | "display": "standalone", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "A new Flutter project.", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 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 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | **/ios/Flutter/.last_build_id 26 | .dart_tool/ 27 | .flutter-plugins 28 | .flutter-plugins-dependencies 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Web related 35 | lib/generated_plugin_registrant.dart 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | 43 | # Android Studio will place build artifacts here 44 | /android/app/debug 45 | /android/app/profile 46 | /android/app/release 47 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = "1.7.10" 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:4.1.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | classpath 'com.google.gms:google-services:4.3.10' 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | google() 18 | jcenter() 19 | } 20 | gradle.projectsEvaluated { 21 | tasks.withType(JavaCompile) { 22 | options.compilerArgs << "-Xlint:deprecation" 23 | } 24 | } 25 | } 26 | 27 | rootProject.buildDir = '../build' 28 | subprojects { 29 | project.buildDir = "${rootProject.buildDir}/${project.name}" 30 | } 31 | subprojects { 32 | project.evaluationDependsOn(':app') 33 | } 34 | 35 | task clean(type: Delete) { 36 | delete rootProject.buildDir 37 | } 38 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:chat_app/Authenticate/Autheticate.dart'; 2 | import 'package:chat_app/startup.dart'; 3 | import 'package:firebase_core/firebase_core.dart'; 4 | import 'package:flutter/material.dart'; 5 | 6 | import 'Authenticate/LoginScree.dart'; 7 | import 'Screens/HomeScreen.dart'; 8 | 9 | Future main() async { 10 | WidgetsFlutterBinding.ensureInitialized(); 11 | await Firebase.initializeApp(); 12 | runApp(MyApp()); 13 | } 14 | 15 | class MyApp extends StatelessWidget { 16 | @override 17 | Widget build(BuildContext context) { 18 | return MaterialApp( 19 | color: Theme.of(context).primaryColor, 20 | theme: ThemeData( 21 | primaryColor: Colors.amber 22 | ), 23 | debugShowCheckedModeBanner: false, 24 | initialRoute: "/startupRoute", 25 | routes: { 26 | "/startupRoute": (context)=> StartupRoute(), 27 | "/homeRoute": (context)=> HomeScreen(), 28 | "/login": (context)=> LoginScreen(), 29 | }, 30 | home: Authenticate(), 31 | ); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/google-services.json: -------------------------------------------------------------------------------- 1 | { 2 | "project_info": { 3 | "project_number": "235713081103", 4 | "project_id": "chatapp-e3ec9", 5 | "storage_bucket": "chatapp-e3ec9.appspot.com" 6 | }, 7 | "client": [ 8 | { 9 | "client_info": { 10 | "mobilesdk_app_id": "1:235713081103:android:c70c1eba5bc0413747187a", 11 | "android_client_info": { 12 | "package_name": "com.example.chat_app" 13 | } 14 | }, 15 | "oauth_client": [ 16 | { 17 | "client_id": "235713081103-7hjtlmnc5o1eh23q0r2avgm0oie00ihb.apps.googleusercontent.com", 18 | "client_type": 3 19 | } 20 | ], 21 | "api_key": [ 22 | { 23 | "current_key": "AIzaSyDOT9GxC7ZC67Ym7lPVec37unbuMB0VpQQ" 24 | } 25 | ], 26 | "services": { 27 | "appinvite_service": { 28 | "other_platform_oauth_client": [ 29 | { 30 | "client_id": "235713081103-7hjtlmnc5o1eh23q0r2avgm0oie00ihb.apps.googleusercontent.com", 31 | "client_type": 3 32 | } 33 | ] 34 | } 35 | } 36 | } 37 | ], 38 | "configuration_version": "1" 39 | } -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:chat_app/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /lib/startup.dart: -------------------------------------------------------------------------------- 1 | import 'package:chat_app/Authenticate/Autheticate.dart'; 2 | 3 | import 'package:flutter/material.dart'; 4 | 5 | class StartupRoute extends StatelessWidget { 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | body: Container( 10 | color: Colors.white, 11 | child: Column( 12 | mainAxisAlignment: MainAxisAlignment.center, 13 | children: [ 14 | Image.asset("assets/splash.gif"), 15 | SizedBox( 16 | height: 40, 17 | ), 18 | Center( 19 | child: Text("Welcome to Gossipers!", style: TextStyle( 20 | fontWeight: FontWeight.bold, 21 | fontSize: 25, 22 | ),), 23 | ), 24 | SizedBox(height: 40,), 25 | ElevatedButton( 26 | style: ButtonStyle( 27 | backgroundColor: MaterialStateProperty.all(Colors.amber), 28 | shape: MaterialStateProperty.all( 29 | RoundedRectangleBorder( 30 | borderRadius: BorderRadius.circular(20) 31 | ) 32 | ) 33 | ), 34 | onPressed: () => Navigator.push(context, MaterialPageRoute(builder: (context)=> Authenticate()) 35 | ), 36 | child: Text("Click Here to Continue!", style: TextStyle( 37 | color: Colors.black 38 | ),) 39 | ) 40 | ], 41 | ), 42 | ), 43 | ); 44 | } 45 | 46 | 47 | 48 | } -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | chat_app 30 | 31 | 32 | 33 | 36 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard.xml: -------------------------------------------------------------------------------- 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 | Gossipers 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 | -------------------------------------------------------------------------------- /lib/Authenticate/Methods.dart: -------------------------------------------------------------------------------- 1 | import 'package:chat_app/Authenticate/LoginScree.dart'; 2 | import 'package:cloud_firestore/cloud_firestore.dart'; 3 | import 'package:firebase_auth/firebase_auth.dart'; 4 | import 'package:flutter/material.dart'; 5 | 6 | Future createAccount(String name, String email, String password) async { 7 | FirebaseAuth _auth = FirebaseAuth.instance; 8 | 9 | FirebaseFirestore _firestore = FirebaseFirestore.instance; 10 | 11 | try { 12 | UserCredential userCrendetial = await _auth.createUserWithEmailAndPassword( 13 | email: email, password: password); 14 | 15 | print("Account created Succesfull"); 16 | 17 | userCrendetial.user!.updateDisplayName(name); 18 | 19 | await _firestore.collection('users').doc(_auth.currentUser!.uid).set({ 20 | "name": name, 21 | "email": email, 22 | "status": "Unavalible", 23 | "uid": _auth.currentUser!.uid, 24 | }); 25 | 26 | return userCrendetial.user; 27 | } catch (e) { 28 | print(e); 29 | return null; 30 | } 31 | } 32 | 33 | Future logIn(String email, String password) async { 34 | FirebaseAuth _auth = FirebaseAuth.instance; 35 | FirebaseFirestore _firestore = FirebaseFirestore.instance; 36 | 37 | try { 38 | UserCredential userCredential = await _auth.signInWithEmailAndPassword( 39 | email: email, password: password); 40 | 41 | print("Login Sucessfull"); 42 | _firestore 43 | .collection('users') 44 | .doc(_auth.currentUser!.uid) 45 | .get() 46 | .then((value) => userCredential.user!.updateDisplayName(value['name'])); 47 | 48 | return userCredential.user; 49 | } catch (e) { 50 | print(e); 51 | return null; 52 | } 53 | } 54 | 55 | Future logOut(BuildContext context) async { 56 | FirebaseAuth _auth = FirebaseAuth.instance; 57 | 58 | try { 59 | await _auth.signOut().then((value) { 60 | Navigator.push(context, MaterialPageRoute(builder: (_) => LoginScreen())); 61 | }); 62 | } catch (e) { 63 | print("error"); 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /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 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 33 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | defaultConfig { 36 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 37 | applicationId "com.example.chat_app" 38 | minSdkVersion 19 39 | targetSdkVersion 30 40 | versionCode flutterVersionCode.toInteger() 41 | versionName flutterVersionName 42 | multiDexEnabled true 43 | } 44 | 45 | buildTypes { 46 | release { 47 | // TODO: Add your own signing config for the release build. 48 | // Signing with the debug keys for now, so `flutter run --release` works. 49 | signingConfig signingConfigs.debug 50 | } 51 | } 52 | } 53 | 54 | flutter { 55 | source '../..' 56 | } 57 | 58 | dependencies { 59 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 60 | def multidex_version = "2.0.1" 61 | implementation "androidx.multidex:multidex:$multidex_version" 62 | } 63 | 64 | apply plugin: 'com.google.gms.google-services' -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 13 | 17 | 21 | 26 | 30 | 31 | 32 | 33 | 34 | 35 | 37 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard.xml: -------------------------------------------------------------------------------- 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/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: chat_app 2 | description: A new Flutter project. 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `pub publish`. This is preferred for private packages. 6 | publish_to: "none" # Remove this line if you wish to publish to pub.dev 7 | 8 | # The following defines the version and build number for your application. 9 | # A version number is three numbers separated by dots, like 1.2.43 10 | # followed by an optional build number separated by a +. 11 | # Both the version and the builder number may be overridden in flutter 12 | # build by specifying --build-name and --build-number, respectively. 13 | # In Android, build-name is used as versionName while build-number used as versionCode. 14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 16 | # Read more about iOS versioning at 17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 18 | version: 1.0.0+1 19 | 20 | environment: 21 | sdk: ">=2.12.0 <3.0.0" 22 | 23 | dependencies: 24 | flutter: 25 | sdk: flutter 26 | firebase_auth: ^3.3.3 27 | firebase_core: ^1.10.5 28 | cloud_firestore: ^3.1.3 29 | image_picker: ^0.8.4+4 30 | firebase_storage: ^10.2.3 31 | uuid: ^3.0.5 32 | flutter_chat_bubble: ^2.0.0 33 | google_fonts: ^2.1.0 34 | firebase_messaging: ^11.2.3 35 | flutter_local_notifications: ^9.1.5 36 | 37 | # The following adds the Cupertino Icons font to your application. 38 | # Use with the CupertinoIcons class for iOS style icons. 39 | cupertino_icons: ^1.0.2 40 | 41 | dev_dependencies: 42 | flutter_test: 43 | sdk: flutter 44 | fluttertoast: ^8.0.8 45 | 46 | # For information on the generic Dart part of this file, see the 47 | # following page: https://dart.dev/tools/pub/pubspec 48 | 49 | # The following section is specific to Flutter. 50 | flutter: 51 | # The following line ensures that the Material Icons font is 52 | # included with your application, so that you can use the icons in 53 | # the material Icons class. 54 | uses-material-design: true 55 | 56 | # To add assets to your application, add an assets section, like this: 57 | assets: 58 | # - images/a_dot_burr.jpeg 59 | - assets/appbarImage.jpeg 60 | - assets/backgroundImage.jpeg 61 | - assets/homescreen.jpeg 62 | - assets/background2.jpeg 63 | - assets/splash.gif 64 | 65 | # An image asset can refer to one or more resolution-specific "variants", see 66 | # https://flutter.dev/assets-and-images/#resolution-aware. 67 | 68 | # For details regarding adding assets from package dependencies, see 69 | # https://flutter.dev/assets-and-images/#from-packages 70 | 71 | # To add custom fonts to your application, add a fonts section here, 72 | # in this "flutter" section. Each entry in this list should have a 73 | # "family" key with the font family name, and a "fonts" key with a 74 | # list giving the asset and other descriptors for the font. For 75 | # example: 76 | # fonts: 77 | # - family: Schyler 78 | # fonts: 79 | # - asset: fonts/Schyler-Regular.ttf 80 | # - asset: fonts/Schyler-Italic.ttf 81 | # style: italic 82 | # - family: Trajan Pro 83 | # fonts: 84 | # - asset: fonts/TrajanPro.ttf 85 | # - asset: fonts/TrajanPro_Bold.ttf 86 | # weight: 700 87 | # 88 | # For details regarding fonts from package dependencies, 89 | # see https://flutter.dev/custom-fonts/#from-packages 90 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /lib/group_chats/group_chat_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:chat_app/Themes/themes.dart'; 2 | import 'package:chat_app/group_chats/create_group/add_members.dart'; 3 | import 'package:chat_app/group_chats/group_chat_room.dart'; 4 | import 'package:cloud_firestore/cloud_firestore.dart'; 5 | import 'package:firebase_auth/firebase_auth.dart'; 6 | import 'package:flutter/material.dart'; 7 | import 'package:google_fonts/google_fonts.dart'; 8 | 9 | class GroupChatHomeScreen extends StatefulWidget { 10 | const GroupChatHomeScreen({Key? key}) : super(key: key); 11 | 12 | @override 13 | _GroupChatHomeScreenState createState() => _GroupChatHomeScreenState(); 14 | } 15 | 16 | class _GroupChatHomeScreenState extends State { 17 | final FirebaseFirestore _firestore = FirebaseFirestore.instance; 18 | final FirebaseAuth _auth = FirebaseAuth.instance; 19 | bool isLoading = true; 20 | 21 | List groupList = []; 22 | 23 | @override 24 | void initState() { 25 | super.initState(); 26 | getAvailableGroups(); 27 | } 28 | 29 | void getAvailableGroups() async { 30 | String uid = _auth.currentUser!.uid; 31 | 32 | await _firestore 33 | .collection('users') 34 | .doc(uid) 35 | .collection('groups') 36 | .get() 37 | .then((value) { 38 | setState(() { 39 | groupList = value.docs; 40 | isLoading = false; 41 | }); 42 | }); 43 | } 44 | 45 | @override 46 | Widget build(BuildContext context) { 47 | final Size size = MediaQuery.of(context).size; 48 | 49 | return Scaffold( 50 | 51 | appBar: AppBar(flexibleSpace: Image( 52 | image: AssetImage('assets/appbarImage.jpeg'), 53 | fit: BoxFit.cover, 54 | ), 55 | shadowColor: Color(0xcc171717), 56 | title: Text("Groups",style: GoogleFonts.chauPhilomeneOne( 57 | textStyle: 58 | TextStyle(color: Colors.white, fontSize: 22)),), 59 | ), 60 | body: isLoading 61 | ? Container( 62 | 63 | height: size.height, 64 | width: size.width, 65 | alignment: Alignment.center, 66 | child: CircularProgressIndicator(), 67 | ) 68 | : Container( 69 | decoration: BoxDecoration( 70 | gradient: LinearGradient( 71 | colors: [Colors.black,Colors.blueGrey,Colors.black], 72 | //begin: Alignment.topRight,end:Alignment.bottomLeft 73 | ),), 74 | child: ListView.builder( 75 | itemCount: groupList.length, 76 | itemBuilder: (context, index) { 77 | return Column( 78 | children: [ 79 | SizedBox(height: 3,), 80 | Card( 81 | elevation: 40, 82 | margin: new EdgeInsets.symmetric(horizontal: 10), 83 | color: drawerBackgroundColor1, 84 | shape: RoundedRectangleBorder( 85 | borderRadius: BorderRadius.circular(20)), 86 | 87 | child: ListTile( 88 | onTap: () => Navigator.of(context).push( 89 | MaterialPageRoute( 90 | builder: (_) => GroupChatRoom( 91 | groupName: groupList[index]['name'], 92 | groupChatId: groupList[index]['id'], 93 | ), 94 | ), 95 | ), 96 | leading: Icon(Icons.group), 97 | title: Text(groupList[index]['name'],style: GoogleFonts.pacifico( 98 | textStyle: 99 | TextStyle(color: Colors.black, fontSize: 20)),), 100 | ), 101 | ), 102 | 103 | ], 104 | ); 105 | }, 106 | ), 107 | ), 108 | floatingActionButton: FloatingActionButton( 109 | backgroundColor: Colors.pink, 110 | child: Icon(Icons.create), 111 | onPressed: () => Navigator.of(context).push( 112 | MaterialPageRoute( 113 | builder: (_) => AddMembersInGroup(), 114 | ), 115 | ), 116 | tooltip: "Create Group", 117 | ), 118 | ); 119 | } 120 | } 121 | -------------------------------------------------------------------------------- /lib/group_chats/create_group/create_group.dart: -------------------------------------------------------------------------------- 1 | import 'package:chat_app/Screens/HomeScreen.dart'; 2 | import 'package:cloud_firestore/cloud_firestore.dart'; 3 | import 'package:firebase_auth/firebase_auth.dart'; 4 | import 'package:flutter/material.dart'; 5 | import 'package:google_fonts/google_fonts.dart'; 6 | import 'package:uuid/uuid.dart'; 7 | 8 | class CreateGroup extends StatefulWidget { 9 | final List> membersList; 10 | 11 | const CreateGroup({required this.membersList, Key? key}) : super(key: key); 12 | 13 | @override 14 | State createState() => _CreateGroupState(); 15 | } 16 | 17 | class _CreateGroupState extends State { 18 | final TextEditingController _groupName = TextEditingController(); 19 | final FirebaseFirestore _firestore = FirebaseFirestore.instance; 20 | final FirebaseAuth _auth = FirebaseAuth.instance; 21 | bool isLoading = false; 22 | 23 | void createGroup() async { 24 | setState(() { 25 | isLoading = true; 26 | }); 27 | 28 | String groupId = Uuid().v1(); 29 | 30 | await _firestore.collection('groups').doc(groupId).set({ 31 | "members": widget.membersList, 32 | "id": groupId, 33 | }); 34 | 35 | for (int i = 0; i < widget.membersList.length; i++) { 36 | String uid = widget.membersList[i]['uid']; 37 | 38 | await _firestore 39 | .collection('users') 40 | .doc(uid) 41 | .collection('groups') 42 | .doc(groupId) 43 | .set({ 44 | "name": _groupName.text, 45 | "id": groupId, 46 | }); 47 | } 48 | 49 | await _firestore.collection('groups').doc(groupId).collection('chats').add({ 50 | "message": "${_auth.currentUser!.displayName} Created This Group.", 51 | "type": "notify", 52 | }); 53 | 54 | Navigator.of(context).pushAndRemoveUntil( 55 | MaterialPageRoute(builder: (_) => HomeScreen()), (route) => false); 56 | } 57 | 58 | @override 59 | Widget build(BuildContext context) { 60 | final Size size = MediaQuery.of(context).size; 61 | 62 | return Scaffold( 63 | appBar: AppBar( 64 | title: Text( 65 | "Group Name", 66 | style: GoogleFonts.pacifico( 67 | textStyle: TextStyle(color: Colors.white, fontSize: 30)), 68 | ), 69 | flexibleSpace: Image( 70 | image: AssetImage('assets/appbarImage.jpeg'), 71 | fit: BoxFit.cover, 72 | ), 73 | shadowColor: Color(0xcc171717), 74 | toolbarHeight: 80, 75 | ), 76 | body: isLoading 77 | ? Container( 78 | height: size.height, 79 | width: size.width, 80 | alignment: Alignment.center, 81 | child: CircularProgressIndicator(), 82 | ) 83 | : Container(decoration: BoxDecoration( 84 | gradient: LinearGradient( 85 | colors: [Colors.black,Colors.blueGrey,Colors.black] 86 | )), 87 | child: Column( 88 | children: [ 89 | SizedBox( 90 | height: size.height / 10, 91 | ), 92 | Container( 93 | height: size.height / 14, 94 | width: size.width, 95 | alignment: Alignment.center, 96 | child: Container( 97 | height: size.height / 14, 98 | width: size.width / 1.15, 99 | child: TextField( 100 | controller: _groupName, 101 | decoration: InputDecoration( 102 | fillColor: Colors.white, 103 | filled: true, 104 | hintText: "Enter Group Name", 105 | border: OutlineInputBorder( 106 | borderRadius: BorderRadius.circular(30), 107 | ), 108 | ), 109 | ), 110 | ), 111 | ), 112 | 113 | SizedBox( 114 | height: size.height / 50, 115 | ), 116 | Container( 117 | child: ElevatedButton( 118 | 119 | style: ButtonStyle( 120 | backgroundColor: MaterialStateProperty.all(Color(0xffffEfEE)), 121 | foregroundColor: MaterialStateProperty.all(Colors.black), 122 | shape:MaterialStateProperty.all( 123 | RoundedRectangleBorder( borderRadius:BorderRadius.circular(30),) 124 | ) 125 | ), 126 | onPressed: createGroup, 127 | child: Text("Create Group"), 128 | ), 129 | 130 | ) 131 | ], 132 | ), 133 | ), 134 | ); 135 | } 136 | } -------------------------------------------------------------------------------- /lib/group_chats/add_members.dart: -------------------------------------------------------------------------------- 1 | import 'package:chat_app/Themes/themes.dart'; 2 | import 'package:chat_app/group_chats/create_group/create_group.dart'; 3 | import 'package:cloud_firestore/cloud_firestore.dart'; 4 | import 'package:firebase_auth/firebase_auth.dart'; 5 | import 'package:flutter/material.dart'; 6 | import 'package:google_fonts/google_fonts.dart'; 7 | 8 | class AddMembersInGroup extends StatefulWidget { 9 | const AddMembersInGroup({Key? key}) : super(key: key); 10 | 11 | @override 12 | State createState() => _AddMembersInGroupState(); 13 | } 14 | 15 | class _AddMembersInGroupState extends State { 16 | final TextEditingController _search = TextEditingController(); 17 | FirebaseFirestore _firestore = FirebaseFirestore.instance; 18 | FirebaseAuth _auth = FirebaseAuth.instance; 19 | List> membersList = []; 20 | bool isLoading = false; 21 | Map? userMap; 22 | 23 | @override 24 | void initState() { 25 | super.initState(); 26 | getCurrentUserDetails(); 27 | } 28 | 29 | void getCurrentUserDetails() async { 30 | await _firestore 31 | .collection('users') 32 | .doc(_auth.currentUser!.uid) 33 | .get() 34 | .then((map) { 35 | setState(() { 36 | membersList.add({ 37 | "name": map['name'], 38 | "email": map['email'], 39 | "uid": map['uid'], 40 | "isAdmin": true, 41 | }); 42 | }); 43 | }); 44 | } 45 | 46 | void onSearch() async { 47 | setState(() { 48 | isLoading = true; 49 | }); 50 | 51 | await _firestore 52 | .collection('users') 53 | .where("email", isEqualTo: _search.text) 54 | .get() 55 | .then((value) { 56 | setState(() { 57 | userMap = value.docs[0].data(); 58 | isLoading = false; 59 | }); 60 | print(userMap); 61 | }); 62 | } 63 | 64 | void onResultTap() { 65 | bool isAlreadyExist = false; 66 | 67 | for (int i = 0; i < membersList.length; i++) { 68 | if (membersList[i]['uid'] == userMap!['uid']) { 69 | isAlreadyExist = true; 70 | } 71 | } 72 | 73 | if (!isAlreadyExist) { 74 | setState(() { 75 | membersList.add({ 76 | "name": userMap!['name'], 77 | "email": userMap!['email'], 78 | "uid": userMap!['uid'], 79 | "isAdmin": false, 80 | }); 81 | 82 | userMap = null; 83 | }); 84 | } 85 | } 86 | 87 | void onRemoveMembers(int index) { 88 | if (membersList[index]['uid'] != _auth.currentUser!.uid) { 89 | setState(() { 90 | membersList.removeAt(index); 91 | }); 92 | } 93 | } 94 | 95 | @override 96 | Widget build(BuildContext context) { 97 | final Size size = MediaQuery.of(context).size; 98 | 99 | return Scaffold( 100 | appBar: AppBar(flexibleSpace: Image( 101 | image: AssetImage('assets/appbarImage.jpeg'), 102 | fit: BoxFit.cover, 103 | ), 104 | shadowColor: Color(0xcc171717), 105 | title: Text("Add Members",style: GoogleFonts.chauPhilomeneOne( 106 | textStyle: 107 | TextStyle(color: Colors.white, fontSize: 22))), 108 | ), 109 | body: SingleChildScrollView( 110 | child: Column( 111 | mainAxisSize: MainAxisSize.min, 112 | children: [SizedBox( 113 | height: 20, 114 | ), 115 | Flexible( 116 | child: Card(elevation: 40, 117 | margin: new EdgeInsets.symmetric(horizontal: 20), 118 | color: Colors.pink, 119 | //drawerBackgroundColor1, 120 | shape: RoundedRectangleBorder( 121 | borderRadius: BorderRadius.circular(30)), 122 | child: ListView.builder( 123 | itemCount: membersList.length, 124 | shrinkWrap: true, 125 | physics: NeverScrollableScrollPhysics(), 126 | itemBuilder: (context, index) { 127 | return ListTile( 128 | onTap: () => onRemoveMembers(index), 129 | leading: Icon(Icons.account_circle), 130 | title: Text(membersList[index]['name']), 131 | subtitle: Text(membersList[index]['email']), 132 | trailing: Icon(Icons.close), 133 | ); 134 | }, 135 | ), 136 | ), 137 | ), 138 | SizedBox( 139 | height: size.height / 20, 140 | ), 141 | Container( 142 | height: size.height / 14, 143 | width: size.width, 144 | alignment: Alignment.center, 145 | child: Container( 146 | height: size.height / 14, 147 | width: size.width / 1.15, 148 | child: TextField( 149 | controller: _search, 150 | decoration: InputDecoration( 151 | hintText: "Search", 152 | border: OutlineInputBorder( 153 | borderRadius: BorderRadius.circular(10), 154 | ), 155 | ), 156 | ), 157 | ), 158 | ), 159 | SizedBox( 160 | height: size.height / 50, 161 | ), 162 | isLoading 163 | ? Container( 164 | height: size.height / 12, 165 | width: size.height / 12, 166 | alignment: Alignment.center, 167 | child: CircularProgressIndicator(), 168 | ) 169 | : ElevatedButton( 170 | style: ButtonStyle(backgroundColor: MaterialStateProperty.all(drawerBackgroundColor1)), 171 | onPressed: onSearch, 172 | child: Text("Search"), 173 | ), 174 | userMap != null 175 | ? ListTile( 176 | onTap: onResultTap, 177 | leading: Icon(Icons.account_box,), 178 | title: Text(userMap!['name']), 179 | subtitle: Text(userMap!['email']), 180 | trailing: Icon(Icons.add), 181 | ) 182 | : SizedBox(), 183 | ], 184 | ), 185 | ), 186 | floatingActionButton: membersList.length >= 2 187 | ? FloatingActionButton( 188 | // backgroundColor: Colors.pink, 189 | child: Icon(Icons.forward), 190 | onPressed: () => Navigator.of(context).push( 191 | MaterialPageRoute( 192 | builder: (_) => CreateGroup( 193 | membersList: membersList, 194 | ), 195 | ), 196 | ), 197 | ) 198 | : SizedBox(), 199 | ); 200 | } 201 | } 202 | -------------------------------------------------------------------------------- /lib/group_chats/create_group/add_members.dart: -------------------------------------------------------------------------------- 1 | import 'package:chat_app/group_chats/create_group/create_group.dart'; 2 | import 'package:cloud_firestore/cloud_firestore.dart'; 3 | import 'package:firebase_auth/firebase_auth.dart'; 4 | import 'package:flutter/material.dart'; 5 | import 'package:google_fonts/google_fonts.dart'; 6 | 7 | class AddMembersInGroup extends StatefulWidget { 8 | const AddMembersInGroup({Key? key}) : super(key: key); 9 | 10 | @override 11 | State createState() => _AddMembersInGroupState(); 12 | } 13 | 14 | class _AddMembersInGroupState extends State { 15 | final TextEditingController _search = TextEditingController(); 16 | FirebaseFirestore _firestore = FirebaseFirestore.instance; 17 | FirebaseAuth _auth = FirebaseAuth.instance; 18 | List> membersList = []; 19 | bool isLoading = false; 20 | Map? userMap; 21 | 22 | @override 23 | void initState() { 24 | super.initState(); 25 | getCurrentUserDetails(); 26 | } 27 | 28 | void getCurrentUserDetails() async { 29 | await _firestore 30 | .collection('users') 31 | .doc(_auth.currentUser!.uid) 32 | .get() 33 | .then((map) { 34 | setState(() { 35 | membersList.add({ 36 | "name": map['name'], 37 | "email": map['email'], 38 | "uid": map['uid'], 39 | "isAdmin": true, 40 | }); 41 | }); 42 | }); 43 | } 44 | 45 | void onSearch() async { 46 | setState(() { 47 | isLoading = true; 48 | }); 49 | 50 | await _firestore 51 | .collection('users') 52 | .where("email", isEqualTo: _search.text) 53 | .get() 54 | .then((value) { 55 | setState(() { 56 | userMap = value.docs[0].data(); 57 | isLoading = false; 58 | }); 59 | print(userMap); 60 | }); 61 | } 62 | 63 | void onResultTap() { 64 | bool isAlreadyExist = false; 65 | 66 | for (int i = 0; i < membersList.length; i++) { 67 | if (membersList[i]['uid'] == userMap!['uid']) { 68 | isAlreadyExist = true; 69 | } 70 | } 71 | 72 | if (!isAlreadyExist) { 73 | setState(() { 74 | membersList.add({ 75 | "name": userMap!['name'], 76 | "email": userMap!['email'], 77 | "uid": userMap!['uid'], 78 | "isAdmin": false, 79 | }); 80 | 81 | userMap = null; 82 | }); 83 | } 84 | } 85 | 86 | void onRemoveMembers(int index) { 87 | if (membersList[index]['uid'] != _auth.currentUser!.uid) { 88 | setState(() { 89 | membersList.removeAt(index); 90 | }); 91 | } 92 | } 93 | 94 | @override 95 | Widget build(BuildContext context) { 96 | final Size size = MediaQuery.of(context).size; 97 | 98 | return Scaffold( 99 | appBar: AppBar(flexibleSpace: Image( 100 | image: AssetImage('assets/appbarImage.jpeg'), 101 | fit: BoxFit.cover, 102 | ), 103 | shadowColor: Color(0xcc171717), 104 | title: Text("Add Members",style: GoogleFonts.chauPhilomeneOne( 105 | textStyle: 106 | TextStyle(color: Colors.white, fontSize: 22))), 107 | ), 108 | body: Container( 109 | height: size.height, 110 | width: size.width, 111 | decoration: BoxDecoration( 112 | gradient: LinearGradient( 113 | colors: [Colors.black,Colors.blueGrey,Colors.black] 114 | )), 115 | child: SingleChildScrollView( 116 | child: Column( 117 | mainAxisSize: MainAxisSize.min, 118 | children: [SizedBox( 119 | height: 20, 120 | ), 121 | Flexible( 122 | child: Card(elevation: 40, 123 | margin: new EdgeInsets.symmetric(horizontal: 20), 124 | color: Color(0xffffEfEE), 125 | //drawerBackgroundColor1, 126 | shape: RoundedRectangleBorder( 127 | borderRadius: BorderRadius.circular(30)), 128 | child: ListView.builder( 129 | itemCount: membersList.length, 130 | shrinkWrap: true, 131 | physics: NeverScrollableScrollPhysics(), 132 | itemBuilder: (context, index) { 133 | return ListTile( 134 | onTap: () => onRemoveMembers(index), 135 | leading: Icon(Icons.account_circle), 136 | title: Text(membersList[index]['name']), 137 | subtitle: Text(membersList[index]['email']), 138 | trailing: Icon(Icons.close), 139 | ); 140 | }, 141 | ), 142 | ), 143 | ), 144 | SizedBox( 145 | height: size.height / 20, 146 | ), 147 | Container( 148 | height: size.height / 14, 149 | width: size.width, 150 | alignment: Alignment.center, 151 | child: Container( 152 | height: size.height / 14, 153 | width: size.width / 1.15, 154 | child: TextField( 155 | controller: _search, 156 | decoration: InputDecoration( 157 | fillColor: Color(0xffffEfEE), 158 | filled: true, 159 | hintText: "Search", 160 | border: OutlineInputBorder( 161 | borderRadius: BorderRadius.circular(30), 162 | ), 163 | ), 164 | ), 165 | ), 166 | ), 167 | SizedBox( 168 | height: size.height / 50, 169 | ), 170 | isLoading 171 | ? Container( 172 | 173 | height: size.height / 12, 174 | width: size.height / 12, 175 | alignment: Alignment.center, 176 | child: CircularProgressIndicator(), 177 | ) 178 | : ElevatedButton( 179 | style: ButtonStyle( 180 | backgroundColor: MaterialStateProperty.all(Color(0xffffEfEE)), 181 | foregroundColor: MaterialStateProperty.all(Colors.black), 182 | shape:MaterialStateProperty.all( 183 | RoundedRectangleBorder( borderRadius:BorderRadius.circular(30),) 184 | ) 185 | ), 186 | onPressed: onSearch, 187 | child: Text("Search",style: TextStyle( 188 | color: Colors.black 189 | ),), 190 | ), 191 | userMap != null 192 | ? ListTile( 193 | onTap: onResultTap, 194 | leading: Icon(Icons.account_box,color: Color(0xffffEfEE),), 195 | title: Text(userMap!['name'],style: TextStyle(color: Color(0xffffEfEE)),), 196 | subtitle: Text(userMap!['email'],style: TextStyle(color: Color(0xffffEfEE)),), 197 | trailing: Icon(Icons.add,color:Color(0xffffEfEE) ,), 198 | ) 199 | : SizedBox(), 200 | 201 | ], 202 | ), 203 | ), 204 | ), 205 | floatingActionButton: membersList.length >= 2 206 | ? FloatingActionButton( 207 | backgroundColor: Color(0xffffEfEE), 208 | child: Icon(Icons.forward,color: Colors.black,), 209 | onPressed: () => Navigator.of(context).push( 210 | MaterialPageRoute( 211 | builder: (_) => CreateGroup( 212 | membersList: membersList, 213 | ), 214 | ), 215 | ), 216 | ) 217 | : SizedBox(), 218 | ); 219 | } 220 | } -------------------------------------------------------------------------------- /lib/group_chats/group_chat_room.dart: -------------------------------------------------------------------------------- 1 | 2 | import 'package:cloud_firestore/cloud_firestore.dart'; 3 | import 'package:firebase_auth/firebase_auth.dart'; 4 | import 'package:flutter/material.dart'; 5 | import 'package:flutter_chat_bubble/bubble_type.dart'; 6 | import 'package:flutter_chat_bubble/chat_bubble.dart'; 7 | import 'package:image_picker/image_picker.dart'; 8 | import 'package:uuid/uuid.dart'; 9 | import 'package:flutter_chat_bubble/clippers/chat_bubble_clipper_6.dart'; 10 | import 'package:google_fonts/google_fonts.dart'; 11 | 12 | class GroupChatRoom extends StatelessWidget { 13 | final String groupChatId, groupName; 14 | 15 | GroupChatRoom({required this.groupName, required this.groupChatId, Key? key}) 16 | : super(key: key); 17 | 18 | final TextEditingController _message = TextEditingController(); 19 | final FirebaseFirestore _firestore = FirebaseFirestore.instance; 20 | final FirebaseAuth _auth = FirebaseAuth.instance; 21 | 22 | 23 | 24 | void onSendMessage() async { 25 | if (_message.text.isNotEmpty) { 26 | Map chatData = { 27 | "sendBy": _auth.currentUser!.displayName, 28 | "message": _message.text, 29 | "type": "text", 30 | "time": FieldValue.serverTimestamp(), 31 | }; 32 | 33 | _message.clear(); 34 | 35 | await _firestore 36 | .collection('groups') 37 | .doc(groupChatId) 38 | .collection('chats') 39 | .add(chatData); 40 | } 41 | } 42 | 43 | @override 44 | Widget build(BuildContext context) { 45 | final Size size = MediaQuery.of(context).size; 46 | 47 | return Scaffold( 48 | appBar: AppBar(flexibleSpace: Image( 49 | image: AssetImage('assets/appbarImage.jpeg'), 50 | fit: BoxFit.cover, 51 | ), 52 | shadowColor: Color(0xcc171717), 53 | 54 | title: Text(groupName,style: GoogleFonts.pacifico( 55 | textStyle: 56 | TextStyle(color: Colors.white, fontSize: 24)),), 57 | actions: [ 58 | 59 | ], 60 | ), 61 | body: SingleChildScrollView( 62 | child: Column( 63 | children: [ 64 | Container( decoration: BoxDecoration( 65 | gradient: LinearGradient( 66 | colors: [Colors.black87, Colors.pinkAccent, Colors.black87], 67 | begin: Alignment.topCenter, end: Alignment.bottomCenter, 68 | //stops: [0.4,0.2,0.4] 69 | )), 70 | height: size.height / 1.27, 71 | width: size.width, 72 | child: StreamBuilder( 73 | stream: _firestore 74 | .collection('groups') 75 | .doc(groupChatId) 76 | .collection('chats') 77 | .orderBy('time') 78 | .snapshots(), 79 | builder: (context, snapshot) { 80 | if (snapshot.hasData) { 81 | return ListView.builder( 82 | itemCount: snapshot.data!.docs.length, 83 | itemBuilder: (context, index) { 84 | Map chatMap = 85 | snapshot.data!.docs[index].data() 86 | as Map; 87 | 88 | return messageTile(size, chatMap); 89 | }, 90 | ); 91 | } else { 92 | return Container(); 93 | } 94 | }, 95 | ), 96 | ), 97 | SingleChildScrollView( 98 | child: Container( 99 | 100 | color: Color(0xff3B3B3B), 101 | height: size.height / 10, 102 | width: size.width, 103 | // alignment: Alignment.center, 104 | child: Container( 105 | 106 | 107 | height: size.height / 12, 108 | width: size.width / 1.1, 109 | child: Row( 110 | mainAxisAlignment: MainAxisAlignment.spaceAround, 111 | children: [ 112 | Expanded( 113 | child: Container( 114 | padding: EdgeInsets.only(left: 10), 115 | height: size.height / 17, 116 | width: size.width / 1.3, 117 | child: TextField( style: TextStyle(color: Colors.white), 118 | controller: _message, 119 | decoration: InputDecoration( 120 | contentPadding: EdgeInsets.all(15), 121 | 122 | hintText: "Send Message", 123 | hintStyle: TextStyle(color: Colors.white), 124 | border: OutlineInputBorder( 125 | borderRadius: BorderRadius.circular(40), 126 | )), 127 | ), 128 | ), 129 | ), 130 | Padding( 131 | padding: const EdgeInsets.only(left: 15), 132 | child: IconButton( 133 | icon: Icon(Icons.send,color: Colors.white,), onPressed: onSendMessage), 134 | ), 135 | ], 136 | ), 137 | ), 138 | ), 139 | ), 140 | ], 141 | ), 142 | ), 143 | ); 144 | } 145 | 146 | Widget messageTile(Size size, Map chatMap) { 147 | return Builder(builder: (_) { 148 | if (chatMap['type'] == "text") { 149 | return Container( 150 | width: size.width, 151 | alignment: chatMap['sendBy'] == _auth.currentUser!.displayName 152 | ? Alignment.centerRight 153 | : Alignment.centerLeft, 154 | child: Container( 155 | 156 | // clipper: ChatBubbleClipper6( 157 | // type: chatMap['sendby'] == _auth.currentUser!.displayName 158 | // ? BubbleType.sendBubble 159 | // : BubbleType.receiverBubble), 160 | // alignment: chatMap['sendby'] == _auth.currentUser!.displayName 161 | // ? Alignment.centerRight 162 | //: Alignment.centerLeft, 163 | padding: EdgeInsets.symmetric(vertical: 8, horizontal: 14), 164 | margin: EdgeInsets.symmetric(vertical: 5, horizontal: 8), 165 | decoration: BoxDecoration( 166 | boxShadow: [BoxShadow( 167 | color: Colors.black54, 168 | blurRadius: 4.0, 169 | offset: Offset(4.0,4.0) 170 | )], 171 | borderRadius: BorderRadius.only(topRight:Radius.circular(20), 172 | topLeft:Radius.circular(20), 173 | bottomRight: chatMap['sendBy'] == _auth.currentUser!.displayName 174 | ?Radius.circular(0) 175 | :Radius.circular(20), 176 | bottomLeft:chatMap['sendBy'] == _auth.currentUser!.displayName 177 | ?Radius.circular(20) 178 | :Radius.circular(0), ), 179 | color: chatMap['sendBy'] == _auth.currentUser!.displayName 180 | ? Color(0xff222222) 181 | : Colors.pinkAccent, 182 | ), 183 | // backGroundColor: chatMap['sendby'] == _auth.currentUser!.displayName 184 | // ? Color(0xff222222) 185 | // : Colors.pinkAccent, 186 | 187 | child: Column( 188 | children: [ 189 | Text( 190 | chatMap['sendBy'], 191 | style: TextStyle( 192 | fontSize: 14, 193 | fontWeight: FontWeight.w500, 194 | color: Colors.pink.shade900, 195 | ), 196 | ), 197 | SizedBox( 198 | height: size.height / 200, 199 | ), 200 | Text( 201 | chatMap['message'], 202 | style: GoogleFonts.aclonica( 203 | textStyle: TextStyle(color: Colors.white, fontSize: 16) 204 | ), 205 | 206 | ), 207 | SizedBox( 208 | height: size.height / 200,) 209 | ], 210 | )), 211 | ); 212 | } else if (chatMap['type'] == "img") { 213 | return Container( 214 | width: size.width, 215 | alignment: chatMap['sendBy'] == _auth.currentUser!.displayName 216 | ? Alignment.centerRight 217 | : Alignment.centerLeft, 218 | child: Container( 219 | padding: EdgeInsets.symmetric(vertical: 10, horizontal: 14), 220 | margin: EdgeInsets.symmetric(vertical: 5, horizontal: 8), 221 | height: size.height / 2, 222 | child: Image.network( 223 | chatMap['message'], 224 | ), 225 | ), 226 | ); 227 | } else if (chatMap['type'] == "notify") { 228 | return Container( 229 | width: size.width, 230 | alignment: Alignment.center, 231 | child: Container( 232 | padding: EdgeInsets.symmetric(vertical: 8, horizontal: 8), 233 | margin: EdgeInsets.symmetric(vertical: 5, horizontal: 8), 234 | decoration: BoxDecoration( 235 | borderRadius: BorderRadius.circular(5), 236 | color: Colors.black38, 237 | ), 238 | child: Text( 239 | chatMap['message'], 240 | style: TextStyle( 241 | fontSize: 14, 242 | fontWeight: FontWeight.bold, 243 | color: Colors.white, 244 | ), 245 | ), 246 | ), 247 | ); 248 | } else { 249 | return SizedBox(); 250 | } 251 | }); 252 | } 253 | } 254 | -------------------------------------------------------------------------------- /lib/Authenticate/CreateAccount.dart: -------------------------------------------------------------------------------- 1 | import 'package:chat_app/Authenticate/Methods.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:fluttertoast/fluttertoast.dart'; 4 | import '../Screens/HomeScreen.dart'; 5 | 6 | class CreateAccount extends StatefulWidget { 7 | @override 8 | _CreateAccountState createState() => _CreateAccountState(); 9 | } 10 | 11 | class _CreateAccountState extends State { 12 | final TextEditingController _name = TextEditingController(); 13 | final TextEditingController _email = TextEditingController(); 14 | final TextEditingController _password = TextEditingController(); 15 | bool isLoading = false; 16 | String name = ""; 17 | @override 18 | Widget build(BuildContext context) { 19 | final size = MediaQuery.of(context).size; 20 | 21 | return Scaffold( 22 | body: Container( 23 | height: size.height / 1, 24 | decoration: BoxDecoration( 25 | image: DecorationImage( 26 | image: AssetImage('assets/backgroundImage.jpeg'), 27 | fit: BoxFit.cover)), 28 | child: isLoading 29 | ? Center( 30 | child: Container( 31 | height: size.height / 20, 32 | width: size.height / 20, 33 | child: CircularProgressIndicator(), 34 | ), 35 | ) 36 | : SingleChildScrollView( 37 | child: Column( 38 | children: [ 39 | SizedBox( 40 | height: size.height / 20, 41 | ), 42 | Container( 43 | alignment: Alignment.centerLeft, 44 | width: size.width / 0.5, 45 | child: IconButton( 46 | icon: Icon(Icons.arrow_back_ios), onPressed: () {}), 47 | ), 48 | SizedBox( 49 | height: size.height / 50, 50 | ), 51 | Container( 52 | width: size.width / 1.1, 53 | child: Text( 54 | "Welcome $name!", 55 | style: TextStyle( 56 | fontSize: 34, 57 | fontWeight: FontWeight.bold, 58 | color: Colors.white), 59 | ), 60 | ), 61 | Container( 62 | width: size.width / 1.1, 63 | child: Text( 64 | "Create Account to Continue", 65 | style: TextStyle( 66 | color: Colors.grey[700], 67 | fontSize: 20, 68 | fontWeight: FontWeight.w500, 69 | ), 70 | ), 71 | ), 72 | SizedBox( 73 | height: size.height / 20, 74 | ), 75 | Padding( 76 | padding: const EdgeInsets.all(20), 77 | child: Container( 78 | height: 55, 79 | width: size.width, 80 | // alignment: Alignment.center, 81 | // child: 82 | // field(size, "Username", Icons.account_box, _name), 83 | child: Row(// Yaha change kiya humbne 84 | children: [ 85 | Expanded( 86 | child: Container( 87 | padding: EdgeInsets.all(5), 88 | decoration: BoxDecoration( 89 | border: Border.all(color: Colors.white), 90 | borderRadius: BorderRadius.circular(30)), 91 | child: Row( 92 | mainAxisAlignment: 93 | MainAxisAlignment.spaceEvenly, 94 | children: [ 95 | Padding( 96 | padding: const EdgeInsets.only(left: 4), 97 | child: Icon( 98 | Icons.account_circle, 99 | color: Colors.white, 100 | ), 101 | ), 102 | Expanded( 103 | child: TextFormField( 104 | controller: _name, 105 | style: TextStyle( 106 | color: Colors.white, 107 | ), 108 | decoration: InputDecoration( 109 | contentPadding: EdgeInsets.all(15), 110 | // fillColor: Colors.white, 111 | focusColor: Colors.white, 112 | border: InputBorder.none, 113 | hintStyle: TextStyle( 114 | color: Colors.white60, 115 | ), 116 | //filled: true, 117 | // focusedBorder: OutlineInputBorder( 118 | 119 | // borderRadius: BorderRadius.circular(25), 120 | // borderSide: BorderSide( 121 | // color: Colors.white 122 | // ) 123 | // ), 124 | hintText: "Enter Username", 125 | 126 | // labelText: "Username" 127 | ), 128 | onChanged: (value) { 129 | name = value; 130 | setState(() {}); 131 | }, 132 | ), 133 | ), 134 | ]), 135 | ), 136 | ), 137 | ]), 138 | ), 139 | ), 140 | Container( 141 | width: size.width, 142 | alignment: Alignment.center, 143 | child: field(size, "Email", Icons.account_box, _email), 144 | ), 145 | Padding( 146 | padding: const EdgeInsets.symmetric(vertical: 18.0), 147 | child: Container( 148 | width: size.width, 149 | alignment: Alignment.center, 150 | child: field(size, "Password", Icons.lock, _password), 151 | ), 152 | ), 153 | SizedBox( 154 | height: size.height / 20, 155 | ), 156 | customButton(size), 157 | Padding( 158 | padding: const EdgeInsets.all(8.0), 159 | child: GestureDetector( 160 | onTap: () => Navigator.pop(context), 161 | child: Text( 162 | "Login", 163 | style: TextStyle( 164 | color: Colors.white, 165 | fontSize: 16, 166 | fontWeight: FontWeight.w500, 167 | ), 168 | ), 169 | ), 170 | ) 171 | ], 172 | ), 173 | ), 174 | ), 175 | ); 176 | } 177 | 178 | Widget customButton(Size size) { 179 | return GestureDetector( 180 | onTap: () { 181 | if (_name.text.isNotEmpty && 182 | _email.text.isNotEmpty && 183 | _password.text.isNotEmpty) { 184 | setState(() { 185 | isLoading = true; 186 | }); 187 | 188 | createAccount(_name.text, _email.text, _password.text).then((user) { 189 | if (user != null) { 190 | setState(() { 191 | isLoading = false; 192 | }); 193 | Navigator.push( 194 | context, MaterialPageRoute(builder: (_) => HomeScreen())); 195 | //print("Account Created Sucessfull"); 196 | Fluttertoast.showToast(msg: "Account created Successfully"); 197 | } else { 198 | // print("Login Failed"); 199 | Fluttertoast.showToast(msg: "Login Failed"); 200 | setState(() { 201 | isLoading = false; 202 | }); 203 | } 204 | }); 205 | } else { 206 | //print("Please enter Fields"); 207 | Fluttertoast.showToast(msg: "Please enter valid credentials!"); 208 | } 209 | }, 210 | child: Container( 211 | height: size.height / 14, 212 | width: size.width / 1.2, 213 | decoration: BoxDecoration( 214 | borderRadius: BorderRadius.circular(100), 215 | // color: Colors.pink.shade300, 216 | image: DecorationImage( 217 | image: AssetImage('assets/appbarImage.jpeg'), 218 | fit: BoxFit.cover, 219 | ), 220 | ), 221 | alignment: Alignment.center, 222 | child: Text( 223 | "Create Account", 224 | style: TextStyle( 225 | color: Colors.white, 226 | fontSize: 18, 227 | fontWeight: FontWeight.bold, 228 | ), 229 | )), 230 | ); 231 | } 232 | 233 | Widget field( 234 | Size size, String hintText, IconData icon, TextEditingController cont) { 235 | return Container( 236 | height: size.height / 14, 237 | width: size.width / 1.1, 238 | child: TextField( 239 | controller: cont, 240 | style: TextStyle(color: Colors.white), 241 | decoration: InputDecoration( 242 | enabledBorder: OutlineInputBorder( 243 | borderRadius: BorderRadius.circular(29), 244 | borderSide: BorderSide( 245 | color: Colors.white, 246 | )), 247 | fillColor: Colors.white, 248 | prefixIcon: Icon(icon), 249 | hintText: hintText, 250 | hintStyle: TextStyle(color: Colors.grey), 251 | border: OutlineInputBorder( 252 | borderRadius: BorderRadius.circular(29), 253 | ), 254 | ), 255 | ), 256 | ); 257 | } 258 | } 259 | -------------------------------------------------------------------------------- /lib/Authenticate/LoginScree.dart: -------------------------------------------------------------------------------- 1 | import 'package:chat_app/Authenticate/CreateAccount.dart'; 2 | import 'package:chat_app/Screens/HomeScreen.dart'; 3 | import 'package:chat_app/Authenticate/Methods.dart'; 4 | import 'package:chat_app/Themes/themes.dart'; 5 | import 'package:firebase_auth/firebase_auth.dart'; 6 | import 'package:flutter/material.dart'; 7 | import 'package:fluttertoast/fluttertoast.dart'; 8 | 9 | class LoginScreen extends StatefulWidget { 10 | @override 11 | _LoginScreenState createState() => _LoginScreenState(); 12 | } 13 | 14 | class _LoginScreenState extends State { 15 | final _formKey = GlobalKey(); 16 | final _auth = FirebaseAuth.instance; 17 | final TextEditingController _email = TextEditingController(); 18 | final TextEditingController _password = TextEditingController(); 19 | String? errorMessage; 20 | bool isLoading = false; 21 | 22 | @override 23 | Widget build(BuildContext context) { 24 | final size = MediaQuery.of(context).size; 25 | 26 | return MaterialApp( 27 | debugShowCheckedModeBanner: false, 28 | home: Scaffold( 29 | // backgroundColor: Colors.pink.shade200, 30 | 31 | body: Container( 32 | // padding: EdgeInsets.all(20), 33 | height: size.height / 1, 34 | decoration: BoxDecoration( 35 | image: DecorationImage( 36 | image: AssetImage('assets/backgroundImage.jpeg'), 37 | fit: BoxFit.cover 38 | ) 39 | ), 40 | child: isLoading 41 | ? Center( 42 | child: Container( 43 | height: size.height / 20, 44 | width: size.height / 20, 45 | child: CircularProgressIndicator(), 46 | ), 47 | ) 48 | : SingleChildScrollView( 49 | child: Column( 50 | children: [ 51 | SizedBox( 52 | height: size.height / 20, 53 | ), 54 | Container( 55 | 56 | alignment: Alignment.centerLeft, 57 | width: size.width / 0.5, 58 | child: IconButton( 59 | icon: Icon(Icons.arrow_back_ios),color: Colors.white, onPressed: () {},iconSize: 30), 60 | ), 61 | Container( // Ye hai apna contianer 62 | width: 200.0, 63 | height: 190.0, 64 | decoration: new BoxDecoration( 65 | 66 | shape: BoxShape.circle, 67 | image: DecorationImage( 68 | image: AssetImage('assets/appbarImage.jpeg'), 69 | fit: BoxFit.cover) 70 | ), 71 | child: Center( 72 | child: Column( 73 | 74 | children: [ 75 | Text( 76 | "Welcome!", 77 | style: TextStyle( 78 | color: Colors.white, 79 | fontSize: 34, 80 | fontWeight: FontWeight.bold, 81 | height: 3,), 82 | ), 83 | Row( 84 | mainAxisAlignment: MainAxisAlignment.center, 85 | children: [ 86 | 87 | Text("G", 88 | style: TextStyle( 89 | fontSize: 20, 90 | color: Colors.white, 91 | ), 92 | ), 93 | Text("O", 94 | style: TextStyle( 95 | fontSize: 20, 96 | color: Colors.orange, 97 | ), 98 | ), 99 | Text("S", 100 | style: TextStyle( 101 | fontSize: 20, 102 | color: Colors.yellow, 103 | ), 104 | ), 105 | Text("S", 106 | style: TextStyle( 107 | fontSize: 20, 108 | color: Colors.green, 109 | ), 110 | ), 111 | Text("I", 112 | style: TextStyle( 113 | fontSize: 20, 114 | color: Colors.blue, 115 | ), 116 | ), 117 | Text("P", 118 | style: TextStyle( 119 | fontSize: 20, 120 | color: Colors.blueAccent.shade700, 121 | ), 122 | ), 123 | Text("E", 124 | style: TextStyle( 125 | fontSize: 20, 126 | color: Colors.amber, 127 | ), 128 | ), 129 | Text("R", 130 | style: TextStyle( 131 | fontSize: 20, 132 | color: Colors.white, 133 | ), 134 | ), 135 | Text("S", 136 | style: TextStyle( 137 | fontSize: 20, 138 | color: Colors.red, 139 | ), 140 | ), 141 | ], 142 | ), 143 | ], 144 | ), 145 | ), 146 | ), 147 | SizedBox( 148 | height: size.height / 10, 149 | ), 150 | Container( 151 | width: size.width / 1.1, 152 | padding: EdgeInsets.only(bottom: 10), 153 | child: Text( 154 | "Sign In to Continue!", 155 | style: TextStyle( 156 | color: drawerBackgroundColor1, 157 | fontSize: 25, 158 | fontWeight: FontWeight.w500, 159 | ), 160 | ), 161 | ), 162 | Container( 163 | width: size.width, 164 | 165 | 166 | alignment: Alignment.center, 167 | child: Container( 168 | 169 | padding: EdgeInsets.symmetric(horizontal: 20,vertical: 1), 170 | decoration: BoxDecoration( 171 | 172 | borderRadius: BorderRadius.circular(12) 173 | ), 174 | child:field(size, "Email", Icons.account_box, _email) 175 | 176 | ), 177 | ), 178 | Padding( 179 | padding: const EdgeInsets.symmetric(vertical: 18.0), 180 | child: Container( 181 | width: 380, 182 | decoration: BoxDecoration( 183 | /* border: Border.all( 184 | color: Colors.white, 185 | 186 | ),*/ 187 | borderRadius: BorderRadius.circular(12) 188 | ), 189 | alignment: Alignment.center, 190 | child: field(size, "Password", Icons.lock_outline, _password,), 191 | ), 192 | ), 193 | SizedBox( 194 | height: size.height / 10, 195 | ), 196 | customButton(size), 197 | SizedBox( 198 | height: size.height / 40, 199 | ), 200 | GestureDetector( 201 | onTap: () => Navigator.of(context).push( 202 | MaterialPageRoute(builder: (_) => CreateAccount())), 203 | child: Text( 204 | "Create Account", 205 | style: TextStyle( 206 | color: Colors.white, 207 | fontSize: 16, 208 | fontWeight: FontWeight.w500, 209 | ), 210 | ), 211 | ) 212 | ], 213 | ), 214 | ), 215 | ), 216 | ), 217 | ); 218 | } 219 | 220 | Widget customButton(Size size) { 221 | return GestureDetector( 222 | onTap: () { 223 | if (_email.text.isNotEmpty && _password.text.isNotEmpty) { 224 | setState(() { 225 | isLoading = true; 226 | }); 227 | 228 | logIn(_email.text, _password.text).then((user) { 229 | if (user != null) { 230 | // print("Login Sucessfull"); 231 | Fluttertoast.showToast(msg: "Login Successful"); 232 | setState(() { 233 | isLoading = false; 234 | }); 235 | Navigator.push( 236 | context, MaterialPageRoute(builder: (_) => HomeScreen())); 237 | } else { 238 | //print("Login Failed"); 239 | Fluttertoast.showToast(msg: "Login Failed, please try again!"); 240 | setState(() { 241 | isLoading = false; 242 | }); 243 | } 244 | }); 245 | } else { 246 | //print("Please fill form correctly"); 247 | Fluttertoast.showToast(msg: "Please fill your credentials correctly"); 248 | } 249 | }, 250 | child: Container( 251 | height: size.height / 14, 252 | width: size.width / 1.2, 253 | decoration: BoxDecoration( 254 | 255 | borderRadius: BorderRadius.circular(100), 256 | // color: Colors.pink.shade300, 257 | image: DecorationImage( 258 | image: AssetImage('assets/appbarImage.jpeg'), 259 | fit: BoxFit.cover, 260 | ), 261 | ), 262 | alignment: Alignment.center, 263 | child: Text( 264 | "Login", 265 | style: TextStyle( 266 | color: Colors.white, 267 | fontSize: 18, 268 | fontWeight: FontWeight.bold, 269 | ), 270 | )), 271 | ); 272 | } 273 | 274 | Widget field( 275 | Size size, String hintText, IconData icon, TextEditingController cont) { 276 | return Container( 277 | height: size.height / 14, 278 | width: size.width / 1.1, 279 | child: TextField( 280 | 281 | controller: cont, 282 | style: TextStyle(color: Colors.white), 283 | decoration: InputDecoration( 284 | enabledBorder: OutlineInputBorder( 285 | borderRadius: BorderRadius.circular(29), 286 | borderSide: BorderSide( 287 | color: Colors.white, 288 | ) 289 | ), 290 | prefixIcon: Icon(icon), 291 | 292 | hintText: hintText, 293 | hintStyle: TextStyle(color: Colors.grey), 294 | border: OutlineInputBorder( 295 | borderRadius: BorderRadius.circular(29), 296 | ), 297 | ), 298 | ), 299 | ); 300 | } 301 | } 302 | 303 | 304 | 305 | 306 | 307 | 308 | -------------------------------------------------------------------------------- /lib/Screens/HomeScreen.dart: -------------------------------------------------------------------------------- 1 | import 'package:chat_app/Authenticate/Methods.dart'; 2 | import 'package:chat_app/Screens/ChatRoom.dart'; 3 | import 'package:chat_app/Themes/themes.dart'; 4 | import 'package:chat_app/group_chats/group_chat_screen.dart'; 5 | import 'package:cloud_firestore/cloud_firestore.dart'; 6 | import 'package:firebase_auth/firebase_auth.dart'; 7 | import 'package:flutter/material.dart'; 8 | import 'package:google_fonts/google_fonts.dart'; 9 | 10 | class HomeScreen extends StatefulWidget { 11 | @override 12 | _HomeScreenState createState() => _HomeScreenState(); 13 | } 14 | 15 | int toggle = 0; 16 | 17 | class _HomeScreenState extends State with WidgetsBindingObserver { 18 | late AnimationController _con; 19 | Map? userMap; 20 | bool isLoading = false; 21 | final TextEditingController _search = TextEditingController(); 22 | final FirebaseAuth _auth = FirebaseAuth.instance; 23 | final FirebaseFirestore _firestore = FirebaseFirestore.instance; 24 | 25 | @override 26 | void initState() { 27 | super.initState(); 28 | WidgetsBinding.instance!.addObserver(this); 29 | setStatus("Online"); 30 | 31 | } 32 | 33 | void setStatus(String status) async { 34 | await _firestore.collection('users').doc(_auth.currentUser!.uid).update({ 35 | "status": status, 36 | }); 37 | } 38 | 39 | @override 40 | void didChangeAppLifecycleState(AppLifecycleState state) { 41 | if (state == AppLifecycleState.resumed) { 42 | // online 43 | setStatus("Online"); 44 | } else { 45 | // offline 46 | setStatus("Offline"); 47 | } 48 | } 49 | 50 | String chatRoomId(String user1, String user2) { 51 | if (user1[0].toLowerCase().codeUnits[0] > 52 | user2.toLowerCase().codeUnits[0]) { 53 | return "$user1$user2"; 54 | } else { 55 | return "$user2$user1"; 56 | } 57 | } 58 | 59 | void onSearch() async { 60 | FirebaseFirestore _firestore = FirebaseFirestore.instance; 61 | 62 | setState(() { 63 | isLoading = true; 64 | }); 65 | 66 | await _firestore 67 | .collection('users') 68 | .where("name", isEqualTo: _search.text) 69 | .get() 70 | .then((value) { 71 | setState(() { 72 | userMap = value.docs[0].data(); 73 | isLoading = false; 74 | }); 75 | print(userMap); 76 | }); 77 | } 78 | 79 | @override 80 | Widget build(BuildContext context) { 81 | final size = MediaQuery.of(context).size; 82 | 83 | return Scaffold( 84 | // backgroundColor: Colors.white, 85 | appBar: AppBar( 86 | flexibleSpace: Image( 87 | image: AssetImage('assets/appbarImage.jpeg'), 88 | fit: BoxFit.cover, 89 | ), 90 | shadowColor: Color(0xcc171717), 91 | // toolbarHeight: 90, 92 | //backgroundColor: Colors.black, 93 | 94 | title: Center(child: Text("Home Screen",style: GoogleFonts.chauPhilomeneOne( 95 | textStyle: 96 | TextStyle(color: Colors.white, fontSize: 22)))), 97 | actions: [ 98 | Column( 99 | 100 | children: [ 101 | Expanded( 102 | child: IconButton(icon: Icon(Icons.logout), onPressed: () => logOut(context), 103 | ), 104 | ), 105 | Text("LogOut", style: GoogleFonts.chauPhilomeneOne( 106 | textStyle: TextStyle( 107 | color: Colors.white, fontSize: 15 108 | ) 109 | ),), 110 | ], 111 | ) 112 | 113 | ], 114 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.vertical( 115 | bottom: Radius.circular(30))), 116 | ), 117 | body: Container( 118 | // color: Colors.white, 119 | decoration: BoxDecoration( 120 | borderRadius: BorderRadius.vertical( 121 | top: Radius.elliptical(MediaQuery.of(context).size.width,100) 122 | ), 123 | // image: DecorationImage( 124 | 125 | // image: AssetImage('assets/images/Login2.jpeg'), 126 | // fit: BoxFit.cover) 127 | ), 128 | child: isLoading 129 | ? Center( 130 | child: Container( 131 | 132 | height: size.height / 20, 133 | width: size.height / 20, 134 | child: CircularProgressIndicator(), 135 | ), 136 | ) 137 | : Column( 138 | children: [ 139 | /* Container( 140 | decoration: BoxDecoration( 141 | // image: DecorationImage(image:AssetImage("assets/appbarImage.jpeg") ), 142 | gradient: LinearGradient( 143 | colors: [Colors.black,Colors.blueGrey,Colors.black]), 144 | borderRadius: BorderRadius.only( 145 | bottomLeft: Radius.circular(150), 146 | bottomRight: Radius.circular(150), 147 | ) 148 | ), 149 | height: size.height / 26, 150 | 151 | ),*/ 152 | Container( 153 | height: size.height / 13, 154 | width: size.width, 155 | alignment: Alignment.center, 156 | color: Colors.white, 157 | 158 | child: Row( 159 | children: [ 160 | 161 | Container( 162 | // decoration: BoxDecoration( 163 | // color: Color(0xff3B3B3B) 164 | // ), 165 | height: size.height / 5, 166 | width: size.width / 1.20, 167 | color: Colors.white, 168 | child: Card( 169 | 170 | elevation: 10, 171 | shape: RoundedRectangleBorder( 172 | borderRadius: BorderRadius.circular(30)), 173 | // shadowColor: Colors.black, 174 | // color: Colors.transparent, 175 | 176 | child: TextField( 177 | cursorColor: Colors.black, 178 | controller: _search, 179 | decoration: InputDecoration( 180 | /* enabledBorder: UnderlineInputBorder( 181 | borderSide: BorderSide(color: Colors.white,), 182 | ),*/ 183 | // prefixIcon: Icon(Icons.search,color: Colors.black,), 184 | hoverColor: Colors.white, 185 | hintText: " Search for username here!", 186 | prefixIcon: Icon( 187 | Icons.search, 188 | color: Colors.black, 189 | ), 190 | border: OutlineInputBorder( 191 | borderRadius: BorderRadius.circular(30), 192 | ), 193 | ), 194 | ), 195 | ), 196 | ), 197 | Padding( 198 | padding: const EdgeInsets.only(left: 6), 199 | child: Card( 200 | margin: EdgeInsets.all(1), 201 | elevation: 15, 202 | shadowColor: Colors.black, 203 | color: Colors.redAccent.shade100, 204 | 205 | shape:CircleBorder(), 206 | 207 | child: Padding( 208 | padding: const EdgeInsets.symmetric(vertical: 1), 209 | child: IconButton( 210 | onPressed: onSearch, 211 | icon: Icon( 212 | Icons.search, 213 | ), 214 | iconSize: 35, 215 | 216 | ), 217 | ), 218 | ), 219 | ), 220 | ], 221 | ), 222 | ), 223 | /* SizedBox( 224 | height: size.height / 50, 225 | ), 226 | ElevatedButton( 227 | style: ElevatedButton.styleFrom( 228 | primary: Colors.black 229 | ), 230 | onPressed: onSearch, 231 | child: Text("Search",), 232 | ),*/ 233 | SizedBox( 234 | height: size.height / 50, 235 | ), 236 | 237 | userMap != null 238 | ? Column( 239 | children: [ 240 | Container( 241 | decoration: BoxDecoration( 242 | color: Colors.black, 243 | borderRadius: BorderRadius.vertical( 244 | top: Radius.elliptical(MediaQuery.of(context).size.width,100) 245 | ), 246 | /* image: DecorationImage( 247 | 248 | image: AssetImage('assets/images/Login2.jpeg'), 249 | fit: BoxFit.cover)*/ 250 | ), 251 | child: Card( 252 | elevation: 40, 253 | margin: new EdgeInsets.symmetric(horizontal: 20), 254 | color: drawerBackgroundColor1, 255 | //drawerBackgroundColor1, 256 | shape: RoundedRectangleBorder( 257 | borderRadius: BorderRadius.circular(30)), 258 | child: ListTile( 259 | onTap: () { 260 | String roomId = chatRoomId( 261 | _auth.currentUser!.displayName!, 262 | userMap!['name']); 263 | 264 | Navigator.of(context).push( 265 | MaterialPageRoute( 266 | builder: (_) => ChatRoom( 267 | chatRoomId: roomId, 268 | userMap: userMap!, 269 | ), 270 | ), 271 | ); 272 | }, 273 | leading: 274 | Icon(Icons.account_box, color: Colors.black), 275 | title: Text( 276 | userMap!['name'], 277 | style: TextStyle( 278 | color: Colors.black, 279 | fontSize: 17, 280 | fontWeight: FontWeight.w500, 281 | ), 282 | ), 283 | subtitle: Text(userMap!['email'], 284 | ), 285 | trailing: Icon(Icons.chat, color: Colors.black), 286 | ), 287 | ), 288 | ), 289 | ], 290 | 291 | ) 292 | 293 | : Container(), 294 | Expanded( 295 | child: Container( 296 | // color: Colors.black, 297 | decoration: BoxDecoration( 298 | //color: Colors.black, 299 | // image: DecorationImage( 300 | // image: AssetImage('assets/homescreen.jpeg'),fit: BoxFit.cover 301 | // 302 | // ) 303 | gradient: LinearGradient( 304 | colors: [Colors.black,Colors.blueGrey,Colors.black] 305 | ) 306 | /*borderRadius: BorderRadius.vertical( 307 | top: Radius.elliptical(MediaQuery.of(context).size.width,1) 308 | ),*/ 309 | /* image: DecorationImage( 310 | 311 | image: AssetImage('assets/images/Login2.jpeg'), 312 | fit: BoxFit.cover)*/ 313 | ), 314 | ), 315 | ) 316 | ], 317 | 318 | ), 319 | ), 320 | floatingActionButton: FloatingActionButton( 321 | backgroundColor: Colors.pink, 322 | child: Icon(Icons.group, color: Colors.black,), 323 | onPressed: () => Navigator.of(context).push( 324 | MaterialPageRoute( 325 | builder: (_) => GroupChatHomeScreen(), 326 | ), 327 | ), 328 | ), 329 | ); 330 | } 331 | } 332 | 333 | -------------------------------------------------------------------------------- /lib/Screens/ChatRoom.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'package:cloud_firestore/cloud_firestore.dart'; 4 | import 'package:firebase_auth/firebase_auth.dart'; 5 | import 'package:firebase_storage/firebase_storage.dart'; 6 | import 'package:flutter/material.dart'; 7 | import 'package:flutter_chat_bubble/bubble_type.dart'; 8 | import 'package:flutter_chat_bubble/chat_bubble.dart'; 9 | import 'package:flutter_chat_bubble/clippers/chat_bubble_clipper_6.dart'; 10 | import 'package:google_fonts/google_fonts.dart'; 11 | import 'package:image_picker/image_picker.dart'; 12 | import 'package:uuid/uuid.dart'; 13 | 14 | class ChatRoom extends StatelessWidget { 15 | final Map userMap; 16 | final String chatRoomId; 17 | 18 | ChatRoom({required this.chatRoomId, required this.userMap}); 19 | 20 | final TextEditingController _message = TextEditingController(); 21 | final FirebaseFirestore _firestore = FirebaseFirestore.instance; 22 | final FirebaseAuth _auth = FirebaseAuth.instance; 23 | 24 | File? imageFile; 25 | 26 | Future getImage() async { 27 | ImagePicker _picker = ImagePicker(); 28 | 29 | await _picker.pickImage(source: ImageSource.gallery).then((xFile) { 30 | if (xFile != null) { 31 | imageFile = File(xFile.path); 32 | uploadImage(); 33 | } 34 | }); 35 | } 36 | 37 | Future uploadImage() async { 38 | String fileName = Uuid().v1(); 39 | int status = 1; 40 | 41 | await _firestore 42 | .collection('chatroom') 43 | .doc(chatRoomId) 44 | .collection('chats') 45 | .doc(fileName) 46 | .set({ 47 | "sendby": _auth.currentUser!.displayName, 48 | "message": "", 49 | "type": "img", 50 | "time": FieldValue.serverTimestamp(), 51 | }); 52 | 53 | var ref = 54 | FirebaseStorage.instance.ref().child('images').child("$fileName.jpg"); 55 | 56 | var uploadTask = await ref.putFile(imageFile!).catchError((error) async { 57 | await _firestore 58 | .collection('chatroom') 59 | .doc(chatRoomId) 60 | .collection('chats') 61 | .doc(fileName) 62 | .delete(); 63 | 64 | status = 0; 65 | }); 66 | 67 | if (status == 1) { 68 | String imageUrl = await uploadTask.ref.getDownloadURL(); 69 | 70 | await _firestore 71 | .collection('chatroom') 72 | .doc(chatRoomId) 73 | .collection('chats') 74 | .doc(fileName) 75 | .update({"message": imageUrl}); 76 | 77 | print(imageUrl); 78 | } 79 | } 80 | 81 | void onSendMessage() async { 82 | if (_message.text.isNotEmpty) { 83 | Map messages = { 84 | "sendby": _auth.currentUser!.displayName, 85 | "message": _message.text, 86 | "type": "text", 87 | "time": FieldValue.serverTimestamp(), 88 | }; 89 | 90 | _message.clear(); 91 | await _firestore 92 | .collection('chatroom') 93 | .doc(chatRoomId) 94 | .collection('chats') 95 | .add(messages); 96 | } else { 97 | print("Enter Some Text"); 98 | } 99 | } 100 | 101 | @override 102 | Widget build(BuildContext context) { 103 | final size = MediaQuery.of(context).size; 104 | 105 | return Scaffold( 106 | appBar: AppBar( 107 | flexibleSpace: Image( 108 | image: AssetImage('assets/appbarImage.jpeg'), 109 | fit: BoxFit.cover, 110 | ), 111 | shadowColor: Color(0xcc171717), 112 | 113 | shape: RoundedRectangleBorder( 114 | borderRadius: BorderRadius.vertical(bottom: Radius.circular(20))), 115 | title: StreamBuilder( 116 | stream: 117 | _firestore.collection("users").doc(userMap['uid']).snapshots(), 118 | builder: (context, snapshot) { 119 | if (snapshot.data != null) { 120 | return Container( 121 | child: Column( 122 | children: [ 123 | Text( 124 | userMap['name'], 125 | style: GoogleFonts.pacifico( 126 | textStyle: 127 | TextStyle(color: Colors.white, fontSize: 24)), 128 | ), 129 | Text( 130 | snapshot.data!['status'], 131 | style: TextStyle(fontSize: 14), 132 | ), 133 | SizedBox( 134 | height:15, 135 | ) 136 | ], 137 | 138 | ), 139 | ); 140 | } else { 141 | return Container(); 142 | } 143 | }, 144 | ), 145 | actions: [ 146 | // Icon( 147 | // Icons.person, 148 | // size: 35, 149 | // ) 150 | ], 151 | ), 152 | body: GestureDetector( 153 | onTap: ()=> FocusScope.of(context).unfocus(), 154 | child: SingleChildScrollView( 155 | child: Column( 156 | children: [ 157 | Container( 158 | color: Colors.black45, 159 | child: Container( 160 | 161 | decoration: BoxDecoration( 162 | 163 | gradient: LinearGradient( 164 | colors: [Colors.black87, Colors.pinkAccent, Colors.black87], 165 | begin: Alignment.topCenter, end: Alignment.bottomCenter, 166 | //stops: [0.4,0.2,0.4] 167 | )), 168 | height: size.height / 1.25, 169 | width: size.width, 170 | child: StreamBuilder( 171 | stream: _firestore 172 | .collection('chatroom') 173 | .doc(chatRoomId) 174 | .collection('chats') 175 | .orderBy("time", descending: false) 176 | .snapshots(), 177 | builder: (BuildContext context, 178 | AsyncSnapshot snapshot) { 179 | if (snapshot.data != null) { 180 | return ListView.builder( 181 | itemCount: snapshot.data!.docs.length, 182 | itemBuilder: (context, index) { 183 | Map map = snapshot.data!.docs[index] 184 | .data() as Map; 185 | return messages(size, map, context); 186 | }, 187 | ); 188 | } else { 189 | return Container(); 190 | } 191 | }, 192 | ), 193 | ), 194 | ), 195 | SingleChildScrollView( 196 | child: Expanded( 197 | child: Container( 198 | // decoration: BoxDecoration( 199 | // borderRadius: BorderRadius.only( 200 | // topLeft: Radius.circular(30), 201 | // topRight: Radius.circular(50), 202 | // ) // Yahahaaaaa 203 | // ), 204 | color: Color(0xff3B3B3B), 205 | height: size.height / 12, 206 | width: size.width, 207 | // alignment: Alignment.center, 208 | child: Container( 209 | height: size.height / 14, 210 | width: size.width / 1.1, 211 | child: Row( 212 | 213 | mainAxisAlignment: MainAxisAlignment.spaceAround, 214 | children: [ 215 | Expanded( 216 | child: Container( 217 | padding: EdgeInsets.only(left: 10), 218 | height: size.height / 17, 219 | width: size.width / 1.3, 220 | child: TextField( 221 | textCapitalization: TextCapitalization.sentences, // yaha 222 | style: TextStyle(color: Colors.white), 223 | controller: _message, 224 | decoration: InputDecoration( 225 | contentPadding: EdgeInsets.all(15), 226 | suffixIcon: IconButton( 227 | onPressed: () => getImage(), 228 | icon: Icon(Icons.photo), 229 | color: Colors.white, 230 | ), 231 | hintText: "Send Message", 232 | hintStyle: TextStyle(color: Colors.white60), 233 | border: OutlineInputBorder( 234 | borderRadius: BorderRadius.circular(40), 235 | )), 236 | ), 237 | ), 238 | ), 239 | // IconButton(onPressed:() => getImage, icon: Icon(Icons.photo), color: Colors.white,), 240 | 241 | Padding( 242 | padding: const EdgeInsets.only(left: 15), 243 | child: IconButton( 244 | icon: Icon(Icons.send), 245 | color: Colors.white, 246 | onPressed: onSendMessage), 247 | ), 248 | ], 249 | ), 250 | ), 251 | ), 252 | ), 253 | ), 254 | ], 255 | ), 256 | ), 257 | ), 258 | ); 259 | } 260 | 261 | Widget messages(Size size, Map map, BuildContext context) { 262 | return map['type'] == "text" 263 | ? Container( 264 | // width: size.width, 265 | // alignment: map['sendby'] == _auth.currentUser!.displayName 266 | // ? Alignment.centerRight 267 | // : Alignment.centerLeft, 268 | child: ChatBubble( 269 | clipper: ChatBubbleClipper6( 270 | type: map['sendby'] == _auth.currentUser!.displayName 271 | ? BubbleType.sendBubble 272 | : BubbleType.receiverBubble), 273 | alignment: map['sendby'] == _auth.currentUser!.displayName 274 | ? Alignment.centerRight 275 | : Alignment.centerLeft, 276 | margin: EdgeInsets.only(top: 20), 277 | backGroundColor: map['sendby'] == _auth.currentUser!.displayName 278 | ? Color(0xff222222) 279 | : Colors.pinkAccent, 280 | child: Container( 281 | constraints: BoxConstraints( 282 | maxWidth: MediaQuery.of(context).size.width * 0.9, 283 | ), 284 | child: Text(map['message'], 285 | style: GoogleFonts.aclonica( 286 | textStyle: TextStyle(color: Colors.white, fontSize: 14))), 287 | ), 288 | ) 289 | // Container( 290 | // padding: EdgeInsets.symmetric(vertical: 10, horizontal: 14), 291 | // margin: EdgeInsets.symmetric(vertical: 5, horizontal: 8), 292 | // decoration: BoxDecoration( 293 | // borderRadius: BorderRadius.circular(15), 294 | // color: Colors.blue, 295 | // ), 296 | // child: Text( 297 | // map['message'], 298 | // style: TextStyle( 299 | // fontSize: 16, 300 | // fontWeight: FontWeight.w500, 301 | // color: Colors.white, 302 | // ), 303 | // ), 304 | // ), 305 | ) 306 | : Container( 307 | height: size.height / 2.5, 308 | width: size.width, 309 | padding: EdgeInsets.symmetric(vertical: 5, horizontal: 5), 310 | alignment: map['sendby'] == _auth.currentUser!.displayName 311 | ? Alignment.centerRight 312 | : Alignment.centerLeft, 313 | child: InkWell( 314 | onTap: () => Navigator.of(context).push( 315 | MaterialPageRoute( 316 | builder: (_) => ShowImage( 317 | imageUrl: map['message'], 318 | ), 319 | ), 320 | ), 321 | child: Container( 322 | height: size.height / 2.5, 323 | width: size.width / 2, 324 | decoration: BoxDecoration(border: Border.all()), 325 | alignment: map['message'] != "" ? null : Alignment.center, 326 | child: map['message'] != "" 327 | ? Image.network( 328 | map['message'], 329 | fit: BoxFit.cover, 330 | ) 331 | : CircularProgressIndicator(), 332 | ), 333 | ), 334 | ); 335 | } 336 | } 337 | 338 | class ShowImage extends StatelessWidget { 339 | final String imageUrl; 340 | 341 | const ShowImage({required this.imageUrl, Key? key}) : super(key: key); 342 | 343 | @override 344 | Widget build(BuildContext context) { 345 | final Size size = MediaQuery.of(context).size; 346 | 347 | return Scaffold( 348 | body: Container( 349 | height: size.height, 350 | width: size.width, 351 | color: Colors.black, 352 | child: Image.network(imageUrl), 353 | ), 354 | ); 355 | } 356 | } 357 | 358 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | _flutterfire_internals: 5 | dependency: transitive 6 | description: 7 | name: _flutterfire_internals 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "1.0.2" 11 | args: 12 | dependency: transitive 13 | description: 14 | name: args 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "2.3.1" 18 | async: 19 | dependency: transitive 20 | description: 21 | name: async 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.9.0" 25 | boolean_selector: 26 | dependency: transitive 27 | description: 28 | name: boolean_selector 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "2.1.0" 32 | characters: 33 | dependency: transitive 34 | description: 35 | name: characters 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.2.1" 39 | clock: 40 | dependency: transitive 41 | description: 42 | name: clock 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.1.1" 46 | cloud_firestore: 47 | dependency: "direct main" 48 | description: 49 | name: cloud_firestore 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "3.5.1" 53 | cloud_firestore_platform_interface: 54 | dependency: transitive 55 | description: 56 | name: cloud_firestore_platform_interface 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "5.7.7" 60 | cloud_firestore_web: 61 | dependency: transitive 62 | description: 63 | name: cloud_firestore_web 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "2.8.10" 67 | collection: 68 | dependency: transitive 69 | description: 70 | name: collection 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "1.16.0" 74 | cross_file: 75 | dependency: transitive 76 | description: 77 | name: cross_file 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "0.3.3+2" 81 | crypto: 82 | dependency: transitive 83 | description: 84 | name: crypto 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "3.0.2" 88 | cupertino_icons: 89 | dependency: "direct main" 90 | description: 91 | name: cupertino_icons 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "1.0.5" 95 | dbus: 96 | dependency: transitive 97 | description: 98 | name: dbus 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "0.7.8" 102 | fake_async: 103 | dependency: transitive 104 | description: 105 | name: fake_async 106 | url: "https://pub.dartlang.org" 107 | source: hosted 108 | version: "1.3.1" 109 | ffi: 110 | dependency: transitive 111 | description: 112 | name: ffi 113 | url: "https://pub.dartlang.org" 114 | source: hosted 115 | version: "2.0.1" 116 | file: 117 | dependency: transitive 118 | description: 119 | name: file 120 | url: "https://pub.dartlang.org" 121 | source: hosted 122 | version: "6.1.4" 123 | firebase_auth: 124 | dependency: "direct main" 125 | description: 126 | name: firebase_auth 127 | url: "https://pub.dartlang.org" 128 | source: hosted 129 | version: "3.11.2" 130 | firebase_auth_platform_interface: 131 | dependency: transitive 132 | description: 133 | name: firebase_auth_platform_interface 134 | url: "https://pub.dartlang.org" 135 | source: hosted 136 | version: "6.10.1" 137 | firebase_auth_web: 138 | dependency: transitive 139 | description: 140 | name: firebase_auth_web 141 | url: "https://pub.dartlang.org" 142 | source: hosted 143 | version: "4.6.1" 144 | firebase_core: 145 | dependency: "direct main" 146 | description: 147 | name: firebase_core 148 | url: "https://pub.dartlang.org" 149 | source: hosted 150 | version: "1.24.0" 151 | firebase_core_platform_interface: 152 | dependency: transitive 153 | description: 154 | name: firebase_core_platform_interface 155 | url: "https://pub.dartlang.org" 156 | source: hosted 157 | version: "4.5.1" 158 | firebase_core_web: 159 | dependency: transitive 160 | description: 161 | name: firebase_core_web 162 | url: "https://pub.dartlang.org" 163 | source: hosted 164 | version: "1.7.3" 165 | firebase_messaging: 166 | dependency: "direct main" 167 | description: 168 | name: firebase_messaging 169 | url: "https://pub.dartlang.org" 170 | source: hosted 171 | version: "11.4.4" 172 | firebase_messaging_platform_interface: 173 | dependency: transitive 174 | description: 175 | name: firebase_messaging_platform_interface 176 | url: "https://pub.dartlang.org" 177 | source: hosted 178 | version: "3.5.4" 179 | firebase_messaging_web: 180 | dependency: transitive 181 | description: 182 | name: firebase_messaging_web 183 | url: "https://pub.dartlang.org" 184 | source: hosted 185 | version: "2.4.4" 186 | firebase_storage: 187 | dependency: "direct main" 188 | description: 189 | name: firebase_storage 190 | url: "https://pub.dartlang.org" 191 | source: hosted 192 | version: "10.3.11" 193 | firebase_storage_platform_interface: 194 | dependency: transitive 195 | description: 196 | name: firebase_storage_platform_interface 197 | url: "https://pub.dartlang.org" 198 | source: hosted 199 | version: "4.1.18" 200 | firebase_storage_web: 201 | dependency: transitive 202 | description: 203 | name: firebase_storage_web 204 | url: "https://pub.dartlang.org" 205 | source: hosted 206 | version: "3.3.9" 207 | flutter: 208 | dependency: "direct main" 209 | description: flutter 210 | source: sdk 211 | version: "0.0.0" 212 | flutter_chat_bubble: 213 | dependency: "direct main" 214 | description: 215 | name: flutter_chat_bubble 216 | url: "https://pub.dartlang.org" 217 | source: hosted 218 | version: "2.0.0" 219 | flutter_local_notifications: 220 | dependency: "direct main" 221 | description: 222 | name: flutter_local_notifications 223 | url: "https://pub.dartlang.org" 224 | source: hosted 225 | version: "9.9.1" 226 | flutter_local_notifications_linux: 227 | dependency: transitive 228 | description: 229 | name: flutter_local_notifications_linux 230 | url: "https://pub.dartlang.org" 231 | source: hosted 232 | version: "0.5.1" 233 | flutter_local_notifications_platform_interface: 234 | dependency: transitive 235 | description: 236 | name: flutter_local_notifications_platform_interface 237 | url: "https://pub.dartlang.org" 238 | source: hosted 239 | version: "5.0.0" 240 | flutter_plugin_android_lifecycle: 241 | dependency: transitive 242 | description: 243 | name: flutter_plugin_android_lifecycle 244 | url: "https://pub.dartlang.org" 245 | source: hosted 246 | version: "2.0.7" 247 | flutter_test: 248 | dependency: "direct dev" 249 | description: flutter 250 | source: sdk 251 | version: "0.0.0" 252 | flutter_web_plugins: 253 | dependency: transitive 254 | description: flutter 255 | source: sdk 256 | version: "0.0.0" 257 | fluttertoast: 258 | dependency: "direct dev" 259 | description: 260 | name: fluttertoast 261 | url: "https://pub.dartlang.org" 262 | source: hosted 263 | version: "8.0.9" 264 | google_fonts: 265 | dependency: "direct main" 266 | description: 267 | name: google_fonts 268 | url: "https://pub.dartlang.org" 269 | source: hosted 270 | version: "2.3.3" 271 | http: 272 | dependency: transitive 273 | description: 274 | name: http 275 | url: "https://pub.dartlang.org" 276 | source: hosted 277 | version: "0.13.5" 278 | http_parser: 279 | dependency: transitive 280 | description: 281 | name: http_parser 282 | url: "https://pub.dartlang.org" 283 | source: hosted 284 | version: "4.0.2" 285 | image_picker: 286 | dependency: "direct main" 287 | description: 288 | name: image_picker 289 | url: "https://pub.dartlang.org" 290 | source: hosted 291 | version: "0.8.6" 292 | image_picker_android: 293 | dependency: transitive 294 | description: 295 | name: image_picker_android 296 | url: "https://pub.dartlang.org" 297 | source: hosted 298 | version: "0.8.5+3" 299 | image_picker_for_web: 300 | dependency: transitive 301 | description: 302 | name: image_picker_for_web 303 | url: "https://pub.dartlang.org" 304 | source: hosted 305 | version: "2.1.10" 306 | image_picker_ios: 307 | dependency: transitive 308 | description: 309 | name: image_picker_ios 310 | url: "https://pub.dartlang.org" 311 | source: hosted 312 | version: "0.8.6+1" 313 | image_picker_platform_interface: 314 | dependency: transitive 315 | description: 316 | name: image_picker_platform_interface 317 | url: "https://pub.dartlang.org" 318 | source: hosted 319 | version: "2.6.2" 320 | intl: 321 | dependency: transitive 322 | description: 323 | name: intl 324 | url: "https://pub.dartlang.org" 325 | source: hosted 326 | version: "0.17.0" 327 | js: 328 | dependency: transitive 329 | description: 330 | name: js 331 | url: "https://pub.dartlang.org" 332 | source: hosted 333 | version: "0.6.4" 334 | matcher: 335 | dependency: transitive 336 | description: 337 | name: matcher 338 | url: "https://pub.dartlang.org" 339 | source: hosted 340 | version: "0.12.12" 341 | material_color_utilities: 342 | dependency: transitive 343 | description: 344 | name: material_color_utilities 345 | url: "https://pub.dartlang.org" 346 | source: hosted 347 | version: "0.2.0" 348 | meta: 349 | dependency: transitive 350 | description: 351 | name: meta 352 | url: "https://pub.dartlang.org" 353 | source: hosted 354 | version: "1.8.0" 355 | path: 356 | dependency: transitive 357 | description: 358 | name: path 359 | url: "https://pub.dartlang.org" 360 | source: hosted 361 | version: "1.8.2" 362 | path_provider: 363 | dependency: transitive 364 | description: 365 | name: path_provider 366 | url: "https://pub.dartlang.org" 367 | source: hosted 368 | version: "2.0.11" 369 | path_provider_android: 370 | dependency: transitive 371 | description: 372 | name: path_provider_android 373 | url: "https://pub.dartlang.org" 374 | source: hosted 375 | version: "2.0.20" 376 | path_provider_ios: 377 | dependency: transitive 378 | description: 379 | name: path_provider_ios 380 | url: "https://pub.dartlang.org" 381 | source: hosted 382 | version: "2.0.11" 383 | path_provider_linux: 384 | dependency: transitive 385 | description: 386 | name: path_provider_linux 387 | url: "https://pub.dartlang.org" 388 | source: hosted 389 | version: "2.1.7" 390 | path_provider_macos: 391 | dependency: transitive 392 | description: 393 | name: path_provider_macos 394 | url: "https://pub.dartlang.org" 395 | source: hosted 396 | version: "2.0.6" 397 | path_provider_platform_interface: 398 | dependency: transitive 399 | description: 400 | name: path_provider_platform_interface 401 | url: "https://pub.dartlang.org" 402 | source: hosted 403 | version: "2.0.5" 404 | path_provider_windows: 405 | dependency: transitive 406 | description: 407 | name: path_provider_windows 408 | url: "https://pub.dartlang.org" 409 | source: hosted 410 | version: "2.1.3" 411 | petitparser: 412 | dependency: transitive 413 | description: 414 | name: petitparser 415 | url: "https://pub.dartlang.org" 416 | source: hosted 417 | version: "5.0.0" 418 | platform: 419 | dependency: transitive 420 | description: 421 | name: platform 422 | url: "https://pub.dartlang.org" 423 | source: hosted 424 | version: "3.1.0" 425 | plugin_platform_interface: 426 | dependency: transitive 427 | description: 428 | name: plugin_platform_interface 429 | url: "https://pub.dartlang.org" 430 | source: hosted 431 | version: "2.1.3" 432 | process: 433 | dependency: transitive 434 | description: 435 | name: process 436 | url: "https://pub.dartlang.org" 437 | source: hosted 438 | version: "4.2.4" 439 | sky_engine: 440 | dependency: transitive 441 | description: flutter 442 | source: sdk 443 | version: "0.0.99" 444 | source_span: 445 | dependency: transitive 446 | description: 447 | name: source_span 448 | url: "https://pub.dartlang.org" 449 | source: hosted 450 | version: "1.9.1" 451 | stack_trace: 452 | dependency: transitive 453 | description: 454 | name: stack_trace 455 | url: "https://pub.dartlang.org" 456 | source: hosted 457 | version: "1.10.0" 458 | stream_channel: 459 | dependency: transitive 460 | description: 461 | name: stream_channel 462 | url: "https://pub.dartlang.org" 463 | source: hosted 464 | version: "2.1.1" 465 | string_scanner: 466 | dependency: transitive 467 | description: 468 | name: string_scanner 469 | url: "https://pub.dartlang.org" 470 | source: hosted 471 | version: "1.1.1" 472 | term_glyph: 473 | dependency: transitive 474 | description: 475 | name: term_glyph 476 | url: "https://pub.dartlang.org" 477 | source: hosted 478 | version: "1.2.1" 479 | test_api: 480 | dependency: transitive 481 | description: 482 | name: test_api 483 | url: "https://pub.dartlang.org" 484 | source: hosted 485 | version: "0.4.14" 486 | timezone: 487 | dependency: transitive 488 | description: 489 | name: timezone 490 | url: "https://pub.dartlang.org" 491 | source: hosted 492 | version: "0.8.0" 493 | typed_data: 494 | dependency: transitive 495 | description: 496 | name: typed_data 497 | url: "https://pub.dartlang.org" 498 | source: hosted 499 | version: "1.3.1" 500 | uuid: 501 | dependency: "direct main" 502 | description: 503 | name: uuid 504 | url: "https://pub.dartlang.org" 505 | source: hosted 506 | version: "3.0.6" 507 | vector_math: 508 | dependency: transitive 509 | description: 510 | name: vector_math 511 | url: "https://pub.dartlang.org" 512 | source: hosted 513 | version: "2.1.4" 514 | win32: 515 | dependency: transitive 516 | description: 517 | name: win32 518 | url: "https://pub.dartlang.org" 519 | source: hosted 520 | version: "3.0.1" 521 | xdg_directories: 522 | dependency: transitive 523 | description: 524 | name: xdg_directories 525 | url: "https://pub.dartlang.org" 526 | source: hosted 527 | version: "0.2.0+2" 528 | xml: 529 | dependency: transitive 530 | description: 531 | name: xml 532 | url: "https://pub.dartlang.org" 533 | source: hosted 534 | version: "6.1.0" 535 | sdks: 536 | dart: ">=2.18.0 <3.0.0" 537 | flutter: ">=3.0.0" 538 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXCopyFilesBuildPhase section */ 19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 20 | isa = PBXCopyFilesBuildPhase; 21 | buildActionMask = 2147483647; 22 | dstPath = ""; 23 | dstSubfolderSpec = 10; 24 | files = ( 25 | ); 26 | name = "Embed Frameworks"; 27 | runOnlyForDeploymentPostprocessing = 0; 28 | }; 29 | /* End PBXCopyFilesBuildPhase section */ 30 | 31 | /* Begin PBXFileReference section */ 32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | /* End PBXFileReference section */ 46 | 47 | /* Begin PBXFrameworksBuildPhase section */ 48 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 49 | isa = PBXFrameworksBuildPhase; 50 | buildActionMask = 2147483647; 51 | files = ( 52 | ); 53 | runOnlyForDeploymentPostprocessing = 0; 54 | }; 55 | /* End PBXFrameworksBuildPhase section */ 56 | 57 | /* Begin PBXGroup section */ 58 | 9740EEB11CF90186004384FC /* Flutter */ = { 59 | isa = PBXGroup; 60 | children = ( 61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 65 | ); 66 | name = Flutter; 67 | sourceTree = ""; 68 | }; 69 | 97C146E51CF9000F007C117D = { 70 | isa = PBXGroup; 71 | children = ( 72 | 9740EEB11CF90186004384FC /* Flutter */, 73 | 97C146F01CF9000F007C117D /* Runner */, 74 | 97C146EF1CF9000F007C117D /* Products */, 75 | ); 76 | sourceTree = ""; 77 | }; 78 | 97C146EF1CF9000F007C117D /* Products */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 97C146EE1CF9000F007C117D /* Runner.app */, 82 | ); 83 | name = Products; 84 | sourceTree = ""; 85 | }; 86 | 97C146F01CF9000F007C117D /* Runner */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 92 | 97C147021CF9000F007C117D /* Info.plist */, 93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 97 | ); 98 | path = Runner; 99 | sourceTree = ""; 100 | }; 101 | /* End PBXGroup section */ 102 | 103 | /* Begin PBXNativeTarget section */ 104 | 97C146ED1CF9000F007C117D /* Runner */ = { 105 | isa = PBXNativeTarget; 106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 107 | buildPhases = ( 108 | 9740EEB61CF901F6004384FC /* Run Script */, 109 | 97C146EA1CF9000F007C117D /* Sources */, 110 | 97C146EB1CF9000F007C117D /* Frameworks */, 111 | 97C146EC1CF9000F007C117D /* Resources */, 112 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 114 | ); 115 | buildRules = ( 116 | ); 117 | dependencies = ( 118 | ); 119 | name = Runner; 120 | productName = Runner; 121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 122 | productType = "com.apple.product-type.application"; 123 | }; 124 | /* End PBXNativeTarget section */ 125 | 126 | /* Begin PBXProject section */ 127 | 97C146E61CF9000F007C117D /* Project object */ = { 128 | isa = PBXProject; 129 | attributes = { 130 | LastUpgradeCheck = 1020; 131 | ORGANIZATIONNAME = ""; 132 | TargetAttributes = { 133 | 97C146ED1CF9000F007C117D = { 134 | CreatedOnToolsVersion = 7.3.1; 135 | LastSwiftMigration = 1100; 136 | }; 137 | }; 138 | }; 139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 140 | compatibilityVersion = "Xcode 9.3"; 141 | developmentRegion = en; 142 | hasScannedForEncodings = 0; 143 | knownRegions = ( 144 | en, 145 | Base, 146 | ); 147 | mainGroup = 97C146E51CF9000F007C117D; 148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 149 | projectDirPath = ""; 150 | projectRoot = ""; 151 | targets = ( 152 | 97C146ED1CF9000F007C117D /* Runner */, 153 | ); 154 | }; 155 | /* End PBXProject section */ 156 | 157 | /* Begin PBXResourcesBuildPhase section */ 158 | 97C146EC1CF9000F007C117D /* Resources */ = { 159 | isa = PBXResourcesBuildPhase; 160 | buildActionMask = 2147483647; 161 | files = ( 162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 166 | ); 167 | runOnlyForDeploymentPostprocessing = 0; 168 | }; 169 | /* End PBXResourcesBuildPhase section */ 170 | 171 | /* Begin PBXShellScriptBuildPhase section */ 172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 173 | isa = PBXShellScriptBuildPhase; 174 | buildActionMask = 2147483647; 175 | files = ( 176 | ); 177 | inputPaths = ( 178 | ); 179 | name = "Thin Binary"; 180 | outputPaths = ( 181 | ); 182 | runOnlyForDeploymentPostprocessing = 0; 183 | shellPath = /bin/sh; 184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 185 | }; 186 | 9740EEB61CF901F6004384FC /* Run Script */ = { 187 | isa = PBXShellScriptBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | ); 191 | inputPaths = ( 192 | ); 193 | name = "Run Script"; 194 | outputPaths = ( 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | shellPath = /bin/sh; 198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 199 | }; 200 | /* End PBXShellScriptBuildPhase section */ 201 | 202 | /* Begin PBXSourcesBuildPhase section */ 203 | 97C146EA1CF9000F007C117D /* Sources */ = { 204 | isa = PBXSourcesBuildPhase; 205 | buildActionMask = 2147483647; 206 | files = ( 207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 209 | ); 210 | runOnlyForDeploymentPostprocessing = 0; 211 | }; 212 | /* End PBXSourcesBuildPhase section */ 213 | 214 | /* Begin PBXVariantGroup section */ 215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 216 | isa = PBXVariantGroup; 217 | children = ( 218 | 97C146FB1CF9000F007C117D /* Base */, 219 | ); 220 | name = Main.storyboard; 221 | sourceTree = ""; 222 | }; 223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 224 | isa = PBXVariantGroup; 225 | children = ( 226 | 97C147001CF9000F007C117D /* Base */, 227 | ); 228 | name = LaunchScreen.storyboard; 229 | sourceTree = ""; 230 | }; 231 | /* End PBXVariantGroup section */ 232 | 233 | /* Begin XCBuildConfiguration section */ 234 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 235 | isa = XCBuildConfiguration; 236 | buildSettings = { 237 | ALWAYS_SEARCH_USER_PATHS = NO; 238 | CLANG_ANALYZER_NONNULL = YES; 239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 240 | CLANG_CXX_LIBRARY = "libc++"; 241 | CLANG_ENABLE_MODULES = YES; 242 | CLANG_ENABLE_OBJC_ARC = YES; 243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 244 | CLANG_WARN_BOOL_CONVERSION = YES; 245 | CLANG_WARN_COMMA = YES; 246 | CLANG_WARN_CONSTANT_CONVERSION = YES; 247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 249 | CLANG_WARN_EMPTY_BODY = YES; 250 | CLANG_WARN_ENUM_CONVERSION = YES; 251 | CLANG_WARN_INFINITE_RECURSION = YES; 252 | CLANG_WARN_INT_CONVERSION = YES; 253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 258 | CLANG_WARN_STRICT_PROTOTYPES = YES; 259 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 260 | CLANG_WARN_UNREACHABLE_CODE = YES; 261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 263 | COPY_PHASE_STRIP = NO; 264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 265 | ENABLE_NS_ASSERTIONS = NO; 266 | ENABLE_STRICT_OBJC_MSGSEND = YES; 267 | GCC_C_LANGUAGE_STANDARD = gnu99; 268 | GCC_NO_COMMON_BLOCKS = YES; 269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 271 | GCC_WARN_UNDECLARED_SELECTOR = YES; 272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 273 | GCC_WARN_UNUSED_FUNCTION = YES; 274 | GCC_WARN_UNUSED_VARIABLE = YES; 275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 276 | MTL_ENABLE_DEBUG_INFO = NO; 277 | SDKROOT = iphoneos; 278 | SUPPORTED_PLATFORMS = iphoneos; 279 | TARGETED_DEVICE_FAMILY = "1,2"; 280 | VALIDATE_PRODUCT = YES; 281 | }; 282 | name = Profile; 283 | }; 284 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 285 | isa = XCBuildConfiguration; 286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 287 | buildSettings = { 288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 289 | CLANG_ENABLE_MODULES = YES; 290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 291 | ENABLE_BITCODE = NO; 292 | INFOPLIST_FILE = Runner/Info.plist; 293 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 294 | PRODUCT_BUNDLE_IDENTIFIER = com.example.chatApp; 295 | PRODUCT_NAME = "$(TARGET_NAME)"; 296 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 297 | SWIFT_VERSION = 5.0; 298 | VERSIONING_SYSTEM = "apple-generic"; 299 | }; 300 | name = Profile; 301 | }; 302 | 97C147031CF9000F007C117D /* Debug */ = { 303 | isa = XCBuildConfiguration; 304 | buildSettings = { 305 | ALWAYS_SEARCH_USER_PATHS = NO; 306 | CLANG_ANALYZER_NONNULL = YES; 307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 308 | CLANG_CXX_LIBRARY = "libc++"; 309 | CLANG_ENABLE_MODULES = YES; 310 | CLANG_ENABLE_OBJC_ARC = YES; 311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 312 | CLANG_WARN_BOOL_CONVERSION = YES; 313 | CLANG_WARN_COMMA = YES; 314 | CLANG_WARN_CONSTANT_CONVERSION = YES; 315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 317 | CLANG_WARN_EMPTY_BODY = YES; 318 | CLANG_WARN_ENUM_CONVERSION = YES; 319 | CLANG_WARN_INFINITE_RECURSION = YES; 320 | CLANG_WARN_INT_CONVERSION = YES; 321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 326 | CLANG_WARN_STRICT_PROTOTYPES = YES; 327 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 328 | CLANG_WARN_UNREACHABLE_CODE = YES; 329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 331 | COPY_PHASE_STRIP = NO; 332 | DEBUG_INFORMATION_FORMAT = dwarf; 333 | ENABLE_STRICT_OBJC_MSGSEND = YES; 334 | ENABLE_TESTABILITY = YES; 335 | GCC_C_LANGUAGE_STANDARD = gnu99; 336 | GCC_DYNAMIC_NO_PIC = NO; 337 | GCC_NO_COMMON_BLOCKS = YES; 338 | GCC_OPTIMIZATION_LEVEL = 0; 339 | GCC_PREPROCESSOR_DEFINITIONS = ( 340 | "DEBUG=1", 341 | "$(inherited)", 342 | ); 343 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 344 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 345 | GCC_WARN_UNDECLARED_SELECTOR = YES; 346 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 347 | GCC_WARN_UNUSED_FUNCTION = YES; 348 | GCC_WARN_UNUSED_VARIABLE = YES; 349 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 350 | MTL_ENABLE_DEBUG_INFO = YES; 351 | ONLY_ACTIVE_ARCH = YES; 352 | SDKROOT = iphoneos; 353 | TARGETED_DEVICE_FAMILY = "1,2"; 354 | }; 355 | name = Debug; 356 | }; 357 | 97C147041CF9000F007C117D /* Release */ = { 358 | isa = XCBuildConfiguration; 359 | buildSettings = { 360 | ALWAYS_SEARCH_USER_PATHS = NO; 361 | CLANG_ANALYZER_NONNULL = YES; 362 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 363 | CLANG_CXX_LIBRARY = "libc++"; 364 | CLANG_ENABLE_MODULES = YES; 365 | CLANG_ENABLE_OBJC_ARC = YES; 366 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 367 | CLANG_WARN_BOOL_CONVERSION = YES; 368 | CLANG_WARN_COMMA = YES; 369 | CLANG_WARN_CONSTANT_CONVERSION = YES; 370 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 371 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 372 | CLANG_WARN_EMPTY_BODY = YES; 373 | CLANG_WARN_ENUM_CONVERSION = YES; 374 | CLANG_WARN_INFINITE_RECURSION = YES; 375 | CLANG_WARN_INT_CONVERSION = YES; 376 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 377 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 378 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 379 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 380 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 381 | CLANG_WARN_STRICT_PROTOTYPES = YES; 382 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 383 | CLANG_WARN_UNREACHABLE_CODE = YES; 384 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 385 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 386 | COPY_PHASE_STRIP = NO; 387 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 388 | ENABLE_NS_ASSERTIONS = NO; 389 | ENABLE_STRICT_OBJC_MSGSEND = YES; 390 | GCC_C_LANGUAGE_STANDARD = gnu99; 391 | GCC_NO_COMMON_BLOCKS = YES; 392 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 393 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 394 | GCC_WARN_UNDECLARED_SELECTOR = YES; 395 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 396 | GCC_WARN_UNUSED_FUNCTION = YES; 397 | GCC_WARN_UNUSED_VARIABLE = YES; 398 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 399 | MTL_ENABLE_DEBUG_INFO = NO; 400 | SDKROOT = iphoneos; 401 | SUPPORTED_PLATFORMS = iphoneos; 402 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 403 | TARGETED_DEVICE_FAMILY = "1,2"; 404 | VALIDATE_PRODUCT = YES; 405 | }; 406 | name = Release; 407 | }; 408 | 97C147061CF9000F007C117D /* Debug */ = { 409 | isa = XCBuildConfiguration; 410 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 411 | buildSettings = { 412 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 413 | CLANG_ENABLE_MODULES = YES; 414 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 415 | ENABLE_BITCODE = NO; 416 | INFOPLIST_FILE = Runner/Info.plist; 417 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 418 | PRODUCT_BUNDLE_IDENTIFIER = com.example.chatApp; 419 | PRODUCT_NAME = "$(TARGET_NAME)"; 420 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 421 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 422 | SWIFT_VERSION = 5.0; 423 | VERSIONING_SYSTEM = "apple-generic"; 424 | }; 425 | name = Debug; 426 | }; 427 | 97C147071CF9000F007C117D /* Release */ = { 428 | isa = XCBuildConfiguration; 429 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 430 | buildSettings = { 431 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 432 | CLANG_ENABLE_MODULES = YES; 433 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 434 | ENABLE_BITCODE = NO; 435 | INFOPLIST_FILE = Runner/Info.plist; 436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 437 | PRODUCT_BUNDLE_IDENTIFIER = com.example.chatApp; 438 | PRODUCT_NAME = "$(TARGET_NAME)"; 439 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 440 | SWIFT_VERSION = 5.0; 441 | VERSIONING_SYSTEM = "apple-generic"; 442 | }; 443 | name = Release; 444 | }; 445 | /* End XCBuildConfiguration section */ 446 | 447 | /* Begin XCConfigurationList section */ 448 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 449 | isa = XCConfigurationList; 450 | buildConfigurations = ( 451 | 97C147031CF9000F007C117D /* Debug */, 452 | 97C147041CF9000F007C117D /* Release */, 453 | 249021D3217E4FDB00AE95B9 /* Profile */, 454 | ); 455 | defaultConfigurationIsVisible = 0; 456 | defaultConfigurationName = Release; 457 | }; 458 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 459 | isa = XCConfigurationList; 460 | buildConfigurations = ( 461 | 97C147061CF9000F007C117D /* Debug */, 462 | 97C147071CF9000F007C117D /* Release */, 463 | 249021D4217E4FDB00AE95B9 /* Profile */, 464 | ); 465 | defaultConfigurationIsVisible = 0; 466 | defaultConfigurationName = Release; 467 | }; 468 | /* End XCConfigurationList section */ 469 | }; 470 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 471 | } 472 | --------------------------------------------------------------------------------