├── ios ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner │ ├── Runner-Bridging-Header.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── WorkspaceSettings.xcsettings │ │ └── IDEWorkspaceChecks.plist └── .gitignore ├── assets └── images │ ├── messages.png │ └── welcome_image.png ├── android ├── gradle.properties ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── drawable │ │ │ │ │ ├── messages.png │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ ├── messages.png │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ ├── messages.png │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ ├── messages.png │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ ├── messages.png │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ ├── messages.png │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable-v21 │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── values-night │ │ │ │ │ └── styles.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── tea_talks │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ ├── google-services.json │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── .gitignore ├── settings.gradle └── build.gradle ├── .metadata ├── lib ├── utility │ ├── firebase_constants.dart │ └── ui_constants.dart ├── main.dart ├── services │ ├── encoding_decoding_service.dart │ └── encryption_service.dart ├── screens │ ├── messaging_screen │ │ ├── widgets │ │ │ ├── floating_button.dart │ │ │ ├── chat_bubble.dart │ │ │ └── bottom_sheet_menu.dart │ │ ├── webview │ │ │ ├── navigation_controls.dart │ │ │ └── browser.dart │ │ └── messaging_screen.dart │ ├── dashboard_screen │ │ ├── widgets │ │ │ ├── nav_item.dart │ │ │ └── room_item_widget.dart │ │ ├── nav_bar_screen.dart │ │ ├── dashboard_screen.dart │ │ ├── add_room_screen.dart │ │ └── foreground_screen.dart │ └── Welcome Screen │ │ └── welcome_screen.dart ├── widgets │ ├── not_found.dart │ └── card_text_field.dart └── splash.dart ├── .gitignore ├── README.md ├── test └── widget_test.dart ├── analysis_options.yaml ├── pubspec.yaml └── pubspec.lock /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /assets/images/messages.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/assets/images/messages.png -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /assets/images/welcome_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/assets/images/welcome_image.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/messages.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/android/app/src/main/res/drawable/messages.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/messages.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/android/app/src/main/res/mipmap-hdpi/messages.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/messages.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/android/app/src/main/res/mipmap-mdpi/messages.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/messages.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/android/app/src/main/res/mipmap-xhdpi/messages.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/messages.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/android/app/src/main/res/mipmap-xxhdpi/messages.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/messages.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/android/app/src/main/res/mipmap-xxxhdpi/messages.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FireWarrior22/tea_talks/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/tea_talks/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.tea_talks 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip 7 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 18116933e77adc82f80866c928266a5b4f1ed645 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /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/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/utility/firebase_constants.dart: -------------------------------------------------------------------------------- 1 | const kRoomCollection = 'rooms'; 2 | const kChatCollection = 'chats'; 3 | 4 | const kChatDataCollection = 'chatData'; 5 | 6 | const kRoomId = 'roomId'; 7 | const kEncryptedRoomId = 'encryptedRoomId'; 8 | const kRoomCreationDate = 'roomCreationDate'; 9 | const kRoomName = 'roomName'; 10 | 11 | const kVisitUrl = 'visitUrl'; 12 | 13 | const kUserName = 'userName'; 14 | const kTimestamp = 'timestamp'; 15 | const kMessageBody = 'messageBody'; 16 | const kIsDoodle = 'isDoodle'; 17 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:firebase_core/firebase_core.dart'; 3 | import 'package:tea_talks/splash.dart'; 4 | 5 | void main() async { 6 | WidgetsFlutterBinding.ensureInitialized(); 7 | await Firebase.initializeApp(); 8 | runApp(MyApp()); 9 | } 10 | 11 | class MyApp extends StatelessWidget { 12 | @override 13 | Widget build(BuildContext context) { 14 | return const MaterialApp( 15 | title: 'Tea Talks', 16 | debugShowCheckedModeBanner: false, 17 | home: Splash(), 18 | ); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /lib/services/encoding_decoding_service.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | import 'package:tea_talks/services/encryption_service.dart'; 3 | 4 | class EncodingDecodingService { 5 | static String encodeAndEncrypt( 6 | Map data, String ivPassword, String password) { 7 | String encodedString = jsonEncode(data); 8 | 9 | return EncryptionService.encrypt(ivPassword, password, encodedString); 10 | } 11 | 12 | static Map decryptAndDecode( 13 | String data, String ivPassword, String password) { 14 | String decryptedString = 15 | EncryptionService.decrypt(ivPassword, password, data); 16 | 17 | return jsonDecode(decryptedString); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/screens/messaging_screen/widgets/floating_button.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:tea_talks/utility/ui_constants.dart'; 3 | 4 | class FloatingButton extends StatelessWidget { 5 | const FloatingButton({ 6 | @required this.iconData, 7 | @required this.onPressed, 8 | }); 9 | 10 | final iconData; 11 | final onPressed; 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | return Align( 16 | alignment: Alignment.topLeft, 17 | child: MaterialButton( 18 | elevation: 10.0, 19 | child: Icon( 20 | iconData, 21 | size: 30, 22 | color: kBlack, 23 | ), 24 | onPressed: onPressed, 25 | ), 26 | ); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:4.1.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | classpath 'com.google.gms:google-services:4.3.10' 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | google() 18 | mavenCentral() 19 | } 20 | } 21 | 22 | rootProject.buildDir = '../build' 23 | subprojects { 24 | project.buildDir = "${rootProject.buildDir}/${project.name}" 25 | project.evaluationDependsOn(':app') 26 | } 27 | 28 | task clean(type: Delete) { 29 | delete rootProject.buildDir 30 | } 31 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 9.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | **/ios/Flutter/.last_build_id 26 | .dart_tool/ 27 | .flutter-plugins 28 | .flutter-plugins-dependencies 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Web related 35 | lib/generated_plugin_registrant.dart 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | 43 | # Android Studio will place build artifacts here 44 | /android/app/debug 45 | /android/app/profile 46 | /android/app/release 47 | -------------------------------------------------------------------------------- /lib/widgets/not_found.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 3 | import 'package:tea_talks/utility/ui_constants.dart'; 4 | 5 | class NotFoundWidget extends StatelessWidget { 6 | @override 7 | Widget build(BuildContext context) { 8 | return Column( 9 | mainAxisAlignment: MainAxisAlignment.center, 10 | children: [ 11 | Text( 12 | 'No Rooms Found', 13 | style: kHeadingTextStyle.copyWith(fontSize: 40, color: kBlack), 14 | ), 15 | Text( 16 | 'Try creating a new room', 17 | style: kLabelTextStyle.copyWith(fontSize: 20), 18 | textAlign: TextAlign.center, 19 | ), 20 | const SizedBox(height: 20), 21 | const Icon( 22 | FontAwesomeIcons.archive, 23 | size: 100, 24 | color: kSteelBlue, 25 | ), 26 | ], 27 | ); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /lib/splash.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:tea_talks/screens/Welcome%20Screen/welcome_screen.dart'; 3 | 4 | class Splash extends StatefulWidget { 5 | const Splash({Key? key}) : super(key: key); 6 | 7 | @override 8 | State createState() => _SplashState(); 9 | } 10 | 11 | class _SplashState extends State { 12 | @override 13 | void initState() { 14 | super.initState(); 15 | navigatetohome(); 16 | } 17 | 18 | navigatetohome() async { 19 | await Future.delayed(Duration(milliseconds: 1000), () {}); 20 | Navigator.pushReplacement( 21 | context, MaterialPageRoute(builder: (context) => WelcomeScreen())); 22 | } 23 | 24 | @override 25 | Widget build(BuildContext context) { 26 | return Scaffold( 27 | body: Center( 28 | child: SizedBox( 29 | width: 230.0, 30 | height: 230.0, 31 | child: Image.asset("assets/images/messages.png")))); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /lib/screens/dashboard_screen/widgets/nav_item.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:tea_talks/utility/ui_constants.dart'; 3 | import 'package:url_launcher/url_launcher.dart'; 4 | 5 | class NavItem extends StatelessWidget { 6 | final title; 7 | final iconData; 8 | final subTitle; 9 | final onTap; 10 | 11 | NavItem({ 12 | required this.title, 13 | required this.iconData, 14 | required this.subTitle, 15 | required this.onTap, 16 | }); 17 | 18 | @override 19 | Widget build(BuildContext context) { 20 | return ListTile( 21 | title: Text( 22 | title, 23 | style: kTitleTextStyle, 24 | ), 25 | onTap: onTap, 26 | leading: Icon( 27 | iconData, 28 | color: kImperialOrange, 29 | size: 30, 30 | ), 31 | subtitle: subTitle != null 32 | ? Text( 33 | subTitle, 34 | style: kLightLabelTextStyle.copyWith(color: kBlack), 35 | ) 36 | : null, 37 | ); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Tea-Talks is a chat 💬 application where you can create rooms to chat 🗣️ and watch videos 📺 together with friends and family. It has an in-app browser that is synced across all users to enjoy watching videos together. The chats are end-to-end ecnrypted. The backend is implemented using Firebase. 2 | 3 | ![WhatsApp Image 2022-01-26 at 12 07 12 AM(2)](https://user-images.githubusercontent.com/53148611/151038405-ca3b5104-4cdb-46aa-ab74-3dcbf9f2699c.jpeg) 4 | 5 | ![WhatsApp Image 2022-01-26 at 12 07 12 AM(1)](https://user-images.githubusercontent.com/53148611/151038421-c1e8d31c-7afe-47b0-b6bc-7aa043ff0e9f.jpeg) 6 | 7 | ![WhatsApp Image 2022-01-26 at 12 07 12 AM](https://user-images.githubusercontent.com/53148611/151038433-e7a3d72b-dcbe-484f-b5c2-8edd781db872.jpeg) 8 | 9 | PS: The sensitive contents are not added to the repository. They contain a password of length 32, stored by the developer, which is used in combination with the user provided password to generate a strong password combination, which is finally used for encryption. 10 | 11 | Basically just to add a layer of security, in case the user password is very easy to guess. 12 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:tea_talks/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget( MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /lib/utility/ui_constants.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | // Colors used in app 4 | const Color kImperialOrange = Color(0xFFFE9901); 5 | const Color kWhite = Color(0xfffefffe); 6 | const Color kSteelBlue = Color(0xff457B9D); 7 | const Color kBlack = Color(0xff000000); 8 | const String url = 'https://github.com/FireWarrior22'; 9 | 10 | const kLightestTextStyle = TextStyle( 11 | fontSize: 12.0, 12 | fontFamily: 'OpenSans', 13 | fontWeight: FontWeight.w900, 14 | color: kBlack, 15 | ); 16 | 17 | const kLightLabelTextStyle = TextStyle( 18 | fontSize: 18.0, 19 | fontFamily: 'OpenSans', 20 | fontWeight: FontWeight.w100, 21 | color: kWhite, 22 | ); 23 | 24 | const kLabelTextStyle = TextStyle( 25 | fontSize: 15.0, 26 | fontFamily: 'OpenSans', 27 | color: kBlack, 28 | ); 29 | 30 | const kGeneralTextStyle = TextStyle( 31 | fontSize: 22.0, 32 | fontFamily: 'OpenSans', 33 | color: kWhite, 34 | ); 35 | 36 | const kTitleTextStyle = TextStyle( 37 | fontSize: 22.0, 38 | fontFamily: 'OpenSans', 39 | fontWeight: FontWeight.w600, 40 | color: kBlack, 41 | ); 42 | 43 | const kHeadingTextStyle = TextStyle( 44 | fontSize: 45.0, 45 | fontFamily: 'OpenSans', 46 | fontWeight: FontWeight.w900, 47 | color: kWhite, 48 | ); 49 | -------------------------------------------------------------------------------- /android/app/google-services.json: -------------------------------------------------------------------------------- 1 | { 2 | "project_info": { 3 | "project_number": "167468468209", 4 | "firebase_url": "https://tea-talks1-99be7-default-rtdb.firebaseio.com", 5 | "project_id": "tea-talks1-99be7", 6 | "storage_bucket": "tea-talks1-99be7.appspot.com" 7 | }, 8 | "client": [ 9 | { 10 | "client_info": { 11 | "mobilesdk_app_id": "1:167468468209:android:8b664633d016ba6e306650", 12 | "android_client_info": { 13 | "package_name": "com.privatechat.application" 14 | } 15 | }, 16 | "oauth_client": [ 17 | { 18 | "client_id": "167468468209-tb66gg7u65ra7ohn92en028m23m29pia.apps.googleusercontent.com", 19 | "client_type": 3 20 | } 21 | ], 22 | "api_key": [ 23 | { 24 | "current_key": "AIzaSyDGX_DQzvcyVlMVX1gvAzw2t-y2unS-XqU" 25 | } 26 | ], 27 | "services": { 28 | "appinvite_service": { 29 | "other_platform_oauth_client": [ 30 | { 31 | "client_id": "167468468209-tb66gg7u65ra7ohn92en028m23m29pia.apps.googleusercontent.com", 32 | "client_type": 3 33 | } 34 | ] 35 | } 36 | } 37 | } 38 | ], 39 | "configuration_version": "1" 40 | } -------------------------------------------------------------------------------- /lib/widgets/card_text_field.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:tea_talks/utility/ui_constants.dart'; 3 | 4 | class CardTextField extends StatelessWidget { 5 | const CardTextField({ 6 | required this.controller, 7 | required this.labelText, 8 | required this.keyboardType, 9 | required this.iconData, 10 | required this.obscureText, 11 | }); 12 | 13 | final TextEditingController controller; 14 | final String labelText; 15 | final TextInputType keyboardType; 16 | final IconData iconData; 17 | final bool obscureText; 18 | 19 | @override 20 | Widget build(BuildContext context) { 21 | return Card( 22 | shape: RoundedRectangleBorder( 23 | borderRadius: BorderRadius.circular(10.0), 24 | ), 25 | elevation: 5.0, 26 | child: Padding( 27 | padding: EdgeInsets.symmetric(horizontal: 10.0), 28 | child: TextField( 29 | obscureText: obscureText, 30 | keyboardType: keyboardType, 31 | style: kLabelTextStyle, 32 | controller: controller, 33 | decoration: InputDecoration( 34 | icon: Icon(iconData, color: kSteelBlue), 35 | labelText: labelText, 36 | labelStyle: kLightLabelTextStyle.copyWith(color: kSteelBlue), 37 | border: InputBorder.none, 38 | ), 39 | ), 40 | ), 41 | ); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/services/encryption_service.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | import 'package:encrypt/encrypt.dart'; 3 | import 'package:tea_talks/utility/sensitive_constants.dart'; 4 | 5 | class EncryptionService { 6 | static String _getModifiedPasswordFrom(String initialKey) { 7 | assert(initialKey.length <= 32); 8 | 9 | var paddingNeeded = 32 - initialKey.length; 10 | 11 | return paddingNeeded == 0 12 | ? initialKey 13 | : initialKey + developerKey.substring(0, paddingNeeded); 14 | } 15 | 16 | static String _getModifiedIvPasswordFrom(String initialIV) { 17 | initialIV = initialIV.substring(0, min(10, initialIV.length)); 18 | var paddingNeeded = 16 - initialIV.length; 19 | return initialIV + developerKey.substring(0, paddingNeeded); 20 | } 21 | 22 | static String decrypt(String ivPassword, String password, String base64Data) { 23 | final decryptionPass = _getModifiedPasswordFrom(password); 24 | final iv = IV.fromUtf8(_getModifiedIvPasswordFrom(ivPassword)); 25 | 26 | final encrypter = Encrypter( 27 | AES( 28 | Key.fromUtf8(decryptionPass), 29 | mode: AESMode.cbc, 30 | ), 31 | ); 32 | 33 | return encrypter.decrypt64(base64Data, iv: iv); 34 | } 35 | 36 | static String encrypt(String ivPassword, String password, String data) { 37 | final encryptionPassword = _getModifiedPasswordFrom(password); 38 | final iv = IV.fromUtf8(_getModifiedIvPasswordFrom(ivPassword)); 39 | 40 | final encrypter = Encrypter( 41 | AES( 42 | Key.fromUtf8(encryptionPassword), 43 | mode: AESMode.cbc, 44 | ), 45 | ); 46 | 47 | return encrypter.encrypt(data, iv: iv).base64; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | tea_talks 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /lib/screens/Welcome Screen/welcome_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:tea_talks/screens/dashboard_screen/dashboard_screen.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:tea_talks/utility/ui_constants.dart'; 4 | 5 | class WelcomeScreen extends StatelessWidget { 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | body: SafeArea( 10 | child: Column(children: [ 11 | const SizedBox(height: 70), 12 | Image.asset("assets/images/welcome_image.png"), 13 | const SizedBox(height: 150), 14 | Text( 15 | "Welcome to our \nmessaging app", 16 | textAlign: TextAlign.center, 17 | style: Theme.of(context) 18 | .textTheme 19 | .headline5! 20 | .copyWith(fontWeight: FontWeight.bold), 21 | ), 22 | const SizedBox(height: 30), 23 | FittedBox( 24 | child: ElevatedButton( 25 | onPressed: () => Navigator.push( 26 | context, 27 | MaterialPageRoute( 28 | builder: (context) => DashboardScreen(), 29 | ), 30 | ), 31 | child: Row( 32 | children: const [ 33 | Icon( 34 | Icons.arrow_forward_ios_rounded, 35 | size: 60, 36 | color: Colors.white, 37 | ) 38 | ], 39 | ), 40 | style: ElevatedButton.styleFrom( 41 | shape: const CircleBorder(), 42 | primary: kImperialOrange, 43 | ), 44 | ), 45 | ), 46 | ]), 47 | ), 48 | ); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 13 | 17 | 21 | 26 | 30 | 31 | 32 | 33 | 34 | 35 | 37 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply plugin: 'com.google.gms.google-services' 27 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 28 | 29 | android { 30 | compileSdkVersion 30 31 | 32 | compileOptions { 33 | sourceCompatibility JavaVersion.VERSION_1_8 34 | targetCompatibility JavaVersion.VERSION_1_8 35 | } 36 | 37 | kotlinOptions { 38 | jvmTarget = '1.8' 39 | } 40 | 41 | sourceSets { 42 | main.java.srcDirs += 'src/main/kotlin' 43 | } 44 | 45 | defaultConfig { 46 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 47 | applicationId "com.privatechat.application" 48 | minSdkVersion 19 49 | targetSdkVersion 30 50 | versionCode flutterVersionCode.toInteger() 51 | versionName flutterVersionName 52 | multiDexEnabled true 53 | } 54 | 55 | buildTypes { 56 | release { 57 | // TODO: Add your own signing config for the release build. 58 | // Signing with the debug keys for now, so `flutter run --release` works. 59 | signingConfig signingConfigs.debug 60 | } 61 | } 62 | } 63 | 64 | flutter { 65 | source '../..' 66 | } 67 | 68 | dependencies { 69 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 70 | implementation platform('com.google.firebase:firebase-bom:29.0.4') 71 | } 72 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/screens/messaging_screen/widgets/chat_bubble.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:tea_talks/services/encoding_decoding_service.dart'; 3 | import 'package:tea_talks/utility/firebase_constants.dart'; 4 | import 'package:tea_talks/utility/ui_constants.dart'; 5 | 6 | class ChatBubble extends StatelessWidget { 7 | ChatBubble({ 8 | required this.chatData, 9 | required this.name, 10 | required this.password, 11 | }); 12 | 13 | final dynamic chatData; 14 | final String name; 15 | final String password; 16 | 17 | // UI constants 18 | final borderRadius = 20.0; 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | String documentId = chatData['id']; 23 | 24 | var chatContents = EncodingDecodingService.decryptAndDecode( 25 | chatData['data'], 26 | documentId, 27 | password, 28 | ); 29 | 30 | bool isMe = (name == chatContents[kUserName]); 31 | 32 | return Align( 33 | alignment: isMe ? Alignment.centerRight : Alignment.centerLeft, 34 | child: Container( 35 | padding: const EdgeInsets.symmetric(horizontal: 15.0, vertical: 10.0), 36 | margin: EdgeInsets.only( 37 | bottom: 5.0, 38 | top: 5.0, 39 | left: isMe ? 100.0 : 0.0, 40 | right: isMe ? 0.0 : 100.0, 41 | ), 42 | decoration: BoxDecoration( 43 | color: isMe ? kImperialOrange : kImperialOrange.withOpacity(0.08), 44 | borderRadius: BorderRadius.only( 45 | topRight: Radius.circular(isMe ? 0.0 : borderRadius), 46 | bottomRight: Radius.circular(isMe ? 0.0 : borderRadius), 47 | topLeft: Radius.circular(isMe ? borderRadius : 0.0), 48 | bottomLeft: Radius.circular(isMe ? borderRadius : 0.0), 49 | ), 50 | ), 51 | child: Column( 52 | crossAxisAlignment: 53 | isMe ? CrossAxisAlignment.end : CrossAxisAlignment.start, 54 | children: [ 55 | Text( 56 | chatContents[kTimestamp].toString().split(', ')[0], 57 | style: kLightestTextStyle.copyWith( 58 | color: isMe ? kWhite : kBlack, 59 | ), 60 | ), 61 | const SizedBox(height: 10), 62 | Text( 63 | chatContents[kMessageBody], 64 | style: kLabelTextStyle.copyWith( 65 | color: isMe ? kWhite : kBlack, 66 | ), 67 | ), 68 | ], 69 | ), 70 | ), 71 | ); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /lib/screens/dashboard_screen/nav_bar_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 3 | import 'package:tea_talks/screens/dashboard_screen/add_room_screen.dart'; 4 | import 'package:tea_talks/screens/dashboard_screen/widgets/nav_item.dart'; 5 | import 'package:tea_talks/utility/ui_constants.dart'; 6 | import 'package:url_launcher/url_launcher.dart'; 7 | 8 | class NavBarScreen extends StatelessWidget { 9 | final onPressed; 10 | 11 | const NavBarScreen({ 12 | required this.onPressed, 13 | }); 14 | 15 | @override 16 | void _launchURL() async { 17 | if (!await launch(url)) throw 'Could not launch $url'; 18 | } 19 | 20 | Widget build(BuildContext context) { 21 | return Container( 22 | color: kImperialOrange.withOpacity(0.10), 23 | child: Row( 24 | children: [ 25 | Expanded( 26 | child: ListView( 27 | children: [ 28 | const SizedBox( 29 | height: 10, 30 | ), 31 | Text( 32 | 'Menu', 33 | style: 34 | kHeadingTextStyle.copyWith(fontSize: 30, color: kBlack), 35 | textAlign: TextAlign.center, 36 | ), 37 | const SizedBox( 38 | height: 30, 39 | ), 40 | NavItem( 41 | onTap: onPressed, 42 | title: 'Close Navigation Bar', 43 | iconData: FontAwesomeIcons.times, 44 | subTitle: null, 45 | ), 46 | const SizedBox(height: 30), 47 | NavItem( 48 | onTap: () { 49 | final route = 50 | MaterialPageRoute(builder: (ctx) => AddRoomScreen()); 51 | Navigator.push(context, route); 52 | }, 53 | title: 'New Room', 54 | iconData: FontAwesomeIcons.users, 55 | subTitle: 'Add a new room. And, invite your friends.', 56 | ), 57 | const SizedBox(height: 30), 58 | NavItem( 59 | onTap: _launchURL, 60 | title: 'Report a bug', 61 | iconData: FontAwesomeIcons.bug, 62 | subTitle: 'File an issue on the Github Repo', 63 | ), 64 | ], 65 | ), 66 | ), 67 | const Expanded( 68 | child: SizedBox.shrink(), 69 | ), 70 | ], 71 | ), 72 | ); 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /lib/screens/dashboard_screen/dashboard_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:tea_talks/screens/dashboard_screen/foreground_screen.dart'; 4 | import 'package:tea_talks/screens/dashboard_screen/nav_bar_screen.dart'; 5 | 6 | class DashboardScreen extends StatefulWidget { 7 | @override 8 | _DashboardScreenState createState() => _DashboardScreenState(); 9 | } 10 | 11 | class _DashboardScreenState extends State 12 | with SingleTickerProviderStateMixin { 13 | bool absorbPointer = false; 14 | late AnimationController _animationController; 15 | 16 | void animateForward() { 17 | _animationController.forward(); 18 | } 19 | 20 | void animateBackward() { 21 | _animationController.reverse(); 22 | } 23 | 24 | @override 25 | void initState() { 26 | super.initState(); 27 | _animationController = AnimationController( 28 | vsync: this, 29 | duration: const Duration( 30 | milliseconds: 150, 31 | ), 32 | ); 33 | 34 | _animationController.addStatusListener((status) { 35 | if (status == AnimationStatus.completed) { 36 | absorbPointer = true; 37 | } 38 | 39 | if (status == AnimationStatus.reverse) { 40 | absorbPointer = false; 41 | } 42 | 43 | setState(() {}); 44 | }); 45 | } 46 | 47 | @override 48 | Widget build(BuildContext context) { 49 | return Scaffold( 50 | body: SizedBox( 51 | width: double.infinity, 52 | child: Stack( 53 | children: [ 54 | NavBarScreen( 55 | onPressed: animateBackward, 56 | ), 57 | AnimatedBuilder( 58 | animation: _animationController, 59 | builder: (ctx, _) { 60 | double x = _animationController.value; 61 | 62 | double translateValue = 180 * x; 63 | double scaleValue = 1 - 0.25 * x; 64 | double rotateYValue = -0.10 * x; 65 | double setEntryValue = -0.0005 * x; 66 | 67 | var transformMatrix = Matrix4.identity() 68 | ..translate(translateValue) 69 | ..scale(scaleValue) 70 | ..rotateY(rotateYValue) 71 | ..setEntry(3, 0, setEntryValue); 72 | 73 | return Transform( 74 | alignment: Alignment.center, 75 | transform: transformMatrix, 76 | child: AbsorbPointer( 77 | absorbing: absorbPointer, 78 | child: ForegroundScreen( 79 | navBarOnPressed: animateForward, 80 | ), 81 | ), 82 | ); 83 | }, 84 | ), 85 | ], 86 | ), 87 | ), 88 | ); 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/screens/messaging_screen/webview/navigation_controls.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 3 | import 'package:tea_talks/utility/ui_constants.dart'; 4 | import 'package:webview_flutter/webview_flutter.dart'; 5 | 6 | class NavigationControls extends StatelessWidget { 7 | const NavigationControls(this._webViewControllerFuture, this.toggleBrowser, this.toggleFullScreen); 8 | 9 | final Future _webViewControllerFuture; 10 | final Function toggleBrowser; 11 | final Function toggleFullScreen; 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | return FutureBuilder( 16 | future: _webViewControllerFuture, 17 | builder: 18 | (BuildContext context, AsyncSnapshot snapshot) { 19 | final bool webViewReady = 20 | snapshot.connectionState == ConnectionState.done; 21 | final WebViewController? controller = snapshot.data; 22 | return Container( 23 | color: kImperialOrange.withOpacity(0.1), 24 | child: Row( 25 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 26 | children: [ 27 | IconButton( 28 | icon: const Icon( 29 | FontAwesomeIcons.chevronLeft, 30 | color: kImperialOrange, 31 | ), 32 | onPressed: !webViewReady 33 | ? null 34 | : () async { 35 | if (await controller!.canGoBack()) { 36 | await controller.goBack(); 37 | } 38 | }, 39 | ), 40 | IconButton( 41 | icon: const Icon( 42 | FontAwesomeIcons.chevronRight, 43 | color: kImperialOrange, 44 | ), 45 | onPressed: !webViewReady 46 | ? null 47 | : () async { 48 | if (await controller!.canGoForward()) { 49 | await controller.goForward(); 50 | } 51 | }, 52 | ), 53 | IconButton( 54 | icon: const Icon( 55 | FontAwesomeIcons.redo, 56 | color: kImperialOrange, 57 | ), 58 | onPressed: !webViewReady 59 | ? null 60 | : () { 61 | controller!.reload(); 62 | }, 63 | ), 64 | IconButton( 65 | icon: const Icon( 66 | FontAwesomeIcons.expand, 67 | color: kImperialOrange, 68 | ), 69 | onPressed: () => toggleFullScreen(), 70 | ), 71 | IconButton( 72 | icon: const Icon( 73 | FontAwesomeIcons.times, 74 | color: kImperialOrange, 75 | ), 76 | onPressed: () => toggleBrowser(), 77 | ), 78 | ], 79 | ), 80 | ); 81 | }, 82 | ); 83 | } 84 | } 85 | -------------------------------------------------------------------------------- /lib/screens/messaging_screen/widgets/bottom_sheet_menu.dart: -------------------------------------------------------------------------------- 1 | import 'package:firebase_storage/firebase_storage.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter/painting.dart'; 4 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 5 | import 'package:intl/intl.dart'; 6 | import 'package:tea_talks/services/encoding_decoding_service.dart'; 7 | import 'package:tea_talks/utility/firebase_constants.dart'; 8 | import 'package:tea_talks/utility/ui_constants.dart'; 9 | 10 | class BottomSheetMenu extends StatelessWidget { 11 | const BottomSheetMenu({ 12 | required this.toggleBrowser, 13 | required this.chatDataCollectionReference, 14 | required this.name, 15 | required this.password, 16 | }); 17 | 18 | final Function toggleBrowser; 19 | final chatDataCollectionReference; 20 | final String name; 21 | final String password; 22 | 23 | // todo: the image is not encrypted 24 | void uploadData(var imageBytes) async { 25 | var _ref = chatDataCollectionReference.document(); 26 | var documentId = _ref.documentID; 27 | 28 | final UploadTask uploadTask = 29 | FirebaseStorage.instance.ref().child(documentId).putData(imageBytes); 30 | 31 | var url = (await (await uploadTask).ref.getDownloadURL()).toString(); 32 | 33 | Map data = { 34 | kUserName: name, 35 | kTimestamp: DateFormat('HH:mm, dd MMM yyyy').format(DateTime.now()), 36 | kMessageBody: url, 37 | kIsDoodle: true, 38 | }; 39 | 40 | String encryptedData = EncodingDecodingService.encodeAndEncrypt( 41 | data, 42 | documentId, // using doc id as IV 43 | password, 44 | ); 45 | 46 | _ref.setData({ 47 | 'data': encryptedData, 48 | 'id': documentId, 49 | 'date': DateTime.now().toIso8601String().toString(), 50 | }); 51 | } 52 | 53 | void setChatTheme() {} 54 | 55 | final sizedBoxWidth = const SizedBox(width: 30.0); 56 | 57 | @override 58 | Widget build(BuildContext context) { 59 | return SizedBox( 60 | height: 150, 61 | child: Center( 62 | child: ListView( 63 | padding: const EdgeInsets.symmetric(vertical: 30.0, horizontal: 10.0), 64 | scrollDirection: Axis.horizontal, 65 | shrinkWrap: true, 66 | children: [ 67 | TileItem( 68 | iconData: FontAwesomeIcons.firefoxBrowser, 69 | title: 'Browser', 70 | onTap: () => toggleBrowser(), 71 | ), 72 | ], 73 | ), 74 | ), 75 | ); 76 | } 77 | } 78 | 79 | class TileItem extends StatelessWidget { 80 | TileItem({ 81 | this.iconData, 82 | this.title, 83 | this.onTap, 84 | }); 85 | 86 | final iconData; 87 | final title; 88 | final onTap; 89 | 90 | @override 91 | Widget build(BuildContext context) { 92 | return InkWell( 93 | onTap: () { 94 | Navigator.pop(context); 95 | onTap(); 96 | }, 97 | child: Column( 98 | mainAxisAlignment: MainAxisAlignment.center, 99 | children: [ 100 | Icon( 101 | iconData, 102 | color: kImperialOrange, 103 | size: 35.0, 104 | ), 105 | const SizedBox(height: 10.0), 106 | Text( 107 | title, 108 | style: kLabelTextStyle, 109 | textAlign: TextAlign.center, 110 | ), 111 | ], 112 | ), 113 | ); 114 | } 115 | } 116 | -------------------------------------------------------------------------------- /lib/screens/messaging_screen/webview/browser.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | import 'package:firebase_database/firebase_database.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:tea_talks/screens/messaging_screen/webview/navigation_controls.dart'; 5 | import 'package:tea_talks/services/encryption_service.dart'; 6 | import 'package:tea_talks/utility/firebase_constants.dart'; 7 | import 'package:tea_talks/utility/ui_constants.dart'; 8 | import 'package:webview_flutter/webview_flutter.dart'; 9 | 10 | class Browser extends StatefulWidget { 11 | Browser({ 12 | required this.roomId, 13 | required this.toggleBrowser, 14 | required this.password, 15 | }); 16 | 17 | final String roomId; 18 | final String password; 19 | final Function toggleBrowser; 20 | 21 | @override 22 | _BrowserState createState() => _BrowserState(); 23 | } 24 | 25 | class _BrowserState extends State { 26 | final Completer _controller = 27 | Completer(); 28 | 29 | final ref = FirebaseDatabase.instance.ref(); 30 | 31 | String getDecryptUrl(var data) { 32 | return EncryptionService.decrypt(widget.roomId, widget.password, data); 33 | } 34 | 35 | String getEncryptedUrl(var url) { 36 | return EncryptionService.encrypt(widget.roomId, widget.password, url); 37 | } 38 | 39 | int flex = 1; 40 | void toggleFullScreen() { 41 | setState(() { 42 | flex == 1 ? flex = 100 : flex = 1; 43 | }); 44 | } 45 | 46 | void bindUrl(WebViewController controller) { 47 | ref.child(widget.roomId).onChildChanged.listen((event) async { 48 | var encryptedUrl = event.snapshot.value; 49 | var url = getDecryptUrl(encryptedUrl); 50 | 51 | print('FROM BIND URL: $url'); 52 | 53 | // load only if the URLs are different 54 | var currentUrl = await controller.currentUrl(); 55 | if (currentUrl != url) controller.loadUrl(url); 56 | }); 57 | } 58 | 59 | @override 60 | void initState() { 61 | super.initState(); 62 | _controller.future.then((WebViewController c) { 63 | bindUrl(c); 64 | }); 65 | } 66 | 67 | @override 68 | Widget build(BuildContext context) { 69 | const decoration = BoxDecoration( 70 | border: Border( 71 | bottom: BorderSide( 72 | color: kBlack, 73 | width: 2.0, 74 | ), 75 | ), 76 | ); 77 | 78 | return Expanded( 79 | flex: flex, 80 | child: Container( 81 | decoration: decoration, 82 | child: Column( 83 | children: [ 84 | NavigationControls( 85 | _controller.future, widget.toggleBrowser, toggleFullScreen), 86 | Expanded( 87 | child: WebView( 88 | initialUrl: 'https://www.google.com', 89 | javascriptMode: JavascriptMode.unrestricted, 90 | onWebViewCreated: (WebViewController webViewController) { 91 | _controller.complete(webViewController); 92 | }, 93 | javascriptChannels: const {}, 94 | onPageStarted: (url) { 95 | String encryptedUrl = getEncryptedUrl(url); 96 | ref.child(widget.roomId).set({ 97 | kVisitUrl: encryptedUrl, 98 | }); 99 | }, 100 | gestureNavigationEnabled: true, 101 | ), 102 | ), 103 | ], 104 | ), 105 | ), 106 | ); 107 | } 108 | } 109 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: tea_talks 2 | description: A new Flutter project. 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `flutter pub publish`. This is preferred for private packages. 6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 7 | 8 | # The following defines the version and build number for your application. 9 | # A version number is three numbers separated by dots, like 1.2.43 10 | # followed by an optional build number separated by a +. 11 | # Both the version and the builder number may be overridden in flutter 12 | # build by specifying --build-name and --build-number, respectively. 13 | # In Android, build-name is used as versionName while build-number used as versionCode. 14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 16 | # Read more about iOS versioning at 17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 18 | version: 1.0.0+1 19 | 20 | environment: 21 | sdk: ">=2.12.0 <3.0.0" 22 | 23 | # Dependencies specify other packages that your package needs in order to work. 24 | # To automatically upgrade your package dependencies to the latest versions 25 | # consider running `flutter pub upgrade --major-versions`. Alternatively, 26 | # dependencies can be manually updated by changing the version numbers below to 27 | # the latest version available on pub.dev. To see which dependencies have newer 28 | # versions available, run `flutter pub outdated`. 29 | dependencies: 30 | flutter: 31 | sdk: flutter 32 | cupertino_icons: ^1.0.2 33 | 34 | 35 | #firebase 36 | firebase_core: ^1.10.6 37 | firebase_auth: ^3.3.4 38 | cloud_firestore: ^3.1.5 39 | firebase_database: ^9.0.5 40 | firebase_storage: ^10.2.5 41 | 42 | #UI 43 | font_awesome_flutter: ^9.0.0-nullsafety 44 | modal_progress_hud_nsn: ^0.1.0-nullsafety-0 45 | rflutter_alert: ^2.0.4 46 | 47 | #UI Utility 48 | flutter_speed_dial: ^5.0.0+1 49 | flutter_colorpicker: ^1.0.3 50 | 51 | #encrypt 52 | encrypt: ^5.0.1 53 | 54 | #device id 55 | flutter_udid: ^2.0.0 56 | 57 | #Date 58 | intl: ^0.17.0 59 | 60 | 61 | 62 | shared_preferences: ^2.0.12 63 | #web 64 | webview_flutter: ^3.0.0 65 | url_launcher: ^6.0.18 66 | 67 | dev_dependencies: 68 | flutter_test: 69 | sdk: flutter 70 | 71 | # The "flutter_lints" package below contains a set of recommended lints to 72 | # encourage good coding practices. The lint set provided by the package is 73 | # activated in the `analysis_options.yaml` file located at the root of your 74 | # package. See that file for information about deactivating specific lint 75 | # rules and activating additional ones. 76 | flutter_lints: ^1.0.0 77 | 78 | # For information on the generic Dart part of this file, see the 79 | # following page: https://dart.dev/tools/pub/pubspec 80 | 81 | # The following section is specific to Flutter. 82 | flutter: 83 | 84 | # The following line ensures that the Material Icons font is 85 | # included with your application, so that you can use the icons in 86 | # the material Icons class. 87 | uses-material-design: true 88 | 89 | # To add assets to your application, add an assets section, like this: 90 | assets: 91 | - assets/images/ 92 | # - images/a_dot_ham.jpeg 93 | 94 | # An image asset can refer to one or more resolution-specific "variants", see 95 | # https://flutter.dev/assets-and-images/#resolution-aware. 96 | 97 | # For details regarding adding assets from package dependencies, see 98 | # https://flutter.dev/assets-and-images/#from-packages 99 | 100 | # To add custom fonts to your application, add a fonts section here, 101 | # in this "flutter" section. Each entry in this list should have a 102 | # "family" key with the font family name, and a "fonts" key with a 103 | # list giving the asset and other descriptors for the font. For 104 | # example: 105 | # fonts: 106 | # - family: Schyler 107 | # fonts: 108 | # - asset: fonts/Schyler-Regular.ttf 109 | # - asset: fonts/Schyler-Italic.ttf 110 | # style: italic 111 | # - family: Trajan Pro 112 | # fonts: 113 | # - asset: fonts/TrajanPro.ttf 114 | # - asset: fonts/TrajanPro_Bold.ttf 115 | # weight: 700 116 | # 117 | # For details regarding fonts from package dependencies, 118 | # see https://flutter.dev/custom-fonts/#from-packages 119 | -------------------------------------------------------------------------------- /lib/screens/dashboard_screen/add_room_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:cloud_firestore/cloud_firestore.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 4 | import 'package:intl/intl.dart'; 5 | import 'package:modal_progress_hud_nsn/modal_progress_hud_nsn.dart'; 6 | import 'package:tea_talks/services/encryption_service.dart'; 7 | import 'package:tea_talks/utility/firebase_constants.dart'; 8 | import 'package:tea_talks/utility/ui_constants.dart'; 9 | import 'package:tea_talks/widgets/card_text_field.dart'; 10 | 11 | class AddRoomScreen extends StatefulWidget { 12 | @override 13 | _AddRoomScreenState createState() => _AddRoomScreenState(); 14 | } 15 | 16 | class _AddRoomScreenState extends State { 17 | final _firestore = FirebaseFirestore.instance; 18 | 19 | final _roomNameController = TextEditingController(); 20 | final _roomPasswordController = TextEditingController(); 21 | 22 | bool showProgress = false; 23 | 24 | void createNewRoom() async { 25 | setState(() { 26 | showProgress = true; 27 | }); 28 | 29 | String inputRoomName = _roomNameController.text.trim(); 30 | String inputRoomPassword = _roomPasswordController.text.trim(); 31 | 32 | _roomPasswordController.clear(); 33 | _roomNameController.clear(); 34 | 35 | assert(inputRoomName.isNotEmpty); 36 | assert(inputRoomPassword.isNotEmpty); 37 | 38 | var ref = _firestore.collection(kRoomCollection).doc(); 39 | 40 | String roomId = ref.id; 41 | String roomName = inputRoomName; 42 | String roomCreationDate = 43 | DateFormat('HH:mm, dd MMMM, yyyy').format(DateTime.now()); 44 | String encryptedRoomId = 45 | EncryptionService.encrypt(roomId, inputRoomPassword, roomId); 46 | 47 | await ref.set({ 48 | kRoomId: roomId, 49 | kEncryptedRoomId: encryptedRoomId, 50 | kRoomName: roomName, 51 | kRoomCreationDate: roomCreationDate, 52 | }); 53 | 54 | // close the screen 55 | Navigator.pop(context); 56 | } 57 | 58 | @override 59 | void dispose() { 60 | _roomPasswordController.dispose(); 61 | _roomNameController.dispose(); 62 | super.dispose(); 63 | } 64 | 65 | @override 66 | Widget build(BuildContext context) { 67 | return Scaffold( 68 | backgroundColor: kSteelBlue, 69 | body: ModalProgressHUD( 70 | inAsyncCall: showProgress, 71 | child: SafeArea( 72 | child: Container( 73 | width: double.infinity, 74 | padding: const EdgeInsets.symmetric( 75 | horizontal: 15, 76 | vertical: 10, 77 | ), 78 | child: Column( 79 | mainAxisAlignment: MainAxisAlignment.center, 80 | children: [ 81 | const Text( 82 | 'Add a new Room', 83 | style: kHeadingTextStyle, 84 | textAlign: TextAlign.center, 85 | ), 86 | const SizedBox( 87 | height: 20, 88 | ), 89 | const Text( 90 | 'To add a new room, please enter a password. After which, you will be provided with an auto-generated Room ID. Share the ID with other\'s to allow them to join your room.', 91 | style: kLightLabelTextStyle, 92 | textAlign: TextAlign.center, 93 | ), 94 | const SizedBox( 95 | height: 20, 96 | ), 97 | CardTextField( 98 | controller: _roomNameController, 99 | labelText: 'Room Name', 100 | keyboardType: TextInputType.visiblePassword, 101 | iconData: FontAwesomeIcons.napster, 102 | obscureText: false, 103 | ), 104 | const SizedBox( 105 | height: 20, 106 | ), 107 | CardTextField( 108 | controller: _roomPasswordController, 109 | obscureText: true, 110 | labelText: 'New Room Password', 111 | keyboardType: TextInputType.visiblePassword, 112 | iconData: FontAwesomeIcons.lock, 113 | ), 114 | const SizedBox( 115 | height: 20, 116 | ), 117 | const SizedBox( 118 | height: 20, 119 | ), 120 | ElevatedButton( 121 | //padding: const EdgeInsets.symmetric(horizontal: 30.0, vertical: 10.0), 122 | child: const Text( 123 | 'Create Room', 124 | style: kGeneralTextStyle, 125 | ), 126 | style: ElevatedButton.styleFrom( 127 | shape: RoundedRectangleBorder( 128 | borderRadius: BorderRadius.circular(20.0)), 129 | primary: kImperialOrange, 130 | onPrimary: kWhite, 131 | elevation: 10.0, 132 | ), 133 | onPressed: createNewRoom, 134 | ), 135 | ], 136 | ), 137 | ), 138 | ), 139 | ), 140 | ); 141 | } 142 | } 143 | -------------------------------------------------------------------------------- /lib/screens/dashboard_screen/foreground_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:cloud_firestore/cloud_firestore.dart'; 2 | import 'package:flutter/cupertino.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 5 | import 'package:tea_talks/utility/firebase_constants.dart'; 6 | import 'package:tea_talks/utility/ui_constants.dart'; 7 | import 'package:tea_talks/widgets/not_found.dart'; 8 | import 'package:tea_talks/screens/dashboard_screen/widgets/room_item_widget.dart'; 9 | 10 | class ForegroundScreen extends StatefulWidget { 11 | ForegroundScreen({ 12 | required this.navBarOnPressed, 13 | }); 14 | 15 | final dynamic navBarOnPressed; 16 | 17 | @override 18 | _ForegroundScreenState createState() => _ForegroundScreenState(); 19 | } 20 | 21 | class _ForegroundScreenState extends State { 22 | final _firestore = FirebaseFirestore.instance; 23 | 24 | bool showProgress = false; 25 | 26 | void showProgressIndicator(bool show) { 27 | setState(() { 28 | showProgress = show; 29 | }); 30 | } 31 | 32 | @override 33 | Widget build(BuildContext context) { 34 | final streamBuilder = StreamBuilder( 35 | stream: _firestore.collection(kRoomCollection).snapshots(), 36 | builder: (ctx, snapshot) { 37 | if (!snapshot.hasData) { 38 | return const Center( 39 | child: CircularProgressIndicator(), 40 | ); 41 | } 42 | 43 | if (snapshot.data!.docs.isEmpty) return NotFoundWidget(); 44 | 45 | List widgets = []; 46 | List ds = snapshot.data!.docs; 47 | 48 | for (var room in ds) { 49 | widgets.add(RoomItemWidget( 50 | context: context, 51 | roomData: room, 52 | showProgressIndicator: showProgressIndicator, 53 | )); 54 | } 55 | 56 | return ListView.builder( 57 | padding: const EdgeInsets.symmetric(horizontal: 15), 58 | itemCount: widgets.length, 59 | itemBuilder: (ctx, index) { 60 | return widgets[index]; 61 | }, 62 | ); 63 | }, 64 | ); 65 | 66 | const circularProgressIndicator = Center( 67 | child: CircularProgressIndicator(), 68 | ); 69 | 70 | Column( 71 | mainAxisAlignment: MainAxisAlignment.center, 72 | crossAxisAlignment: CrossAxisAlignment.stretch, 73 | children: [ 74 | Text( 75 | 'Tea Talks', 76 | style: kHeadingTextStyle.copyWith( 77 | fontSize: 40, 78 | ), 79 | textAlign: TextAlign.center, 80 | ), 81 | const SizedBox( 82 | height: 10.0, 83 | ), 84 | const Text( 85 | 'Join a room to continue', 86 | style: kLightLabelTextStyle, 87 | textAlign: TextAlign.center, 88 | ), 89 | const SizedBox( 90 | height: 10.0, 91 | ), 92 | Expanded( 93 | child: Container( 94 | decoration: const BoxDecoration( 95 | color: kWhite, 96 | borderRadius: BorderRadius.only( 97 | topLeft: Radius.circular(20.0), 98 | topRight: Radius.circular(20.0), 99 | ), 100 | ), 101 | child: showProgress ? circularProgressIndicator : streamBuilder, 102 | ), 103 | ), 104 | ], 105 | ); 106 | 107 | final foregroundScreen = Container( 108 | color: kImperialOrange, 109 | child: SafeArea( 110 | child: Stack( 111 | children: [ 112 | Column( 113 | mainAxisAlignment: MainAxisAlignment.center, 114 | crossAxisAlignment: CrossAxisAlignment.stretch, 115 | children: [ 116 | Text( 117 | 'Tea-Talks', 118 | style: kHeadingTextStyle.copyWith( 119 | fontSize: 40, 120 | ), 121 | textAlign: TextAlign.center, 122 | ), 123 | const SizedBox( 124 | height: 10.0, 125 | ), 126 | const Text( 127 | 'Join a room to continue', 128 | style: kLightLabelTextStyle, 129 | textAlign: TextAlign.center, 130 | ), 131 | const SizedBox( 132 | height: 10.0, 133 | ), 134 | Expanded( 135 | child: Container( 136 | decoration: const BoxDecoration( 137 | color: kWhite, 138 | borderRadius: BorderRadius.only( 139 | topLeft: Radius.circular(20.0), 140 | topRight: Radius.circular(20.0), 141 | ), 142 | ), 143 | child: showProgress 144 | ? circularProgressIndicator 145 | : streamBuilder, 146 | ), 147 | ), 148 | ], 149 | ), 150 | Align( 151 | alignment: Alignment.topLeft, 152 | child: IconButton( 153 | icon: const Icon( 154 | FontAwesomeIcons.bars, 155 | color: kWhite, 156 | ), 157 | onPressed: widget.navBarOnPressed, 158 | ), 159 | ), 160 | ], 161 | ), 162 | ), 163 | ); 164 | 165 | return foregroundScreen; 166 | } 167 | } 168 | -------------------------------------------------------------------------------- /lib/screens/dashboard_screen/widgets/room_item_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:cloud_firestore/cloud_firestore.dart'; 2 | import 'package:flutter/cupertino.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter/painting.dart'; 5 | import 'package:flutter_udid/flutter_udid.dart'; 6 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 7 | import 'package:tea_talks/screens/messaging_screen/messaging_screen.dart'; 8 | import 'package:tea_talks/services/encryption_service.dart'; 9 | import 'package:tea_talks/utility/firebase_constants.dart'; 10 | import 'package:tea_talks/utility/ui_constants.dart'; 11 | import 'package:tea_talks/widgets/card_text_field.dart'; 12 | import 'package:rflutter_alert/rflutter_alert.dart'; 13 | 14 | class RoomItemWidget extends StatelessWidget { 15 | RoomItemWidget({ 16 | required this.roomData, 17 | required this.showProgressIndicator, 18 | required this.context, 19 | }); 20 | 21 | final context; 22 | final roomData; 23 | final showProgressIndicator; 24 | 25 | void showError(String error) { 26 | ScaffoldMessenger.of(context).showSnackBar( 27 | SnackBar( 28 | backgroundColor: Colors.red, 29 | duration: const Duration(milliseconds: 1500), 30 | content: Text( 31 | error, 32 | style: kLabelTextStyle.copyWith(color: kWhite), 33 | ), 34 | ), 35 | ); 36 | } 37 | 38 | void navigate(var password) async { 39 | String udid = await FlutterUdid.udid; 40 | 41 | final route = MaterialPageRoute( 42 | builder: (ctx) => MessagingScreen( 43 | roomData: roomData, 44 | password: password, 45 | name: udid, 46 | ), 47 | ); 48 | 49 | // move to new screen 50 | Navigator.push(context, route); 51 | } 52 | 53 | void enterRoom(String roomId, String password, var context) async { 54 | Navigator.pop(context); 55 | 56 | showProgressIndicator(true); 57 | 58 | try { 59 | assert(password.isNotEmpty); 60 | 61 | final docSnapshot = await FirebaseFirestore.instance 62 | .collection(kRoomCollection) 63 | .doc(roomId) 64 | .get(); 65 | 66 | if (docSnapshot.exists) { 67 | final data = docSnapshot.data; 68 | 69 | String actualRoomId = (data() as dynamic)[kRoomId]; 70 | String encryptedRoomId = (data() as dynamic)[kEncryptedRoomId]; 71 | String decryptedRoomId = ''; 72 | 73 | try { 74 | decryptedRoomId = EncryptionService.decrypt( 75 | actualRoomId, password, encryptedRoomId); 76 | } catch (_) { 77 | showProgressIndicator(false); 78 | showError('Wrong Password'); 79 | return; 80 | } 81 | 82 | if (decryptedRoomId == roomId) { 83 | showProgressIndicator(false); 84 | navigate(password); 85 | } 86 | } else { 87 | showProgressIndicator(false); 88 | showError('Room does not exists'); 89 | } 90 | } catch (e) { 91 | if (e.toString().toLowerCase().contains('assertion')) { 92 | showProgressIndicator(false); 93 | showError('Password can\'t be empty'); 94 | } else { 95 | showError('Invalid Room ID'); 96 | showProgressIndicator(false); 97 | } 98 | } 99 | } 100 | 101 | void showLoginDialog(var context) { 102 | final passwordController = TextEditingController(); 103 | 104 | final alertBorder = RoundedRectangleBorder( 105 | borderRadius: BorderRadius.circular(10.0), 106 | side: const BorderSide( 107 | width: 2.0, 108 | color: kImperialOrange, 109 | ), 110 | ); 111 | 112 | final alertStyle = AlertStyle( 113 | animationType: AnimationType.fromTop, 114 | isCloseButton: true, 115 | isOverlayTapDismiss: false, 116 | alertBorder: alertBorder, 117 | titleStyle: 118 | kHeadingTextStyle.copyWith(color: kImperialOrange, fontSize: 30), 119 | ); 120 | 121 | final alertContent = Column( 122 | crossAxisAlignment: CrossAxisAlignment.stretch, 123 | children: [ 124 | const SizedBox(height: 5), 125 | Text( 126 | 'Room ID ${roomData[kRoomId]}', 127 | style: kLabelTextStyle, 128 | textAlign: TextAlign.start, 129 | ), 130 | const SizedBox(height: 10), 131 | CardTextField( 132 | iconData: FontAwesomeIcons.lock, 133 | controller: passwordController, 134 | labelText: 'Password', 135 | obscureText: true, 136 | keyboardType: TextInputType.visiblePassword, 137 | ), 138 | ], 139 | ); 140 | 141 | final dialogButton = DialogButton( 142 | height: 50, 143 | width: 120, 144 | onPressed: () => enterRoom( 145 | roomData[kRoomId], 146 | passwordController.text.trim(), 147 | context, 148 | ), 149 | child: const Text( 150 | "Verify", 151 | style: kGeneralTextStyle, 152 | ), 153 | ); 154 | 155 | Alert( 156 | style: alertStyle, 157 | context: context, 158 | title: roomData[kRoomName], 159 | content: alertContent, 160 | buttons: [ 161 | dialogButton, 162 | ], 163 | closeFunction: () {}, 164 | ).show(); 165 | } 166 | 167 | @override 168 | Widget build(BuildContext context) { 169 | final shape = RoundedRectangleBorder( 170 | borderRadius: BorderRadius.circular(10), 171 | side: const BorderSide(color: kImperialOrange, width: 1), 172 | ); 173 | 174 | const contentPadding = EdgeInsets.symmetric( 175 | vertical: 10, 176 | horizontal: 10, 177 | ); 178 | 179 | return Card( 180 | color: Colors.white, 181 | elevation: 5, 182 | shape: shape, 183 | margin: const EdgeInsets.only( 184 | bottom: 5, 185 | top: 10, 186 | ), 187 | child: InkWell( 188 | onTap: () => showLoginDialog(context), 189 | splashColor: kImperialOrange.withAlpha(100), 190 | child: Padding( 191 | padding: contentPadding, 192 | child: Column( 193 | crossAxisAlignment: CrossAxisAlignment.stretch, 194 | children: [ 195 | Text( 196 | roomData[kRoomName], 197 | style: kHeadingTextStyle.copyWith(fontSize: 30, color: kBlack), 198 | ), 199 | const SizedBox(height: 20), 200 | Text( 201 | 'Room ID: ${roomData[kRoomId]}', 202 | style: kGeneralTextStyle.copyWith(fontSize: 15, color: kBlack), 203 | ), 204 | Text( 205 | 'created at ${roomData[kRoomCreationDate]}', 206 | style: kLabelTextStyle.copyWith(fontSize: 15, color: kBlack), 207 | ), 208 | ], 209 | ), 210 | ), 211 | ), 212 | ); 213 | } 214 | } 215 | -------------------------------------------------------------------------------- /lib/screens/messaging_screen/messaging_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:cloud_firestore/cloud_firestore.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 4 | import 'package:intl/intl.dart'; 5 | import 'package:tea_talks/screens/messaging_screen/widgets/bottom_sheet_menu.dart'; 6 | import 'package:tea_talks/screens/messaging_screen/webview/browser.dart'; 7 | import 'package:tea_talks/screens/messaging_screen/widgets/chat_bubble.dart'; 8 | import 'package:tea_talks/services/encoding_decoding_service.dart'; 9 | import 'package:tea_talks/utility/firebase_constants.dart'; 10 | import 'package:tea_talks/utility/ui_constants.dart'; 11 | 12 | class MessagingScreen extends StatefulWidget { 13 | final roomData; 14 | final password; 15 | final name; 16 | 17 | MessagingScreen({ 18 | required this.roomData, 19 | required this.password, 20 | required this.name, 21 | }); 22 | 23 | @override 24 | _MessagingScreenState createState() => _MessagingScreenState(); 25 | } 26 | 27 | class _MessagingScreenState extends State { 28 | final _textMessageController = TextEditingController(); 29 | 30 | bool showBrowser = false; 31 | late DocumentReference _documentRef; 32 | late CollectionReference _chatDataCollectionRef; 33 | 34 | void toggleBrowser() { 35 | setState(() { 36 | showBrowser = !showBrowser; 37 | }); 38 | } 39 | 40 | void sendMessage(String message) { 41 | var _ref = _chatDataCollectionRef.doc(); 42 | var documentId = _ref.id; 43 | 44 | Map data = { 45 | kUserName: widget.name, 46 | kTimestamp: DateFormat('HH:mm, dd MMM yyyy').format(DateTime.now()), 47 | kMessageBody: message, 48 | kIsDoodle: false, 49 | }; 50 | 51 | String encryptedData = EncodingDecodingService.encodeAndEncrypt( 52 | data, 53 | documentId, // using doc id as IV 54 | widget.password, 55 | ); 56 | 57 | _ref.set({ 58 | 'data': encryptedData, 59 | 'id': documentId, 60 | 'date': DateTime.now().toIso8601String().toString(), 61 | }); 62 | } 63 | 64 | @override 65 | void initState() { 66 | super.initState(); 67 | 68 | _documentRef = FirebaseFirestore.instance 69 | .collection(kChatCollection) 70 | .doc(widget.roomData[kRoomId]); 71 | 72 | _chatDataCollectionRef = _documentRef.collection(kChatDataCollection); 73 | } 74 | 75 | @override 76 | Widget build(BuildContext context) { 77 | return Scaffold( 78 | backgroundColor: kWhite, 79 | body: SafeArea( 80 | child: Column( 81 | children: [ 82 | showBrowser 83 | ? Browser( 84 | roomId: widget.roomData[kRoomId], 85 | password: widget.password, 86 | toggleBrowser: toggleBrowser, 87 | ) 88 | : const SizedBox.shrink(), 89 | Expanded( 90 | child: StreamBuilder( 91 | stream: _chatDataCollectionRef.orderBy('date').snapshots(), 92 | builder: (ctx, snapshot) { 93 | if (snapshot.data == null) { 94 | return const Center( 95 | child: CircularProgressIndicator(), 96 | ); 97 | } 98 | 99 | if (snapshot.data!.docs.isEmpty) { 100 | return const Center( 101 | child: Text( 102 | 'Send your first text in this Room', 103 | style: kTitleTextStyle, 104 | ), 105 | ); 106 | } 107 | 108 | List widgets = []; 109 | List ds = 110 | snapshot.data!.docs.reversed.toList(); 111 | 112 | for (var chatData in ds) { 113 | widgets.add(ChatBubble( 114 | chatData: chatData.data(), 115 | name: widget.name, 116 | password: widget.password, 117 | )); 118 | } 119 | 120 | return ListView.builder( 121 | reverse: true, 122 | itemCount: widgets.length, 123 | itemBuilder: (ctx, index) { 124 | return widgets[index]; 125 | }, 126 | ); 127 | }, 128 | ), 129 | ), 130 | Container( 131 | color: kImperialOrange.withOpacity(0.2), 132 | padding: 133 | const EdgeInsets.symmetric(horizontal: 5.0, vertical: 10.0), 134 | child: Stack( 135 | children: [ 136 | Positioned.fill( 137 | child: Align( 138 | alignment: Alignment.centerLeft, 139 | child: MaterialButton( 140 | onPressed: () { 141 | showModalBottomSheet( 142 | isScrollControlled: true, 143 | context: context, 144 | builder: (ctx) => SingleChildScrollView( 145 | child: BottomSheetMenu( 146 | toggleBrowser: toggleBrowser, 147 | name: widget.name, 148 | password: widget.password, 149 | chatDataCollectionReference: 150 | _chatDataCollectionRef, 151 | ), 152 | ), 153 | ); 154 | }, 155 | minWidth: 0, 156 | elevation: 5.0, 157 | color: kWhite, 158 | child: const Icon( 159 | FontAwesomeIcons.angleDoubleUp, 160 | size: 25.0, 161 | color: kImperialOrange, 162 | ), 163 | padding: EdgeInsets.all(10.0), 164 | shape: CircleBorder(), 165 | ), 166 | ), 167 | ), 168 | Positioned.fill( 169 | child: Align( 170 | alignment: Alignment.center, 171 | child: Container( 172 | margin: const EdgeInsets.only(left: 50), 173 | decoration: BoxDecoration( 174 | color: kWhite, 175 | borderRadius: BorderRadius.circular(25), 176 | ), 177 | child: Padding( 178 | padding: const EdgeInsets.only( 179 | left: 15, 180 | right: 65, 181 | ), 182 | child: Card( 183 | color: Colors.transparent, 184 | elevation: 0.0, 185 | margin: const EdgeInsets.all(0.0), 186 | child: TextField( 187 | controller: _textMessageController, 188 | style: kGeneralTextStyle.copyWith( 189 | color: kBlack, fontSize: 20), 190 | decoration: InputDecoration( 191 | hintText: 'Type your message...', 192 | hintStyle: 193 | kLabelTextStyle.copyWith(fontSize: 15), 194 | border: InputBorder.none, 195 | ), 196 | ), 197 | ), 198 | ), 199 | ), 200 | ), 201 | ), 202 | Align( 203 | alignment: Alignment.centerRight, 204 | child: MaterialButton( 205 | onPressed: () { 206 | String message = _textMessageController.text.trim(); 207 | _textMessageController.clear(); 208 | 209 | if (message.isEmpty) { 210 | return; 211 | } 212 | sendMessage(message); 213 | }, 214 | minWidth: 0, 215 | elevation: 5.0, 216 | color: kImperialOrange, 217 | child: const Icon( 218 | FontAwesomeIcons.chevronRight, 219 | size: 25.0, 220 | color: kWhite, 221 | ), 222 | padding: const EdgeInsets.all(15.0), 223 | shape: const CircleBorder(), 224 | ), 225 | ), 226 | ], 227 | ), 228 | ), 229 | ], 230 | ), 231 | ), 232 | ); 233 | } 234 | } 235 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | args: 5 | dependency: transitive 6 | description: 7 | name: args 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.3.0" 11 | asn1lib: 12 | dependency: transitive 13 | description: 14 | name: asn1lib 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.0.3" 18 | async: 19 | dependency: transitive 20 | description: 21 | name: async 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.8.1" 25 | boolean_selector: 26 | dependency: transitive 27 | description: 28 | name: boolean_selector 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "2.1.0" 32 | characters: 33 | dependency: transitive 34 | description: 35 | name: characters 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.0" 39 | charcode: 40 | dependency: transitive 41 | description: 42 | name: charcode 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.3.1" 46 | clock: 47 | dependency: transitive 48 | description: 49 | name: clock 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "1.1.0" 53 | cloud_firestore: 54 | dependency: "direct main" 55 | description: 56 | name: cloud_firestore 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "3.1.6" 60 | cloud_firestore_platform_interface: 61 | dependency: transitive 62 | description: 63 | name: cloud_firestore_platform_interface 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "5.4.11" 67 | cloud_firestore_web: 68 | dependency: transitive 69 | description: 70 | name: cloud_firestore_web 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "2.6.6" 74 | collection: 75 | dependency: transitive 76 | description: 77 | name: collection 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "1.15.0" 81 | convert: 82 | dependency: transitive 83 | description: 84 | name: convert 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "3.0.1" 88 | crypto: 89 | dependency: transitive 90 | description: 91 | name: crypto 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "3.0.1" 95 | cupertino_icons: 96 | dependency: "direct main" 97 | description: 98 | name: cupertino_icons 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "1.0.4" 102 | encrypt: 103 | dependency: "direct main" 104 | description: 105 | name: encrypt 106 | url: "https://pub.dartlang.org" 107 | source: hosted 108 | version: "5.0.1" 109 | fake_async: 110 | dependency: transitive 111 | description: 112 | name: fake_async 113 | url: "https://pub.dartlang.org" 114 | source: hosted 115 | version: "1.2.0" 116 | ffi: 117 | dependency: transitive 118 | description: 119 | name: ffi 120 | url: "https://pub.dartlang.org" 121 | source: hosted 122 | version: "1.1.2" 123 | file: 124 | dependency: transitive 125 | description: 126 | name: file 127 | url: "https://pub.dartlang.org" 128 | source: hosted 129 | version: "6.1.2" 130 | firebase_auth: 131 | dependency: "direct main" 132 | description: 133 | name: firebase_auth 134 | url: "https://pub.dartlang.org" 135 | source: hosted 136 | version: "3.3.5" 137 | firebase_auth_platform_interface: 138 | dependency: transitive 139 | description: 140 | name: firebase_auth_platform_interface 141 | url: "https://pub.dartlang.org" 142 | source: hosted 143 | version: "6.1.10" 144 | firebase_auth_web: 145 | dependency: transitive 146 | description: 147 | name: firebase_auth_web 148 | url: "https://pub.dartlang.org" 149 | source: hosted 150 | version: "3.3.6" 151 | firebase_core: 152 | dependency: "direct main" 153 | description: 154 | name: firebase_core 155 | url: "https://pub.dartlang.org" 156 | source: hosted 157 | version: "1.11.0" 158 | firebase_core_platform_interface: 159 | dependency: transitive 160 | description: 161 | name: firebase_core_platform_interface 162 | url: "https://pub.dartlang.org" 163 | source: hosted 164 | version: "4.2.3" 165 | firebase_core_web: 166 | dependency: transitive 167 | description: 168 | name: firebase_core_web 169 | url: "https://pub.dartlang.org" 170 | source: hosted 171 | version: "1.5.3" 172 | firebase_database: 173 | dependency: "direct main" 174 | description: 175 | name: firebase_database 176 | url: "https://pub.dartlang.org" 177 | source: hosted 178 | version: "9.0.5" 179 | firebase_database_platform_interface: 180 | dependency: transitive 181 | description: 182 | name: firebase_database_platform_interface 183 | url: "https://pub.dartlang.org" 184 | source: hosted 185 | version: "0.2.0+4" 186 | firebase_database_web: 187 | dependency: transitive 188 | description: 189 | name: firebase_database_web 190 | url: "https://pub.dartlang.org" 191 | source: hosted 192 | version: "0.2.0+4" 193 | firebase_storage: 194 | dependency: "direct main" 195 | description: 196 | name: firebase_storage 197 | url: "https://pub.dartlang.org" 198 | source: hosted 199 | version: "10.2.5" 200 | firebase_storage_platform_interface: 201 | dependency: transitive 202 | description: 203 | name: firebase_storage_platform_interface 204 | url: "https://pub.dartlang.org" 205 | source: hosted 206 | version: "4.0.12" 207 | firebase_storage_web: 208 | dependency: transitive 209 | description: 210 | name: firebase_storage_web 211 | url: "https://pub.dartlang.org" 212 | source: hosted 213 | version: "3.2.6" 214 | flutter: 215 | dependency: "direct main" 216 | description: flutter 217 | source: sdk 218 | version: "0.0.0" 219 | flutter_colorpicker: 220 | dependency: "direct main" 221 | description: 222 | name: flutter_colorpicker 223 | url: "https://pub.dartlang.org" 224 | source: hosted 225 | version: "1.0.3" 226 | flutter_lints: 227 | dependency: "direct dev" 228 | description: 229 | name: flutter_lints 230 | url: "https://pub.dartlang.org" 231 | source: hosted 232 | version: "1.0.4" 233 | flutter_speed_dial: 234 | dependency: "direct main" 235 | description: 236 | name: flutter_speed_dial 237 | url: "https://pub.dartlang.org" 238 | source: hosted 239 | version: "5.0.0+1" 240 | flutter_test: 241 | dependency: "direct dev" 242 | description: flutter 243 | source: sdk 244 | version: "0.0.0" 245 | flutter_udid: 246 | dependency: "direct main" 247 | description: 248 | name: flutter_udid 249 | url: "https://pub.dartlang.org" 250 | source: hosted 251 | version: "2.0.0" 252 | flutter_web_plugins: 253 | dependency: transitive 254 | description: flutter 255 | source: sdk 256 | version: "0.0.0" 257 | font_awesome_flutter: 258 | dependency: "direct main" 259 | description: 260 | name: font_awesome_flutter 261 | url: "https://pub.dartlang.org" 262 | source: hosted 263 | version: "9.2.0" 264 | http: 265 | dependency: transitive 266 | description: 267 | name: http 268 | url: "https://pub.dartlang.org" 269 | source: hosted 270 | version: "0.13.4" 271 | http_parser: 272 | dependency: transitive 273 | description: 274 | name: http_parser 275 | url: "https://pub.dartlang.org" 276 | source: hosted 277 | version: "4.0.0" 278 | intl: 279 | dependency: "direct main" 280 | description: 281 | name: intl 282 | url: "https://pub.dartlang.org" 283 | source: hosted 284 | version: "0.17.0" 285 | js: 286 | dependency: transitive 287 | description: 288 | name: js 289 | url: "https://pub.dartlang.org" 290 | source: hosted 291 | version: "0.6.3" 292 | lints: 293 | dependency: transitive 294 | description: 295 | name: lints 296 | url: "https://pub.dartlang.org" 297 | source: hosted 298 | version: "1.0.1" 299 | matcher: 300 | dependency: transitive 301 | description: 302 | name: matcher 303 | url: "https://pub.dartlang.org" 304 | source: hosted 305 | version: "0.12.10" 306 | meta: 307 | dependency: transitive 308 | description: 309 | name: meta 310 | url: "https://pub.dartlang.org" 311 | source: hosted 312 | version: "1.7.0" 313 | modal_progress_hud_nsn: 314 | dependency: "direct main" 315 | description: 316 | name: modal_progress_hud_nsn 317 | url: "https://pub.dartlang.org" 318 | source: hosted 319 | version: "0.1.0-nullsafety-1" 320 | path: 321 | dependency: transitive 322 | description: 323 | name: path 324 | url: "https://pub.dartlang.org" 325 | source: hosted 326 | version: "1.8.0" 327 | path_provider_linux: 328 | dependency: transitive 329 | description: 330 | name: path_provider_linux 331 | url: "https://pub.dartlang.org" 332 | source: hosted 333 | version: "2.1.5" 334 | path_provider_platform_interface: 335 | dependency: transitive 336 | description: 337 | name: path_provider_platform_interface 338 | url: "https://pub.dartlang.org" 339 | source: hosted 340 | version: "2.0.3" 341 | path_provider_windows: 342 | dependency: transitive 343 | description: 344 | name: path_provider_windows 345 | url: "https://pub.dartlang.org" 346 | source: hosted 347 | version: "2.0.5" 348 | platform: 349 | dependency: transitive 350 | description: 351 | name: platform 352 | url: "https://pub.dartlang.org" 353 | source: hosted 354 | version: "3.1.0" 355 | plugin_platform_interface: 356 | dependency: transitive 357 | description: 358 | name: plugin_platform_interface 359 | url: "https://pub.dartlang.org" 360 | source: hosted 361 | version: "2.1.2" 362 | pointycastle: 363 | dependency: transitive 364 | description: 365 | name: pointycastle 366 | url: "https://pub.dartlang.org" 367 | source: hosted 368 | version: "3.5.0" 369 | process: 370 | dependency: transitive 371 | description: 372 | name: process 373 | url: "https://pub.dartlang.org" 374 | source: hosted 375 | version: "4.2.4" 376 | rflutter_alert: 377 | dependency: "direct main" 378 | description: 379 | name: rflutter_alert 380 | url: "https://pub.dartlang.org" 381 | source: hosted 382 | version: "2.0.4" 383 | shared_preferences: 384 | dependency: "direct main" 385 | description: 386 | name: shared_preferences 387 | url: "https://pub.dartlang.org" 388 | source: hosted 389 | version: "2.0.12" 390 | shared_preferences_android: 391 | dependency: transitive 392 | description: 393 | name: shared_preferences_android 394 | url: "https://pub.dartlang.org" 395 | source: hosted 396 | version: "2.0.10" 397 | shared_preferences_ios: 398 | dependency: transitive 399 | description: 400 | name: shared_preferences_ios 401 | url: "https://pub.dartlang.org" 402 | source: hosted 403 | version: "2.0.9" 404 | shared_preferences_linux: 405 | dependency: transitive 406 | description: 407 | name: shared_preferences_linux 408 | url: "https://pub.dartlang.org" 409 | source: hosted 410 | version: "2.0.4" 411 | shared_preferences_macos: 412 | dependency: transitive 413 | description: 414 | name: shared_preferences_macos 415 | url: "https://pub.dartlang.org" 416 | source: hosted 417 | version: "2.0.2" 418 | shared_preferences_platform_interface: 419 | dependency: transitive 420 | description: 421 | name: shared_preferences_platform_interface 422 | url: "https://pub.dartlang.org" 423 | source: hosted 424 | version: "2.0.0" 425 | shared_preferences_web: 426 | dependency: transitive 427 | description: 428 | name: shared_preferences_web 429 | url: "https://pub.dartlang.org" 430 | source: hosted 431 | version: "2.0.3" 432 | shared_preferences_windows: 433 | dependency: transitive 434 | description: 435 | name: shared_preferences_windows 436 | url: "https://pub.dartlang.org" 437 | source: hosted 438 | version: "2.0.4" 439 | sky_engine: 440 | dependency: transitive 441 | description: flutter 442 | source: sdk 443 | version: "0.0.99" 444 | source_span: 445 | dependency: transitive 446 | description: 447 | name: source_span 448 | url: "https://pub.dartlang.org" 449 | source: hosted 450 | version: "1.8.1" 451 | stack_trace: 452 | dependency: transitive 453 | description: 454 | name: stack_trace 455 | url: "https://pub.dartlang.org" 456 | source: hosted 457 | version: "1.10.0" 458 | stream_channel: 459 | dependency: transitive 460 | description: 461 | name: stream_channel 462 | url: "https://pub.dartlang.org" 463 | source: hosted 464 | version: "2.1.0" 465 | string_scanner: 466 | dependency: transitive 467 | description: 468 | name: string_scanner 469 | url: "https://pub.dartlang.org" 470 | source: hosted 471 | version: "1.1.0" 472 | term_glyph: 473 | dependency: transitive 474 | description: 475 | name: term_glyph 476 | url: "https://pub.dartlang.org" 477 | source: hosted 478 | version: "1.2.0" 479 | test_api: 480 | dependency: transitive 481 | description: 482 | name: test_api 483 | url: "https://pub.dartlang.org" 484 | source: hosted 485 | version: "0.4.2" 486 | typed_data: 487 | dependency: transitive 488 | description: 489 | name: typed_data 490 | url: "https://pub.dartlang.org" 491 | source: hosted 492 | version: "1.3.0" 493 | url_launcher: 494 | dependency: "direct main" 495 | description: 496 | name: url_launcher 497 | url: "https://pub.dartlang.org" 498 | source: hosted 499 | version: "6.0.18" 500 | url_launcher_android: 501 | dependency: transitive 502 | description: 503 | name: url_launcher_android 504 | url: "https://pub.dartlang.org" 505 | source: hosted 506 | version: "6.0.14" 507 | url_launcher_ios: 508 | dependency: transitive 509 | description: 510 | name: url_launcher_ios 511 | url: "https://pub.dartlang.org" 512 | source: hosted 513 | version: "6.0.14" 514 | url_launcher_linux: 515 | dependency: transitive 516 | description: 517 | name: url_launcher_linux 518 | url: "https://pub.dartlang.org" 519 | source: hosted 520 | version: "2.0.3" 521 | url_launcher_macos: 522 | dependency: transitive 523 | description: 524 | name: url_launcher_macos 525 | url: "https://pub.dartlang.org" 526 | source: hosted 527 | version: "2.0.3" 528 | url_launcher_platform_interface: 529 | dependency: transitive 530 | description: 531 | name: url_launcher_platform_interface 532 | url: "https://pub.dartlang.org" 533 | source: hosted 534 | version: "2.0.5" 535 | url_launcher_web: 536 | dependency: transitive 537 | description: 538 | name: url_launcher_web 539 | url: "https://pub.dartlang.org" 540 | source: hosted 541 | version: "2.0.6" 542 | url_launcher_windows: 543 | dependency: transitive 544 | description: 545 | name: url_launcher_windows 546 | url: "https://pub.dartlang.org" 547 | source: hosted 548 | version: "2.0.2" 549 | vector_math: 550 | dependency: transitive 551 | description: 552 | name: vector_math 553 | url: "https://pub.dartlang.org" 554 | source: hosted 555 | version: "2.1.0" 556 | webview_flutter: 557 | dependency: "direct main" 558 | description: 559 | name: webview_flutter 560 | url: "https://pub.dartlang.org" 561 | source: hosted 562 | version: "3.0.0" 563 | webview_flutter_android: 564 | dependency: transitive 565 | description: 566 | name: webview_flutter_android 567 | url: "https://pub.dartlang.org" 568 | source: hosted 569 | version: "2.8.2" 570 | webview_flutter_platform_interface: 571 | dependency: transitive 572 | description: 573 | name: webview_flutter_platform_interface 574 | url: "https://pub.dartlang.org" 575 | source: hosted 576 | version: "1.8.1" 577 | webview_flutter_wkwebview: 578 | dependency: transitive 579 | description: 580 | name: webview_flutter_wkwebview 581 | url: "https://pub.dartlang.org" 582 | source: hosted 583 | version: "2.7.1" 584 | win32: 585 | dependency: transitive 586 | description: 587 | name: win32 588 | url: "https://pub.dartlang.org" 589 | source: hosted 590 | version: "2.3.3" 591 | xdg_directories: 592 | dependency: transitive 593 | description: 594 | name: xdg_directories 595 | url: "https://pub.dartlang.org" 596 | source: hosted 597 | version: "0.2.0" 598 | sdks: 599 | dart: ">=2.14.0 <3.0.0" 600 | flutter: ">=2.5.0" 601 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXCopyFilesBuildPhase section */ 19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 20 | isa = PBXCopyFilesBuildPhase; 21 | buildActionMask = 2147483647; 22 | dstPath = ""; 23 | dstSubfolderSpec = 10; 24 | files = ( 25 | ); 26 | name = "Embed Frameworks"; 27 | runOnlyForDeploymentPostprocessing = 0; 28 | }; 29 | /* End PBXCopyFilesBuildPhase section */ 30 | 31 | /* Begin PBXFileReference section */ 32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | /* End PBXFileReference section */ 46 | 47 | /* Begin PBXFrameworksBuildPhase section */ 48 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 49 | isa = PBXFrameworksBuildPhase; 50 | buildActionMask = 2147483647; 51 | files = ( 52 | ); 53 | runOnlyForDeploymentPostprocessing = 0; 54 | }; 55 | /* End PBXFrameworksBuildPhase section */ 56 | 57 | /* Begin PBXGroup section */ 58 | 9740EEB11CF90186004384FC /* Flutter */ = { 59 | isa = PBXGroup; 60 | children = ( 61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 65 | ); 66 | name = Flutter; 67 | sourceTree = ""; 68 | }; 69 | 97C146E51CF9000F007C117D = { 70 | isa = PBXGroup; 71 | children = ( 72 | 9740EEB11CF90186004384FC /* Flutter */, 73 | 97C146F01CF9000F007C117D /* Runner */, 74 | 97C146EF1CF9000F007C117D /* Products */, 75 | ); 76 | sourceTree = ""; 77 | }; 78 | 97C146EF1CF9000F007C117D /* Products */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 97C146EE1CF9000F007C117D /* Runner.app */, 82 | ); 83 | name = Products; 84 | sourceTree = ""; 85 | }; 86 | 97C146F01CF9000F007C117D /* Runner */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 92 | 97C147021CF9000F007C117D /* Info.plist */, 93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 97 | ); 98 | path = Runner; 99 | sourceTree = ""; 100 | }; 101 | /* End PBXGroup section */ 102 | 103 | /* Begin PBXNativeTarget section */ 104 | 97C146ED1CF9000F007C117D /* Runner */ = { 105 | isa = PBXNativeTarget; 106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 107 | buildPhases = ( 108 | 9740EEB61CF901F6004384FC /* Run Script */, 109 | 97C146EA1CF9000F007C117D /* Sources */, 110 | 97C146EB1CF9000F007C117D /* Frameworks */, 111 | 97C146EC1CF9000F007C117D /* Resources */, 112 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 114 | ); 115 | buildRules = ( 116 | ); 117 | dependencies = ( 118 | ); 119 | name = Runner; 120 | productName = Runner; 121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 122 | productType = "com.apple.product-type.application"; 123 | }; 124 | /* End PBXNativeTarget section */ 125 | 126 | /* Begin PBXProject section */ 127 | 97C146E61CF9000F007C117D /* Project object */ = { 128 | isa = PBXProject; 129 | attributes = { 130 | LastUpgradeCheck = 1020; 131 | ORGANIZATIONNAME = ""; 132 | TargetAttributes = { 133 | 97C146ED1CF9000F007C117D = { 134 | CreatedOnToolsVersion = 7.3.1; 135 | LastSwiftMigration = 1100; 136 | }; 137 | }; 138 | }; 139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 140 | compatibilityVersion = "Xcode 9.3"; 141 | developmentRegion = en; 142 | hasScannedForEncodings = 0; 143 | knownRegions = ( 144 | en, 145 | Base, 146 | ); 147 | mainGroup = 97C146E51CF9000F007C117D; 148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 149 | projectDirPath = ""; 150 | projectRoot = ""; 151 | targets = ( 152 | 97C146ED1CF9000F007C117D /* Runner */, 153 | ); 154 | }; 155 | /* End PBXProject section */ 156 | 157 | /* Begin PBXResourcesBuildPhase section */ 158 | 97C146EC1CF9000F007C117D /* Resources */ = { 159 | isa = PBXResourcesBuildPhase; 160 | buildActionMask = 2147483647; 161 | files = ( 162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 166 | ); 167 | runOnlyForDeploymentPostprocessing = 0; 168 | }; 169 | /* End PBXResourcesBuildPhase section */ 170 | 171 | /* Begin PBXShellScriptBuildPhase section */ 172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 173 | isa = PBXShellScriptBuildPhase; 174 | buildActionMask = 2147483647; 175 | files = ( 176 | ); 177 | inputPaths = ( 178 | ); 179 | name = "Thin Binary"; 180 | outputPaths = ( 181 | ); 182 | runOnlyForDeploymentPostprocessing = 0; 183 | shellPath = /bin/sh; 184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 185 | }; 186 | 9740EEB61CF901F6004384FC /* Run Script */ = { 187 | isa = PBXShellScriptBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | ); 191 | inputPaths = ( 192 | ); 193 | name = "Run Script"; 194 | outputPaths = ( 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | shellPath = /bin/sh; 198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 199 | }; 200 | /* End PBXShellScriptBuildPhase section */ 201 | 202 | /* Begin PBXSourcesBuildPhase section */ 203 | 97C146EA1CF9000F007C117D /* Sources */ = { 204 | isa = PBXSourcesBuildPhase; 205 | buildActionMask = 2147483647; 206 | files = ( 207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 209 | ); 210 | runOnlyForDeploymentPostprocessing = 0; 211 | }; 212 | /* End PBXSourcesBuildPhase section */ 213 | 214 | /* Begin PBXVariantGroup section */ 215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 216 | isa = PBXVariantGroup; 217 | children = ( 218 | 97C146FB1CF9000F007C117D /* Base */, 219 | ); 220 | name = Main.storyboard; 221 | sourceTree = ""; 222 | }; 223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 224 | isa = PBXVariantGroup; 225 | children = ( 226 | 97C147001CF9000F007C117D /* Base */, 227 | ); 228 | name = LaunchScreen.storyboard; 229 | sourceTree = ""; 230 | }; 231 | /* End PBXVariantGroup section */ 232 | 233 | /* Begin XCBuildConfiguration section */ 234 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 235 | isa = XCBuildConfiguration; 236 | buildSettings = { 237 | ALWAYS_SEARCH_USER_PATHS = NO; 238 | CLANG_ANALYZER_NONNULL = YES; 239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 240 | CLANG_CXX_LIBRARY = "libc++"; 241 | CLANG_ENABLE_MODULES = YES; 242 | CLANG_ENABLE_OBJC_ARC = YES; 243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 244 | CLANG_WARN_BOOL_CONVERSION = YES; 245 | CLANG_WARN_COMMA = YES; 246 | CLANG_WARN_CONSTANT_CONVERSION = YES; 247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 249 | CLANG_WARN_EMPTY_BODY = YES; 250 | CLANG_WARN_ENUM_CONVERSION = YES; 251 | CLANG_WARN_INFINITE_RECURSION = YES; 252 | CLANG_WARN_INT_CONVERSION = YES; 253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 258 | CLANG_WARN_STRICT_PROTOTYPES = YES; 259 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 260 | CLANG_WARN_UNREACHABLE_CODE = YES; 261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 263 | COPY_PHASE_STRIP = NO; 264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 265 | ENABLE_NS_ASSERTIONS = NO; 266 | ENABLE_STRICT_OBJC_MSGSEND = YES; 267 | GCC_C_LANGUAGE_STANDARD = gnu99; 268 | GCC_NO_COMMON_BLOCKS = YES; 269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 271 | GCC_WARN_UNDECLARED_SELECTOR = YES; 272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 273 | GCC_WARN_UNUSED_FUNCTION = YES; 274 | GCC_WARN_UNUSED_VARIABLE = YES; 275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 276 | MTL_ENABLE_DEBUG_INFO = NO; 277 | SDKROOT = iphoneos; 278 | SUPPORTED_PLATFORMS = iphoneos; 279 | TARGETED_DEVICE_FAMILY = "1,2"; 280 | VALIDATE_PRODUCT = YES; 281 | }; 282 | name = Profile; 283 | }; 284 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 285 | isa = XCBuildConfiguration; 286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 287 | buildSettings = { 288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 289 | CLANG_ENABLE_MODULES = YES; 290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 291 | ENABLE_BITCODE = NO; 292 | INFOPLIST_FILE = Runner/Info.plist; 293 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 294 | PRODUCT_BUNDLE_IDENTIFIER = com.example.teaTalks; 295 | PRODUCT_NAME = "$(TARGET_NAME)"; 296 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 297 | SWIFT_VERSION = 5.0; 298 | VERSIONING_SYSTEM = "apple-generic"; 299 | }; 300 | name = Profile; 301 | }; 302 | 97C147031CF9000F007C117D /* Debug */ = { 303 | isa = XCBuildConfiguration; 304 | buildSettings = { 305 | ALWAYS_SEARCH_USER_PATHS = NO; 306 | CLANG_ANALYZER_NONNULL = YES; 307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 308 | CLANG_CXX_LIBRARY = "libc++"; 309 | CLANG_ENABLE_MODULES = YES; 310 | CLANG_ENABLE_OBJC_ARC = YES; 311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 312 | CLANG_WARN_BOOL_CONVERSION = YES; 313 | CLANG_WARN_COMMA = YES; 314 | CLANG_WARN_CONSTANT_CONVERSION = YES; 315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 317 | CLANG_WARN_EMPTY_BODY = YES; 318 | CLANG_WARN_ENUM_CONVERSION = YES; 319 | CLANG_WARN_INFINITE_RECURSION = YES; 320 | CLANG_WARN_INT_CONVERSION = YES; 321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 326 | CLANG_WARN_STRICT_PROTOTYPES = YES; 327 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 328 | CLANG_WARN_UNREACHABLE_CODE = YES; 329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 331 | COPY_PHASE_STRIP = NO; 332 | DEBUG_INFORMATION_FORMAT = dwarf; 333 | ENABLE_STRICT_OBJC_MSGSEND = YES; 334 | ENABLE_TESTABILITY = YES; 335 | GCC_C_LANGUAGE_STANDARD = gnu99; 336 | GCC_DYNAMIC_NO_PIC = NO; 337 | GCC_NO_COMMON_BLOCKS = YES; 338 | GCC_OPTIMIZATION_LEVEL = 0; 339 | GCC_PREPROCESSOR_DEFINITIONS = ( 340 | "DEBUG=1", 341 | "$(inherited)", 342 | ); 343 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 344 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 345 | GCC_WARN_UNDECLARED_SELECTOR = YES; 346 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 347 | GCC_WARN_UNUSED_FUNCTION = YES; 348 | GCC_WARN_UNUSED_VARIABLE = YES; 349 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 350 | MTL_ENABLE_DEBUG_INFO = YES; 351 | ONLY_ACTIVE_ARCH = YES; 352 | SDKROOT = iphoneos; 353 | TARGETED_DEVICE_FAMILY = "1,2"; 354 | }; 355 | name = Debug; 356 | }; 357 | 97C147041CF9000F007C117D /* Release */ = { 358 | isa = XCBuildConfiguration; 359 | buildSettings = { 360 | ALWAYS_SEARCH_USER_PATHS = NO; 361 | CLANG_ANALYZER_NONNULL = YES; 362 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 363 | CLANG_CXX_LIBRARY = "libc++"; 364 | CLANG_ENABLE_MODULES = YES; 365 | CLANG_ENABLE_OBJC_ARC = YES; 366 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 367 | CLANG_WARN_BOOL_CONVERSION = YES; 368 | CLANG_WARN_COMMA = YES; 369 | CLANG_WARN_CONSTANT_CONVERSION = YES; 370 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 371 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 372 | CLANG_WARN_EMPTY_BODY = YES; 373 | CLANG_WARN_ENUM_CONVERSION = YES; 374 | CLANG_WARN_INFINITE_RECURSION = YES; 375 | CLANG_WARN_INT_CONVERSION = YES; 376 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 377 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 378 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 379 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 380 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 381 | CLANG_WARN_STRICT_PROTOTYPES = YES; 382 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 383 | CLANG_WARN_UNREACHABLE_CODE = YES; 384 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 385 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 386 | COPY_PHASE_STRIP = NO; 387 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 388 | ENABLE_NS_ASSERTIONS = NO; 389 | ENABLE_STRICT_OBJC_MSGSEND = YES; 390 | GCC_C_LANGUAGE_STANDARD = gnu99; 391 | GCC_NO_COMMON_BLOCKS = YES; 392 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 393 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 394 | GCC_WARN_UNDECLARED_SELECTOR = YES; 395 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 396 | GCC_WARN_UNUSED_FUNCTION = YES; 397 | GCC_WARN_UNUSED_VARIABLE = YES; 398 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 399 | MTL_ENABLE_DEBUG_INFO = NO; 400 | SDKROOT = iphoneos; 401 | SUPPORTED_PLATFORMS = iphoneos; 402 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 403 | TARGETED_DEVICE_FAMILY = "1,2"; 404 | VALIDATE_PRODUCT = YES; 405 | }; 406 | name = Release; 407 | }; 408 | 97C147061CF9000F007C117D /* Debug */ = { 409 | isa = XCBuildConfiguration; 410 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 411 | buildSettings = { 412 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 413 | CLANG_ENABLE_MODULES = YES; 414 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 415 | ENABLE_BITCODE = NO; 416 | INFOPLIST_FILE = Runner/Info.plist; 417 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 418 | PRODUCT_BUNDLE_IDENTIFIER = com.example.teaTalks; 419 | PRODUCT_NAME = "$(TARGET_NAME)"; 420 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 421 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 422 | SWIFT_VERSION = 5.0; 423 | VERSIONING_SYSTEM = "apple-generic"; 424 | }; 425 | name = Debug; 426 | }; 427 | 97C147071CF9000F007C117D /* Release */ = { 428 | isa = XCBuildConfiguration; 429 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 430 | buildSettings = { 431 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 432 | CLANG_ENABLE_MODULES = YES; 433 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 434 | ENABLE_BITCODE = NO; 435 | INFOPLIST_FILE = Runner/Info.plist; 436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 437 | PRODUCT_BUNDLE_IDENTIFIER = com.example.teaTalks; 438 | PRODUCT_NAME = "$(TARGET_NAME)"; 439 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 440 | SWIFT_VERSION = 5.0; 441 | VERSIONING_SYSTEM = "apple-generic"; 442 | }; 443 | name = Release; 444 | }; 445 | /* End XCBuildConfiguration section */ 446 | 447 | /* Begin XCConfigurationList section */ 448 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 449 | isa = XCConfigurationList; 450 | buildConfigurations = ( 451 | 97C147031CF9000F007C117D /* Debug */, 452 | 97C147041CF9000F007C117D /* Release */, 453 | 249021D3217E4FDB00AE95B9 /* Profile */, 454 | ); 455 | defaultConfigurationIsVisible = 0; 456 | defaultConfigurationName = Release; 457 | }; 458 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 459 | isa = XCConfigurationList; 460 | buildConfigurations = ( 461 | 97C147061CF9000F007C117D /* Debug */, 462 | 97C147071CF9000F007C117D /* Release */, 463 | 249021D4217E4FDB00AE95B9 /* Profile */, 464 | ); 465 | defaultConfigurationIsVisible = 0; 466 | defaultConfigurationName = Release; 467 | }; 468 | /* End XCConfigurationList section */ 469 | }; 470 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 471 | } 472 | --------------------------------------------------------------------------------