├── .gitignore
├── .metadata
├── README.md
├── analysis_options.yaml
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ ├── google-services.json
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ └── 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
├── assets
├── icons
│ ├── gps.svg
│ └── location.svg
└── lottie
│ ├── empty.json
│ └── splash.json
├── 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
├── data
│ ├── models
│ │ ├── chat_model.dart
│ │ ├── location.dart
│ │ └── user_model.dart
│ ├── repositories
│ │ ├── chat_repository.dart
│ │ ├── shared_repository.dart
│ │ └── user_repository.dart
│ └── service
│ │ └── file_uploader.dart
├── main.dart
├── map_picker.dart
├── ui
│ ├── auth
│ │ ├── sign_up_page.dart
│ │ ├── user_register_page.dart
│ │ └── widget
│ │ │ ├── my_textfield.dart
│ │ │ └── next_button.dart
│ ├── chat
│ │ ├── chat_page.dart
│ │ └── widget
│ │ │ ├── chat_get_widget.dart
│ │ │ └── chat_send_widget.dart
│ ├── home
│ │ └── home_screen.dart
│ ├── map
│ │ └── map_page.dart
│ └── splash
│ │ └── splash_page.dart
├── utils
│ ├── my_colors.dart
│ ├── my_icons.dart
│ └── my_lotties.dart
└── view_model
│ ├── chat_view_model.dart
│ └── user_view_model.dart
├── pubspec.lock
├── pubspec.yaml
└── test
└── widget_test.dart
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 | migrate_working_dir/
12 |
13 | # IntelliJ related
14 | *.iml
15 | *.ipr
16 | *.iws
17 | .idea/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | **/doc/api/
26 | **/ios/Flutter/.last_build_id
27 | .dart_tool/
28 | .flutter-plugins
29 | .flutter-plugins-dependencies
30 | .packages
31 | .pub-cache/
32 | .pub/
33 | /build/
34 |
35 | # Symbolication related
36 | app.*.symbols
37 |
38 | # Obfuscation related
39 | app.*.map.json
40 |
41 | # Android Studio will place build artifacts here
42 | /android/app/debug
43 | /android/app/profile
44 | /android/app/release
45 |
--------------------------------------------------------------------------------
/.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.
5 |
6 | version:
7 | revision: 135454af32477f815a7525073027a3ff9eff1bfd
8 | channel: stable
9 |
10 | project_type: app
11 |
12 | # Tracks metadata for the flutter migrate command
13 | migration:
14 | platforms:
15 | - platform: root
16 | create_revision: 135454af32477f815a7525073027a3ff9eff1bfd
17 | base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
18 | - platform: android
19 | create_revision: 135454af32477f815a7525073027a3ff9eff1bfd
20 | base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
21 | - platform: ios
22 | create_revision: 135454af32477f815a7525073027a3ff9eff1bfd
23 | base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
24 |
25 | # User provided section
26 |
27 | # List of Local paths (relative to this file) that should be
28 | # ignored by the migrate tool.
29 | #
30 | # Files that are not part of the templates will be ignored by default.
31 | unmanaged_files:
32 | - 'lib/main.dart'
33 | - 'ios/Runner.xcodeproj/project.pbxproj'
34 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # telegram_clone
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://docs.flutter.dev/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13 |
14 | For help getting started with Flutter development, view the
15 | [online documentation](https://docs.flutter.dev/), 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 | apply plugin: 'com.google.gms.google-services'
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 33
30 | ndkVersion flutter.ndkVersion
31 |
32 | compileOptions {
33 | sourceCompatibility JavaVersion.VERSION_1_9
34 | targetCompatibility JavaVersion.VERSION_1_9
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.example.telechat"
48 | // You can update the following values to match your application needs.
49 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
50 | minSdkVersion 22
51 | targetSdkVersion flutter.targetSdkVersion
52 | versionCode flutterVersionCode.toInteger()
53 | versionName flutterVersionName
54 | }
55 |
56 | buildTypes {
57 | release {
58 | // TODO: Add your own signing config for the release build.
59 | // Signing with the debug keys for now, so `flutter run --release` works.
60 | signingConfig signingConfigs.debug
61 | }
62 | }
63 | }
64 |
65 | flutter {
66 | source '../..'
67 | }
68 |
69 | dependencies {
70 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
71 | implementation platform('com.google.firebase:firebase-bom:31.1.1')
72 | implementation 'com.google.firebase:firebase-analytics'
73 | implementation 'com.google.firebase:firebase-auth'
74 | }
75 |
--------------------------------------------------------------------------------
/android/app/google-services.json:
--------------------------------------------------------------------------------
1 | {
2 | "project_info": {
3 | "project_number": "538015195373",
4 | "firebase_url": "https://telegram-clone-944bc-default-rtdb.firebaseio.com",
5 | "project_id": "telegram-clone-944bc",
6 | "storage_bucket": "telegram-clone-944bc.appspot.com"
7 | },
8 | "client": [
9 | {
10 | "client_info": {
11 | "mobilesdk_app_id": "1:538015195373:android:cbf56f32c3fad6c4902ce4",
12 | "android_client_info": {
13 | "package_name": "com.example.telechat"
14 | }
15 | },
16 | "oauth_client": [
17 | {
18 | "client_id": "538015195373-0blrmcngucqtvprcrtdaclb9kc2c9sdc.apps.googleusercontent.com",
19 | "client_type": 3
20 | }
21 | ],
22 | "api_key": [
23 | {
24 | "current_key": "AIzaSyB5quZcdlSve0uVVDgaiuMXzgPvDFoRlHQ"
25 | }
26 | ],
27 | "services": {
28 | "appinvite_service": {
29 | "other_platform_oauth_client": [
30 | {
31 | "client_id": "538015195373-0blrmcngucqtvprcrtdaclb9kc2c9sdc.apps.googleusercontent.com",
32 | "client_type": 3
33 | }
34 | ]
35 | }
36 | }
37 | },
38 | {
39 | "client_info": {
40 | "mobilesdk_app_id": "1:538015195373:android:cdaf56a3c2922c79902ce4",
41 | "android_client_info": {
42 | "package_name": "com.example.telegram_clone"
43 | }
44 | },
45 | "oauth_client": [
46 | {
47 | "client_id": "538015195373-pijmvqsj15p8281g48oti5v1b6fl11j2.apps.googleusercontent.com",
48 | "client_type": 1,
49 | "android_info": {
50 | "package_name": "com.example.telegram_clone",
51 | "certificate_hash": "7d57b52a6832029c4bd208292892e0db574e2a8b"
52 | }
53 | },
54 | {
55 | "client_id": "538015195373-0blrmcngucqtvprcrtdaclb9kc2c9sdc.apps.googleusercontent.com",
56 | "client_type": 3
57 | }
58 | ],
59 | "api_key": [
60 | {
61 | "current_key": "AIzaSyB5quZcdlSve0uVVDgaiuMXzgPvDFoRlHQ"
62 | }
63 | ],
64 | "services": {
65 | "appinvite_service": {
66 | "other_platform_oauth_client": [
67 | {
68 | "client_id": "538015195373-0blrmcngucqtvprcrtdaclb9kc2c9sdc.apps.googleusercontent.com",
69 | "client_type": 3
70 | }
71 | ]
72 | }
73 | }
74 | }
75 | ],
76 | "configuration_version": "1"
77 | }
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
13 |
21 |
25 |
29 |
30 |
31 |
32 |
33 |
34 |
36 |
39 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/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/asrayev/telegram_clone/303862e85fc85550de03c4b925b0eb650e852746/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/asrayev/telegram_clone/303862e85fc85550de03c4b925b0eb650e852746/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/asrayev/telegram_clone/303862e85fc85550de03c4b925b0eb650e852746/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/asrayev/telegram_clone/303862e85fc85550de03c4b925b0eb650e852746/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/asrayev/telegram_clone/303862e85fc85550de03c4b925b0eb650e852746/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 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.6.10'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:7.1.2'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | classpath 'com.google.gms:google-services:4.3.13'
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 Jan 20 23:17:51 UZT 2023
2 | distributionBase=GRADLE_USER_HOME
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
4 | distributionPath=wrapper/dists
5 | zipStorePath=wrapper/dists
6 | zipStoreBase=GRADLE_USER_HOME
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 |
--------------------------------------------------------------------------------
/assets/icons/gps.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/assets/icons/location.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/assets/lottie/splash.json:
--------------------------------------------------------------------------------
1 | {"v":"5.8.1","fr":30,"ip":0,"op":101,"w":500,"h":500,"nm":"Chat","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Dot Blue 2","parent":2,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[0,0,0],"ix":2,"l":2},"a":{"a":0,"k":[271.453,275.959,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[34.374,34.374],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":50,"s":[323.015,275.959],"to":[0,-3.333],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":60,"s":[323.015,255.959],"to":[0,0],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":70,"s":[323.015,275.959],"to":[0,-3.333],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":80,"s":[323.015,255.959],"to":[0,0],"ti":[0,-3.333]},{"t":90,"s":[323.015,275.959]}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[34.374,34.374],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":48,"s":[271.453,275.959],"to":[0,-3.333],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":58,"s":[271.453,255.959],"to":[0,0],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":68,"s":[271.453,275.959],"to":[0,-3.333],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":78,"s":[271.453,255.959],"to":[0,0],"ti":[0,-3.333]},{"t":88,"s":[271.453,275.959]}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[34.374,34.374],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":46,"s":[219.891,275.959],"to":[0,-3.333],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":56,"s":[219.891,255.959],"to":[0,0],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":66,"s":[219.891,275.959],"to":[0,-3.333],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":76,"s":[219.891,255.959],"to":[0,0],"ti":[0,-3.333]},{"t":86,"s":[219.891,275.959]}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false}],"ip":50,"op":350,"st":50,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Chat Box Blue 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":100,"s":[378.74,378.905,0],"to":[0,-8.333,0],"ti":[0,8.333,0]},{"t":110,"s":[378.74,328.905,0]}],"ix":2,"l":2},"a":{"a":0,"k":[107.287,102.946,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":50,"s":[0,0,100]},{"t":60,"s":[100,100,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[3.108,-1.738],[19.156,0.073],[0,56.877],[-59.24,0],[0,-56.898],[8.235,-14.792],[-0.984,-3.35],[0,0],[2.269,-0.696],[0.871,0.311]],"o":[[-3.343,-1.225],[-16.643,9.485],[-59.24,0],[0,-56.877],[59.24,0],[0.016,16.93],[-1.736,3.029],[0,0],[0.696,2.269],[-0.884,0.271],[0,0]],"v":[[64.8,87.773],[54.638,88.581],[0,102.945],[-107.287,0.002],[0,-102.946],[107.287,0.002],[94.753,48.375],[93.576,58.361],[104.748,94.764],[101.899,100.131],[99.196,100.07]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.188235294118,0.698039215686,0.898039215686,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Chat Box White","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":50,"op":350,"st":50,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"White Dot 2","parent":4,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[0.135,0,0],"ix":2,"l":2},"a":{"a":0,"k":[228.618,224.219,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[34.374,34.374],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[280.18,224.219],"to":[0,-3.333],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":10,"s":[280.18,204.219],"to":[0,0],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":20,"s":[280.18,224.219],"to":[0,-3.333],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":30,"s":[280.18,204.219],"to":[0,0],"ti":[0,0]},{"t":40,"s":[280.18,224.219]}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[34.374,34.374],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":-2,"s":[228.618,224.219],"to":[0,-3.333],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":8,"s":[228.618,204.219],"to":[0,0],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":18,"s":[228.618,224.219],"to":[0,-3.333],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":28,"s":[228.618,204.219],"to":[0,0],"ti":[0,0]},{"t":38,"s":[228.618,224.219]}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[34.374,34.374],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":-4,"s":[177.056,224.219],"to":[0,-3.333],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":6,"s":[177.056,204.219],"to":[0,0],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":16,"s":[177.056,224.219],"to":[0,-3.333],"ti":[0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":26,"s":[177.056,204.219],"to":[0,0],"ti":[0,0]},{"t":36,"s":[177.056,224.219]}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"White Chat Box 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":1},"o":{"x":0.333,"y":0},"t":50,"s":[121.198,377.343,0],"to":[0,-8.333,0],"ti":[0,8.333,0]},{"t":60,"s":[121.198,327.343,0]}],"ix":2,"l":2},"a":{"a":0,"k":[-107.285,103.124,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":0,"s":[0,0,100]},{"t":10,"s":[100,100,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-3.112,-1.744],[-19.157,0.073],[0,56.976],[59.236,0],[0,-56.98],[-8.24,-14.821],[0.982,-3.347],[0,0],[-2.269,-0.697],[-0.873,0.312]],"o":[[3.348,-1.232],[16.637,9.498],[59.236,0],[0,-56.976],[-59.236,0],[-0.018,16.958],[1.731,3.028],[0,0],[-0.697,2.269],[0.886,0.272],[0,0]],"v":[[-64.811,87.93],[-54.632,88.737],[0.002,103.123],[107.285,0],[0.002,-103.124],[-107.285,0],[-94.747,48.459],[-93.574,58.436],[-104.771,94.929],[-101.925,100.298],[-99.215,100.236]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.835294177485,0.862745157878,0.878431432387,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Blue Chat Box","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Dot Blue","parent":6,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":50,"s":[100]},{"t":60,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[0,0,0],"ix":2,"l":2},"a":{"a":0,"k":[271.453,275.959,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[34.374,34.374],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[323.015,275.959],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[34.374,34.374],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[271.453,275.959],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[34.374,34.374],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[219.891,275.959],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":51,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"Chat Box Blue","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":50,"s":[100]},{"t":60,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[378.74,378.905,0],"to":[0,-8.333,0],"ti":[0,8.333,0]},{"t":10,"s":[378.74,328.905,0]}],"ix":2,"l":2},"a":{"a":0,"k":[107.287,102.946,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[100,100,100]},{"t":10,"s":[100,100,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[3.108,-1.738],[19.156,0.073],[0,56.877],[-59.24,0],[0,-56.898],[8.235,-14.792],[-0.984,-3.35],[0,0],[2.269,-0.696],[0.871,0.311]],"o":[[-3.343,-1.225],[-16.643,9.485],[-59.24,0],[0,-56.877],[59.24,0],[0.016,16.93],[-1.736,3.029],[0,0],[0.696,2.269],[-0.884,0.271],[0,0]],"v":[[64.8,87.773],[54.638,88.581],[0,102.945],[-107.287,0.002],[0,-102.946],[107.287,0.002],[94.753,48.375],[93.576,58.361],[104.748,94.764],[101.899,100.131],[99.196,100.07]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.188235294118,0.698039215686,0.898039215686,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Chat Box White","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":51,"st":0,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"White Dot","parent":8,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[100]},{"t":10,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[0.135,0,0],"ix":2,"l":2},"a":{"a":0,"k":[228.618,224.219,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[34.374,34.374],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[280.18,224.219],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[34.374,34.374],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[228.618,224.219],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[34.374,34.374],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[177.056,224.219],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":11,"st":0,"bm":0},{"ddd":0,"ind":8,"ty":4,"nm":"White Chat Box","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[100]},{"t":10,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[121.198,327.343,0],"to":[0,-8.333,0],"ti":[0,8.333,0]},{"t":10,"s":[121.198,277.343,0]}],"ix":2,"l":2},"a":{"a":0,"k":[-107.285,103.124,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[100,100,100]},{"t":10,"s":[100,100,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-3.112,-1.744],[-19.157,0.073],[0,56.976],[59.236,0],[0,-56.98],[-8.24,-14.821],[0.982,-3.347],[0,0],[-2.269,-0.697],[-0.873,0.312]],"o":[[3.348,-1.232],[16.637,9.498],[59.236,0],[0,-56.976],[-59.236,0],[-0.018,16.958],[1.731,3.028],[0,0],[-0.697,2.269],[0.886,0.272],[0,0]],"v":[[-64.811,87.93],[-54.632,88.737],[0.002,103.123],[107.285,0],[0.002,-103.124],[-107.285,0],[-94.747,48.459],[-93.574,58.436],[-104.771,94.929],[-101.925,100.298],[-99.215,100.236]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.835294177485,0.862745157878,0.878431432387,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Blue Chat Box","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":11,"st":0,"bm":0}],"markers":[]}
--------------------------------------------------------------------------------
/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 | 11.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 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 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXCopyFilesBuildPhase section */
19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
20 | isa = PBXCopyFilesBuildPhase;
21 | buildActionMask = 2147483647;
22 | dstPath = "";
23 | dstSubfolderSpec = 10;
24 | files = (
25 | );
26 | name = "Embed Frameworks";
27 | runOnlyForDeploymentPostprocessing = 0;
28 | };
29 | /* End PBXCopyFilesBuildPhase section */
30 |
31 | /* Begin PBXFileReference section */
32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
45 | /* End PBXFileReference section */
46 |
47 | /* Begin PBXFrameworksBuildPhase section */
48 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
49 | isa = PBXFrameworksBuildPhase;
50 | buildActionMask = 2147483647;
51 | files = (
52 | );
53 | runOnlyForDeploymentPostprocessing = 0;
54 | };
55 | /* End PBXFrameworksBuildPhase section */
56 |
57 | /* Begin PBXGroup section */
58 | 9740EEB11CF90186004384FC /* Flutter */ = {
59 | isa = PBXGroup;
60 | children = (
61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
65 | );
66 | name = Flutter;
67 | sourceTree = "";
68 | };
69 | 97C146E51CF9000F007C117D = {
70 | isa = PBXGroup;
71 | children = (
72 | 9740EEB11CF90186004384FC /* Flutter */,
73 | 97C146F01CF9000F007C117D /* Runner */,
74 | 97C146EF1CF9000F007C117D /* Products */,
75 | );
76 | sourceTree = "";
77 | };
78 | 97C146EF1CF9000F007C117D /* Products */ = {
79 | isa = PBXGroup;
80 | children = (
81 | 97C146EE1CF9000F007C117D /* Runner.app */,
82 | );
83 | name = Products;
84 | sourceTree = "";
85 | };
86 | 97C146F01CF9000F007C117D /* Runner */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
92 | 97C147021CF9000F007C117D /* Info.plist */,
93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
97 | );
98 | path = Runner;
99 | sourceTree = "";
100 | };
101 | /* End PBXGroup section */
102 |
103 | /* Begin PBXNativeTarget section */
104 | 97C146ED1CF9000F007C117D /* Runner */ = {
105 | isa = PBXNativeTarget;
106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
107 | buildPhases = (
108 | 9740EEB61CF901F6004384FC /* Run Script */,
109 | 97C146EA1CF9000F007C117D /* Sources */,
110 | 97C146EB1CF9000F007C117D /* Frameworks */,
111 | 97C146EC1CF9000F007C117D /* Resources */,
112 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
114 | );
115 | buildRules = (
116 | );
117 | dependencies = (
118 | );
119 | name = Runner;
120 | productName = Runner;
121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
122 | productType = "com.apple.product-type.application";
123 | };
124 | /* End PBXNativeTarget section */
125 |
126 | /* Begin PBXProject section */
127 | 97C146E61CF9000F007C117D /* Project object */ = {
128 | isa = PBXProject;
129 | attributes = {
130 | LastUpgradeCheck = 1300;
131 | ORGANIZATIONNAME = "";
132 | TargetAttributes = {
133 | 97C146ED1CF9000F007C117D = {
134 | CreatedOnToolsVersion = 7.3.1;
135 | LastSwiftMigration = 1100;
136 | };
137 | };
138 | };
139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
140 | compatibilityVersion = "Xcode 9.3";
141 | developmentRegion = en;
142 | hasScannedForEncodings = 0;
143 | knownRegions = (
144 | en,
145 | Base,
146 | );
147 | mainGroup = 97C146E51CF9000F007C117D;
148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
149 | projectDirPath = "";
150 | projectRoot = "";
151 | targets = (
152 | 97C146ED1CF9000F007C117D /* Runner */,
153 | );
154 | };
155 | /* End PBXProject section */
156 |
157 | /* Begin PBXResourcesBuildPhase section */
158 | 97C146EC1CF9000F007C117D /* Resources */ = {
159 | isa = PBXResourcesBuildPhase;
160 | buildActionMask = 2147483647;
161 | files = (
162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
166 | );
167 | runOnlyForDeploymentPostprocessing = 0;
168 | };
169 | /* End PBXResourcesBuildPhase section */
170 |
171 | /* Begin PBXShellScriptBuildPhase section */
172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
173 | isa = PBXShellScriptBuildPhase;
174 | buildActionMask = 2147483647;
175 | files = (
176 | );
177 | inputPaths = (
178 | );
179 | name = "Thin Binary";
180 | outputPaths = (
181 | );
182 | runOnlyForDeploymentPostprocessing = 0;
183 | shellPath = /bin/sh;
184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
185 | };
186 | 9740EEB61CF901F6004384FC /* Run Script */ = {
187 | isa = PBXShellScriptBuildPhase;
188 | buildActionMask = 2147483647;
189 | files = (
190 | );
191 | inputPaths = (
192 | );
193 | name = "Run Script";
194 | outputPaths = (
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | shellPath = /bin/sh;
198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
199 | };
200 | /* End PBXShellScriptBuildPhase section */
201 |
202 | /* Begin PBXSourcesBuildPhase section */
203 | 97C146EA1CF9000F007C117D /* Sources */ = {
204 | isa = PBXSourcesBuildPhase;
205 | buildActionMask = 2147483647;
206 | files = (
207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
209 | );
210 | runOnlyForDeploymentPostprocessing = 0;
211 | };
212 | /* End PBXSourcesBuildPhase section */
213 |
214 | /* Begin PBXVariantGroup section */
215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
216 | isa = PBXVariantGroup;
217 | children = (
218 | 97C146FB1CF9000F007C117D /* Base */,
219 | );
220 | name = Main.storyboard;
221 | sourceTree = "";
222 | };
223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
224 | isa = PBXVariantGroup;
225 | children = (
226 | 97C147001CF9000F007C117D /* Base */,
227 | );
228 | name = LaunchScreen.storyboard;
229 | sourceTree = "";
230 | };
231 | /* End PBXVariantGroup section */
232 |
233 | /* Begin XCBuildConfiguration section */
234 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
235 | isa = XCBuildConfiguration;
236 | buildSettings = {
237 | ALWAYS_SEARCH_USER_PATHS = NO;
238 | CLANG_ANALYZER_NONNULL = YES;
239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
240 | CLANG_CXX_LIBRARY = "libc++";
241 | CLANG_ENABLE_MODULES = YES;
242 | CLANG_ENABLE_OBJC_ARC = YES;
243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
244 | CLANG_WARN_BOOL_CONVERSION = YES;
245 | CLANG_WARN_COMMA = YES;
246 | CLANG_WARN_CONSTANT_CONVERSION = YES;
247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
249 | CLANG_WARN_EMPTY_BODY = YES;
250 | CLANG_WARN_ENUM_CONVERSION = YES;
251 | CLANG_WARN_INFINITE_RECURSION = YES;
252 | CLANG_WARN_INT_CONVERSION = YES;
253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
258 | CLANG_WARN_STRICT_PROTOTYPES = YES;
259 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
260 | CLANG_WARN_UNREACHABLE_CODE = YES;
261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
263 | COPY_PHASE_STRIP = NO;
264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
265 | ENABLE_NS_ASSERTIONS = NO;
266 | ENABLE_STRICT_OBJC_MSGSEND = YES;
267 | GCC_C_LANGUAGE_STANDARD = gnu99;
268 | GCC_NO_COMMON_BLOCKS = YES;
269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
271 | GCC_WARN_UNDECLARED_SELECTOR = YES;
272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
273 | GCC_WARN_UNUSED_FUNCTION = YES;
274 | GCC_WARN_UNUSED_VARIABLE = YES;
275 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
276 | MTL_ENABLE_DEBUG_INFO = NO;
277 | SDKROOT = iphoneos;
278 | SUPPORTED_PLATFORMS = iphoneos;
279 | TARGETED_DEVICE_FAMILY = "1,2";
280 | VALIDATE_PRODUCT = YES;
281 | };
282 | name = Profile;
283 | };
284 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
285 | isa = XCBuildConfiguration;
286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
287 | buildSettings = {
288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
289 | CLANG_ENABLE_MODULES = YES;
290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
291 | ENABLE_BITCODE = NO;
292 | INFOPLIST_FILE = Runner/Info.plist;
293 | LD_RUNPATH_SEARCH_PATHS = (
294 | "$(inherited)",
295 | "@executable_path/Frameworks",
296 | );
297 | PRODUCT_BUNDLE_IDENTIFIER = com.example.telegramClone;
298 | PRODUCT_NAME = "$(TARGET_NAME)";
299 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
300 | SWIFT_VERSION = 5.0;
301 | VERSIONING_SYSTEM = "apple-generic";
302 | };
303 | name = Profile;
304 | };
305 | 97C147031CF9000F007C117D /* Debug */ = {
306 | isa = XCBuildConfiguration;
307 | buildSettings = {
308 | ALWAYS_SEARCH_USER_PATHS = NO;
309 | CLANG_ANALYZER_NONNULL = YES;
310 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
311 | CLANG_CXX_LIBRARY = "libc++";
312 | CLANG_ENABLE_MODULES = YES;
313 | CLANG_ENABLE_OBJC_ARC = YES;
314 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
315 | CLANG_WARN_BOOL_CONVERSION = YES;
316 | CLANG_WARN_COMMA = YES;
317 | CLANG_WARN_CONSTANT_CONVERSION = YES;
318 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
319 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
320 | CLANG_WARN_EMPTY_BODY = YES;
321 | CLANG_WARN_ENUM_CONVERSION = YES;
322 | CLANG_WARN_INFINITE_RECURSION = YES;
323 | CLANG_WARN_INT_CONVERSION = YES;
324 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
325 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
326 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
327 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
328 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
329 | CLANG_WARN_STRICT_PROTOTYPES = YES;
330 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
331 | CLANG_WARN_UNREACHABLE_CODE = YES;
332 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
333 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
334 | COPY_PHASE_STRIP = NO;
335 | DEBUG_INFORMATION_FORMAT = dwarf;
336 | ENABLE_STRICT_OBJC_MSGSEND = YES;
337 | ENABLE_TESTABILITY = YES;
338 | GCC_C_LANGUAGE_STANDARD = gnu99;
339 | GCC_DYNAMIC_NO_PIC = NO;
340 | GCC_NO_COMMON_BLOCKS = YES;
341 | GCC_OPTIMIZATION_LEVEL = 0;
342 | GCC_PREPROCESSOR_DEFINITIONS = (
343 | "DEBUG=1",
344 | "$(inherited)",
345 | );
346 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
347 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
348 | GCC_WARN_UNDECLARED_SELECTOR = YES;
349 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
350 | GCC_WARN_UNUSED_FUNCTION = YES;
351 | GCC_WARN_UNUSED_VARIABLE = YES;
352 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
353 | MTL_ENABLE_DEBUG_INFO = YES;
354 | ONLY_ACTIVE_ARCH = YES;
355 | SDKROOT = iphoneos;
356 | TARGETED_DEVICE_FAMILY = "1,2";
357 | };
358 | name = Debug;
359 | };
360 | 97C147041CF9000F007C117D /* Release */ = {
361 | isa = XCBuildConfiguration;
362 | buildSettings = {
363 | ALWAYS_SEARCH_USER_PATHS = NO;
364 | CLANG_ANALYZER_NONNULL = YES;
365 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
366 | CLANG_CXX_LIBRARY = "libc++";
367 | CLANG_ENABLE_MODULES = YES;
368 | CLANG_ENABLE_OBJC_ARC = YES;
369 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
370 | CLANG_WARN_BOOL_CONVERSION = YES;
371 | CLANG_WARN_COMMA = YES;
372 | CLANG_WARN_CONSTANT_CONVERSION = YES;
373 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
374 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
375 | CLANG_WARN_EMPTY_BODY = YES;
376 | CLANG_WARN_ENUM_CONVERSION = YES;
377 | CLANG_WARN_INFINITE_RECURSION = YES;
378 | CLANG_WARN_INT_CONVERSION = YES;
379 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
380 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
381 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
382 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
383 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
384 | CLANG_WARN_STRICT_PROTOTYPES = YES;
385 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
386 | CLANG_WARN_UNREACHABLE_CODE = YES;
387 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
388 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
389 | COPY_PHASE_STRIP = NO;
390 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
391 | ENABLE_NS_ASSERTIONS = NO;
392 | ENABLE_STRICT_OBJC_MSGSEND = YES;
393 | GCC_C_LANGUAGE_STANDARD = gnu99;
394 | GCC_NO_COMMON_BLOCKS = YES;
395 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
396 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
397 | GCC_WARN_UNDECLARED_SELECTOR = YES;
398 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
399 | GCC_WARN_UNUSED_FUNCTION = YES;
400 | GCC_WARN_UNUSED_VARIABLE = YES;
401 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
402 | MTL_ENABLE_DEBUG_INFO = NO;
403 | SDKROOT = iphoneos;
404 | SUPPORTED_PLATFORMS = iphoneos;
405 | SWIFT_COMPILATION_MODE = wholemodule;
406 | SWIFT_OPTIMIZATION_LEVEL = "-O";
407 | TARGETED_DEVICE_FAMILY = "1,2";
408 | VALIDATE_PRODUCT = YES;
409 | };
410 | name = Release;
411 | };
412 | 97C147061CF9000F007C117D /* Debug */ = {
413 | isa = XCBuildConfiguration;
414 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
415 | buildSettings = {
416 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
417 | CLANG_ENABLE_MODULES = YES;
418 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
419 | ENABLE_BITCODE = NO;
420 | INFOPLIST_FILE = Runner/Info.plist;
421 | LD_RUNPATH_SEARCH_PATHS = (
422 | "$(inherited)",
423 | "@executable_path/Frameworks",
424 | );
425 | PRODUCT_BUNDLE_IDENTIFIER = com.example.telegramClone;
426 | PRODUCT_NAME = "$(TARGET_NAME)";
427 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
428 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
429 | SWIFT_VERSION = 5.0;
430 | VERSIONING_SYSTEM = "apple-generic";
431 | };
432 | name = Debug;
433 | };
434 | 97C147071CF9000F007C117D /* Release */ = {
435 | isa = XCBuildConfiguration;
436 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
437 | buildSettings = {
438 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
439 | CLANG_ENABLE_MODULES = YES;
440 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
441 | ENABLE_BITCODE = NO;
442 | INFOPLIST_FILE = Runner/Info.plist;
443 | LD_RUNPATH_SEARCH_PATHS = (
444 | "$(inherited)",
445 | "@executable_path/Frameworks",
446 | );
447 | PRODUCT_BUNDLE_IDENTIFIER = com.example.telegramClone;
448 | PRODUCT_NAME = "$(TARGET_NAME)";
449 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
450 | SWIFT_VERSION = 5.0;
451 | VERSIONING_SYSTEM = "apple-generic";
452 | };
453 | name = Release;
454 | };
455 | /* End XCBuildConfiguration section */
456 |
457 | /* Begin XCConfigurationList section */
458 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
459 | isa = XCConfigurationList;
460 | buildConfigurations = (
461 | 97C147031CF9000F007C117D /* Debug */,
462 | 97C147041CF9000F007C117D /* Release */,
463 | 249021D3217E4FDB00AE95B9 /* Profile */,
464 | );
465 | defaultConfigurationIsVisible = 0;
466 | defaultConfigurationName = Release;
467 | };
468 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
469 | isa = XCConfigurationList;
470 | buildConfigurations = (
471 | 97C147061CF9000F007C117D /* Debug */,
472 | 97C147071CF9000F007C117D /* Release */,
473 | 249021D4217E4FDB00AE95B9 /* Profile */,
474 | );
475 | defaultConfigurationIsVisible = 0;
476 | defaultConfigurationName = Release;
477 | };
478 | /* End XCConfigurationList section */
479 | };
480 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
481 | }
482 |
--------------------------------------------------------------------------------
/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/asrayev/telegram_clone/303862e85fc85550de03c4b925b0eb650e852746/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/asrayev/telegram_clone/303862e85fc85550de03c4b925b0eb650e852746/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/asrayev/telegram_clone/303862e85fc85550de03c4b925b0eb650e852746/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/asrayev/telegram_clone/303862e85fc85550de03c4b925b0eb650e852746/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/asrayev/telegram_clone/303862e85fc85550de03c4b925b0eb650e852746/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/asrayev/telegram_clone/303862e85fc85550de03c4b925b0eb650e852746/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/asrayev/telegram_clone/303862e85fc85550de03c4b925b0eb650e852746/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/asrayev/telegram_clone/303862e85fc85550de03c4b925b0eb650e852746/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/asrayev/telegram_clone/303862e85fc85550de03c4b925b0eb650e852746/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/asrayev/telegram_clone/303862e85fc85550de03c4b925b0eb650e852746/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/asrayev/telegram_clone/303862e85fc85550de03c4b925b0eb650e852746/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/asrayev/telegram_clone/303862e85fc85550de03c4b925b0eb650e852746/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/asrayev/telegram_clone/303862e85fc85550de03c4b925b0eb650e852746/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/asrayev/telegram_clone/303862e85fc85550de03c4b925b0eb650e852746/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/asrayev/telegram_clone/303862e85fc85550de03c4b925b0eb650e852746/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/asrayev/telegram_clone/303862e85fc85550de03c4b925b0eb650e852746/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/asrayev/telegram_clone/303862e85fc85550de03c4b925b0eb650e852746/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/asrayev/telegram_clone/303862e85fc85550de03c4b925b0eb650e852746/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 | Telegram Clone
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | telegram_clone
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 | CADisableMinimumFrameDurationOnPhone
47 |
48 | UIApplicationSupportsIndirectInputEvents
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/lib/data/models/chat_model.dart:
--------------------------------------------------------------------------------
1 |
2 | class ChatModel {
3 | final String docId;
4 | final List chat;
5 | final List twoUser;
6 |
7 | ChatModel({required this.docId, required this.chat, required this.twoUser});
8 |
9 | factory ChatModel.fromJson(Map json) {
10 | var list = json['chat'] as List;
11 | List chatList = list.map((i) => Chat.fromJson(i)).toList();
12 | return ChatModel(
13 | docId: json['doc_id'],
14 | chat: chatList,
15 | twoUser: List.from(json['two_user']),
16 | );
17 | }
18 |
19 | Map toJson() {
20 | return {
21 | 'doc_id': docId,
22 | 'chat': chat.map((e) => e.toJson()).toList(),
23 | 'two_user': twoUser,
24 | };
25 | }
26 |
27 | ChatModel copyWith({String? docId, List? chat, List? twoUser}) {
28 | return ChatModel(
29 | docId: docId ?? this.docId,
30 | chat: chat ?? this.chat,
31 | twoUser: twoUser ?? this.twoUser);
32 | }
33 | }
34 |
35 | class Chat {
36 | final String? userUid;
37 | final String? text;
38 | final String? dataTime;
39 | final String? forSome;
40 |
41 | Chat({this.userUid, this.text, this.dataTime, this.forSome});
42 |
43 | factory Chat.fromJson(Map json) {
44 | return Chat(
45 | userUid: json['user_uid'],
46 | text: json['text'],
47 | dataTime: json['data_time'],
48 | forSome: json['for_some']);
49 | }
50 |
51 | Map toJson() {
52 | return {
53 | 'user_uid': userUid,
54 | 'text': text,
55 | 'data_time': dataTime,
56 | 'for_some': forSome,
57 | };
58 | }
59 |
60 | Chat copyWith(
61 | {String? userUid, String? text, String? dataTime, String? forSome}) {
62 | return Chat(
63 | userUid: userUid ?? this.userUid,
64 | text: text ?? this.text,
65 | dataTime: dataTime ?? this.dataTime,
66 | forSome: forSome ?? this.forSome);
67 | }
68 | }
--------------------------------------------------------------------------------
/lib/data/models/location.dart:
--------------------------------------------------------------------------------
1 | class UserLocation {
2 | static double lat = 0;
3 | static double long = 0;
4 | }
--------------------------------------------------------------------------------
/lib/data/models/user_model.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | UserModel userModelFromJson(String str) => UserModel.fromJson(json.decode(str));
4 |
5 | String userModelToJson(UserModel data) => json.encode(data.toJson());
6 |
7 | class UserModel {
8 | UserModel({
9 | required this.userId,
10 | required this.name,
11 | required this.imageUrl,
12 | required this.phoneNumber,
13 | required this.userUid,
14 | required this.some,
15 | });
16 |
17 | String userId;
18 | String name;
19 | String imageUrl;
20 | String phoneNumber;
21 | String userUid;
22 | String some;
23 |
24 | factory UserModel.fromJson(Map json) => UserModel(
25 | userId: json["user_id"],
26 | name: json["name"],
27 | imageUrl: json["image_url"],
28 | phoneNumber: json["phone_number"],
29 | userUid: json["user_uid"],
30 | some: json["some"],
31 | );
32 |
33 | Map toJson() => {
34 | "user_id": userId,
35 | "name": name,
36 | "image_url": imageUrl,
37 | "phone_number": phoneNumber,
38 | "user_uid": userUid,
39 | "some": some,
40 | };
41 | }
42 |
--------------------------------------------------------------------------------
/lib/data/repositories/chat_repository.dart:
--------------------------------------------------------------------------------
1 | import 'package:cloud_firestore/cloud_firestore.dart';
2 | import 'package:telegram_clone/data/models/chat_model.dart';
3 | import '../models/chat_room_model.dart';
4 |
5 | class ChatRepo {
6 | final FirebaseFirestore _firestore;
7 |
8 | ChatRepo({required FirebaseFirestore firebaseFirestore})
9 | : _firestore = firebaseFirestore;
10 |
11 | Future addChat({required ChatModel chatModel, required String newDoc}) async {
12 | dynamic docRef = _firestore.collection("chats").doc(newDoc);
13 | dynamic docRef2 = _firestore.collection("chats").doc("${newDoc.substring(29,57)}_${newDoc.substring(0,28)}");
14 | try {
15 | docRef2.get().then((doc) async =>
16 | {
17 | if(doc.exists){}
18 | else{
19 | await _firestore.collection("chats").doc(newDoc).set(chatModel.toJson()),}
20 | });
21 | docRef.get().then((doc) async => {
22 | if (doc.exists) {}
23 | else {
24 | await _firestore.collection("chats").doc(newDoc).set(chatModel.toJson()),
25 | }});}
26 | on FirebaseException catch (er) {
27 | }
28 | }
29 |
30 | Future deleteChat({required String docId}) async {
31 | dynamic docRef = _firestore.collection("chats").doc(docId);
32 | dynamic docRef2 = _firestore.collection("chats").doc("${docId.substring(29,57)}_${docId.substring(0,28)}");
33 | try {
34 | docRef2.get().then((doc) async =>
35 | {
36 | if(doc.exists){}
37 | else{
38 | await _firestore.collection("chats").doc(docRef2).delete(),
39 | }});
40 | docRef.get().then((doc) async => {
41 | if (doc.exists) {}
42 | else {
43 | await _firestore.collection("chats").doc(docRef).delete(),
44 | }});}
45 | on FirebaseException catch (er) {}
46 | }
47 |
48 |
49 | Future? addMessage({required String chatsId,required ChatRoomModel chatRoomModel}) async {
50 | dynamic docRef = _firestore.collection("chats").doc(chatsId);
51 | dynamic docRef2 = _firestore.collection("chats").doc("${chatsId.substring(29,57)}_${chatsId.substring(0,28)}");
52 | try {
53 | docRef2.get().then((doc) async =>
54 | {
55 | if(doc.exists){
56 | await _firestore.collection("chats")
57 | .doc(docRef2.toString().substring(46,103))
58 | .collection("chatRoom")
59 | .add(chatRoomModel.toJson())
60 | }
61 | else{}
62 | });
63 | docRef.get().then((doc) async => {
64 | if (doc.exists) {
65 | await _firestore.collection("chats")
66 | .doc(docRef.toString().substring(46,103))
67 | .collection("chatRoom")
68 | .add(chatRoomModel.toJson()),
69 | }
70 | else {}
71 | });
72 |
73 | } on FirebaseException catch (er) {}
74 | }
75 |
76 |
77 | Future>?> getChats({required String docId}) async {
78 | dynamic docRef = await _firestore.collection("chats").doc(docId);
79 | dynamic docRef2 = await _firestore.collection("chats").doc("${docId.substring(29,57)}_${docId.substring(0,28)}");
80 | dynamic stream;
81 | try {
82 | docRef2.get().then((doc) async =>
83 | {
84 | if(doc.exists){
85 | }
86 | else{
87 | stream = _firestore.collection("chats").where("doc_id", isEqualTo: docRef2.toString().substring(46,103)).snapshots().map(
88 | (querySnapshot) => querySnapshot.docs
89 | .map((doc) => ChatModel.fromJson(doc.data()))
90 | .toList(),
91 | )
92 | }
93 | });
94 | docRef.get().then((doc) async => {
95 | if (doc.exists) {
96 | }
97 | else {
98 | stream = _firestore.collection("chats").where("doc_id", isEqualTo: docRef.toString().substring(46,103)).snapshots().map(
99 | (querySnapshot) => querySnapshot.docs
100 | .map((doc) => ChatModel.fromJson(doc.data()))
101 | .toList())
102 | }
103 | });
104 | return stream;
105 | } on FirebaseException catch (er) {
106 | print("BirNima BOOOOOOOOOOOOOOOLdi");
107 | return stream;
108 | }
109 |
110 |
111 |
112 | }
113 |
114 | Stream> listenChat({required String docId}) {
115 |
116 | return _firestore.collection("chats")
117 | .doc(docId)
118 | .collection("chatRoom")
119 | .orderBy("datatime")
120 | .snapshots()
121 | .map((event) =>
122 | event
123 | .docs
124 | .map((e) => ChatRoomModel.fromJson(e.data())).toList());
125 |
126 | }
127 | }
128 |
--------------------------------------------------------------------------------
/lib/data/repositories/shared_repository.dart:
--------------------------------------------------------------------------------
1 | // ignore: depend_on_referenced_packages
2 | import 'package:shared_preferences/shared_preferences.dart';
3 |
4 | class StorageRepository {
5 | // Saving data
6 | static Future saveUserId(String userId) async {
7 | final prefs = await SharedPreferences.getInstance();
8 | return prefs.setString("userId", userId);
9 | }
10 |
11 | // Retrieving data
12 | static Future getUserId() async {
13 | final prefs = await SharedPreferences.getInstance();
14 | return prefs.getString("userId") ?? "";
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/lib/data/repositories/user_repository.dart:
--------------------------------------------------------------------------------
1 | import 'package:cloud_firestore/cloud_firestore.dart';
2 | import '../models/user_model.dart';
3 |
4 | class UserRepository {
5 | final FirebaseFirestore _firestore;
6 |
7 | UserRepository({required FirebaseFirestore firebaseFirestore})
8 | : _firestore = firebaseFirestore;
9 |
10 | Future addUser({required UserModel userModel}) async {
11 | try {
12 | DocumentReference newUser =
13 | await _firestore.collection("users").add(userModel.toJson());
14 | await _firestore.collection("users").doc(newUser.id).update({
15 | "user_id": newUser.id,
16 | });
17 |
18 | } on FirebaseException catch (er) {
19 | print( er.message.toString());
20 | }
21 | }
22 |
23 | Future deleteUser({required String docId}) async {
24 | try {
25 | await _firestore.collection("users").doc(docId).delete();
26 |
27 |
28 | } on FirebaseException catch (er) {
29 | print( er.message.toString());
30 | }
31 | }
32 |
33 | Future updateUser({required UserModel userModel}) async {
34 | try {
35 | await _firestore
36 | .collection("users")
37 | .doc(userModel.userId)
38 | .update(userModel.toJson());
39 |
40 |
41 | } on FirebaseException catch (er) {
42 | print( er.message.toString());
43 | }
44 | }
45 |
46 | Stream> getAllUsers(String currentUser) =>
47 | _firestore.collection("users").where("user_uid", isNotEqualTo: currentUser).snapshots().map(
48 | (querySnapshot) => querySnapshot.docs
49 | .map((doc) => UserModel.fromJson(doc.data()))
50 | .toList(),
51 | );
52 |
53 |
54 | Stream> getUser({required String userId}) async* {
55 | if (userId.isEmpty) {
56 | yield* _firestore.collection("users").snapshots().map(
57 | (querySnapshot) => querySnapshot.docs
58 | .map((doc) => UserModel.fromJson(doc.data()))
59 | .toList(),
60 | );
61 | } else {
62 | yield* _firestore
63 | .collection("users")
64 | .where("user_id", isEqualTo: userId)
65 | .snapshots()
66 | .map(
67 | (querySnapshot) => querySnapshot.docs
68 | .map((doc) => UserModel.fromJson(doc.data()))
69 | .toList(),
70 | );
71 | }
72 | }
73 | }
74 |
--------------------------------------------------------------------------------
/lib/data/service/file_uploader.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 | import 'package:firebase_storage/firebase_storage.dart';
3 | import 'package:image_picker/image_picker.dart';
4 |
5 | class FileUploader {
6 | static Future imageUploader(XFile xFile) async {
7 | String downloadUrl = "";
8 | final storageRef = FirebaseStorage.instance.ref();
9 | var imageRef = storageRef.child("images/UserImages/${xFile.name}");
10 | await imageRef.putFile(File(xFile.path));
11 | downloadUrl = await imageRef.getDownloadURL();
12 | return downloadUrl;
13 | }
14 |
15 | static Future fileUploader(File file,String fileName) async {
16 | String downloadUrl = "";
17 | final storageRef = FirebaseStorage.instance.ref();
18 | var imageRef = storageRef.child("files/pdf/$fileName");
19 | await imageRef.putFile(File(file.path));
20 | downloadUrl = await imageRef.getDownloadURL();
21 | print("FILE DOWNLOAD URL:$downloadUrl");
22 | return downloadUrl;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | // import 'dart:async';
2 | // import 'package:google_maps_flutter/google_maps_flutter.dart';
3 | // import 'package:flutter/material.dart';
4 | // import 'package:map_picker/map_picker.dart';
5 | // import 'package:geocoding/geocoding.dart';
6 | // import 'package:flutter_svg/flutter_svg.dart';
7 | //
8 | // import 'map_picker.dart';
9 | //
10 | // void main() {
11 | // runApp(const MyApp());
12 | // }
13 | //
14 | // class MyApp extends StatelessWidget {
15 | // const MyApp({Key? key}) : super(key: key);
16 | //
17 | // @override
18 | // Widget build(BuildContext context) {
19 | // return const MaterialApp(
20 | // debugShowCheckedModeBanner: false,
21 | // home: MyHomePage(),
22 | // );
23 | // }
24 | // }
25 | //
26 | // class MyHomePage extends StatefulWidget {
27 | // const MyHomePage({Key? key}) : super(key: key);
28 | //
29 | // @override
30 | // _MyHomePageState createState() => _MyHomePageState();
31 | // }
32 | //
33 | // class _MyHomePageState extends State {
34 | // final _controller = Completer();
35 | // MapPickerController mapPickerController = MapPickerController();
36 | //
37 | // CameraPosition cameraPosition = const CameraPosition(
38 | // target: LatLng(41.311158, 69.279737),
39 | // zoom: 14.4746,
40 | // );
41 | //
42 | // var textController = TextEditingController();
43 | //
44 | // @override
45 | // Widget build(BuildContext context) {
46 | // return Scaffold(
47 | // body: Stack(
48 | // alignment: Alignment.topCenter,
49 | // children: [
50 | // MapPicker(
51 | // // pass icon widget
52 | // iconWidget: SvgPicture.asset(
53 | // "assets/location_icon.svg",
54 | // height: 60,
55 | // ),
56 | // //add map picker controller
57 | // mapPickerController: mapPickerController,
58 | // child: GoogleMap(
59 | // myLocationEnabled: true,
60 | // zoomControlsEnabled: false,
61 | // // hide location button
62 | // myLocationButtonEnabled: false,
63 | // mapType: MapType.normal,
64 | // // camera position
65 | // initialCameraPosition: cameraPosition,
66 | // onMapCreated: (GoogleMapController controller) {
67 | // _controller.complete(controller);
68 | // },
69 | // onCameraMoveStarted: () {
70 | // // notify map is moving
71 | // mapPickerController.mapMoving!();
72 | // textController.text = "checking ...";
73 | // },
74 | // onCameraMove: (cameraPosition) {
75 | // this.cameraPosition = cameraPosition;
76 | // },
77 | // onCameraIdle: () async {
78 | // // notify map stopped moving
79 | // mapPickerController.mapFinishedMoving!();
80 | // //get address name from camera position
81 | // List placemarks = await placemarkFromCoordinates(
82 | // cameraPosition.target.latitude,
83 | // cameraPosition.target.longitude,
84 | // );
85 | //
86 | // // update the ui with the address
87 | // textController.text =
88 | // '${placemarks.first.name}, ${placemarks.first.administrativeArea}, ${placemarks.first.country}';
89 | // },
90 | // ),
91 | // ),
92 | // Positioned(
93 | // top: MediaQuery.of(context).viewPadding.top + 20,
94 | // width: MediaQuery.of(context).size.width - 50,
95 | // height: 50,
96 | // child: TextFormField(
97 | // maxLines: 3,
98 | // textAlign: TextAlign.center,
99 | // readOnly: true,
100 | // decoration: const InputDecoration(
101 | // contentPadding: EdgeInsets.zero, border: InputBorder.none),
102 | // controller: textController,
103 | // ),
104 | // ),
105 | // Positioned(
106 | // bottom: 24,
107 | // left: 24,
108 | // right: 24,
109 | // child: SizedBox(
110 | // height: 50,
111 | // child: TextButton(
112 | // child: const Text(
113 | // "Submit",
114 | // style: TextStyle(
115 | // fontWeight: FontWeight.w400,
116 | // fontStyle: FontStyle.normal,
117 | // color: Color(0xFFFFFFFF),
118 | // fontSize: 19,
119 | // // height: 19/19,
120 | // ),
121 | // ),
122 | // onPressed: () {
123 | // print(
124 | // "Location ${cameraPosition.target.latitude} ${cameraPosition.target.longitude}");
125 | // print("Address: ${textController.text}");
126 | // },
127 | // style: ButtonStyle(
128 | // backgroundColor:
129 | // MaterialStateProperty.all(const Color(0xFFA3080C)),
130 | // shape: MaterialStateProperty.all(
131 | // RoundedRectangleBorder(
132 | // borderRadius: BorderRadius.circular(15.0),
133 | // ),
134 | // ),
135 | // ),
136 | // ),
137 | // ),
138 | // )
139 | // ],
140 | // ),
141 | // );
142 | // }
143 | // }
144 | import 'dart:async';
145 | import 'package:google_maps_flutter/google_maps_flutter.dart';
146 | import 'package:flutter/material.dart';
147 | import 'package:map_picker/map_picker.dart';
148 | import 'package:geocoding/geocoding.dart';
149 | import 'package:flutter_svg/flutter_svg.dart';
150 | import 'package:telegram_clone/utils/my_icons.dart';
151 |
152 | void main() {
153 | runApp(const MyApp());
154 | }
155 |
156 | class MyApp extends StatelessWidget {
157 | const MyApp({Key? key}) : super(key: key);
158 |
159 | @override
160 | Widget build(BuildContext context) {
161 | return const MaterialApp(
162 | debugShowCheckedModeBanner: false,
163 | home: MyHomePage(),
164 | );
165 | }
166 | }
167 |
168 | class MyHomePage extends StatefulWidget {
169 | const MyHomePage({Key? key}) : super(key: key);
170 |
171 | @override
172 | _MyHomePageState createState() => _MyHomePageState();
173 | }
174 |
175 | class _MyHomePageState extends State {
176 | final _controller = Completer();
177 | MapPickerController mapPickerController = MapPickerController();
178 |
179 | CameraPosition cameraPosition = const CameraPosition(
180 | target: LatLng(41.311158, 69.279737),
181 | zoom: 14.4746,
182 | );
183 |
184 | var textController = TextEditingController();
185 |
186 | @override
187 | Widget build(BuildContext context) {
188 | return Scaffold(
189 | body: Stack(
190 | alignment: Alignment.topCenter,
191 | children: [
192 | MapPicker(
193 | // pass icon widget
194 | iconWidget: SvgPicture.asset(
195 | MyIcon.gps,
196 | height: 60,
197 | ),
198 | //add map picker controller
199 | mapPickerController: mapPickerController,
200 | child: GoogleMap(
201 | myLocationEnabled: true,
202 | zoomControlsEnabled: false,
203 | // hide location button
204 | myLocationButtonEnabled: false,
205 | mapType: MapType.normal,
206 | // camera position
207 | initialCameraPosition: cameraPosition,
208 | onMapCreated: (GoogleMapController controller) {
209 | _controller.complete(controller);
210 | },
211 | onCameraMoveStarted: () {
212 | // notify map is moving
213 | mapPickerController.mapMoving!();
214 | textController.text = "checking ...";
215 | },
216 | onCameraMove: (cameraPosition) {
217 | this.cameraPosition = cameraPosition;
218 | },
219 | onCameraIdle: () async {
220 | // notify map stopped moving
221 | mapPickerController.mapFinishedMoving!();
222 | //get address name from camera position
223 | List placemarks = await placemarkFromCoordinates(
224 | cameraPosition.target.latitude,
225 | cameraPosition.target.longitude,
226 | );
227 |
228 | // update the ui with the address
229 | textController.text =
230 | '${placemarks.first.name}, ${placemarks.first.administrativeArea}, ${placemarks.first.country}';
231 | },
232 | ),
233 | ),
234 | Positioned(
235 | top: MediaQuery.of(context).viewPadding.top + 20,
236 | width: MediaQuery.of(context).size.width - 50,
237 | height: 50,
238 | child: TextFormField(
239 | maxLines: 3,
240 | textAlign: TextAlign.center,
241 | readOnly: true,
242 | decoration: const InputDecoration(
243 | contentPadding: EdgeInsets.zero, border: InputBorder.none),
244 | controller: textController,
245 | ),
246 | ),
247 | Positioned(
248 | bottom: 24,
249 | left: 24,
250 | right: 24,
251 | child: SizedBox(
252 | height: 50,
253 | child: TextButton(
254 | child: const Text(
255 | "Submit",
256 | style: TextStyle(
257 | fontWeight: FontWeight.w400,
258 | fontStyle: FontStyle.normal,
259 | color: Color(0xFFFFFFFF),
260 | fontSize: 19,
261 | // height: 19/19,
262 | ),
263 | ),
264 | onPressed: () {
265 | print(
266 | "Location ${cameraPosition.target.latitude} ${cameraPosition.target.longitude}");
267 | print("Address: ${textController.text}");
268 | },
269 | style: ButtonStyle(
270 | backgroundColor:
271 | MaterialStateProperty.all(const Color(0xFFA3080C)),
272 | shape: MaterialStateProperty.all(
273 | RoundedRectangleBorder(
274 | borderRadius: BorderRadius.circular(15.0),
275 | ),
276 | ),
277 | ),
278 | ),
279 | ),
280 | )
281 | ],
282 | ),
283 | );
284 | }
285 | }
286 |
--------------------------------------------------------------------------------
/lib/map_picker.dart:
--------------------------------------------------------------------------------
1 | library map_picker;
2 |
3 | import 'package:flutter/material.dart';
4 |
5 | /// Map picker is controlled with MapPickerController. Map pin is lifted up
6 | /// whenever mapMoving() is called, and will be down when mapFinishedMoving()
7 | /// is called.
8 | class MapPickerController {
9 | Function? mapMoving;
10 | Function? mapFinishedMoving;
11 | }
12 |
13 | /// MapPicker widget is main widget that gets map as a child.
14 | /// It does not restrict user from using maps other than google map.
15 | /// [MapPicker] is controlled with [MapPickerController] class object
16 | class MapPicker extends StatefulWidget {
17 | /// Map widget, Google, Yandex Map or any other map can be used, see example
18 | final Widget child;
19 |
20 | /// Map pin widget in the center of the screen. [iconWidget] is used with
21 | /// animation controller
22 | final Widget? iconWidget;
23 |
24 | /// default value is true, defines, if there is a dot, at the bottom of the pin
25 | final bool showDot;
26 |
27 | /// [MapPicker] can be controller with [MapPickerController] object.
28 | /// you can call mapPickerController.mapMoving!() and
29 | /// mapPickerController.mapFinishedMoving!() for controlling the Map Pin.
30 | final MapPickerController mapPickerController;
31 |
32 | const MapPicker({
33 | Key? key,
34 | required this.child,
35 | required this.mapPickerController,
36 | this.iconWidget,
37 | this.showDot = true,
38 | }) : super(key: key);
39 |
40 | @override
41 | _MapPickerState createState() => _MapPickerState();
42 | }
43 |
44 | class _MapPickerState extends State
45 | with SingleTickerProviderStateMixin {
46 | static const double _dotRadius = 2.2;
47 |
48 | late AnimationController animationController;
49 | late Animation translateAnimation;
50 |
51 | @override
52 | void initState() {
53 | super.initState();
54 | animationController = AnimationController(
55 | vsync: this,
56 | duration: const Duration(milliseconds: 300),
57 | );
58 |
59 | widget.mapPickerController.mapMoving = mapMoving;
60 | widget.mapPickerController.mapFinishedMoving = mapFinishedMoving;
61 |
62 | translateAnimation = Tween(
63 | begin: 0.0,
64 | end: 1.0,
65 | ).animate(CurvedAnimation(
66 | parent: animationController,
67 | curve: Curves.ease,
68 | ));
69 | }
70 |
71 | /// Start of animation when map starts dragging by user, checks the state
72 | /// before firing animation, thus optimizing for rendering purposes
73 | void mapMoving() {
74 | if (!animationController.isAnimating && !animationController.isCompleted) {
75 | animationController.forward();
76 | }
77 | }
78 |
79 | /// down the Pin whenever the map is released and goes to idle position
80 | void mapFinishedMoving() {
81 | animationController.reverse();
82 | }
83 |
84 | @override
85 | Widget build(BuildContext context) {
86 | return LayoutBuilder(
87 | builder: (context, constraints) {
88 | return Stack(
89 | alignment: Alignment.center,
90 | children: [
91 | widget.child,
92 | Positioned(
93 | bottom: constraints.maxHeight * 0.5 - 10,
94 | child: AnimatedBuilder(
95 | animation: animationController,
96 | builder: (context, snapshot) {
97 | return Stack(
98 | alignment: Alignment.bottomCenter,
99 | children: [
100 | if (widget.showDot)
101 | Container(
102 | width: _dotRadius,
103 | height: _dotRadius,
104 | decoration: BoxDecoration(
105 | color: Colors.black,
106 | borderRadius: BorderRadius.circular(_dotRadius),
107 | ),
108 | ),
109 | Transform.translate(
110 | offset: Offset(0, -15 * translateAnimation.value),
111 | child: widget.iconWidget,
112 | ),
113 | ],
114 | );
115 | }),
116 | ),
117 | ],
118 | );
119 | },
120 | );
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/lib/ui/auth/sign_up_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_auth/firebase_auth.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_screenutil/flutter_screenutil.dart';
4 | import 'package:google_fonts/google_fonts.dart';
5 | import 'package:intl_phone_field/intl_phone_field.dart';
6 | import 'package:pin_code_fields/pin_code_fields.dart';
7 | import 'package:telegram_clone/ui/auth/user_register_page.dart';
8 |
9 |
10 | class SignUpPage extends StatefulWidget {
11 | const SignUpPage({Key? key}) : super(key: key);
12 |
13 | @override
14 | State createState() => _SignUpPageState();
15 | }
16 |
17 | class _SignUpPageState extends State {
18 |
19 | TextEditingController phoneController = TextEditingController();
20 | double bottom = 0;
21 | String otpPin = " ";
22 | String countryDial = "+998";
23 | String verID = " ";
24 |
25 | int screenState = 0;
26 |
27 | Future verifyPhone(String number) async {
28 | await FirebaseAuth.instance.verifyPhoneNumber(
29 | phoneNumber: number,
30 | timeout: const Duration(seconds: 50),
31 | verificationCompleted: (PhoneAuthCredential credential) {
32 | showSnackBarText("Auth Completed!");
33 | },
34 | verificationFailed: (FirebaseAuthException e) {
35 | showSnackBarText("Auth Failed!");
36 | },
37 | codeSent: (String verificationId, int? resendToken) {
38 | showSnackBarText("SMS sent !");
39 | verID = verificationId;
40 | setState(() {
41 | screenState = 1;
42 | });
43 | },
44 | codeAutoRetrievalTimeout: (String verificationId) {
45 | showSnackBarText("Timeout bro!");
46 | },
47 | );
48 | }
49 |
50 | Future verifyOTP() async {
51 | await FirebaseAuth.instance.signInWithCredential(
52 | PhoneAuthProvider.credential(
53 | verificationId: verID,
54 | smsCode: otpPin,
55 | ),
56 | ).whenComplete(() {
57 | Navigator.of(context).pushReplacement(
58 | MaterialPageRoute(
59 | builder: (context) => UserRegisterPage(phoneNumber: countryDial + phoneController.text),
60 | ),
61 | );
62 | });
63 | }
64 |
65 | @override
66 | Widget build(BuildContext context) {
67 |
68 | bottom = MediaQuery.of(context).viewInsets.bottom;
69 |
70 | return WillPopScope(
71 | onWillPop: () {
72 | setState(() {
73 | screenState = 0;
74 | });
75 | return Future.value(false);
76 | },
77 | child: Scaffold(
78 | backgroundColor: Colors.white,
79 | body: SizedBox(
80 |
81 | child: Stack(
82 | children: [
83 | Align(
84 | alignment: Alignment.topCenter,
85 | child: Padding(
86 | padding: EdgeInsets.only(top: 70),
87 | child: Column(
88 | children: [
89 | Text(
90 | "Telegram clone",
91 | style: GoogleFonts.montserrat(
92 | color: Colors.blue,
93 | fontWeight: FontWeight.bold,
94 | fontSize: 40.sp,
95 | ),
96 | ),
97 | ],
98 | ),
99 | ),
100 | ),
101 |
102 |
103 | Align(
104 | alignment: Alignment.bottomCenter,
105 | child: AnimatedContainer(
106 | height: bottom > 0 ? MediaQuery.of(context).size.height: MediaQuery.of(context).size.height / 2,
107 | width: MediaQuery.of(context).size.width,
108 | color: Colors.white,
109 | duration: const Duration(milliseconds: 800),
110 | curve: Curves.fastLinearToSlowEaseIn,
111 | child: Padding(
112 | padding: EdgeInsets.only(
113 | left: MediaQuery.of(context).size.width / 12,
114 | right: MediaQuery.of(context).size.width / 12,
115 | top: bottom > 0 ? MediaQuery.of(context).size.height / 12 : 0,
116 | ),
117 | child: Column(
118 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
119 | children: [
120 | screenState == 0 ? stateRegister() : stateOTP(),
121 | GestureDetector(
122 | onTap: () {
123 | if(screenState == 0) {
124 |
125 | if(phoneController.text.isEmpty) {
126 | showSnackBarText("Phone number is empty bro!");
127 | } else {
128 | verifyPhone("+998${phoneController.text}");
129 | }
130 | } else {
131 | if(otpPin.length >= 6) {
132 | verifyOTP();
133 | } else {
134 | showSnackBarText("Enter OTP correctly!");
135 | }
136 | }
137 | },
138 | child: Container(
139 | height: 50,
140 | width: MediaQuery.of(context).size.width,
141 | margin: EdgeInsets.only(bottom: MediaQuery.of(context).size.height / 12),
142 | decoration: BoxDecoration(
143 | color: Colors.blue,
144 | borderRadius: BorderRadius.circular(50),
145 | ),
146 | child: Center(
147 | child: Text(
148 | "Next",
149 | style: GoogleFonts.montserrat(
150 | color: Colors.white,
151 | fontWeight: FontWeight.bold,
152 | letterSpacing: 1.5,
153 | fontSize: 18,
154 | ),
155 | ),
156 | ),
157 | ),
158 | ),
159 | ],
160 | ),
161 | ),
162 | ),
163 | )
164 | ],
165 | ),
166 | ),
167 | ),
168 | );
169 | }
170 |
171 | void showSnackBarText(String text) {
172 | ScaffoldMessenger.of(context).showSnackBar(
173 | SnackBar(
174 | content: Text(text),
175 | ),
176 | );
177 | }
178 |
179 | Widget stateRegister() {
180 | return Column(
181 | crossAxisAlignment: CrossAxisAlignment.start,
182 | children: [
183 | Text(
184 | "Enter your phone number",
185 | style: GoogleFonts.montserrat(
186 | color: Colors.black87,
187 | fontWeight: FontWeight.bold,
188 | ),
189 | ),
190 | const SizedBox(height: 10,),
191 | IntlPhoneField(
192 | controller: phoneController,
193 | showCountryFlag: false,
194 | showDropdownIcon: false,
195 | initialValue: countryDial,
196 | onCountryChanged: (country) {
197 | setState(() {
198 | countryDial = "+998" + country.dialCode;
199 | });
200 | },
201 | decoration: InputDecoration(
202 | border: OutlineInputBorder(
203 | borderRadius: BorderRadius.circular(16),
204 | ),
205 | contentPadding: const EdgeInsets.symmetric(
206 | horizontal: 16,
207 | ),
208 | ),
209 | ),
210 | ],
211 | );
212 | }
213 |
214 | Widget stateOTP() {
215 | return Column(
216 | crossAxisAlignment: CrossAxisAlignment.center,
217 | children: [Text("Enter code Bro",
218 | style: GoogleFonts.montserrat(
219 | color: Colors.black87,
220 | fontWeight: FontWeight.bold,
221 | fontSize: 18,
222 |
223 |
224 | ),),
225 | const SizedBox(height: 20,),
226 | PinCodeTextField(
227 | appContext: context,
228 | length: 6,
229 | onChanged: (value) {
230 | setState(() {
231 | otpPin = value;
232 | });
233 | },
234 | pinTheme: PinTheme(
235 | activeColor: Colors.blue,
236 | selectedColor: Colors.blue,
237 | inactiveColor: Colors.black26,
238 | ),
239 | ),
240 | ],
241 | );
242 | }
243 |
244 |
245 | }
--------------------------------------------------------------------------------
/lib/ui/auth/user_register_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_auth/firebase_auth.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_screenutil/flutter_screenutil.dart';
4 | import 'package:image_picker/image_picker.dart';
5 | import 'package:telegram_clone/data/models/user_model.dart';
6 | import 'package:telegram_clone/ui/auth/widget/my_textfield.dart';
7 | import 'package:telegram_clone/ui/auth/widget/next_button.dart';
8 | import 'package:telegram_clone/ui/home/home_screen.dart';
9 | import '../../data/repositories/shared_repository.dart';
10 | import '../../data/service/file_uploader.dart';
11 | import '../../view_model/user_view_model.dart';
12 | import 'package:provider/provider.dart';
13 | class UserRegisterPage extends StatefulWidget {
14 | final String phoneNumber;
15 | const UserRegisterPage({Key? key, required this.phoneNumber}) : super(key: key);
16 |
17 | @override
18 | State createState() => _UserRegisterPageState();
19 | }
20 | final ImagePicker _picker = ImagePicker();
21 | XFile? _image;
22 | String imageUrl = "";
23 | bool isLoading = false;
24 | final TextEditingController _controllerName = TextEditingController();
25 |
26 | class _UserRegisterPageState extends State {
27 | @override
28 | Widget build(BuildContext context) {
29 | return Scaffold(
30 | body: SafeArea(
31 | child: SingleChildScrollView(
32 | physics: const BouncingScrollPhysics(),
33 | child: Column(
34 | children: [
35 | SizedBox(height: 50.h),
36 | Center(
37 | child: Container(
38 | width: 150,
39 | height: 150,
40 | decoration: BoxDecoration(borderRadius: BorderRadius.circular(75),
41 | image: DecorationImage(
42 | fit: BoxFit.cover,
43 | image:
44 | imageUrl.isEmpty
45 | ? const NetworkImage("https://picsum.photos/200")
46 | : NetworkImage(
47 | imageUrl,
48 | )
49 | ),
50 | ),
51 | ),
52 | ),
53 | SizedBox(height: 15.h,),
54 | Center(child: ElevatedButton(onPressed: (){_showPicker(context);}, child: const Text("Upload Image"))),
55 | SizedBox(height: 20.h,),
56 | MyTextField(controller: _controllerName, text: "Enter your name"),
57 | SizedBox(height: 380.h,),
58 | NextButton(isActive: checkActive(),onTap: () async {
59 | var userId = FirebaseAuth.instance.currentUser!.uid;
60 | await StorageRepository.saveUserId(userId);
61 | // ignore: use_build_context_synchronously
62 | if (checkActive()) {context.read().addUser(UserModel(
63 | userId: "",
64 | name: _controllerName.text,
65 | imageUrl: imageUrl,
66 | phoneNumber: widget.phoneNumber,
67 | userUid: FirebaseAuth.instance.currentUser!.uid,
68 | some: ""
69 | ));
70 |
71 | // ignore: use_build_context_synchronously
72 | Navigator.pushAndRemoveUntil(context, MaterialPageRoute(builder: (context)=>HomeScreen(currentUserUid: FirebaseAuth.instance.currentUser!.uid,)),(route) => false,);}
73 | },)
74 | ],
75 | ),
76 | ),
77 | ),
78 | );
79 | }
80 |
81 |
82 | checkActive(){
83 | if(_controllerName.text.isNotEmpty && imageUrl.isNotEmpty){
84 | return true;
85 | }
86 | return false;
87 | }
88 | void _showPicker(context) {
89 | showModalBottomSheet(
90 | context: context,
91 | builder: (BuildContext bc) {
92 | return SafeArea(
93 | child: Wrap(
94 | children: [
95 | ListTile(
96 | leading: const Icon(Icons.photo_library),
97 | title: const Text("Gallery"),
98 | onTap: () {
99 | _getFromGallery();
100 | Navigator.of(context).pop();
101 | }),
102 | ListTile(
103 | leading: const Icon(Icons.photo_camera),
104 | title: const Text('Camera'),
105 | onTap: () {
106 | _getFromCamera();
107 | Navigator.of(context).pop();
108 | },
109 | ),
110 | ],
111 | ),
112 | );
113 | });
114 | }
115 |
116 | _getFromGallery() async {
117 | XFile? pickedFile = await _picker.pickImage(
118 | maxWidth: 1000,
119 | maxHeight: 1000,
120 | source: ImageSource.gallery,
121 | );
122 | if (pickedFile != null) {
123 | if (!mounted) return;
124 | setState(() {
125 | isLoading = true;
126 | });
127 | imageUrl = await FileUploader.imageUploader(pickedFile);
128 | setState(() {
129 | isLoading = false;
130 | _image = pickedFile;
131 | });
132 | }
133 | }
134 |
135 | _getFromCamera() async {
136 | XFile? pickedFile = await _picker.pickImage(
137 | maxWidth: 1920,
138 | maxHeight: 2000,
139 | source: ImageSource.camera,
140 | );
141 | if (pickedFile != null) {
142 | if (!mounted) return;
143 | imageUrl = await FileUploader.imageUploader(pickedFile);
144 | setState(() {
145 | _image = pickedFile;
146 | });
147 | }
148 | }
149 | }
150 |
--------------------------------------------------------------------------------
/lib/ui/auth/widget/my_textfield.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter/services.dart';
3 | import 'package:flutter_screenutil/flutter_screenutil.dart';
4 |
5 | class MyTextField extends StatelessWidget {
6 | MyTextField({
7 | Key? key,
8 | required this.controller,
9 | required this.text,
10 | this.isDone = false,
11 | }) : super(key: key);
12 |
13 |
14 |
15 | final TextEditingController controller;
16 | final String text;
17 | bool? isDone;
18 |
19 | @override
20 | Widget build(BuildContext context) {
21 | return Padding(
22 | padding: const EdgeInsets.only(right: 20, left: 20).r,
23 | child: Material(
24 | borderRadius: BorderRadius.circular(30).w,
25 | shadowColor: Colors.blue.withOpacity(0.12),
26 | elevation: 25,
27 | child: TextFormField(
28 | textInputAction: isDone! ? TextInputAction.done : TextInputAction
29 | .next,
30 |
31 | style: TextStyle( color: Colors.black, fontSize: 16.sp),
32 | obscureText: (text == "Password" || text == "Confirm Password"
33 | ? true
34 | : false),
35 | autovalidateMode: AutovalidateMode.onUserInteraction,
36 |
37 | controller: controller,
38 | keyboardType: TextInputType.name,
39 | decoration:
40 | InputDecoration(
41 | hintText: text,
42 | contentPadding: const EdgeInsets.only(left: 20),
43 | hintStyle: TextStyle(
44 | color: Colors.grey, fontSize: 16),
45 |
46 | filled: true,
47 | fillColor: Colors.white,
48 | border: const OutlineInputBorder(),
49 | enabledBorder: const OutlineInputBorder(
50 | borderRadius: BorderRadius.all(Radius.circular(30)),
51 | borderSide: BorderSide(color: Colors.grey),
52 | ),
53 | focusedBorder: const OutlineInputBorder(
54 | borderRadius: BorderRadius.all(Radius.circular(30)),
55 | borderSide: BorderSide(color: Colors.blue, width: 2),
56 | ),
57 | focusedErrorBorder: const OutlineInputBorder(
58 | borderRadius: BorderRadius.all(Radius.circular(100)),
59 | borderSide: BorderSide(color: Colors.blue),
60 | ),
61 | errorBorder: const OutlineInputBorder(
62 | borderRadius: BorderRadius.all(Radius.circular(100)),
63 | borderSide: BorderSide(color: Colors.blue),
64 | ),
65 | ),
66 | cursorColor: Colors.black,
67 | ),
68 | ),
69 | );
70 |
71 |
72 | }
73 | }
74 |
--------------------------------------------------------------------------------
/lib/ui/auth/widget/next_button.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_screenutil/flutter_screenutil.dart';
3 |
4 | class NextButton extends StatelessWidget {
5 | const NextButton({
6 | Key? key,
7 | required this.isActive,
8 |
9 | required this.onTap,
10 |
11 | }) : super(key: key);
12 | final bool isActive;
13 |
14 | final VoidCallback onTap;
15 |
16 |
17 | @override
18 | Widget build(BuildContext context) {
19 | return Padding(
20 | padding: const EdgeInsets.only(left: 20, right: 20),
21 | child: Container(
22 | width: double.infinity,
23 | height: 43.h,
24 | decoration: BoxDecoration(
25 | color: isActive ? null : Colors.blue.withOpacity(0.4),
26 |
27 | borderRadius: BorderRadius.circular(32),
28 | ),
29 | child: ElevatedButton(
30 | onPressed: isActive ? onTap : null,
31 | style: ElevatedButton.styleFrom(
32 | backgroundColor: Colors.blue,
33 | // shadowColor: Colors.transparent,
34 | shape:
35 | RoundedRectangleBorder(borderRadius: BorderRadius.circular(32)),
36 | ),
37 | child: Text(
38 | "Create account",
39 | style: TextStyle(
40 | fontSize: 18,
41 | color: Colors.white,
42 | ),
43 | ),
44 | ),
45 | ),
46 | );
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/lib/ui/chat/chat_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_screenutil/flutter_screenutil.dart';
3 | import 'package:flutter_svg/flutter_svg.dart';
4 | import 'package:location/location.dart';
5 | import 'package:lottie/lottie.dart';
6 | import 'package:telegram_clone/data/models/chat_room_model.dart';
7 | import 'package:telegram_clone/ui/chat/widget/chat_get_widget.dart';
8 | import 'package:telegram_clone/ui/chat/widget/chat_send_widget.dart';
9 | import 'package:telegram_clone/utils/my_icons.dart';
10 | import 'package:telegram_clone/utils/my_lotties.dart';
11 | import 'package:telegram_clone/view_model/chat_view_model.dart';
12 | import 'package:provider/provider.dart';
13 | import '../../data/models/location.dart';
14 | import '../../utils/my_colors.dart';
15 | import '../map/map_page.dart';
16 |
17 | class ChatPage extends StatefulWidget {
18 | final List twoUsers;
19 | final String chatName;
20 | final String imageUrl;
21 | final String currentUser;
22 | final String chatsDocId;
23 |
24 | const ChatPage(
25 | {Key? key,
26 | required this.twoUsers,
27 | required this.chatName,
28 | required this.imageUrl,
29 | required this.currentUser,
30 | required this.chatsDocId})
31 | : super(key: key);
32 |
33 | @override
34 | State createState() => _ChatPageState();
35 | }
36 |
37 | final _textController = TextEditingController();
38 | @override
39 | Future locationService() async {
40 | Location location = new Location();
41 |
42 | bool _serviceEnabled;
43 | PermissionStatus _permissionLocation;
44 | LocationData _locData;
45 |
46 | _serviceEnabled = await location.serviceEnabled();
47 | if (!_serviceEnabled) {
48 | _serviceEnabled = await location.requestService();
49 | if (!_serviceEnabled) {
50 | return;
51 | }
52 | }
53 |
54 | _permissionLocation = await location.hasPermission();
55 | if (_permissionLocation == PermissionStatus.denied) {
56 | _permissionLocation = await location.requestPermission();
57 | if (_permissionLocation != PermissionStatus.granted) {
58 | return;
59 | }
60 | }
61 |
62 | _locData = await location.getLocation();
63 |
64 | // setState(() {
65 | // UserLocation.lat = _locData.latitude!;
66 | // UserLocation.long = _locData.longitude!;
67 | // print("bbbbbbbbbbbbbbb${UserLocation.lat}");
68 | // print("aaaaaaaaaaaaaaaaa${UserLocation.long}");
69 | // });
70 | }
71 | initState(){
72 | // locationService();
73 | // super.initState;
74 | }
75 | class _ChatPageState extends State {
76 | @override
77 | Widget build(BuildContext context) {
78 | return Scaffold(
79 | backgroundColor: MyColors.C_1B202D,
80 | appBar: AppBar(
81 | backgroundColor: MyColors.C_1B202D,
82 | title: Row(
83 | children: [
84 | CircleAvatar(backgroundImage: NetworkImage(widget.imageUrl),),
85 | SizedBox(width: 10.w,),
86 | Text(widget.chatName.toString()),
87 | ],
88 | ),
89 | ),
90 | body: SingleChildScrollView(
91 | physics: const BouncingScrollPhysics(),
92 | child: Stack(
93 | children: [
94 | SizedBox(
95 | height: MediaQuery.of(context).size.height * 0.8,
96 | child: StreamBuilder(
97 | stream: Provider.of(context, listen: false)
98 | .listenAllChats1(widget.chatsDocId),
99 | builder: (context, snapshot) {
100 | if (snapshot.hasData) {
101 | return Container(
102 | height: MediaQuery.of(context).size.height * 0.81,
103 | width: MediaQuery.of(context).size.width,
104 | color: MyColors.C_1B202D,
105 | child: snapshot.data!.isEmpty
106 | ? Center(
107 | child: Lottie.asset(MyLottie.empty) ,
108 | )
109 | : ListView.builder(
110 | reverse: true,
111 | itemCount: snapshot.data!.length,
112 | itemBuilder: (context, index) {
113 | var allData = snapshot.data!;
114 | index = index + 1;
115 | return allData[snapshot.data!.length - index].userUid != widget.currentUser
116 | ? ChatGetWidget(context: context, allData: allData, snapshot: snapshot, index: index)
117 | : ChatSendWidget(context: context, allData: allData, snapshot: snapshot, index: index);
118 | }),
119 | );
120 |
121 | }
122 | if(snapshot.hasError){
123 | return const CircularProgressIndicator();
124 | }
125 |
126 | else {
127 | return Container();
128 | }
129 | }),
130 | ),
131 | Column(
132 | children: [
133 | SizedBox(height: MediaQuery.of(context).size.height*0.8,),
134 | Container(
135 | height: MediaQuery.of(context).size.height * 0.06,
136 | width: MediaQuery.of(context).size.width * 0.95,
137 | decoration: BoxDecoration(
138 | color: MyColors.C_7A8194,
139 | borderRadius: BorderRadius.circular(25).w),
140 | child: Padding(
141 | padding: EdgeInsets.only(right: 15.r, left: 15.r),
142 | child: Row(
143 | children: [
144 | MyInput(),
145 | InkWell(
146 | onTap: (() {
147 |
148 | Navigator.push(context, MaterialPageRoute(builder: (context)=>const MapPage()));
149 | }),
150 | child: SvgPicture.asset(MyIcon.location)),
151 | SizedBox(width: 10.w,),
152 | InkWell(
153 | highlightColor: Colors.transparent,
154 | splashColor: Colors.transparent,
155 | onTap: (() {
156 | if (_textController.text.trim() != "") {
157 | Provider.of(context, listen: false)
158 | .addMessage(
159 | ChatRoomModel(
160 | chatroomId: "",
161 | text: _textController.text,
162 | datatime: DateTime.now().toString(),
163 | userUid: widget.currentUser),
164 | getChatRoomId(widget.twoUsers[0],
165 | widget.twoUsers[1]));
166 | _textController.clear();
167 | }
168 | }),
169 | child: const Icon(Icons.send))
170 | ],
171 | ),
172 | ),
173 | ),
174 | ],
175 | )
176 | ],
177 | ),
178 | ));
179 | }
180 |
181 | // ignore: non_constant_identifier_names
182 | Widget MyInput() {
183 | return Expanded(
184 | child: TextField(
185 | cursorColor: Colors.white,
186 | textCapitalization: TextCapitalization.sentences,
187 | style: const TextStyle(color: Colors.white),
188 | controller: _textController,
189 | decoration: InputDecoration(
190 | enabledBorder: UnderlineInputBorder(
191 | borderSide: BorderSide(color: Colors.white.withOpacity(0)),
192 | ),
193 | focusedBorder: UnderlineInputBorder(
194 | borderSide: BorderSide(color: Colors.white.withOpacity(0)),
195 | ),
196 | border: OutlineInputBorder(
197 | borderSide: const BorderSide(color: Colors.black),
198 | borderRadius: BorderRadius.circular(25).w,
199 | )),
200 | ),
201 | );
202 | }
203 |
204 | getChatRoomId(String a, String b) {
205 | if (a.substring(0, 1).codeUnitAt(0) > b.substring(0, 1).codeUnitAt(0)) {
206 | return "$b\_$a";
207 | } else {
208 | return "$a\_$b";
209 | }
210 | }
211 |
212 | }
213 |
--------------------------------------------------------------------------------
/lib/ui/chat/widget/chat_get_widget.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_screenutil/flutter_screenutil.dart';
4 | import '../../../data/models/chat_room_model.dart';
5 | import '../../../utils/my_colors.dart';
6 |
7 | class ChatGetWidget extends StatelessWidget {
8 | final BuildContext context;
9 | final List allData;
10 | final AsyncSnapshot> snapshot;
11 | final int index;
12 |
13 | const ChatGetWidget({Key? key, required this.context, required this.allData, required this.snapshot, required this.index}) : super(key: key);
14 |
15 | @override
16 | Widget build(BuildContext context) {
17 | return Padding(
18 | padding: EdgeInsets.only(top: 3.r, bottom: 3.r),
19 | child: Row(
20 |
21 | mainAxisAlignment: MainAxisAlignment.start,
22 | children: [
23 | Padding(
24 | padding: EdgeInsets.only(left: 10.r),
25 | child: InkWell(
26 |
27 | child: Container(
28 | padding: EdgeInsets.only(right: 15.r, left: 13.r, top: 8.r, bottom: 8.r),
29 | constraints: BoxConstraints(
30 | maxWidth: MediaQuery.of(context).size.width*0.6,
31 | minWidth: MediaQuery.of(context).size.width*0.1
32 | ),
33 | decoration: BoxDecoration(
34 | color: MyColors.C_373E4E,
35 | borderRadius: BorderRadius.circular(20).w
36 | ),
37 | child: Text( allData[snapshot.data!.length-index].text.trim(), style: TextStyle(color: Colors.white, fontSize: 14.sp),)
38 |
39 | ),
40 | ),
41 | ),
42 | ],
43 | ),
44 | );
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/lib/ui/chat/widget/chat_send_widget.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_screenutil/flutter_screenutil.dart';
3 | import '../../../data/models/chat_room_model.dart';
4 | import '../../../utils/my_colors.dart';
5 |
6 | class ChatSendWidget extends StatelessWidget {
7 | final BuildContext context;
8 | final List allData;
9 | final AsyncSnapshot> snapshot;
10 | final int index;
11 |
12 | const ChatSendWidget({Key? key, required this.context, required this.allData, required this.snapshot, required this.index}) : super(key: key);
13 |
14 | @override
15 | Widget build(BuildContext context) {
16 | return Padding(
17 | padding: EdgeInsets.only(top: 3.r, bottom: 3.r),
18 | child: Row(
19 | mainAxisAlignment: MainAxisAlignment.end,
20 | children: [
21 | Padding(
22 | padding: EdgeInsets.only(right: 10.r),
23 | child: InkWell(
24 |
25 | child: Container(
26 | padding: EdgeInsets.only(right: 25.r, left: 15.r, top: 6.r, bottom: 6.r),
27 | constraints: BoxConstraints(
28 | maxWidth: MediaQuery.of(context).size.width*0.6,
29 | minWidth: MediaQuery.of(context).size.width*0.1
30 | ),
31 | decoration: BoxDecoration(
32 | color: MyColors.C_7A8194,
33 | borderRadius: BorderRadius.circular(20).w
34 | ),
35 | child:
36 |
37 | Text(allData[snapshot.data!.length-index].text,style: TextStyle(color: Colors.white,fontSize: 14.sp),),
38 | ),
39 | ),
40 | ),
41 | ],
42 | ),
43 | );
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/lib/ui/home/home_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:cloud_firestore/cloud_firestore.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_screenutil/flutter_screenutil.dart';
4 | import 'package:google_fonts/google_fonts.dart';
5 | import 'package:provider/provider.dart';
6 | import 'package:telegram_clone/data/models/chat_model.dart';
7 | import 'package:telegram_clone/data/models/user_model.dart';
8 | import 'package:telegram_clone/utils/my_colors.dart';
9 | import 'package:telegram_clone/view_model/chat_view_model.dart';
10 | import 'package:telegram_clone/view_model/user_view_model.dart';
11 | import '../chat/chat_page.dart';
12 |
13 | class HomeScreen extends StatelessWidget {
14 | // ignore: prefer_typing_uninitialized_variables
15 | final currentUserUid;
16 |
17 | const HomeScreen({Key? key, required this.currentUserUid}) : super(key: key);
18 |
19 | @override
20 | Widget build(BuildContext context) {
21 | return Scaffold(
22 | backgroundColor: MyColors.black,
23 | body: SafeArea(
24 | child: StreamBuilder(
25 | stream: Provider.of(context, listen: false)
26 | .listenUsers1(currentUserUid),
27 | builder: (context, snapshot) {
28 | if (snapshot.hasData) {
29 | var data = snapshot.data;
30 | return ListView.builder(
31 | physics: const BouncingScrollPhysics(),
32 | itemCount: data!.length,
33 | itemBuilder: (context, index) {
34 | return UsersWidget(
35 | context,
36 | data,
37 | index,
38 | );
39 | });
40 | } else {
41 | return Container();
42 | }
43 | }),
44 | ));
45 | }
46 |
47 | // ignore: non_constant_identifier_names
48 | Widget UsersWidget(BuildContext context, List data, int index) {
49 | return InkWell(
50 | onTap: (() async {
51 |
52 | Provider.of(context, listen: false).addChats(
53 | ChatModel(
54 | docId: getChatRoomId(currentUserUid.toString(),data[index].userUid),
55 | chat: [],
56 | twoUser: [currentUserUid, data[index].userUid]),
57 | getChatRoomId(currentUserUid.toString(),data[index].userUid));
58 | // ignore: use_build_context_synchronously
59 | var userDocRef = FirebaseFirestore.instance.collection('chats').doc(getChatRoomId(currentUserUid.toString(),data[index].userUid));
60 | var doc = await userDocRef.get();
61 | String docId;
62 | if (!doc.exists) {
63 | print("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaa$userDocRef");
64 | docId = getChatRoomId(currentUserUid.toString(),data[index].userUid);
65 | } else {
66 | print("BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB$userDocRef");
67 | docId = getChatRoomId(data[index].userUid,currentUserUid.toString());
68 | }
69 | // ignore: use_build_context_synchronously
70 | Navigator.push(
71 | context,
72 | MaterialPageRoute(
73 | builder: (context) =>
74 | ChatPage(chatName: data[index].name,
75 | chatsDocId: docId,
76 | imageUrl: data[index].imageUrl,
77 | twoUsers: [currentUserUid, data[index].userUid],
78 | currentUser: currentUserUid,
79 | )));
80 |
81 |
82 |
83 | }),
84 | child: Padding(
85 | padding: const EdgeInsets.only(left: 10, right: 10, top: 7).r,
86 | child: Container(
87 | height: 80.h,
88 | decoration: BoxDecoration(
89 | color: MyColors.C_161616,
90 | borderRadius: BorderRadius.circular(15).w),
91 | child: Padding(
92 | padding: const EdgeInsets.only(right: 80, left: 15).r,
93 | child: Row(
94 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
95 | children: [
96 | CircleAvatar(
97 | radius: 30.r,
98 | backgroundImage: NetworkImage(data[index].imageUrl),
99 | ),
100 | Column(
101 | mainAxisAlignment: MainAxisAlignment.center,
102 | children: [
103 | Text(
104 | data[index].name,
105 | style: GoogleFonts.lalezar(
106 | color: MyColors.white, fontSize: 20),
107 | ),
108 | ],
109 | ),
110 | const SizedBox(),
111 | ],
112 | ),
113 | ),
114 | ),
115 | ),
116 | );
117 | }
118 | getChatRoomId(String a, String b) {
119 | if (a.substring(0, 1).codeUnitAt(0) > b.substring(0, 1).codeUnitAt(0)) {
120 | return "$b\_$a";
121 | } else {
122 | return "$a\_$b";
123 | }
124 | }
125 | }
126 |
--------------------------------------------------------------------------------
/lib/ui/map/map_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:google_maps_flutter/google_maps_flutter.dart';
3 | import 'package:telegram_clone/utils/my_icons.dart';
4 |
5 | class MapPage extends StatefulWidget {
6 |
7 |
8 | const MapPage({Key? key}) : super(key: key);
9 |
10 | @override
11 | State createState() => _MapPageState();
12 | }
13 |
14 |
15 | class _MapPageState extends State {
16 | BitmapDescriptor markerIcon = BitmapDescriptor.defaultMarker;
17 | @override
18 | void initState(){
19 | addCustomIcon();
20 | super.initState();
21 | }
22 | void addCustomIcon(){
23 | BitmapDescriptor.fromAssetImage(ImageConfiguration(), MyIcon.gps).then((icon) => {
24 | setState((){
25 | markerIcon = icon;
26 | })
27 | });
28 | }
29 |
30 | @override
31 | Widget build(BuildContext context) {
32 | return Scaffold(
33 | body: GoogleMap(
34 | initialCameraPosition: CameraPosition(
35 | target: LatLng(61, 47),
36 | zoom: 14,
37 |
38 | ) ,
39 | markers: {
40 | Marker(markerId: MarkerId("demo"),
41 | position: LatLng(61, 47.1),
42 | draggable: true,
43 | onDragEnd: (value){
44 |
45 | } ,
46 | icon: markerIcon
47 |
48 | ),
49 |
50 | },
51 |
52 | ),
53 |
54 | );
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/lib/ui/splash/splash_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:lottie/lottie.dart';
3 | import 'package:telegram_clone/ui/auth/sign_up_page.dart';
4 | import 'package:telegram_clone/ui/home/home_screen.dart';
5 | import 'package:telegram_clone/utils/my_lotties.dart';
6 | import '../../data/repositories/shared_repository.dart';
7 | import '../../utils/my_colors.dart';
8 |
9 | class SplashPage extends StatefulWidget {
10 | const SplashPage({Key? key}) : super(key: key);
11 |
12 | @override
13 | State createState() => _SplashPageState();
14 | }
15 |
16 | class _SplashPageState extends State {
17 | @override
18 | void initState() {
19 | super.initState();
20 | onNextPage();
21 | }
22 |
23 | onNextPage() {
24 | // print(StorageRepository.getUserId());
25 | Future.delayed(const Duration(seconds: 3), () async {
26 | dynamic response = await StorageRepository.getUserId();
27 | response==""?
28 | // ignore: use_build_context_synchronously
29 | Navigator.pushReplacement(context, MaterialPageRoute(builder: (context)=>const SignUpPage())) :
30 |
31 | // ignore: use_build_context_synchronously
32 | Navigator.pushAndRemoveUntil(context, MaterialPageRoute(builder: (context)=>HomeScreen(currentUserUid: response)), (route) => false);
33 |
34 | });
35 | }
36 |
37 | @override
38 | Widget build(BuildContext context) {
39 | return Scaffold(
40 | backgroundColor: MyColors.C_1B202D,
41 | body: Center(
42 | child: Lottie.asset(MyLottie.splash),
43 | )
44 | );
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/lib/utils/my_colors.dart:
--------------------------------------------------------------------------------
1 | import 'dart:ui';
2 |
3 | class MyColors {
4 | // ignore: constant_identifier_names
5 | static const C_161616 = Color(0xFF161616);
6 | static const black = Color(0xFF000000);
7 | static const white = Color(0xFFFFFFFF);
8 | // ignore: constant_identifier_names
9 | static const C_7A8194 = Color(0xFF7A8194);
10 | // ignore: constant_identifier_names
11 | static const C_1B202D = Color(0xFF1B202D);
12 | // ignore: constant_identifier_names
13 | static const C_373E4E = Color(0xFF373E4E);
14 | // ignore: constant_identifier_names
15 | static const C_1C2632 = Color(0xFF1C2632);
16 | // ignore: constant_identifier_names
17 | static const C_8A96A4 = Color(0xFF8A96A4);
18 |
19 | }
--------------------------------------------------------------------------------
/lib/utils/my_icons.dart:
--------------------------------------------------------------------------------
1 | class MyIcon {
2 | static const location = "assets/icons/location.svg";
3 | static const gps = "assets/icons/gps.svg";
4 | }
--------------------------------------------------------------------------------
/lib/utils/my_lotties.dart:
--------------------------------------------------------------------------------
1 | class MyLottie {
2 | static const empty = "assets/lottie/empty.json";
3 | static const splash = "assets/lottie/splash.json";
4 | }
--------------------------------------------------------------------------------
/lib/view_model/chat_view_model.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'package:flutter/material.dart';
3 | import 'package:telegram_clone/data/models/chat_model.dart';
4 | import 'package:telegram_clone/data/repositories/chat_repository.dart';
5 |
6 | import '../data/models/chat_room_model.dart';
7 |
8 |
9 | class ChatViewModel extends ChangeNotifier {
10 |
11 | ChatViewModel({required this.chatRepo}){
12 | listenChats("AqxabSDybRZbBPyjx50uvo92YwP2_gqjdzKBEh7UauKx19KDgUrS1ct22");
13 | //listenAllChats1("AqxabSDybRZbBPyjx50uvo92YwP2_gqjdzKBEh7UauKx19KDgUrS1ct22");
14 | }
15 | List chatAdmin = [];
16 | late StreamSubscription subscription;
17 |
18 | final ChatRepo chatRepo;
19 |
20 | List chats = [];
21 |
22 | Stream>? listenAllChats1(String users) =>
23 | chatRepo.listenChat (docId: users);
24 |
25 | addChats(ChatModel chatModel, String newDoc) =>
26 | chatRepo.addChat(chatModel: chatModel, newDoc: newDoc);
27 |
28 | addMessage(ChatRoomModel chatRoomModel, String newDoc) =>
29 | chatRepo.addMessage(chatsId: newDoc, chatRoomModel: chatRoomModel);
30 |
31 | deleteChats(String docId) => chatRepo.deleteChat(docId: docId);
32 |
33 | listenChats(String docId){
34 | chatRepo.listenChat(docId: docId).listen((chatsList) {
35 | chats = chatsList;
36 | notifyListeners();
37 | });
38 | }
39 |
40 | // getChatDoc(String doc){
41 | // return chatRepo.
42 | // }
43 |
44 | // listenChats(String docId) async {
45 | // subscription = chatRepo
46 | // .listenChat(docId: docId)
47 | // .listen((allProducts) {
48 | // if(docId.isEmpty) chatAdmin = allProducts;
49 | // print("ALL PRODUCTS LENGTH:${allProducts.length}");
50 | // chats = allProducts;
51 | // notifyListeners();
52 | // });
53 | // }
54 |
55 | @override
56 | void dispose() {
57 | subscription.cancel();
58 | super.dispose();
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/lib/view_model/user_view_model.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'package:flutter/material.dart';
3 | import '../data/models/user_model.dart';
4 | import '../data/repositories/user_repository.dart';
5 |
6 | class UserViewModel extends ChangeNotifier {
7 | final UserRepository userRepository;
8 |
9 | UserViewModel({required this.userRepository}){
10 | listenUser("");
11 | }
12 | List userAdmin = [];
13 | late StreamSubscription subscription;
14 |
15 | List users = [];
16 |
17 |
18 | Stream> listenUsers1(String currentUser) =>
19 | userRepository.getAllUsers(currentUser);
20 |
21 | addUser(UserModel userModel) =>
22 | userRepository.addUser(userModel: userModel);
23 |
24 | updateUser(UserModel userModel) =>
25 | userRepository.updateUser(userModel: userModel);
26 |
27 | deleteUser(String docId) => userRepository.deleteUser(docId: docId);
28 |
29 | listenUser(String userId) async {
30 | subscription = userRepository
31 | .getUser(userId: userId)
32 | .listen((allUsers) {
33 | if(userId.isEmpty) userAdmin = allUsers;
34 |
35 | users = allUsers;
36 | notifyListeners();
37 | });
38 | }
39 |
40 | @override
41 | void dispose() {
42 | subscription.cancel();
43 | super.dispose();
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | _flutterfire_internals:
5 | dependency: transitive
6 | description:
7 | name: _flutterfire_internals
8 | sha256: "3ff770dfff04a67b0863dff205a0936784de1b87a5e99b11c693fc10e66a9ce3"
9 | url: "https://pub.dev"
10 | source: hosted
11 | version: "1.0.12"
12 | archive:
13 | dependency: transitive
14 | description:
15 | name: archive
16 | sha256: d6347d54a2d8028e0437e3c099f66fdb8ae02c4720c1e7534c9f24c10351f85d
17 | url: "https://pub.dev"
18 | source: hosted
19 | version: "3.3.6"
20 | async:
21 | dependency: transitive
22 | description:
23 | name: async
24 | sha256: bfe67ef28df125b7dddcea62755991f807aa39a2492a23e1550161692950bbe0
25 | url: "https://pub.dev"
26 | source: hosted
27 | version: "2.10.0"
28 | boolean_selector:
29 | dependency: transitive
30 | description:
31 | name: boolean_selector
32 | sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
33 | url: "https://pub.dev"
34 | source: hosted
35 | version: "2.1.1"
36 | change_app_package_name:
37 | dependency: "direct main"
38 | description:
39 | name: change_app_package_name
40 | sha256: f9ebaf68a4b5a68c581492579bb68273c523ef325fbf9ce2f1b57fb136ad023b
41 | url: "https://pub.dev"
42 | source: hosted
43 | version: "1.1.0"
44 | characters:
45 | dependency: transitive
46 | description:
47 | name: characters
48 | sha256: e6a326c8af69605aec75ed6c187d06b349707a27fbff8222ca9cc2cff167975c
49 | url: "https://pub.dev"
50 | source: hosted
51 | version: "1.2.1"
52 | clock:
53 | dependency: transitive
54 | description:
55 | name: clock
56 | sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
57 | url: "https://pub.dev"
58 | source: hosted
59 | version: "1.1.1"
60 | cloud_firestore:
61 | dependency: "direct main"
62 | description:
63 | name: cloud_firestore
64 | sha256: a851106a2169c15614047b75ea10d0346650352c6669ab482306572aa4ed9a7d
65 | url: "https://pub.dev"
66 | source: hosted
67 | version: "4.3.1"
68 | cloud_firestore_platform_interface:
69 | dependency: transitive
70 | description:
71 | name: cloud_firestore_platform_interface
72 | sha256: "1fac512fef2bfe84ca7f372defbd9dd8efb108be96854db9023739a5b2aa9977"
73 | url: "https://pub.dev"
74 | source: hosted
75 | version: "5.10.1"
76 | cloud_firestore_web:
77 | dependency: transitive
78 | description:
79 | name: cloud_firestore_web
80 | sha256: "3fd9581c1447b6e8db6d0f19d0140b196a70ecf582bd1f71e7141fe9abf10ddb"
81 | url: "https://pub.dev"
82 | source: hosted
83 | version: "3.2.1"
84 | collection:
85 | dependency: transitive
86 | description:
87 | name: collection
88 | sha256: cfc915e6923fe5ce6e153b0723c753045de46de1b4d63771530504004a45fae0
89 | url: "https://pub.dev"
90 | source: hosted
91 | version: "1.17.0"
92 | convert:
93 | dependency: transitive
94 | description:
95 | name: convert
96 | sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592"
97 | url: "https://pub.dev"
98 | source: hosted
99 | version: "3.1.1"
100 | cross_file:
101 | dependency: transitive
102 | description:
103 | name: cross_file
104 | sha256: f71079978789bc2fe78d79227f1f8cfe195b31bbd8db2399b0d15a4b96fb843b
105 | url: "https://pub.dev"
106 | source: hosted
107 | version: "0.3.3+2"
108 | crypto:
109 | dependency: transitive
110 | description:
111 | name: crypto
112 | sha256: aa274aa7774f8964e4f4f38cc994db7b6158dd36e9187aaceaddc994b35c6c67
113 | url: "https://pub.dev"
114 | source: hosted
115 | version: "3.0.2"
116 | cupertino_icons:
117 | dependency: "direct main"
118 | description:
119 | name: cupertino_icons
120 | sha256: e35129dc44c9118cee2a5603506d823bab99c68393879edb440e0090d07586be
121 | url: "https://pub.dev"
122 | source: hosted
123 | version: "1.0.5"
124 | fake_async:
125 | dependency: transitive
126 | description:
127 | name: fake_async
128 | sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
129 | url: "https://pub.dev"
130 | source: hosted
131 | version: "1.3.1"
132 | ffi:
133 | dependency: transitive
134 | description:
135 | name: ffi
136 | sha256: a38574032c5f1dd06c4aee541789906c12ccaab8ba01446e800d9c5b79c4a978
137 | url: "https://pub.dev"
138 | source: hosted
139 | version: "2.0.1"
140 | file:
141 | dependency: transitive
142 | description:
143 | name: file
144 | sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d"
145 | url: "https://pub.dev"
146 | source: hosted
147 | version: "6.1.4"
148 | file_picker:
149 | dependency: "direct main"
150 | description:
151 | name: file_picker
152 | sha256: d090ae03df98b0247b82e5928f44d1b959867049d18d73635e2e0bc3f49542b9
153 | url: "https://pub.dev"
154 | source: hosted
155 | version: "5.2.5"
156 | firebase_auth:
157 | dependency: "direct main"
158 | description:
159 | name: firebase_auth
160 | sha256: ac3c7c8022c1032c1dc7d16e62db1d6f1e2fbdc8c1039ee706d8deb45eca3a42
161 | url: "https://pub.dev"
162 | source: hosted
163 | version: "4.2.5"
164 | firebase_auth_platform_interface:
165 | dependency: transitive
166 | description:
167 | name: firebase_auth_platform_interface
168 | sha256: "325d934e21826b3e7030f5018ef61927e2083b4c4fb25218ddef6ffc0012b717"
169 | url: "https://pub.dev"
170 | source: hosted
171 | version: "6.11.7"
172 | firebase_auth_web:
173 | dependency: transitive
174 | description:
175 | name: firebase_auth_web
176 | sha256: "3fb9fafcd3541005a309c1a696f7df6294893a0c44f010f4ed1b0ded4793c858"
177 | url: "https://pub.dev"
178 | source: hosted
179 | version: "5.2.4"
180 | firebase_core:
181 | dependency: "direct main"
182 | description:
183 | name: firebase_core
184 | sha256: c129209ba55f3d4272c89fb4a4994c15bea77fb6de63a82d45fb6bc5c94e4355
185 | url: "https://pub.dev"
186 | source: hosted
187 | version: "2.4.1"
188 | firebase_core_platform_interface:
189 | dependency: transitive
190 | description:
191 | name: firebase_core_platform_interface
192 | sha256: "5fab93f5b354648efa62e7cc829c90efb68c8796eecf87e0888cae2d5f3accd4"
193 | url: "https://pub.dev"
194 | source: hosted
195 | version: "4.5.2"
196 | firebase_core_web:
197 | dependency: transitive
198 | description:
199 | name: firebase_core_web
200 | sha256: "18b35ce111b0a4266abf723c825bcf9d4e2519d13638cc7f06f2a8dd960c75bc"
201 | url: "https://pub.dev"
202 | source: hosted
203 | version: "2.1.0"
204 | firebase_storage:
205 | dependency: "direct main"
206 | description:
207 | name: firebase_storage
208 | sha256: "1801785c8bce9b0b262f5daf36e1a48907620147b8065a25e3ad7ae2e890fc11"
209 | url: "https://pub.dev"
210 | source: hosted
211 | version: "11.0.10"
212 | firebase_storage_platform_interface:
213 | dependency: transitive
214 | description:
215 | name: firebase_storage_platform_interface
216 | sha256: "3abc5b687731b7e221ea2b867ddc40ed2f6bdb510dcc3d6cd5d73b25ad750485"
217 | url: "https://pub.dev"
218 | source: hosted
219 | version: "4.1.26"
220 | firebase_storage_web:
221 | dependency: transitive
222 | description:
223 | name: firebase_storage_web
224 | sha256: "6ac00cd227fb863fcf3ab67991cbaafcd0993da88f63be552e4e636bb0928a3c"
225 | url: "https://pub.dev"
226 | source: hosted
227 | version: "3.3.19"
228 | flutter:
229 | dependency: "direct main"
230 | description: flutter
231 | source: sdk
232 | version: "0.0.0"
233 | flutter_lints:
234 | dependency: "direct dev"
235 | description:
236 | name: flutter_lints
237 | sha256: aeb0b80a8b3709709c9cc496cdc027c5b3216796bc0af0ce1007eaf24464fd4c
238 | url: "https://pub.dev"
239 | source: hosted
240 | version: "2.0.1"
241 | flutter_plugin_android_lifecycle:
242 | dependency: transitive
243 | description:
244 | name: flutter_plugin_android_lifecycle
245 | sha256: "60fc7b78455b94e6de2333d2f95196d32cf5c22f4b0b0520a628804cb463503b"
246 | url: "https://pub.dev"
247 | source: hosted
248 | version: "2.0.7"
249 | flutter_screenutil:
250 | dependency: "direct main"
251 | description:
252 | name: flutter_screenutil
253 | sha256: "154a1abec9f047d9cdaf71856163315d9d7def5167409361a7f13a5bcd650017"
254 | url: "https://pub.dev"
255 | source: hosted
256 | version: "5.6.0"
257 | flutter_svg:
258 | dependency: "direct main"
259 | description:
260 | name: flutter_svg
261 | sha256: "9ac1967e2f72a08af11b05b39167920f90d043cf67163d13a544a358c8f31afa"
262 | url: "https://pub.dev"
263 | source: hosted
264 | version: "0.22.0"
265 | flutter_test:
266 | dependency: "direct dev"
267 | description: flutter
268 | source: sdk
269 | version: "0.0.0"
270 | flutter_web_plugins:
271 | dependency: transitive
272 | description: flutter
273 | source: sdk
274 | version: "0.0.0"
275 | geocoding:
276 | dependency: "direct main"
277 | description:
278 | name: geocoding
279 | sha256: "26218460a902d4249b81e6baf9d55ce400fd1ebe6fc0a7e92b2c12b0b8e1e14e"
280 | url: "https://pub.dev"
281 | source: hosted
282 | version: "2.0.5"
283 | geocoding_platform_interface:
284 | dependency: transitive
285 | description:
286 | name: geocoding_platform_interface
287 | sha256: "8848605d307d844d89937cdb4b8ad7dfa880552078f310fa24d8a460f6dddab4"
288 | url: "https://pub.dev"
289 | source: hosted
290 | version: "2.0.1"
291 | google_fonts:
292 | dependency: "direct main"
293 | description:
294 | name: google_fonts
295 | sha256: "8f099045e2f2a30e4d4d0a35f40c6bc941a8f2ca0e10ad9d214ee9edd3f37483"
296 | url: "https://pub.dev"
297 | source: hosted
298 | version: "3.0.1"
299 | google_maps_flutter:
300 | dependency: "direct main"
301 | description:
302 | name: google_maps_flutter
303 | sha256: "0c6b72b4b1e0f6204973e2b40868a75fe6380725d498f215cd7e35ed920d1c57"
304 | url: "https://pub.dev"
305 | source: hosted
306 | version: "2.2.3"
307 | google_maps_flutter_android:
308 | dependency: transitive
309 | description:
310 | name: google_maps_flutter_android
311 | sha256: "701761b234579b4cfc0f6ae0791e2bb7184b31207b0d716e536b6d1a190dc143"
312 | url: "https://pub.dev"
313 | source: hosted
314 | version: "2.4.3"
315 | google_maps_flutter_ios:
316 | dependency: transitive
317 | description:
318 | name: google_maps_flutter_ios
319 | sha256: "33bbca8d4148ed373251ea2ec2344fdc63009926b6d6be71a0854fd42409b1ba"
320 | url: "https://pub.dev"
321 | source: hosted
322 | version: "2.1.13"
323 | google_maps_flutter_platform_interface:
324 | dependency: transitive
325 | description:
326 | name: google_maps_flutter_platform_interface
327 | sha256: "0967430c25240836b794d42336bd4c61f0e78e9fd33d1365fa9316bb36b6b410"
328 | url: "https://pub.dev"
329 | source: hosted
330 | version: "2.2.5"
331 | http:
332 | dependency: transitive
333 | description:
334 | name: http
335 | sha256: "6aa2946395183537c8b880962d935877325d6a09a2867c3970c05c0fed6ac482"
336 | url: "https://pub.dev"
337 | source: hosted
338 | version: "0.13.5"
339 | http_parser:
340 | dependency: transitive
341 | description:
342 | name: http_parser
343 | sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b"
344 | url: "https://pub.dev"
345 | source: hosted
346 | version: "4.0.2"
347 | image_picker:
348 | dependency: "direct main"
349 | description:
350 | name: image_picker
351 | sha256: f98d76672d309c8b7030c323b3394669e122d52b307d2bbd8d06bd70f5b2aabe
352 | url: "https://pub.dev"
353 | source: hosted
354 | version: "0.8.6+1"
355 | image_picker_android:
356 | dependency: transitive
357 | description:
358 | name: image_picker_android
359 | sha256: b1cbfec0f5aef427a18eb573f5445af8c9c568626bf3388553e40c263d3f7368
360 | url: "https://pub.dev"
361 | source: hosted
362 | version: "0.8.5+5"
363 | image_picker_for_web:
364 | dependency: transitive
365 | description:
366 | name: image_picker_for_web
367 | sha256: "7d319fb74955ca46d9bf7011497860e3923bb67feebcf068f489311065863899"
368 | url: "https://pub.dev"
369 | source: hosted
370 | version: "2.1.10"
371 | image_picker_ios:
372 | dependency: transitive
373 | description:
374 | name: image_picker_ios
375 | sha256: "39c013200046d14c58b71dc4fa3d00e425fc9c699d589136cd3ca018727c0493"
376 | url: "https://pub.dev"
377 | source: hosted
378 | version: "0.8.6+6"
379 | image_picker_platform_interface:
380 | dependency: transitive
381 | description:
382 | name: image_picker_platform_interface
383 | sha256: "7cef2f28f4f2fef99180f636c3d446b4ccbafd6ba0fad2adc9a80c4040f656b8"
384 | url: "https://pub.dev"
385 | source: hosted
386 | version: "2.6.2"
387 | intl:
388 | dependency: transitive
389 | description:
390 | name: intl
391 | sha256: "910f85bce16fb5c6f614e117efa303e85a1731bb0081edf3604a2ae6e9a3cc91"
392 | url: "https://pub.dev"
393 | source: hosted
394 | version: "0.17.0"
395 | intl_phone_field:
396 | dependency: "direct main"
397 | description:
398 | name: intl_phone_field
399 | sha256: "0d2b35d148ed28a454d50797e6c2fb297f0a295feab84641b02d3dd32294b3f3"
400 | url: "https://pub.dev"
401 | source: hosted
402 | version: "3.1.0"
403 | js:
404 | dependency: transitive
405 | description:
406 | name: js
407 | sha256: "5528c2f391ededb7775ec1daa69e65a2d61276f7552de2b5f7b8d34ee9fd4ab7"
408 | url: "https://pub.dev"
409 | source: hosted
410 | version: "0.6.5"
411 | lints:
412 | dependency: transitive
413 | description:
414 | name: lints
415 | sha256: "5e4a9cd06d447758280a8ac2405101e0e2094d2a1dbdd3756aec3fe7775ba593"
416 | url: "https://pub.dev"
417 | source: hosted
418 | version: "2.0.1"
419 | location:
420 | dependency: "direct main"
421 | description:
422 | name: location
423 | sha256: "9051959f6f2ccadd887b28b66e9cbbcc25b6838e37cf9e894c421ccc0ebf80b5"
424 | url: "https://pub.dev"
425 | source: hosted
426 | version: "4.4.0"
427 | location_platform_interface:
428 | dependency: transitive
429 | description:
430 | name: location_platform_interface
431 | sha256: "62eeaf1658e92e4459b727f55a3c328eccbac8ba043fa6d262ac5286ad48384c"
432 | url: "https://pub.dev"
433 | source: hosted
434 | version: "2.3.0"
435 | location_web:
436 | dependency: transitive
437 | description:
438 | name: location_web
439 | sha256: "6c08c408a040534c0269c4ff9fe17eebb5a36dea16512fbaf116b9c8bc21545b"
440 | url: "https://pub.dev"
441 | source: hosted
442 | version: "3.1.1"
443 | lottie:
444 | dependency: "direct main"
445 | description:
446 | name: lottie
447 | sha256: "49bbc544e44bf0c734ccda29b182e3516a12f5021ea98b206cf31a168b0f97da"
448 | url: "https://pub.dev"
449 | source: hosted
450 | version: "2.2.0"
451 | map_picker:
452 | dependency: "direct main"
453 | description:
454 | name: map_picker
455 | sha256: "83cf464dad01e666fd0487c2f7c1602204ad4b4ea8d7a19c8f86cab87d0185e5"
456 | url: "https://pub.dev"
457 | source: hosted
458 | version: "0.0.3"
459 | matcher:
460 | dependency: transitive
461 | description:
462 | name: matcher
463 | sha256: "16db949ceee371e9b99d22f88fa3a73c4e59fd0afed0bd25fc336eb76c198b72"
464 | url: "https://pub.dev"
465 | source: hosted
466 | version: "0.12.13"
467 | material_color_utilities:
468 | dependency: transitive
469 | description:
470 | name: material_color_utilities
471 | sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724
472 | url: "https://pub.dev"
473 | source: hosted
474 | version: "0.2.0"
475 | meta:
476 | dependency: transitive
477 | description:
478 | name: meta
479 | sha256: "6c268b42ed578a53088d834796959e4a1814b5e9e164f147f580a386e5decf42"
480 | url: "https://pub.dev"
481 | source: hosted
482 | version: "1.8.0"
483 | nested:
484 | dependency: transitive
485 | description:
486 | name: nested
487 | sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20"
488 | url: "https://pub.dev"
489 | source: hosted
490 | version: "1.0.0"
491 | path:
492 | dependency: transitive
493 | description:
494 | name: path
495 | sha256: db9d4f58c908a4ba5953fcee2ae317c94889433e5024c27ce74a37f94267945b
496 | url: "https://pub.dev"
497 | source: hosted
498 | version: "1.8.2"
499 | path_drawing:
500 | dependency: transitive
501 | description:
502 | name: path_drawing
503 | sha256: "3bdd251dae9ffaef944450b73f168610db7e968e7b20daf0c3907f8b4aafc8a2"
504 | url: "https://pub.dev"
505 | source: hosted
506 | version: "0.5.1+1"
507 | path_parsing:
508 | dependency: transitive
509 | description:
510 | name: path_parsing
511 | sha256: ee5c47c1058ad66b4a41746ec3996af9593d0858872807bcd64ac118f0700337
512 | url: "https://pub.dev"
513 | source: hosted
514 | version: "0.2.1"
515 | path_provider:
516 | dependency: transitive
517 | description:
518 | name: path_provider
519 | sha256: "050e8e85e4b7fecdf2bb3682c1c64c4887a183720c802d323de8a5fd76d372dd"
520 | url: "https://pub.dev"
521 | source: hosted
522 | version: "2.0.11"
523 | path_provider_android:
524 | dependency: transitive
525 | description:
526 | name: path_provider_android
527 | sha256: a776c088d671b27f6e3aa8881d64b87b3e80201c64e8869b811325de7a76c15e
528 | url: "https://pub.dev"
529 | source: hosted
530 | version: "2.0.22"
531 | path_provider_ios:
532 | dependency: transitive
533 | description:
534 | name: path_provider_ios
535 | sha256: "03d639406f5343478352433f00d3c4394d52dac8df3d847869c5e2333e0bbce8"
536 | url: "https://pub.dev"
537 | source: hosted
538 | version: "2.0.11"
539 | path_provider_linux:
540 | dependency: transitive
541 | description:
542 | name: path_provider_linux
543 | sha256: ab0987bf95bc591da42dffb38c77398fc43309f0b9b894dcc5d6f40c4b26c379
544 | url: "https://pub.dev"
545 | source: hosted
546 | version: "2.1.7"
547 | path_provider_macos:
548 | dependency: transitive
549 | description:
550 | name: path_provider_macos
551 | sha256: cd57cb98a30ce9d12fdd1896d9d3b0517ce689f942de6ccd2708cd39b3d18a7c
552 | url: "https://pub.dev"
553 | source: hosted
554 | version: "2.0.7"
555 | path_provider_platform_interface:
556 | dependency: transitive
557 | description:
558 | name: path_provider_platform_interface
559 | sha256: f0abc8ebd7253741f05488b4813d936b4d07c6bae3e86148a09e342ee4b08e76
560 | url: "https://pub.dev"
561 | source: hosted
562 | version: "2.0.5"
563 | path_provider_windows:
564 | dependency: transitive
565 | description:
566 | name: path_provider_windows
567 | sha256: bcabbe399d4042b8ee687e17548d5d3f527255253b4a639f5f8d2094a9c2b45c
568 | url: "https://pub.dev"
569 | source: hosted
570 | version: "2.1.3"
571 | petitparser:
572 | dependency: transitive
573 | description:
574 | name: petitparser
575 | sha256: "49392a45ced973e8d94a85fdb21293fbb40ba805fc49f2965101ae748a3683b4"
576 | url: "https://pub.dev"
577 | source: hosted
578 | version: "5.1.0"
579 | pin_code_fields:
580 | dependency: "direct main"
581 | description:
582 | name: pin_code_fields
583 | sha256: c8652519d14688f3fe2a8288d86910a46aa0b9046d728f292d3bf6067c31b4c7
584 | url: "https://pub.dev"
585 | source: hosted
586 | version: "7.4.0"
587 | pinput:
588 | dependency: "direct main"
589 | description:
590 | name: pinput
591 | sha256: e502557efe6957145b49dd9b4f48eec230a19a8ed0c4d5014a83cf800638869e
592 | url: "https://pub.dev"
593 | source: hosted
594 | version: "2.2.21"
595 | platform:
596 | dependency: transitive
597 | description:
598 | name: platform
599 | sha256: "4a451831508d7d6ca779f7ac6e212b4023dd5a7d08a27a63da33756410e32b76"
600 | url: "https://pub.dev"
601 | source: hosted
602 | version: "3.1.0"
603 | plugin_platform_interface:
604 | dependency: transitive
605 | description:
606 | name: plugin_platform_interface
607 | sha256: dbf0f707c78beedc9200146ad3cb0ab4d5da13c246336987be6940f026500d3a
608 | url: "https://pub.dev"
609 | source: hosted
610 | version: "2.1.3"
611 | pointycastle:
612 | dependency: transitive
613 | description:
614 | name: pointycastle
615 | sha256: db7306cf0249f838d1a24af52b5a5887c5bf7f31d8bb4e827d071dc0939ad346
616 | url: "https://pub.dev"
617 | source: hosted
618 | version: "3.6.2"
619 | process:
620 | dependency: transitive
621 | description:
622 | name: process
623 | sha256: "53fd8db9cec1d37b0574e12f07520d582019cb6c44abf5479a01505099a34a09"
624 | url: "https://pub.dev"
625 | source: hosted
626 | version: "4.2.4"
627 | provider:
628 | dependency: "direct main"
629 | description:
630 | name: provider
631 | sha256: cdbe7530b12ecd9eb455bdaa2fcb8d4dad22e80b8afb4798b41479d5ce26847f
632 | url: "https://pub.dev"
633 | source: hosted
634 | version: "6.0.5"
635 | shared_preferences:
636 | dependency: "direct main"
637 | description:
638 | name: shared_preferences
639 | sha256: "5949029e70abe87f75cfe59d17bf5c397619c4b74a099b10116baeb34786fad9"
640 | url: "https://pub.dev"
641 | source: hosted
642 | version: "2.0.17"
643 | shared_preferences_android:
644 | dependency: transitive
645 | description:
646 | name: shared_preferences_android
647 | sha256: "955e9736a12ba776bdd261cf030232b30eadfcd9c79b32a3250dd4a494e8c8f7"
648 | url: "https://pub.dev"
649 | source: hosted
650 | version: "2.0.15"
651 | shared_preferences_foundation:
652 | dependency: transitive
653 | description:
654 | name: shared_preferences_foundation
655 | sha256: "1ffa239043ab8baf881ec3094a3c767af9d10399b2839020b9e4d44c0bb23951"
656 | url: "https://pub.dev"
657 | source: hosted
658 | version: "2.1.2"
659 | shared_preferences_linux:
660 | dependency: transitive
661 | description:
662 | name: shared_preferences_linux
663 | sha256: f8ea038aa6da37090093974ebdcf4397010605fd2ff65c37a66f9d28394cb874
664 | url: "https://pub.dev"
665 | source: hosted
666 | version: "2.1.3"
667 | shared_preferences_platform_interface:
668 | dependency: transitive
669 | description:
670 | name: shared_preferences_platform_interface
671 | sha256: da9431745ede5ece47bc26d5d73a9d3c6936ef6945c101a5aca46f62e52c1cf3
672 | url: "https://pub.dev"
673 | source: hosted
674 | version: "2.1.0"
675 | shared_preferences_web:
676 | dependency: transitive
677 | description:
678 | name: shared_preferences_web
679 | sha256: a4b5bc37fe1b368bbc81f953197d55e12f49d0296e7e412dfe2d2d77d6929958
680 | url: "https://pub.dev"
681 | source: hosted
682 | version: "2.0.4"
683 | shared_preferences_windows:
684 | dependency: transitive
685 | description:
686 | name: shared_preferences_windows
687 | sha256: "5eaf05ae77658d3521d0e993ede1af962d4b326cd2153d312df716dc250f00c9"
688 | url: "https://pub.dev"
689 | source: hosted
690 | version: "2.1.3"
691 | sky_engine:
692 | dependency: transitive
693 | description: flutter
694 | source: sdk
695 | version: "0.0.99"
696 | smart_auth:
697 | dependency: transitive
698 | description:
699 | name: smart_auth
700 | sha256: "8cfaec55b77d5930ed1666bb7ae70db5bade099bb1422401386853b400962113"
701 | url: "https://pub.dev"
702 | source: hosted
703 | version: "1.0.8"
704 | source_span:
705 | dependency: transitive
706 | description:
707 | name: source_span
708 | sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250
709 | url: "https://pub.dev"
710 | source: hosted
711 | version: "1.9.1"
712 | stack_trace:
713 | dependency: transitive
714 | description:
715 | name: stack_trace
716 | sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
717 | url: "https://pub.dev"
718 | source: hosted
719 | version: "1.11.0"
720 | stream_channel:
721 | dependency: transitive
722 | description:
723 | name: stream_channel
724 | sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
725 | url: "https://pub.dev"
726 | source: hosted
727 | version: "2.1.1"
728 | stream_transform:
729 | dependency: transitive
730 | description:
731 | name: stream_transform
732 | sha256: "14a00e794c7c11aa145a170587321aedce29769c08d7f58b1d141da75e3b1c6f"
733 | url: "https://pub.dev"
734 | source: hosted
735 | version: "2.1.0"
736 | string_scanner:
737 | dependency: transitive
738 | description:
739 | name: string_scanner
740 | sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
741 | url: "https://pub.dev"
742 | source: hosted
743 | version: "1.2.0"
744 | term_glyph:
745 | dependency: transitive
746 | description:
747 | name: term_glyph
748 | sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
749 | url: "https://pub.dev"
750 | source: hosted
751 | version: "1.2.1"
752 | test_api:
753 | dependency: transitive
754 | description:
755 | name: test_api
756 | sha256: ad540f65f92caa91bf21dfc8ffb8c589d6e4dc0c2267818b4cc2792857706206
757 | url: "https://pub.dev"
758 | source: hosted
759 | version: "0.4.16"
760 | typed_data:
761 | dependency: transitive
762 | description:
763 | name: typed_data
764 | sha256: "26f87ade979c47a150c9eaab93ccd2bebe70a27dc0b4b29517f2904f04eb11a5"
765 | url: "https://pub.dev"
766 | source: hosted
767 | version: "1.3.1"
768 | vector_math:
769 | dependency: transitive
770 | description:
771 | name: vector_math
772 | sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
773 | url: "https://pub.dev"
774 | source: hosted
775 | version: "2.1.4"
776 | win32:
777 | dependency: transitive
778 | description:
779 | name: win32
780 | sha256: c9ebe7ee4ab0c2194e65d3a07d8c54c5d00bb001b76081c4a04cdb8448b59e46
781 | url: "https://pub.dev"
782 | source: hosted
783 | version: "3.1.3"
784 | xdg_directories:
785 | dependency: transitive
786 | description:
787 | name: xdg_directories
788 | sha256: bd512f03919aac5f1313eb8249f223bacf4927031bf60b02601f81f687689e86
789 | url: "https://pub.dev"
790 | source: hosted
791 | version: "0.2.0+3"
792 | xml:
793 | dependency: transitive
794 | description:
795 | name: xml
796 | sha256: "80d494c09849dc3f899d227a78c30c5b949b985ededf884cb3f3bcd39f4b447a"
797 | url: "https://pub.dev"
798 | source: hosted
799 | version: "5.4.1"
800 | sdks:
801 | dart: ">=2.18.6 <3.0.0"
802 | flutter: ">=3.3.0"
803 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: telegram_clone
2 | description: A new Flutter project.
3 |
4 |
5 | publish_to: 'none'
6 |
7 |
8 | version: 1.0.0+1
9 |
10 | environment:
11 | sdk: '>=2.18.6 <3.0.0'
12 |
13 | dependencies:
14 | flutter:
15 | sdk: flutter
16 |
17 |
18 | cupertino_icons: ^1.0.2
19 | flutter_screenutil: ^5.5.4
20 | firebase_auth: ^4.2.5
21 | firebase_storage: ^11.0.6
22 | cloud_firestore: ^4.1.0
23 | firebase_core: ^2.3.0
24 | pinput: ^2.2.12
25 | intl_phone_field: ^3.1.0
26 | pin_code_fields: ^7.4.0
27 | google_fonts: ^3.0.1
28 | file_picker: ^5.0.1
29 | image_picker: ^0.8.5+3
30 | provider: ^6.0.4
31 | shared_preferences: ^2.0.15
32 | change_app_package_name: ^1.1.0
33 | lottie: ^2.1.0
34 | location: ^4.4.0
35 | geocoding: ^2.0.1
36 | google_maps_flutter: ^2.0.8
37 | flutter_svg: ^0.22.0
38 | map_picker: ^0.0.3
39 |
40 |
41 |
42 | dev_dependencies:
43 | flutter_test:
44 | sdk: flutter
45 |
46 | flutter_lints: ^2.0.0
47 |
48 |
49 | flutter:
50 |
51 |
52 | uses-material-design: true
53 |
54 | # To add assets to your application, add an assets section, like this:
55 | assets:
56 | - assets/lottie/empty.json
57 | - assets/lottie/splash.json
58 | - assets/icons/location.svg
59 | - assets/icons/gps.svg
60 |
61 |
62 |
63 | # fonts:
64 | # - family: Schyler
65 | # fonts:
66 | # - asset: fonts/Schyler-Regular.ttf
67 | # - asset: fonts/Schyler-Italic.ttf
68 | # style: italic
69 | # - family: Trajan Pro
70 | # fonts:
71 | # - asset: fonts/TrajanPro.ttf
72 | # - asset: fonts/TrajanPro_Bold.ttf
73 | # weight: 700
74 | #
75 | # For details regarding fonts from package dependencies,
76 | # see https://flutter.dev/custom-fonts/#from-packages
77 |
--------------------------------------------------------------------------------
/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 in the flutter_test package. 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:telegram_clone/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 |
--------------------------------------------------------------------------------