├── .gitignore
├── .metadata
├── LICENSE
├── README.md
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ ├── google-services.json
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── ic_launcher-playstore.png
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── youtubetutorial
│ │ │ │ └── generation
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-v21
│ │ │ └── launch_background.xml
│ │ │ ├── drawable
│ │ │ ├── app_icon.png
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-anydpi-v26
│ │ │ ├── ic_launcher.xml
│ │ │ └── ic_launcher_round.xml
│ │ │ ├── mipmap-hdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_foreground.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-mdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_foreground.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xhdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_foreground.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_foreground.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_foreground.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── values-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ ├── ic_launcher_background.xml
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── settings.gradle
└── settings_aar.gradle
├── assets
├── images
│ ├── fbook.png
│ └── google.png
└── logo
│ └── logo.png
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── 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
├── Backend
│ ├── firebase
│ │ ├── Auth
│ │ │ ├── email_and_pwd_auth.dart
│ │ │ ├── fb_auth.dart
│ │ │ └── google_auth.dart
│ │ └── OnlineDatabaseManagement
│ │ │ └── cloud_data_management.dart
│ └── sqlite_management
│ │ └── local_database_management.dart
├── FrontEnd
│ ├── AuthUI
│ │ ├── common_auth_methods.dart
│ │ ├── log_in.dart
│ │ └── sign_up.dart
│ ├── MainScreens
│ │ ├── chatAndActivityScreen.dart
│ │ ├── general_connection_section.dart
│ │ ├── home_page.dart
│ │ ├── logs_collection.dart
│ │ └── main_screen.dart
│ ├── MenuScreens
│ │ ├── SupportScreens
│ │ │ ├── mail_content_maker.dart
│ │ │ └── support_screen.dart
│ │ ├── about_screen.dart
│ │ ├── profile_screen.dart
│ │ └── settings_screen.dart
│ ├── NewUserEntry
│ │ └── new_user_entry.dart
│ ├── Preview
│ │ └── image_preview_screen.dart
│ ├── Services
│ │ ├── ChatManagement
│ │ │ └── chat_screen.dart
│ │ └── search_screen.dart
│ └── model
│ │ └── previous_message_structure.dart
├── Global_Uses
│ ├── constants.dart
│ ├── enum_generation.dart
│ ├── foreground_receive_notificaion_management.dart
│ ├── native_calling.dart
│ ├── reg_exp.dart
│ ├── send_notification_management.dart
│ └── show_toast_message.dart
└── main.dart
└── pubspec.yaml
/.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 | ## important
35 | pubspec.lock
36 |
37 | # Web related
38 | lib/generated_plugin_registrant.dart
39 |
40 | # Symbolication related
41 | app.*.symbols
42 |
43 | # Obfuscation related
44 | app.*.map.json
45 |
46 | # Android Studio will place build artifacts here
47 | /android/app/debug
48 | /android/app/profile
49 | /android/app/release
50 |
--------------------------------------------------------------------------------
/.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: f4abaa0735eba4dfd8f33f73363911d63931fe03
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ###
💘 Generation Tutorial 💘
2 |
3 | ### ⌛ This is the project source code of my youtube video tutorial of ⌛
4 | ### 💚 Flutter Social Media App Tutorial 2021 💚
5 |
6 | #### 📌 Tutorial is available at: https://youtube.com/playlist?list=PLn4o1Gy6eg752X6ZaJ7UL55kLJ235laOg
7 |
8 | 🙏 Show 💕 by Starring this Repo 🙏
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 | sourceSets {
33 | main.java.srcDirs += 'src/main/kotlin'
34 | }
35 |
36 | defaultConfig {
37 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
38 | applicationId "com.youtubetutorial.generation"
39 | minSdkVersion 23
40 | targetSdkVersion 31
41 | versionCode flutterVersionCode.toInteger()
42 | versionName flutterVersionName
43 | }
44 |
45 | buildTypes {
46 | release {
47 | // TODO: Add your own signing config for the release build.
48 | // Signing with the debug keys for now, so `flutter run --release` works.
49 | signingConfig signingConfigs.debug
50 | }
51 | }
52 | }
53 |
54 | flutter {
55 | source '../..'
56 | }
57 |
58 | dependencies {
59 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
60 | implementation platform('com.google.firebase:firebase-bom:28.3.0')
61 | implementation 'com.google.firebase:firebase-analytics-ktx'
62 | implementation 'com.google.firebase:firebase-messaging:22.0.0'
63 | }
64 |
--------------------------------------------------------------------------------
/android/app/google-services.json:
--------------------------------------------------------------------------------
1 | {
2 | "project_info": {
3 | "project_number": "865289032877",
4 | "project_id": "generation-33602",
5 | "storage_bucket": "generation-33602.appspot.com"
6 | },
7 | "client": [
8 | {
9 | "client_info": {
10 | "mobilesdk_app_id": "1:865289032877:android:c3b327618803feaf2ca224",
11 | "android_client_info": {
12 | "package_name": "com.youtubetutorial.generation"
13 | }
14 | },
15 | "oauth_client": [
16 | {
17 | "client_id": "865289032877-tn4f6okv8vvq6cv4ih0501ahq3nthr29.apps.googleusercontent.com",
18 | "client_type": 1,
19 | "android_info": {
20 | "package_name": "com.youtubetutorial.generation",
21 | "certificate_hash": "026591a5ef09087a8f36e0991636e4bd40bfd9f2"
22 | }
23 | },
24 | {
25 | "client_id": "865289032877-jk58nmn4cok4a0tccccuikdrq6113beo.apps.googleusercontent.com",
26 | "client_type": 3
27 | }
28 | ],
29 | "api_key": [
30 | {
31 | "current_key": "AIzaSyAym7X970mgW6LLvKYufnkzOSNj-WfV8iw"
32 | }
33 | ],
34 | "services": {
35 | "appinvite_service": {
36 | "other_platform_oauth_client": [
37 | {
38 | "client_id": "865289032877-jk58nmn4cok4a0tccccuikdrq6113beo.apps.googleusercontent.com",
39 | "client_type": 3
40 | }
41 | ]
42 | }
43 | }
44 | }
45 | ],
46 | "configuration_version": "1"
47 | }
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
17 |
24 |
28 |
32 |
37 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
53 |
56 |
57 |
59 |
60 |
61 |
63 |
64 |
68 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
--------------------------------------------------------------------------------
/android/app/src/main/ic_launcher-playstore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/android/app/src/main/ic_launcher-playstore.png
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/youtubetutorial/generation/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.youtubetutorial.generation
2 |
3 | import android.content.Context
4 | import android.database.Cursor
5 | import android.graphics.Bitmap
6 | import android.media.ThumbnailUtils
7 | import android.net.Uri
8 | import android.os.Build
9 | import android.provider.MediaStore
10 | import android.util.Log
11 | import android.view.WindowManager
12 | import androidx.annotation.NonNull
13 | import androidx.annotation.RequiresApi
14 | import io.flutter.embedding.android.FlutterActivity
15 | import io.flutter.embedding.engine.FlutterEngine
16 | import io.flutter.plugin.common.MethodChannel
17 | import java.io.File
18 | import java.time.LocalDateTime
19 |
20 | class MainActivity : FlutterActivity() {
21 | private val CHANNEL = "com.youtubetutorial.generation/nativeCallBack"
22 |
23 | companion object {
24 | val TAG: String = MainActivity::class.java.simpleName
25 | }
26 |
27 | @RequiresApi(Build.VERSION_CODES.O)
28 | override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
29 | super.configureFlutterEngine(flutterEngine)
30 |
31 | // // for Screenshot Restriction
32 | // getWindow().setFlags(
33 | // WindowManager.LayoutParams.FLAG_SECURE,
34 | // WindowManager.LayoutParams.FLAG_SECURE
35 | // )
36 |
37 | MethodChannel(
38 | flutterEngine.dartExecutor.binaryMessenger,
39 | CHANNEL
40 | ).setMethodCallHandler { call, result ->
41 | if (call.method == "makeVideoThumbnail") {
42 | val takeVideoPath: String? = call.argument("videoPath")
43 |
44 | takeVideoPath?.let {
45 | result.success(makeVideoThumbnail(takeVideoPath.toString()))
46 | }
47 |
48 | } else {
49 | result.notImplemented()
50 | }
51 | }
52 | }
53 |
54 | @RequiresApi(Build.VERSION_CODES.O)
55 | private fun makeVideoThumbnail(videoPath: String): String {
56 | val bitmap: Bitmap? = ThumbnailUtils.createVideoThumbnail(
57 | File(videoPath).path.toString(),
58 | MediaStore.Video.Thumbnails.MICRO_KIND
59 | )
60 |
61 |
62 | bitmap?.let {
63 | // CALL THIS METHOD TO GET THE URI FROM THE BITMAP
64 | val tempUri: Uri? = getImageUri(applicationContext, bitmap)
65 |
66 | // CALL THIS METHOD TO GET THE ACTUAL PATH
67 | val finalFile = File(getRealPathFromURI(tempUri))
68 |
69 | return finalFile.absolutePath;
70 | }
71 |
72 | return "";
73 | }
74 |
75 | /// Bitmap to Uri
76 | @RequiresApi(Build.VERSION_CODES.O)
77 | private fun getImageUri(inContext: Context, bitmapImage: Bitmap): Uri? {
78 | val path = MediaStore.Images.Media.insertImage(
79 | inContext.contentResolver,
80 | bitmapImage,
81 | LocalDateTime.now().toString(),
82 | null
83 | )
84 |
85 | return Uri.parse(path)
86 | }
87 |
88 | /// Uri to Actual Location Path
89 | private fun getRealPathFromURI(uri: Uri?): String {
90 | var path = ""
91 |
92 | try {
93 | uri?.let {
94 | contentResolver?.let {
95 | val cursor: Cursor? = contentResolver.query(uri, null, null, null, null)
96 |
97 | cursor?.let {
98 | cursor.moveToFirst()
99 | val index: Int = cursor.getColumnIndex(MediaStore.Images.ImageColumns.DATA)
100 | path = cursor.getString(index)
101 | cursor.close()
102 | }
103 | }
104 | }
105 | } catch (e: java.lang.Exception) {
106 | Log.i(TAG, "Error in Get Real Path From Uri: $uri")
107 |
108 |
109 | }
110 | return path
111 |
112 | }
113 | }
114 |
--------------------------------------------------------------------------------
/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/app_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/android/app/src/main/res/drawable/app_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFFFFF
4 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Generation
4 |
5 | 864013677542534
6 | fb864013677542534
7 |
--------------------------------------------------------------------------------
/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.31'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:4.1.3'
10 | classpath 'com.google.gms:google-services:4.3.8'
11 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | google()
18 | jcenter()
19 | }
20 | }
21 |
22 | rootProject.buildDir = '../build'
23 | subprojects {
24 | project.buildDir = "${rootProject.buildDir}/${project.name}"
25 | project.evaluationDependsOn(':app')
26 | }
27 |
28 | task clean(type: Delete) {
29 | delete rootProject.buildDir
30 | }
31 |
--------------------------------------------------------------------------------
/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-6.7-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 |
--------------------------------------------------------------------------------
/android/settings_aar.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/assets/images/fbook.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/assets/images/fbook.png
--------------------------------------------------------------------------------
/assets/images/google.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/assets/images/google.png
--------------------------------------------------------------------------------
/assets/logo/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/assets/logo/logo.png
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/ephemeral/
22 | Flutter/app.flx
23 | Flutter/app.zip
24 | Flutter/flutter_assets/
25 | Flutter/flutter_export_environment.sh
26 | ServiceDefinitions.json
27 | Runner/GeneratedPluginRegistrant.*
28 |
29 | # Exceptions to above rules.
30 | !default.mode1v3
31 | !default.mode2v3
32 | !default.pbxuser
33 | !default.perspectivev3
34 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/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 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.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/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/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/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/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/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/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/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/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/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/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/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/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/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/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/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/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/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/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/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/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/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/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/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/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/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/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/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/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/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/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/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SamarpanCoder2002/Generation-Chat-App-Tutorial/9e2011285bdcb791b14c27453f589ee87fa20123/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | generation
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/lib/Backend/firebase/Auth/email_and_pwd_auth.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_auth/firebase_auth.dart';
2 | import 'package:generation/Global_Uses/enum_generation.dart';
3 |
4 | class EmailAndPasswordAuth {
5 | Future signUpAuth(
6 | {required String email, required String pwd}) async {
7 | try {
8 | final UserCredential userCredential = await FirebaseAuth.instance
9 | .createUserWithEmailAndPassword(email: email, password: pwd);
10 | if (userCredential.user!.email != null) {
11 | await userCredential.user!.sendEmailVerification();
12 | return EmailSignUpResults.SignUpCompleted;
13 | }
14 | return EmailSignUpResults.SignUpNotCompleted;
15 | } catch (e) {
16 | print('Error in Email and Password Sign Up: ${e.toString()}');
17 | return EmailSignUpResults.EmailAlreadyPresent;
18 | }
19 | }
20 |
21 | Future signInWithEmailAndPassword(
22 | {required String email, required String pwd}) async {
23 | try {
24 | final UserCredential userCredential = await FirebaseAuth.instance
25 | .signInWithEmailAndPassword(email: email, password: pwd);
26 | if (userCredential.user!.emailVerified)
27 | return EmailSignInResults.SignInCompleted;
28 | else{
29 | final bool logOutResponse = await logOut();
30 | if(logOutResponse)
31 | return EmailSignInResults.EmailNotVerified;
32 | return EmailSignInResults.UnexpectedError;
33 | }
34 | } catch (e) {
35 | print(
36 | 'Error in Sign In With Email And Password Authentication: ${e.toString()}');
37 | return EmailSignInResults.EmailOrPasswordInvalid;
38 | }
39 | }
40 |
41 | Future logOut() async{
42 | try{
43 | await FirebaseAuth.instance.signOut();
44 | return true;
45 | }catch(e){
46 | return false;
47 | }
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/lib/Backend/firebase/Auth/fb_auth.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_facebook_auth/flutter_facebook_auth.dart';
2 | import 'package:firebase_auth/firebase_auth.dart';
3 | import 'package:generation/Global_Uses/enum_generation.dart';
4 |
5 | class FacebookAuthentication {
6 | final FacebookAuth _facebookLogin = FacebookAuth.instance;
7 |
8 | Future facebookLogIn() async {
9 | try {
10 | if (await _facebookLogin.accessToken == null) {
11 | final LoginResult _fbLogInResult = await _facebookLogin.login();
12 |
13 | if (_fbLogInResult.status == LoginStatus.success) {
14 | final OAuthCredential _oAuthCredential =
15 | FacebookAuthProvider.credential(
16 | _fbLogInResult.accessToken!.token);
17 |
18 | if (FirebaseAuth.instance.currentUser != null)
19 | FirebaseAuth.instance.signOut();
20 |
21 | final UserCredential fbUser = await FirebaseAuth.instance
22 | .signInWithCredential(_oAuthCredential);
23 |
24 | print(
25 | 'Fb Log In Info: ${fbUser.user} ${fbUser.additionalUserInfo}');
26 |
27 | return FBSignInResults.SignInCompleted;
28 | }
29 | return FBSignInResults.UnExpectedError;
30 | } else {
31 | print('Already Fb Logged In');
32 | await logOut();
33 | return FBSignInResults.AlreadySignedIn;
34 | }
35 | } catch (e) {
36 | print('Facebook Log In Error: ${e.toString()}');
37 | return FBSignInResults.UnExpectedError;
38 | }
39 | }
40 |
41 | Future logOut() async {
42 | try {
43 | print('Facebook Log Out');
44 | if (await _facebookLogin.accessToken != null) {
45 | await _facebookLogin.logOut();
46 | await FirebaseAuth.instance.signOut();
47 | return true;
48 | }
49 | return false;
50 | } catch (e) {
51 | print('Facebook Log out Error: ${e.toString()}');
52 | return false;
53 | }
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/lib/Backend/firebase/Auth/google_auth.dart:
--------------------------------------------------------------------------------
1 | import 'package:generation/Global_Uses/enum_generation.dart';
2 | import 'package:google_sign_in/google_sign_in.dart';
3 | import 'package:firebase_auth/firebase_auth.dart';
4 |
5 | class GoogleAuthentication {
6 | final GoogleSignIn _googleSignIn = GoogleSignIn();
7 |
8 | Future signInWithGoogle() async {
9 | try {
10 | if (await this._googleSignIn.isSignedIn())
11 | return GoogleSignInResults.AlreadySignedIn;
12 | else {
13 | final GoogleSignInAccount? _googleSignInAccount =
14 | await this._googleSignIn.signIn();
15 |
16 |
17 | if (_googleSignInAccount == null)
18 | return GoogleSignInResults.SignInNotCompleted;
19 | else {
20 |
21 | final GoogleSignInAuthentication _googleSignInAuth =
22 | await _googleSignInAccount.authentication;
23 |
24 | final OAuthCredential _oAuthCredential =
25 | GoogleAuthProvider.credential(
26 | accessToken: _googleSignInAuth.accessToken,
27 | idToken: _googleSignInAuth.idToken,
28 | );
29 |
30 | final UserCredential userCredential = await FirebaseAuth.instance
31 | .signInWithCredential(_oAuthCredential);
32 |
33 | if (userCredential.user!.email != null) {
34 | print('Google Sign In Completed');
35 | return GoogleSignInResults.SignInCompleted;
36 | } else {
37 | print('Google Sign In Problem');
38 | return GoogleSignInResults.UnexpectedError;
39 | }
40 | }
41 | }
42 | } catch (e) {
43 | print('Error in Google Sign In ${e.toString()}');
44 | return GoogleSignInResults.UnexpectedError;
45 | }
46 | }
47 |
48 | Future logOut() async {
49 | try {
50 | print('Google Log out');
51 |
52 | await _googleSignIn.disconnect();
53 | await _googleSignIn.signOut();
54 | await FirebaseAuth.instance.signOut();
55 | return true;
56 | } catch (e) {
57 | print('Error in Google Log Out: ${e.toString()}');
58 | return false;
59 | }
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/lib/Backend/firebase/OnlineDatabaseManagement/cloud_data_management.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | import 'package:firebase_storage/firebase_storage.dart';
4 | import 'package:generation/Backend/sqlite_management/local_database_management.dart';
5 | import 'package:generation/Global_Uses/constants.dart';
6 | import 'package:generation/Global_Uses/enum_generation.dart';
7 | import 'package:generation/Global_Uses/send_notification_management.dart';
8 | import 'package:intl/intl.dart';
9 | import 'package:cloud_firestore/cloud_firestore.dart';
10 | import 'package:firebase_messaging/firebase_messaging.dart';
11 |
12 | import 'package:firebase_auth/firebase_auth.dart';
13 |
14 | class CloudStoreDataManagement {
15 | final _collectionName = 'generation_users';
16 |
17 | final SendNotification _sendNotification = SendNotification();
18 | final LocalDatabase _localDatabase = LocalDatabase();
19 |
20 | Future checkThisUserAlreadyPresentOrNot(
21 | {required String userName}) async {
22 | try {
23 | final QuerySnapshot