├── .gitignore
├── .metadata
├── README.md
├── analysis_options.yaml
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ ├── google-services.json
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── chat_app_flutter
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-v21
│ │ │ └── launch_background.xml
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── values-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── config.json
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Podfile
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
├── lib
├── main.dart
├── screens
│ ├── auth_screen.dart
│ ├── chat_screen.dart
│ └── splash_screen.dart
└── widgets
│ ├── auth
│ └── auth_form.dart
│ ├── chat
│ ├── message_bubble.dart
│ ├── messages.dart
│ └── new_message.dart
│ └── pickers
│ └── user_image_picker.dart
├── pubspec.lock
├── pubspec.yaml
├── test
└── widget_test.dart
└── web
├── favicon.png
├── icons
├── Icon-192.png
├── Icon-512.png
├── Icon-maskable-192.png
└── Icon-maskable-512.png
├── index.html
└── manifest.json
/.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 |
--------------------------------------------------------------------------------
/.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: 77d935af4db863f6abd0b9c31c7e6df2a13de57b
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # chat_app_flutter
2 |
3 | A new Flutter project.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter application.
8 |
9 | A few resources to get you started if this is your first Flutter project:
10 |
11 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
13 |
14 | For help getting started with Flutter, view our
15 | [online documentation](https://flutter.dev/docs), which offers tutorials,
16 | samples, guidance on mobile development, and a full API reference.
17 |
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # This file configures the analyzer, which statically analyzes Dart code to
2 | # check for errors, warnings, and lints.
3 | #
4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6 | # invoked from the command line by running `flutter analyze`.
7 |
8 | # The following line activates a set of recommended lints for Flutter apps,
9 | # packages, and plugins designed to encourage good coding practices.
10 | include: package:flutter_lints/flutter.yaml
11 |
12 | linter:
13 | # The lint rules applied to this project can be customized in the
14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml`
15 | # included above or to enable additional rules. A list of all available lints
16 | # and their documentation is published at
17 | # https://dart-lang.github.io/linter/lints/index.html.
18 | #
19 | # Instead of disabling a lint rule for the entire project in the
20 | # section below, it can also be suppressed for a single line of code
21 | # or a specific dart file by using the `// ignore: name_of_lint` and
22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file
23 | # producing the lint.
24 | rules:
25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule
26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27 |
28 | # Additional information about this file can be found at
29 | # https://dart.dev/guides/language/analysis-options
30 |
--------------------------------------------------------------------------------
/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 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'com.google.gms.google-services'
26 | apply plugin: 'kotlin-android'
27 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
28 |
29 | android {
30 | compileSdkVersion 31
31 |
32 | compileOptions {
33 | sourceCompatibility JavaVersion.VERSION_1_8
34 | targetCompatibility JavaVersion.VERSION_1_8
35 | }
36 |
37 | kotlinOptions {
38 | jvmTarget = '1.8'
39 | }
40 |
41 | sourceSets {
42 | main.java.srcDirs += 'src/main/kotlin'
43 | }
44 |
45 | defaultConfig {
46 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
47 | applicationId "com.bahri.chat_app_flutter"
48 | minSdkVersion 19
49 | targetSdkVersion 30
50 | versionCode flutterVersionCode.toInteger()
51 | versionName flutterVersionName
52 | multiDexEnabled true
53 | }
54 |
55 | buildTypes {
56 | release {
57 | // TODO: Add your own signing config for the release build.
58 | // Signing with the debug keys for now, so `flutter run --release` works.
59 | signingConfig signingConfigs.debug
60 | }
61 | }
62 | }
63 |
64 | flutter {
65 | source '../..'
66 | }
67 |
68 | dependencies {
69 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
70 | implementation platform('com.google.firebase:firebase-bom:29.0.3')
71 | implementation 'com.google.firebase:firebase-analytics-ktx'
72 | }
73 |
--------------------------------------------------------------------------------
/android/app/google-services.json:
--------------------------------------------------------------------------------
1 | {
2 | "project_info": {
3 | "project_number": "275191994998",
4 | "project_id": "chat-app-flutter-4ad0c",
5 | "storage_bucket": "chat-app-flutter-4ad0c.appspot.com"
6 | },
7 | "client": [
8 | {
9 | "client_info": {
10 | "mobilesdk_app_id": "1:275191994998:android:a60b6cb2c71a28b0c69d57",
11 | "android_client_info": {
12 | "package_name": "com.bahri.chat_app_flutter"
13 | }
14 | },
15 | "oauth_client": [
16 | {
17 | "client_id": "275191994998-70ga0o0g6e9qotpvaj4icutlqi9b01nf.apps.googleusercontent.com",
18 | "client_type": 3
19 | }
20 | ],
21 | "api_key": [
22 | {
23 | "current_key": "AIzaSyBXVBsx3tIAvxvEbB-DeDq7FhCADMd-B7U"
24 | }
25 | ],
26 | "services": {
27 | "appinvite_service": {
28 | "other_platform_oauth_client": [
29 | {
30 | "client_id": "275191994998-70ga0o0g6e9qotpvaj4icutlqi9b01nf.apps.googleusercontent.com",
31 | "client_type": 3
32 | }
33 | ]
34 | }
35 | }
36 | }
37 | ],
38 | "configuration_version": "1"
39 | }
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
15 |
19 |
23 |
24 |
25 |
26 |
27 |
28 |
30 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/chat_app_flutter/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.chat_app_flutter
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.5.10'
3 | repositories {
4 | google()
5 | mavenCentral()
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 | mavenCentral()
19 | }
20 | }
21 |
22 | rootProject.buildDir = '../build'
23 | subprojects {
24 | project.buildDir = "${rootProject.buildDir}/${project.name}"
25 | }
26 | subprojects {
27 | project.evaluationDependsOn(':app')
28 | }
29 |
30 | task clean(type: Delete) {
31 | delete rootProject.buildDir
32 | }
33 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/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-7.4-all.zip
7 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "modules": [
3 |
4 | ]
5 | }
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/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 | 9.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | # platform :ios, '9.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def flutter_root
14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15 | unless File.exist?(generated_xcode_build_settings_path)
16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17 | end
18 |
19 | File.foreach(generated_xcode_build_settings_path) do |line|
20 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
21 | return matches[1].strip if matches
22 | end
23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24 | end
25 |
26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27 |
28 | flutter_ios_podfile_setup
29 |
30 | target 'Runner' do
31 | use_frameworks!
32 | use_modular_headers!
33 |
34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35 | end
36 |
37 | post_install do |installer|
38 | installer.pods_project.targets.each do |target|
39 | flutter_additional_ios_build_settings(target)
40 | end
41 | end
42 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
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 | A2512BD8279804770038804D /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = A2512BD7279804770038804D /* GoogleService-Info.plist */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXCopyFilesBuildPhase section */
20 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
21 | isa = PBXCopyFilesBuildPhase;
22 | buildActionMask = 2147483647;
23 | dstPath = "";
24 | dstSubfolderSpec = 10;
25 | files = (
26 | );
27 | name = "Embed Frameworks";
28 | runOnlyForDeploymentPostprocessing = 0;
29 | };
30 | /* End PBXCopyFilesBuildPhase section */
31 |
32 | /* Begin PBXFileReference section */
33 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
34 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
35 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
36 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
37 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
38 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
39 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
40 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
41 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
42 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
43 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
44 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
45 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
46 | A2512BD7279804770038804D /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "GoogleService-Info.plist"; path = "../../../../../Downloads/GoogleService-Info.plist"; sourceTree = ""; };
47 | /* End PBXFileReference section */
48 |
49 | /* Begin PBXFrameworksBuildPhase section */
50 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
51 | isa = PBXFrameworksBuildPhase;
52 | buildActionMask = 2147483647;
53 | files = (
54 | );
55 | runOnlyForDeploymentPostprocessing = 0;
56 | };
57 | /* End PBXFrameworksBuildPhase section */
58 |
59 | /* Begin PBXGroup section */
60 | 9740EEB11CF90186004384FC /* Flutter */ = {
61 | isa = PBXGroup;
62 | children = (
63 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
64 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
65 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
66 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
67 | );
68 | name = Flutter;
69 | sourceTree = "";
70 | };
71 | 97C146E51CF9000F007C117D = {
72 | isa = PBXGroup;
73 | children = (
74 | 9740EEB11CF90186004384FC /* Flutter */,
75 | 97C146F01CF9000F007C117D /* Runner */,
76 | 97C146EF1CF9000F007C117D /* Products */,
77 | );
78 | sourceTree = "";
79 | };
80 | 97C146EF1CF9000F007C117D /* Products */ = {
81 | isa = PBXGroup;
82 | children = (
83 | 97C146EE1CF9000F007C117D /* Runner.app */,
84 | );
85 | name = Products;
86 | sourceTree = "";
87 | };
88 | 97C146F01CF9000F007C117D /* Runner */ = {
89 | isa = PBXGroup;
90 | children = (
91 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
92 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
93 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
94 | 97C147021CF9000F007C117D /* Info.plist */,
95 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
96 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
97 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
98 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
99 | A2512BD7279804770038804D /* GoogleService-Info.plist */,
100 | );
101 | path = Runner;
102 | sourceTree = "";
103 | };
104 | /* End PBXGroup section */
105 |
106 | /* Begin PBXNativeTarget section */
107 | 97C146ED1CF9000F007C117D /* Runner */ = {
108 | isa = PBXNativeTarget;
109 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
110 | buildPhases = (
111 | 9740EEB61CF901F6004384FC /* Run Script */,
112 | 97C146EA1CF9000F007C117D /* Sources */,
113 | 97C146EB1CF9000F007C117D /* Frameworks */,
114 | 97C146EC1CF9000F007C117D /* Resources */,
115 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
116 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
117 | );
118 | buildRules = (
119 | );
120 | dependencies = (
121 | );
122 | name = Runner;
123 | productName = Runner;
124 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
125 | productType = "com.apple.product-type.application";
126 | };
127 | /* End PBXNativeTarget section */
128 |
129 | /* Begin PBXProject section */
130 | 97C146E61CF9000F007C117D /* Project object */ = {
131 | isa = PBXProject;
132 | attributes = {
133 | LastUpgradeCheck = 1300;
134 | ORGANIZATIONNAME = "";
135 | TargetAttributes = {
136 | 97C146ED1CF9000F007C117D = {
137 | CreatedOnToolsVersion = 7.3.1;
138 | LastSwiftMigration = 1100;
139 | };
140 | };
141 | };
142 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
143 | compatibilityVersion = "Xcode 9.3";
144 | developmentRegion = en;
145 | hasScannedForEncodings = 0;
146 | knownRegions = (
147 | en,
148 | Base,
149 | );
150 | mainGroup = 97C146E51CF9000F007C117D;
151 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
152 | projectDirPath = "";
153 | projectRoot = "";
154 | targets = (
155 | 97C146ED1CF9000F007C117D /* Runner */,
156 | );
157 | };
158 | /* End PBXProject section */
159 |
160 | /* Begin PBXResourcesBuildPhase section */
161 | 97C146EC1CF9000F007C117D /* Resources */ = {
162 | isa = PBXResourcesBuildPhase;
163 | buildActionMask = 2147483647;
164 | files = (
165 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
166 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
167 | A2512BD8279804770038804D /* GoogleService-Info.plist in Resources */,
168 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
169 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
170 | );
171 | runOnlyForDeploymentPostprocessing = 0;
172 | };
173 | /* End PBXResourcesBuildPhase section */
174 |
175 | /* Begin PBXShellScriptBuildPhase section */
176 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
177 | isa = PBXShellScriptBuildPhase;
178 | buildActionMask = 2147483647;
179 | files = (
180 | );
181 | inputPaths = (
182 | );
183 | name = "Thin Binary";
184 | outputPaths = (
185 | );
186 | runOnlyForDeploymentPostprocessing = 0;
187 | shellPath = /bin/sh;
188 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
189 | };
190 | 9740EEB61CF901F6004384FC /* Run Script */ = {
191 | isa = PBXShellScriptBuildPhase;
192 | buildActionMask = 2147483647;
193 | files = (
194 | );
195 | inputPaths = (
196 | );
197 | name = "Run Script";
198 | outputPaths = (
199 | );
200 | runOnlyForDeploymentPostprocessing = 0;
201 | shellPath = /bin/sh;
202 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
203 | };
204 | /* End PBXShellScriptBuildPhase section */
205 |
206 | /* Begin PBXSourcesBuildPhase section */
207 | 97C146EA1CF9000F007C117D /* Sources */ = {
208 | isa = PBXSourcesBuildPhase;
209 | buildActionMask = 2147483647;
210 | files = (
211 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
212 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
213 | );
214 | runOnlyForDeploymentPostprocessing = 0;
215 | };
216 | /* End PBXSourcesBuildPhase section */
217 |
218 | /* Begin PBXVariantGroup section */
219 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
220 | isa = PBXVariantGroup;
221 | children = (
222 | 97C146FB1CF9000F007C117D /* Base */,
223 | );
224 | name = Main.storyboard;
225 | sourceTree = "";
226 | };
227 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
228 | isa = PBXVariantGroup;
229 | children = (
230 | 97C147001CF9000F007C117D /* Base */,
231 | );
232 | name = LaunchScreen.storyboard;
233 | sourceTree = "";
234 | };
235 | /* End PBXVariantGroup section */
236 |
237 | /* Begin XCBuildConfiguration section */
238 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
239 | isa = XCBuildConfiguration;
240 | buildSettings = {
241 | ALWAYS_SEARCH_USER_PATHS = NO;
242 | CLANG_ANALYZER_NONNULL = YES;
243 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
244 | CLANG_CXX_LIBRARY = "libc++";
245 | CLANG_ENABLE_MODULES = YES;
246 | CLANG_ENABLE_OBJC_ARC = YES;
247 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
248 | CLANG_WARN_BOOL_CONVERSION = YES;
249 | CLANG_WARN_COMMA = YES;
250 | CLANG_WARN_CONSTANT_CONVERSION = YES;
251 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
252 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
253 | CLANG_WARN_EMPTY_BODY = YES;
254 | CLANG_WARN_ENUM_CONVERSION = YES;
255 | CLANG_WARN_INFINITE_RECURSION = YES;
256 | CLANG_WARN_INT_CONVERSION = YES;
257 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
258 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
259 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
260 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
261 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
262 | CLANG_WARN_STRICT_PROTOTYPES = YES;
263 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
264 | CLANG_WARN_UNREACHABLE_CODE = YES;
265 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
266 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
267 | COPY_PHASE_STRIP = NO;
268 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
269 | ENABLE_NS_ASSERTIONS = NO;
270 | ENABLE_STRICT_OBJC_MSGSEND = YES;
271 | GCC_C_LANGUAGE_STANDARD = gnu99;
272 | GCC_NO_COMMON_BLOCKS = YES;
273 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
274 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
275 | GCC_WARN_UNDECLARED_SELECTOR = YES;
276 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
277 | GCC_WARN_UNUSED_FUNCTION = YES;
278 | GCC_WARN_UNUSED_VARIABLE = YES;
279 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
280 | MTL_ENABLE_DEBUG_INFO = NO;
281 | SDKROOT = iphoneos;
282 | SUPPORTED_PLATFORMS = iphoneos;
283 | TARGETED_DEVICE_FAMILY = "1,2";
284 | VALIDATE_PRODUCT = YES;
285 | };
286 | name = Profile;
287 | };
288 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
289 | isa = XCBuildConfiguration;
290 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
291 | buildSettings = {
292 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
293 | CLANG_ENABLE_MODULES = YES;
294 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
295 | DEVELOPMENT_TEAM = 67943XU4M8;
296 | ENABLE_BITCODE = NO;
297 | INFOPLIST_FILE = Runner/Info.plist;
298 | LD_RUNPATH_SEARCH_PATHS = (
299 | "$(inherited)",
300 | "@executable_path/Frameworks",
301 | );
302 | PRODUCT_BUNDLE_IDENTIFIER = com.bahri.chatAppFlutter;
303 | PRODUCT_NAME = "$(TARGET_NAME)";
304 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
305 | SWIFT_VERSION = 5.0;
306 | VERSIONING_SYSTEM = "apple-generic";
307 | };
308 | name = Profile;
309 | };
310 | 97C147031CF9000F007C117D /* Debug */ = {
311 | isa = XCBuildConfiguration;
312 | buildSettings = {
313 | ALWAYS_SEARCH_USER_PATHS = NO;
314 | CLANG_ANALYZER_NONNULL = YES;
315 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
316 | CLANG_CXX_LIBRARY = "libc++";
317 | CLANG_ENABLE_MODULES = YES;
318 | CLANG_ENABLE_OBJC_ARC = YES;
319 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
320 | CLANG_WARN_BOOL_CONVERSION = YES;
321 | CLANG_WARN_COMMA = YES;
322 | CLANG_WARN_CONSTANT_CONVERSION = YES;
323 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
324 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
325 | CLANG_WARN_EMPTY_BODY = YES;
326 | CLANG_WARN_ENUM_CONVERSION = YES;
327 | CLANG_WARN_INFINITE_RECURSION = YES;
328 | CLANG_WARN_INT_CONVERSION = YES;
329 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
330 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
331 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
332 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
333 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
334 | CLANG_WARN_STRICT_PROTOTYPES = YES;
335 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
336 | CLANG_WARN_UNREACHABLE_CODE = YES;
337 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
338 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
339 | COPY_PHASE_STRIP = NO;
340 | DEBUG_INFORMATION_FORMAT = dwarf;
341 | ENABLE_STRICT_OBJC_MSGSEND = YES;
342 | ENABLE_TESTABILITY = YES;
343 | GCC_C_LANGUAGE_STANDARD = gnu99;
344 | GCC_DYNAMIC_NO_PIC = NO;
345 | GCC_NO_COMMON_BLOCKS = YES;
346 | GCC_OPTIMIZATION_LEVEL = 0;
347 | GCC_PREPROCESSOR_DEFINITIONS = (
348 | "DEBUG=1",
349 | "$(inherited)",
350 | );
351 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
352 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
353 | GCC_WARN_UNDECLARED_SELECTOR = YES;
354 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
355 | GCC_WARN_UNUSED_FUNCTION = YES;
356 | GCC_WARN_UNUSED_VARIABLE = YES;
357 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
358 | MTL_ENABLE_DEBUG_INFO = YES;
359 | ONLY_ACTIVE_ARCH = YES;
360 | SDKROOT = iphoneos;
361 | TARGETED_DEVICE_FAMILY = "1,2";
362 | };
363 | name = Debug;
364 | };
365 | 97C147041CF9000F007C117D /* Release */ = {
366 | isa = XCBuildConfiguration;
367 | buildSettings = {
368 | ALWAYS_SEARCH_USER_PATHS = NO;
369 | CLANG_ANALYZER_NONNULL = YES;
370 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
371 | CLANG_CXX_LIBRARY = "libc++";
372 | CLANG_ENABLE_MODULES = YES;
373 | CLANG_ENABLE_OBJC_ARC = YES;
374 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
375 | CLANG_WARN_BOOL_CONVERSION = YES;
376 | CLANG_WARN_COMMA = YES;
377 | CLANG_WARN_CONSTANT_CONVERSION = YES;
378 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
379 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
380 | CLANG_WARN_EMPTY_BODY = YES;
381 | CLANG_WARN_ENUM_CONVERSION = YES;
382 | CLANG_WARN_INFINITE_RECURSION = YES;
383 | CLANG_WARN_INT_CONVERSION = YES;
384 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
385 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
386 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
387 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
388 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
389 | CLANG_WARN_STRICT_PROTOTYPES = YES;
390 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
391 | CLANG_WARN_UNREACHABLE_CODE = YES;
392 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
393 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
394 | COPY_PHASE_STRIP = NO;
395 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
396 | ENABLE_NS_ASSERTIONS = NO;
397 | ENABLE_STRICT_OBJC_MSGSEND = YES;
398 | GCC_C_LANGUAGE_STANDARD = gnu99;
399 | GCC_NO_COMMON_BLOCKS = YES;
400 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
401 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
402 | GCC_WARN_UNDECLARED_SELECTOR = YES;
403 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
404 | GCC_WARN_UNUSED_FUNCTION = YES;
405 | GCC_WARN_UNUSED_VARIABLE = YES;
406 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
407 | MTL_ENABLE_DEBUG_INFO = NO;
408 | SDKROOT = iphoneos;
409 | SUPPORTED_PLATFORMS = iphoneos;
410 | SWIFT_COMPILATION_MODE = wholemodule;
411 | SWIFT_OPTIMIZATION_LEVEL = "-O";
412 | TARGETED_DEVICE_FAMILY = "1,2";
413 | VALIDATE_PRODUCT = YES;
414 | };
415 | name = Release;
416 | };
417 | 97C147061CF9000F007C117D /* Debug */ = {
418 | isa = XCBuildConfiguration;
419 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
420 | buildSettings = {
421 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
422 | CLANG_ENABLE_MODULES = YES;
423 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
424 | DEVELOPMENT_TEAM = 67943XU4M8;
425 | ENABLE_BITCODE = NO;
426 | INFOPLIST_FILE = Runner/Info.plist;
427 | LD_RUNPATH_SEARCH_PATHS = (
428 | "$(inherited)",
429 | "@executable_path/Frameworks",
430 | );
431 | PRODUCT_BUNDLE_IDENTIFIER = com.bahri.chatAppFlutter;
432 | PRODUCT_NAME = "$(TARGET_NAME)";
433 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
434 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
435 | SWIFT_VERSION = 5.0;
436 | VERSIONING_SYSTEM = "apple-generic";
437 | };
438 | name = Debug;
439 | };
440 | 97C147071CF9000F007C117D /* Release */ = {
441 | isa = XCBuildConfiguration;
442 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
443 | buildSettings = {
444 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
445 | CLANG_ENABLE_MODULES = YES;
446 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
447 | DEVELOPMENT_TEAM = 67943XU4M8;
448 | ENABLE_BITCODE = NO;
449 | INFOPLIST_FILE = Runner/Info.plist;
450 | LD_RUNPATH_SEARCH_PATHS = (
451 | "$(inherited)",
452 | "@executable_path/Frameworks",
453 | );
454 | PRODUCT_BUNDLE_IDENTIFIER = com.bahri.chatAppFlutter;
455 | PRODUCT_NAME = "$(TARGET_NAME)";
456 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
457 | SWIFT_VERSION = 5.0;
458 | VERSIONING_SYSTEM = "apple-generic";
459 | };
460 | name = Release;
461 | };
462 | /* End XCBuildConfiguration section */
463 |
464 | /* Begin XCConfigurationList section */
465 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
466 | isa = XCConfigurationList;
467 | buildConfigurations = (
468 | 97C147031CF9000F007C117D /* Debug */,
469 | 97C147041CF9000F007C117D /* Release */,
470 | 249021D3217E4FDB00AE95B9 /* Profile */,
471 | );
472 | defaultConfigurationIsVisible = 0;
473 | defaultConfigurationName = Release;
474 | };
475 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
476 | isa = XCConfigurationList;
477 | buildConfigurations = (
478 | 97C147061CF9000F007C117D /* Debug */,
479 | 97C147071CF9000F007C117D /* Release */,
480 | 249021D4217E4FDB00AE95B9 /* Profile */,
481 | );
482 | defaultConfigurationIsVisible = 0;
483 | defaultConfigurationName = Release;
484 | };
485 | /* End XCConfigurationList section */
486 | };
487 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
488 | }
489 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/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:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
37 |
38 |
39 |
40 |
41 |
42 |
52 |
54 |
60 |
61 |
62 |
63 |
69 |
71 |
77 |
78 |
79 |
80 |
82 |
83 |
86 |
87 |
88 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/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/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/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/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/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/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/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/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/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/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/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/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/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/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/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/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/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/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/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/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/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/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/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/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleDisplayName
8 | Chat App Flutter
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | chat_app_flutter
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | $(FLUTTER_BUILD_NUMBER)
25 | LSRequiresIPhoneOS
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIMainStoryboardFile
30 | Main
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 | UIViewControllerBasedStatusBarAppearance
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:chat_app_flutter/screens/auth_screen.dart';
2 | import 'package:chat_app_flutter/screens/chat_screen.dart';
3 | import 'package:chat_app_flutter/screens/splash_screen.dart';
4 | import 'package:firebase_auth/firebase_auth.dart';
5 | import 'package:firebase_core/firebase_core.dart';
6 | import 'package:flutter/material.dart';
7 |
8 | void main() {
9 | runApp(const MyApp());
10 | }
11 |
12 | class MyApp extends StatelessWidget {
13 | const MyApp({Key? key}) : super(key: key);
14 |
15 | // This widget is the root of your application.
16 | @override
17 | Widget build(BuildContext context) {
18 | final Future _initialization = Firebase.initializeApp();
19 | return FutureBuilder(
20 | future: _initialization,
21 | builder: (context, appSnapshot) {
22 | return MaterialApp(
23 | debugShowCheckedModeBanner: false,
24 | title: 'Flutter chat',
25 | theme: ThemeData(
26 | primarySwatch: Colors.brown,
27 | backgroundColor: Colors.grey,
28 | buttonTheme: ButtonTheme.of(context).copyWith(
29 | buttonColor: Colors.brown,
30 | textTheme: ButtonTextTheme.primary,
31 | shape: RoundedRectangleBorder(
32 | borderRadius: BorderRadius.circular(20),
33 | ),
34 | ),
35 | ),
36 | home: appSnapshot.connectionState != ConnectionState.done
37 | ? const SplashScreen()
38 | : StreamBuilder(
39 | stream: FirebaseAuth.instance.authStateChanges(),
40 | builder: (ctx, userSnapshot) {
41 | if (userSnapshot.connectionState ==
42 | ConnectionState.waiting) {
43 | return const SplashScreen();
44 | }
45 | if (userSnapshot.hasData) {
46 | return const ChatScreen();
47 | }
48 | return const AuthScreen();
49 | },
50 | ),
51 | );
52 | },
53 | );
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/lib/screens/auth_screen.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/services.dart';
8 |
9 | import '../widgets/auth/auth_form.dart';
10 |
11 | class AuthScreen extends StatefulWidget {
12 | const AuthScreen({Key? key}) : super(key: key);
13 |
14 | @override
15 | _AuthScreenState createState() => _AuthScreenState();
16 | }
17 |
18 | class _AuthScreenState extends State {
19 | final _auth = FirebaseAuth.instance;
20 | var _isLoading = false;
21 |
22 | void _submitAuthForm(
23 | String email,
24 | String password,
25 | String username,
26 | File? image,
27 | bool isLogin,
28 | BuildContext ctx,
29 | ) async {
30 | UserCredential authResult;
31 | try {
32 | setState(() {
33 | _isLoading = true;
34 | });
35 |
36 | if (isLogin) {
37 | authResult = await _auth.signInWithEmailAndPassword(
38 | email: email, password: password);
39 | } else {
40 | authResult = await _auth.createUserWithEmailAndPassword(
41 | email: email, password: password);
42 | final ref = FirebaseStorage.instance
43 | .ref()
44 | .child('user_image')
45 | .child(authResult.user!.uid + '.jpg');
46 |
47 | await ref.putFile(image!);
48 |
49 | final url = await ref.getDownloadURL();
50 |
51 | await FirebaseFirestore.instance
52 | .collection('users')
53 | .doc(authResult.user!.uid)
54 | .set({'username': username, 'email': email, 'image_url': url});
55 | }
56 | } on PlatformException catch (err) {
57 | var msg = 'an error accurred, please check your credentials.';
58 | if (err.message != null) {
59 | msg = err.message!;
60 | }
61 |
62 | ScaffoldMessenger.of(context).showSnackBar(
63 | SnackBar(
64 | content: Text(msg),
65 | backgroundColor: Theme.of(context).errorColor,
66 | ),
67 | );
68 | setState(() {
69 | _isLoading = false;
70 | });
71 | } catch (err) {
72 | print(err);
73 | setState(() {
74 | _isLoading = false;
75 | });
76 | }
77 | }
78 |
79 | @override
80 | Widget build(BuildContext context) {
81 | return Scaffold(
82 | backgroundColor: Theme.of(context).primaryColor,
83 | body: AuthForm(isLoading: _isLoading, submitFn: _submitAuthForm),
84 | );
85 | }
86 | }
87 |
--------------------------------------------------------------------------------
/lib/screens/chat_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:chat_app_flutter/widgets/chat/messages.dart';
2 | import 'package:chat_app_flutter/widgets/chat/new_message.dart';
3 | import 'package:firebase_auth/firebase_auth.dart';
4 | import 'package:flutter/material.dart';
5 |
6 | class ChatScreen extends StatefulWidget {
7 | const ChatScreen({Key? key}) : super(key: key);
8 |
9 | @override
10 | _ChatScreenState createState() => _ChatScreenState();
11 | }
12 |
13 | class _ChatScreenState extends State {
14 | @override
15 | Widget build(BuildContext context) {
16 | return Scaffold(
17 | appBar: AppBar(
18 | title: Text('Chat App Flutter'),
19 | actions: [
20 | DropdownButton(
21 | underline: Container(),
22 | icon: Icon(
23 | Icons.more_vert,
24 | color: Theme.of(context).primaryIconTheme.color,
25 | ),
26 | items: [
27 | DropdownMenuItem(
28 | child: Container(
29 | child: Row(
30 | children: const [
31 | Icon(
32 | Icons.exit_to_app,
33 | color: Colors.black,
34 | ),
35 | SizedBox(
36 | width: 8,
37 | ),
38 | Text('Logout'),
39 | ],
40 | ),
41 | ),
42 | value: 'logout',
43 | ),
44 | ],
45 | onChanged: (itemIdentifier) {
46 | if (itemIdentifier == 'logout') {
47 | FirebaseAuth.instance.signOut();
48 | }
49 | },
50 | )
51 | ],
52 | ),
53 | body: Center(
54 | child: Column(
55 | children: const [
56 | Expanded(
57 | child: Messages(),
58 | ),
59 | NewMessage(),
60 | ],
61 | ),
62 | ),
63 | );
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/lib/screens/splash_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class SplashScreen extends StatelessWidget {
4 | const SplashScreen({Key? key}) : super(key: key);
5 |
6 | @override
7 | Widget build(BuildContext context) {
8 | return Scaffold(
9 | backgroundColor: Theme.of(context).primaryColor,
10 | body: const Center(
11 | child: Text('Loading.....'),
12 | ),
13 | );
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/lib/widgets/auth/auth_form.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | import 'package:flutter/material.dart';
4 |
5 | import '../pickers/user_image_picker.dart';
6 |
7 | class AuthForm extends StatefulWidget {
8 | final bool isLoading;
9 | final void Function(
10 | String email,
11 | String password,
12 | String userName,
13 | File? image,
14 | bool isLogin,
15 | BuildContext ctx,
16 | ) submitFn;
17 |
18 | const AuthForm({
19 | Key? key,
20 | required this.isLoading,
21 | required this.submitFn,
22 | }) : super(key: key);
23 |
24 | @override
25 | _AuthFormState createState() => _AuthFormState();
26 | }
27 |
28 | class _AuthFormState extends State {
29 | final _formKey = GlobalKey();
30 | var _isLogin = true;
31 | var _userEmail = '';
32 | var _userName = '';
33 | var _userPassword = '';
34 | File? _userImageFile;
35 |
36 | void _pickedImage(File image) {
37 | _userImageFile = image;
38 | }
39 |
40 | void _trySubmit() {
41 | final isValid = _formKey.currentState?.validate();
42 | FocusScope.of(context).unfocus();
43 |
44 | // ignore: unnecessary_null_comparison
45 | if (!_isLogin && _userImageFile == null) {
46 | ScaffoldMessenger.of(context).showSnackBar(
47 | SnackBar(
48 | content: const Text('Please pick an image.'),
49 | backgroundColor: Theme.of(context).errorColor,
50 | ),
51 | );
52 | }
53 |
54 | if (isValid!) {
55 | _formKey.currentState?.save();
56 | widget.submitFn(
57 | _userEmail.trim(),
58 | _userPassword.trim(),
59 | _userName.trim(),
60 | _userImageFile,
61 | _isLogin,
62 | context,
63 | );
64 | }
65 | }
66 |
67 | @override
68 | Widget build(BuildContext context) {
69 | return Center(
70 | child: Card(
71 | margin: const EdgeInsets.all(20),
72 | child: SingleChildScrollView(
73 | child: Padding(
74 | padding: const EdgeInsets.all(16),
75 | child: Form(
76 | key: _formKey,
77 | child: Column(
78 | mainAxisSize: MainAxisSize.min,
79 | children: [
80 | if (!_isLogin) UserImagePicker(UniqueKey(), _pickedImage),
81 | TextFormField(
82 | key: const ValueKey('email'),
83 | autocorrect: false,
84 | textCapitalization: TextCapitalization.none,
85 | enableSuggestions: false,
86 | validator: (value) {
87 | if (value!.isEmpty || !value.contains('@')) {
88 | return 'Please enter a valid email address.';
89 | }
90 | return null;
91 | },
92 | keyboardType: TextInputType.emailAddress,
93 | decoration: const InputDecoration(
94 | labelText: 'Email Address',
95 | ),
96 | onSaved: (value) {
97 | _userEmail = value!;
98 | },
99 | ),
100 | if (!_isLogin)
101 | TextFormField(
102 | key: const ValueKey('username'),
103 | autocorrect: true,
104 | textCapitalization: TextCapitalization.words,
105 | enableSuggestions: false,
106 | validator: (value) {
107 | if (value!.isEmpty || value.length < 4) {
108 | return 'Please enter at least 4 characters';
109 | }
110 | return null;
111 | },
112 | decoration:
113 | const InputDecoration(labelText: 'Username'),
114 | onSaved: (value) {
115 | _userName = value!;
116 | },
117 | ),
118 | TextFormField(
119 | key: const ValueKey('Password'),
120 | validator: (value) {
121 | if (value!.isEmpty || value.length < 7) {
122 | return 'Password must be at least 7 characters long.';
123 | }
124 | return null;
125 | },
126 | decoration: const InputDecoration(labelText: 'Password'),
127 | obscureText: true,
128 | onSaved: (value) {
129 | _userPassword = value!;
130 | },
131 | ),
132 | const SizedBox(
133 | height: 12,
134 | ),
135 | if (widget.isLoading) const CircularProgressIndicator(),
136 | if (!widget.isLoading)
137 | ElevatedButton(
138 | onPressed: _trySubmit,
139 | child: Text(_isLogin ? 'Login' : 'Signup'),
140 | ),
141 | if (!widget.isLoading)
142 | TextButton(
143 | onPressed: () {
144 | setState(() {
145 | _isLogin = !_isLogin;
146 | });
147 | },
148 | child: Text(_isLogin
149 | ? 'Create new account'
150 | : 'I already have an account'),
151 | ),
152 | ],
153 | )),
154 | ),
155 | ),
156 | ),
157 | );
158 | }
159 | }
160 |
--------------------------------------------------------------------------------
/lib/widgets/chat/message_bubble.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class MessageBubble extends StatelessWidget {
4 | final String message;
5 | final String userName;
6 | final String userImage;
7 | final bool isMe;
8 |
9 | const MessageBubble({
10 | Key? key,
11 | required this.message,
12 | required this.userName,
13 | required this.userImage,
14 | required this.isMe,
15 | }) : super(key: key);
16 |
17 | @override
18 | Widget build(BuildContext context) {
19 | return Stack(
20 | children: [
21 | Row(
22 | mainAxisAlignment:
23 | isMe ? MainAxisAlignment.end : MainAxisAlignment.start,
24 | children: [
25 | Container(
26 | decoration: BoxDecoration(
27 | color: isMe ? Colors.grey[300] : Colors.grey[500],
28 | borderRadius: BorderRadius.only(
29 | topLeft: const Radius.circular(12),
30 | topRight: const Radius.circular(12),
31 | bottomLeft: !isMe
32 | ? const Radius.circular(0)
33 | : const Radius.circular(12),
34 | bottomRight: isMe
35 | ? const Radius.circular(0)
36 | : const Radius.circular(12),
37 | ),
38 | ),
39 | width: 140,
40 | padding: const EdgeInsets.symmetric(
41 | vertical: 10,
42 | horizontal: 16,
43 | ),
44 | margin: const EdgeInsets.symmetric(
45 | vertical: 16,
46 | horizontal: 8,
47 | ),
48 | child: Column(
49 | crossAxisAlignment:
50 | isMe ? CrossAxisAlignment.end : CrossAxisAlignment.start,
51 | children: [
52 | Text(
53 | userName,
54 | style: const TextStyle(
55 | fontWeight: FontWeight.bold,
56 | color: Colors.black,
57 | ),
58 | ),
59 | Text(
60 | message,
61 | style: const TextStyle(
62 | color: Colors.black,
63 | ),
64 | ),
65 | ],
66 | ),
67 | )
68 | ],
69 | ),
70 | Positioned(
71 | top: 0,
72 | left: isMe ? null : 120,
73 | right: isMe ? 120 : null,
74 | child: CircleAvatar(
75 | backgroundImage: NetworkImage(
76 | userImage,
77 | ),
78 | ),
79 | ),
80 | ],
81 | clipBehavior: Clip.none,
82 | );
83 | }
84 | }
85 |
--------------------------------------------------------------------------------
/lib/widgets/chat/messages.dart:
--------------------------------------------------------------------------------
1 | import 'package:chat_app_flutter/widgets/chat/message_bubble.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 | class Messages extends StatelessWidget {
7 | const Messages({Key? key}) : super(key: key);
8 |
9 | @override
10 | Widget build(BuildContext context) {
11 | final user = FirebaseAuth.instance.currentUser;
12 | return StreamBuilder(
13 | stream: FirebaseFirestore.instance
14 | .collection('chat')
15 | .orderBy('createdAt', descending: true)
16 | .snapshots(),
17 | builder: (ctx, AsyncSnapshot chatSnapshot) {
18 | if (chatSnapshot.connectionState == ConnectionState.waiting) {
19 | return const Center(
20 | child: CircularProgressIndicator(),
21 | );
22 | }
23 | final chatDocs = chatSnapshot.data!.docs;
24 | return ListView.builder(
25 | physics: const AlwaysScrollableScrollPhysics(
26 | parent: BouncingScrollPhysics()),
27 | reverse: true,
28 | itemCount: chatDocs.length,
29 | itemBuilder: (ctx, index) {
30 | return MessageBubble(
31 | key: ValueKey(chatDocs[index].id),
32 | message: (chatDocs[index].data()! as Map)['text'],
33 | userName: (chatDocs[index].data()! as Map)['username'],
34 | userImage: (chatDocs[index].data()! as Map)['userImage'],
35 | isMe: (chatDocs[index].data()! as Map)['userId'] == user!.uid,
36 | );
37 | },
38 | );
39 | },
40 | );
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/lib/widgets/chat/new_message.dart:
--------------------------------------------------------------------------------
1 | import 'package:cloud_firestore/cloud_firestore.dart';
2 | import 'package:firebase_auth/firebase_auth.dart';
3 | import 'package:flutter/material.dart';
4 |
5 | class NewMessage extends StatefulWidget {
6 | const NewMessage({Key? key}) : super(key: key);
7 |
8 | @override
9 | _NewMessageState createState() => _NewMessageState();
10 | }
11 |
12 | class _NewMessageState extends State {
13 | final _textController = TextEditingController();
14 | var _enteredMessage = '';
15 |
16 | void _sendMessage() async {
17 | FocusScope.of(context).unfocus();
18 | final user = FirebaseAuth.instance.currentUser;
19 | final userData = await FirebaseFirestore.instance
20 | .collection('users')
21 | .doc(user!.uid)
22 | .get();
23 | FirebaseFirestore.instance.collection('chat').add({
24 | 'text': _enteredMessage,
25 | 'createdAt': Timestamp.now(),
26 | 'userId': user.uid,
27 | 'username': userData.data()!['username'],
28 | 'userImage': userData.data()!['image_url'],
29 | });
30 | _textController.clear();
31 | }
32 |
33 | @override
34 | Widget build(BuildContext context) {
35 | return Container(
36 | margin: const EdgeInsets.only(top: 8),
37 | padding: const EdgeInsets.all(8),
38 | child: Row(
39 | children: [
40 | Expanded(
41 | child: TextField(
42 | textCapitalization: TextCapitalization.sentences,
43 | autocorrect: true,
44 | enableSuggestions: true,
45 | decoration:
46 | const InputDecoration(labelText: 'Send a message ...'),
47 | onChanged: (value) {
48 | setState(() {
49 | _enteredMessage = value;
50 | });
51 | },
52 | controller: _textController,
53 | ),
54 | ),
55 | IconButton(
56 | onPressed: _enteredMessage.trim().isEmpty ? null : _sendMessage,
57 | icon: const Icon(Icons.send),
58 | ),
59 | ],
60 | ),
61 | );
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/lib/widgets/pickers/user_image_picker.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | import 'package:flutter/material.dart';
4 | import 'package:image_picker/image_picker.dart';
5 |
6 | class UserImagePicker extends StatefulWidget {
7 | final void Function(File pickedImage) imagePickFn;
8 |
9 | const UserImagePicker(
10 | Key? key,
11 | this.imagePickFn,
12 | ) : super(key: key);
13 |
14 | @override
15 | _UserImagePickerState createState() => _UserImagePickerState();
16 | }
17 |
18 | class _UserImagePickerState extends State {
19 | File? _pickedImage;
20 |
21 | void _pickImage() async {
22 | final pickedImageFile = await ImagePicker().pickImage(
23 | source: ImageSource.camera,
24 | imageQuality: 50,
25 | maxWidth: 150,
26 | );
27 | setState(() {
28 | _pickedImage = File(pickedImageFile!.path);
29 | });
30 | widget.imagePickFn(File(pickedImageFile!.path));
31 | }
32 |
33 | @override
34 | Widget build(BuildContext context) {
35 | return Column(
36 | children: [
37 | CircleAvatar(
38 | radius: 40,
39 | backgroundColor: Colors.grey,
40 | backgroundImage:
41 | _pickedImage != null ? FileImage(_pickedImage!) : null,
42 | ),
43 | TextButton.icon(
44 | onPressed: _pickImage,
45 | icon: const Icon(Icons.image),
46 | label: const Text('Add Image'),
47 | ),
48 | ],
49 | );
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | async:
5 | dependency: transitive
6 | description:
7 | name: async
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "2.9.0"
11 | boolean_selector:
12 | dependency: transitive
13 | description:
14 | name: boolean_selector
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "2.1.0"
18 | characters:
19 | dependency: transitive
20 | description:
21 | name: characters
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "1.2.1"
25 | charcode:
26 | dependency: transitive
27 | description:
28 | name: charcode
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.3.1"
32 | clock:
33 | dependency: transitive
34 | description:
35 | name: clock
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "1.1.1"
39 | cloud_firestore:
40 | dependency: "direct main"
41 | description:
42 | name: cloud_firestore
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "3.1.6"
46 | cloud_firestore_platform_interface:
47 | dependency: transitive
48 | description:
49 | name: cloud_firestore_platform_interface
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "5.4.11"
53 | cloud_firestore_web:
54 | dependency: transitive
55 | description:
56 | name: cloud_firestore_web
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "2.6.6"
60 | collection:
61 | dependency: transitive
62 | description:
63 | name: collection
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "1.16.0"
67 | cross_file:
68 | dependency: transitive
69 | description:
70 | name: cross_file
71 | url: "https://pub.dartlang.org"
72 | source: hosted
73 | version: "0.3.2"
74 | cupertino_icons:
75 | dependency: "direct main"
76 | description:
77 | name: cupertino_icons
78 | url: "https://pub.dartlang.org"
79 | source: hosted
80 | version: "1.0.4"
81 | fake_async:
82 | dependency: transitive
83 | description:
84 | name: fake_async
85 | url: "https://pub.dartlang.org"
86 | source: hosted
87 | version: "1.3.1"
88 | firebase_auth:
89 | dependency: "direct main"
90 | description:
91 | name: firebase_auth
92 | url: "https://pub.dartlang.org"
93 | source: hosted
94 | version: "3.3.5"
95 | firebase_auth_platform_interface:
96 | dependency: transitive
97 | description:
98 | name: firebase_auth_platform_interface
99 | url: "https://pub.dartlang.org"
100 | source: hosted
101 | version: "6.1.10"
102 | firebase_auth_web:
103 | dependency: transitive
104 | description:
105 | name: firebase_auth_web
106 | url: "https://pub.dartlang.org"
107 | source: hosted
108 | version: "3.3.6"
109 | firebase_core:
110 | dependency: "direct main"
111 | description:
112 | name: firebase_core
113 | url: "https://pub.dartlang.org"
114 | source: hosted
115 | version: "1.11.0"
116 | firebase_core_platform_interface:
117 | dependency: transitive
118 | description:
119 | name: firebase_core_platform_interface
120 | url: "https://pub.dartlang.org"
121 | source: hosted
122 | version: "4.2.3"
123 | firebase_core_web:
124 | dependency: transitive
125 | description:
126 | name: firebase_core_web
127 | url: "https://pub.dartlang.org"
128 | source: hosted
129 | version: "1.5.3"
130 | firebase_messaging:
131 | dependency: "direct main"
132 | description:
133 | name: firebase_messaging
134 | url: "https://pub.dartlang.org"
135 | source: hosted
136 | version: "11.2.5"
137 | firebase_messaging_platform_interface:
138 | dependency: transitive
139 | description:
140 | name: firebase_messaging_platform_interface
141 | url: "https://pub.dartlang.org"
142 | source: hosted
143 | version: "3.1.5"
144 | firebase_messaging_web:
145 | dependency: transitive
146 | description:
147 | name: firebase_messaging_web
148 | url: "https://pub.dartlang.org"
149 | source: hosted
150 | version: "2.2.6"
151 | firebase_storage:
152 | dependency: "direct main"
153 | description:
154 | name: firebase_storage
155 | url: "https://pub.dartlang.org"
156 | source: hosted
157 | version: "10.2.5"
158 | firebase_storage_platform_interface:
159 | dependency: transitive
160 | description:
161 | name: firebase_storage_platform_interface
162 | url: "https://pub.dartlang.org"
163 | source: hosted
164 | version: "4.0.12"
165 | firebase_storage_web:
166 | dependency: transitive
167 | description:
168 | name: firebase_storage_web
169 | url: "https://pub.dartlang.org"
170 | source: hosted
171 | version: "3.2.6"
172 | flutter:
173 | dependency: "direct main"
174 | description: flutter
175 | source: sdk
176 | version: "0.0.0"
177 | flutter_lints:
178 | dependency: "direct dev"
179 | description:
180 | name: flutter_lints
181 | url: "https://pub.dartlang.org"
182 | source: hosted
183 | version: "1.0.4"
184 | flutter_plugin_android_lifecycle:
185 | dependency: transitive
186 | description:
187 | name: flutter_plugin_android_lifecycle
188 | url: "https://pub.dartlang.org"
189 | source: hosted
190 | version: "2.0.5"
191 | flutter_test:
192 | dependency: "direct dev"
193 | description: flutter
194 | source: sdk
195 | version: "0.0.0"
196 | flutter_web_plugins:
197 | dependency: transitive
198 | description: flutter
199 | source: sdk
200 | version: "0.0.0"
201 | http:
202 | dependency: transitive
203 | description:
204 | name: http
205 | url: "https://pub.dartlang.org"
206 | source: hosted
207 | version: "0.13.4"
208 | http_parser:
209 | dependency: transitive
210 | description:
211 | name: http_parser
212 | url: "https://pub.dartlang.org"
213 | source: hosted
214 | version: "4.0.0"
215 | image_picker:
216 | dependency: "direct main"
217 | description:
218 | name: image_picker
219 | url: "https://pub.dartlang.org"
220 | source: hosted
221 | version: "0.8.4+4"
222 | image_picker_for_web:
223 | dependency: transitive
224 | description:
225 | name: image_picker_for_web
226 | url: "https://pub.dartlang.org"
227 | source: hosted
228 | version: "2.1.5"
229 | image_picker_platform_interface:
230 | dependency: transitive
231 | description:
232 | name: image_picker_platform_interface
233 | url: "https://pub.dartlang.org"
234 | source: hosted
235 | version: "2.4.3"
236 | intl:
237 | dependency: transitive
238 | description:
239 | name: intl
240 | url: "https://pub.dartlang.org"
241 | source: hosted
242 | version: "0.17.0"
243 | js:
244 | dependency: transitive
245 | description:
246 | name: js
247 | url: "https://pub.dartlang.org"
248 | source: hosted
249 | version: "0.6.4"
250 | lints:
251 | dependency: transitive
252 | description:
253 | name: lints
254 | url: "https://pub.dartlang.org"
255 | source: hosted
256 | version: "1.0.1"
257 | matcher:
258 | dependency: transitive
259 | description:
260 | name: matcher
261 | url: "https://pub.dartlang.org"
262 | source: hosted
263 | version: "0.12.12"
264 | material_color_utilities:
265 | dependency: transitive
266 | description:
267 | name: material_color_utilities
268 | url: "https://pub.dartlang.org"
269 | source: hosted
270 | version: "0.1.5"
271 | meta:
272 | dependency: transitive
273 | description:
274 | name: meta
275 | url: "https://pub.dartlang.org"
276 | source: hosted
277 | version: "1.8.0"
278 | path:
279 | dependency: transitive
280 | description:
281 | name: path
282 | url: "https://pub.dartlang.org"
283 | source: hosted
284 | version: "1.8.2"
285 | pedantic:
286 | dependency: transitive
287 | description:
288 | name: pedantic
289 | url: "https://pub.dartlang.org"
290 | source: hosted
291 | version: "1.11.1"
292 | plugin_platform_interface:
293 | dependency: transitive
294 | description:
295 | name: plugin_platform_interface
296 | url: "https://pub.dartlang.org"
297 | source: hosted
298 | version: "2.1.2"
299 | sky_engine:
300 | dependency: transitive
301 | description: flutter
302 | source: sdk
303 | version: "0.0.99"
304 | source_span:
305 | dependency: transitive
306 | description:
307 | name: source_span
308 | url: "https://pub.dartlang.org"
309 | source: hosted
310 | version: "1.9.0"
311 | stack_trace:
312 | dependency: transitive
313 | description:
314 | name: stack_trace
315 | url: "https://pub.dartlang.org"
316 | source: hosted
317 | version: "1.10.0"
318 | stream_channel:
319 | dependency: transitive
320 | description:
321 | name: stream_channel
322 | url: "https://pub.dartlang.org"
323 | source: hosted
324 | version: "2.1.0"
325 | string_scanner:
326 | dependency: transitive
327 | description:
328 | name: string_scanner
329 | url: "https://pub.dartlang.org"
330 | source: hosted
331 | version: "1.1.1"
332 | term_glyph:
333 | dependency: transitive
334 | description:
335 | name: term_glyph
336 | url: "https://pub.dartlang.org"
337 | source: hosted
338 | version: "1.2.1"
339 | test_api:
340 | dependency: transitive
341 | description:
342 | name: test_api
343 | url: "https://pub.dartlang.org"
344 | source: hosted
345 | version: "0.4.12"
346 | typed_data:
347 | dependency: transitive
348 | description:
349 | name: typed_data
350 | url: "https://pub.dartlang.org"
351 | source: hosted
352 | version: "1.3.0"
353 | vector_math:
354 | dependency: transitive
355 | description:
356 | name: vector_math
357 | url: "https://pub.dartlang.org"
358 | source: hosted
359 | version: "2.1.2"
360 | sdks:
361 | dart: ">=2.17.0-0 <3.0.0"
362 | flutter: ">=2.5.0"
363 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: chat_app_flutter
2 | description: A new Flutter project.
3 |
4 | # The following line prevents the package from being accidentally published to
5 | # pub.dev using `flutter 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 specify other packages that your package needs in order to work.
24 | # To automatically upgrade your package dependencies to the latest versions
25 | # consider running `flutter pub upgrade --major-versions`. Alternatively,
26 | # dependencies can be manually updated by changing the version numbers below to
27 | # the latest version available on pub.dev. To see which dependencies have newer
28 | # versions available, run `flutter pub outdated`.
29 | dependencies:
30 | flutter:
31 | sdk: flutter
32 | cloud_firestore: ^3.1.6
33 | firebase_core: ^1.11.0
34 | firebase_auth: ^3.3.5
35 | firebase_messaging: ^11.2.5
36 | firebase_storage: ^10.2.5
37 | image_picker: ^0.8.4+4
38 |
39 |
40 | # The following adds the Cupertino Icons font to your application.
41 | # Use with the CupertinoIcons class for iOS style icons.
42 | cupertino_icons: ^1.0.2
43 |
44 | dev_dependencies:
45 | flutter_test:
46 | sdk: flutter
47 |
48 | # The "flutter_lints" package below contains a set of recommended lints to
49 | # encourage good coding practices. The lint set provided by the package is
50 | # activated in the `analysis_options.yaml` file located at the root of your
51 | # package. See that file for information about deactivating specific lint
52 | # rules and activating additional ones.
53 | flutter_lints: ^1.0.0
54 |
55 | # For information on the generic Dart part of this file, see the
56 | # following page: https://dart.dev/tools/pub/pubspec
57 |
58 | # The following section is specific to Flutter.
59 | flutter:
60 |
61 | # The following line ensures that the Material Icons font is
62 | # included with your application, so that you can use the icons in
63 | # the material Icons class.
64 | uses-material-design: true
65 |
66 | # To add assets to your application, add an assets section, like this:
67 | # assets:
68 | # - images/a_dot_burr.jpeg
69 | # - images/a_dot_ham.jpeg
70 |
71 | # An image asset can refer to one or more resolution-specific "variants", see
72 | # https://flutter.dev/assets-and-images/#resolution-aware.
73 |
74 | # For details regarding adding assets from package dependencies, see
75 | # https://flutter.dev/assets-and-images/#from-packages
76 |
77 | # To add custom fonts to your application, add a fonts section here,
78 | # in this "flutter" section. Each entry in this list should have a
79 | # "family" key with the font family name, and a "fonts" key with a
80 | # list giving the asset and other descriptors for the font. For
81 | # example:
82 | # fonts:
83 | # - family: Schyler
84 | # fonts:
85 | # - asset: fonts/Schyler-Regular.ttf
86 | # - asset: fonts/Schyler-Italic.ttf
87 | # style: italic
88 | # - family: Trajan Pro
89 | # fonts:
90 | # - asset: fonts/TrajanPro.ttf
91 | # - asset: fonts/TrajanPro_Bold.ttf
92 | # weight: 700
93 | #
94 | # For details regarding fonts from package dependencies,
95 | # see https://flutter.dev/custom-fonts/#from-packages
96 |
--------------------------------------------------------------------------------
/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_flutter/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(const MyApp());
17 |
18 | // Verify that our counter starts at 0.
19 | expect(find.text('0'), findsOneWidget);
20 | expect(find.text('1'), findsNothing);
21 |
22 | // Tap the '+' icon and trigger a frame.
23 | await tester.tap(find.byIcon(Icons.add));
24 | await tester.pump();
25 |
26 | // Verify that our counter has incremented.
27 | expect(find.text('0'), findsNothing);
28 | expect(find.text('1'), findsOneWidget);
29 | });
30 | }
31 |
--------------------------------------------------------------------------------
/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/web/favicon.png
--------------------------------------------------------------------------------
/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/web/icons/Icon-maskable-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/web/icons/Icon-maskable-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-maskable-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bahrie127/chat_app_flutter/d0e4530d11825ea7b52ec78262999196a3ae8b13/web/icons/Icon-maskable-512.png
--------------------------------------------------------------------------------
/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 | chat_app_flutter
33 |
34 |
35 |
36 |
39 |
103 |
104 |
105 |
--------------------------------------------------------------------------------
/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "chat_app_flutter",
3 | "short_name": "chat_app_flutter",
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 | "src": "icons/Icon-maskable-192.png",
24 | "sizes": "192x192",
25 | "type": "image/png",
26 | "purpose": "maskable"
27 | },
28 | {
29 | "src": "icons/Icon-maskable-512.png",
30 | "sizes": "512x512",
31 | "type": "image/png",
32 | "purpose": "maskable"
33 | }
34 | ]
35 | }
36 |
--------------------------------------------------------------------------------