diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0fa6b67
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,46 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.buildlog/
+.history
+.svn/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# The .vscode folder contains launch configuration and tasks you configure in
+# VS Code which you may wish to be included in version control, so this line
+# is commented out by default.
+#.vscode/
+
+# Flutter/Dart/Pub related
+**/doc/api/
+**/ios/Flutter/.last_build_id
+.dart_tool/
+.flutter-plugins
+.flutter-plugins-dependencies
+.packages
+.pub-cache/
+.pub/
+/build/
+
+# Web related
+lib/generated_plugin_registrant.dart
+
+# Symbolication related
+app.*.symbols
+
+# Obfuscation related
+app.*.map.json
+
+# Android Studio will place build artifacts here
+/android/app/debug
+/android/app/profile
+/android/app/release
diff --git a/.metadata b/.metadata
new file mode 100644
index 0000000..be3ae00
--- /dev/null
+++ b/.metadata
@@ -0,0 +1,10 @@
+# This file tracks properties of this Flutter project.
+# Used by Flutter tool to assess capabilities and perform upgrades etc.
+#
+# This file should be version controlled and should not be manually edited.
+
+version:
+ revision: 724c0eb65cef6a66241f9f1500dc9ed53991d5be
+ channel: master
+
+project_type: app
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..86a3a8a
--- /dev/null
+++ b/README.md
@@ -0,0 +1,16 @@
+# social_app
+
+A new Flutter project.
+
+## Getting Started
+
+This project is a starting point for a Flutter application.
+
+A few resources to get you started if this is your first Flutter project:
+
+- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
+- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
+
+For help getting started with Flutter, view our
+[online documentation](https://flutter.dev/docs), which offers tutorials,
+samples, guidance on mobile development, and a full API reference.
diff --git a/analysis_options.yaml b/analysis_options.yaml
new file mode 100644
index 0000000..61b6c4d
--- /dev/null
+++ b/analysis_options.yaml
@@ -0,0 +1,29 @@
+# This file configures the analyzer, which statically analyzes Dart code to
+# check for errors, warnings, and lints.
+#
+# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
+# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
+# invoked from the command line by running `flutter analyze`.
+
+# The following line activates a set of recommended lints for Flutter apps,
+# packages, and plugins designed to encourage good coding practices.
+include: package:flutter_lints/flutter.yaml
+
+linter:
+ # The lint rules applied to this project can be customized in the
+ # section below to disable rules from the `package:flutter_lints/flutter.yaml`
+ # included above or to enable additional rules. A list of all available lints
+ # and their documentation is published at
+ # https://dart-lang.github.io/linter/lints/index.html.
+ #
+ # Instead of disabling a lint rule for the entire project in the
+ # section below, it can also be suppressed for a single line of code
+ # or a specific dart file by using the `// ignore: name_of_lint` and
+ # `// ignore_for_file: name_of_lint` syntax on the line or in the file
+ # producing the lint.
+ rules:
+ # avoid_print: false # Uncomment to disable the `avoid_print` rule
+ # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
+
+# Additional information about this file can be found at
+# https://dart.dev/guides/language/analysis-options
diff --git a/android/.gitignore b/android/.gitignore
new file mode 100644
index 0000000..6f56801
--- /dev/null
+++ b/android/.gitignore
@@ -0,0 +1,13 @@
+gradle-wrapper.jar
+/.gradle
+/captures/
+/gradlew
+/gradlew.bat
+/local.properties
+GeneratedPluginRegistrant.java
+
+# Remember to never publicly share your keystore.
+# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
+key.properties
+**/*.keystore
+**/*.jks
diff --git a/android/app/build.gradle b/android/app/build.gradle
new file mode 100644
index 0000000..0aeb7f2
--- /dev/null
+++ b/android/app/build.gradle
@@ -0,0 +1,70 @@
+def localProperties = new Properties()
+def localPropertiesFile = rootProject.file('local.properties')
+if (localPropertiesFile.exists()) {
+ localPropertiesFile.withReader('UTF-8') { reader ->
+ localProperties.load(reader)
+ }
+}
+
+def flutterRoot = localProperties.getProperty('flutter.sdk')
+if (flutterRoot == null) {
+ throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
+}
+
+def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
+if (flutterVersionCode == null) {
+ flutterVersionCode = '1'
+}
+
+def flutterVersionName = localProperties.getProperty('flutter.versionName')
+if (flutterVersionName == null) {
+ flutterVersionName = '1.0'
+}
+
+apply plugin: 'com.android.application'
+apply plugin: 'com.google.gms.google-services'
+apply plugin: 'kotlin-android'
+apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
+
+android {
+ compileSdkVersion 30
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+
+ kotlinOptions {
+ jvmTarget = '1.8'
+ }
+
+ sourceSets {
+ main.java.srcDirs += 'src/main/kotlin'
+ }
+
+ defaultConfig {
+ // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
+ applicationId "com.example.social_app"
+ minSdkVersion 16
+ targetSdkVersion 30
+ multiDexEnabled true
+ versionCode flutterVersionCode.toInteger()
+ versionName flutterVersionName
+ }
+
+ buildTypes {
+ release {
+ // TODO: Add your own signing config for the release build.
+ // Signing with the debug keys for now, so `flutter run --release` works.
+ signingConfig signingConfigs.debug
+ }
+ }
+}
+
+flutter {
+ source '../..'
+}
+
+dependencies {
+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
+}
diff --git a/android/app/google-services.json b/android/app/google-services.json
new file mode 100644
index 0000000..8c11e55
--- /dev/null
+++ b/android/app/google-services.json
@@ -0,0 +1,47 @@
+{
+ "project_info": {
+ "project_number": "754982753972",
+ "project_id": "social-app-c87c3",
+ "storage_bucket": "social-app-c87c3.appspot.com"
+ },
+ "client": [
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:754982753972:android:eae7092a6ca7ee4b90a9e1",
+ "android_client_info": {
+ "package_name": "com.example.social_app"
+ }
+ },
+ "oauth_client": [
+ {
+ "client_id": "754982753972-t1ft5mp40ecks56lespb18kh1etpmnda.apps.googleusercontent.com",
+ "client_type": 1,
+ "android_info": {
+ "package_name": "com.example.social_app",
+ "certificate_hash": "8aa144e2459116579577701aafab73535caf00d7"
+ }
+ },
+ {
+ "client_id": "754982753972-8gc351aqjf79b992sjtcj3b8n60shu8f.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ],
+ "api_key": [
+ {
+ "current_key": "AIzaSyAFtcJsR6qf2A3lnpQGjON2IW3zUa6P29s"
+ }
+ ],
+ "services": {
+ "appinvite_service": {
+ "other_platform_oauth_client": [
+ {
+ "client_id": "754982753972-8gc351aqjf79b992sjtcj3b8n60shu8f.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "configuration_version": "1"
+}
\ No newline at end of file
diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml
new file mode 100644
index 0000000..7afa4cc
--- /dev/null
+++ b/android/app/src/debug/AndroidManifest.xml
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..7c74b74
--- /dev/null
+++ b/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/kotlin/com/example/social_app/MainActivity.kt b/android/app/src/main/kotlin/com/example/social_app/MainActivity.kt
new file mode 100644
index 0000000..637e9e9
--- /dev/null
+++ b/android/app/src/main/kotlin/com/example/social_app/MainActivity.kt
@@ -0,0 +1,6 @@
+package com.example.social_app
+
+import io.flutter.embedding.android.FlutterActivity
+
+class MainActivity: FlutterActivity() {
+}
diff --git a/android/app/src/main/res/drawable-v21/launch_background.xml b/android/app/src/main/res/drawable-v21/launch_background.xml
new file mode 100644
index 0000000..f74085f
--- /dev/null
+++ b/android/app/src/main/res/drawable-v21/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/drawable/launch_background.xml b/android/app/src/main/res/drawable/launch_background.xml
new file mode 100644
index 0000000..304732f
--- /dev/null
+++ b/android/app/src/main/res/drawable/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..db77bb4
Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..17987b7
Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..09d4391
Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..d5f1c8d
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..4d6372e
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app/src/main/res/values-night/styles.xml
new file mode 100644
index 0000000..449a9f9
--- /dev/null
+++ b/android/app/src/main/res/values-night/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..d74aa35
--- /dev/null
+++ b/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml
new file mode 100644
index 0000000..7afa4cc
--- /dev/null
+++ b/android/app/src/profile/AndroidManifest.xml
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/android/build.gradle b/android/build.gradle
new file mode 100644
index 0000000..1607692
--- /dev/null
+++ b/android/build.gradle
@@ -0,0 +1,30 @@
+buildscript {
+ ext.kotlin_version = '1.3.50'
+ repositories {
+ google()
+ mavenCentral()
+ }
+
+ dependencies {
+ classpath 'com.google.gms:google-services:4.3.10'
+ classpath 'com.android.tools.build:gradle:4.1.0'
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+rootProject.buildDir = '../build'
+subprojects {
+ project.buildDir = "${rootProject.buildDir}/${project.name}"
+ project.evaluationDependsOn(':app')
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/android/gradle.properties b/android/gradle.properties
new file mode 100644
index 0000000..94adc3a
--- /dev/null
+++ b/android/gradle.properties
@@ -0,0 +1,3 @@
+org.gradle.jvmargs=-Xmx1536M
+android.useAndroidX=true
+android.enableJetifier=true
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..bc6a58a
--- /dev/null
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Fri Jun 23 08:50:38 CEST 2017
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
diff --git a/android/settings.gradle b/android/settings.gradle
new file mode 100644
index 0000000..44e62bc
--- /dev/null
+++ b/android/settings.gradle
@@ -0,0 +1,11 @@
+include ':app'
+
+def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
+def properties = new Properties()
+
+assert localPropertiesFile.exists()
+localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
+
+def flutterSdkPath = properties.getProperty("flutter.sdk")
+assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
+apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
diff --git a/assets/Fonts/icons.ttf b/assets/Fonts/icons.ttf
new file mode 100644
index 0000000..f22d8b7
Binary files /dev/null and b/assets/Fonts/icons.ttf differ
diff --git a/assets/Fonts/jannah.ttf b/assets/Fonts/jannah.ttf
new file mode 100644
index 0000000..1b9ccad
Binary files /dev/null and b/assets/Fonts/jannah.ttf differ
diff --git a/ios/.gitignore b/ios/.gitignore
new file mode 100644
index 0000000..151026b
--- /dev/null
+++ b/ios/.gitignore
@@ -0,0 +1,33 @@
+*.mode1v3
+*.mode2v3
+*.moved-aside
+*.pbxuser
+*.perspectivev3
+**/*sync/
+.sconsign.dblite
+.tags*
+**/.vagrant/
+**/DerivedData/
+Icon?
+**/Pods/
+**/.symlinks/
+profile
+xcuserdata
+**/.generated/
+Flutter/App.framework
+Flutter/Flutter.framework
+Flutter/Flutter.podspec
+Flutter/Generated.xcconfig
+Flutter/ephemeral/
+Flutter/app.flx
+Flutter/app.zip
+Flutter/flutter_assets/
+Flutter/flutter_export_environment.sh
+ServiceDefinitions.json
+Runner/GeneratedPluginRegistrant.*
+
+# Exceptions to above rules.
+!default.mode1v3
+!default.mode2v3
+!default.pbxuser
+!default.perspectivev3
diff --git a/ios/Flutter/AppFrameworkInfo.plist b/ios/Flutter/AppFrameworkInfo.plist
new file mode 100644
index 0000000..8d4492f
--- /dev/null
+++ b/ios/Flutter/AppFrameworkInfo.plist
@@ -0,0 +1,26 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleExecutable
+ App
+ CFBundleIdentifier
+ io.flutter.flutter.app
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ App
+ CFBundlePackageType
+ FMWK
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1.0
+ MinimumOSVersion
+ 9.0
+
+
diff --git a/ios/Flutter/Debug.xcconfig b/ios/Flutter/Debug.xcconfig
new file mode 100644
index 0000000..592ceee
--- /dev/null
+++ b/ios/Flutter/Debug.xcconfig
@@ -0,0 +1 @@
+#include "Generated.xcconfig"
diff --git a/ios/Flutter/Release.xcconfig b/ios/Flutter/Release.xcconfig
new file mode 100644
index 0000000..592ceee
--- /dev/null
+++ b/ios/Flutter/Release.xcconfig
@@ -0,0 +1 @@
+#include "Generated.xcconfig"
diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..f41169d
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.pbxproj
@@ -0,0 +1,471 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 46;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ );
+ name = "Embed Frameworks";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
+ 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
+ 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
+ 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 97C146EB1CF9000F007C117D /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 9740EEB11CF90186004384FC /* Flutter */ = {
+ isa = PBXGroup;
+ children = (
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */,
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */,
+ );
+ name = Flutter;
+ sourceTree = "";
+ };
+ 97C146E51CF9000F007C117D = {
+ isa = PBXGroup;
+ children = (
+ 9740EEB11CF90186004384FC /* Flutter */,
+ 97C146F01CF9000F007C117D /* Runner */,
+ 97C146EF1CF9000F007C117D /* Products */,
+ );
+ sourceTree = "";
+ };
+ 97C146EF1CF9000F007C117D /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146EE1CF9000F007C117D /* Runner.app */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 97C146F01CF9000F007C117D /* Runner */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146FA1CF9000F007C117D /* Main.storyboard */,
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */,
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
+ 97C147021CF9000F007C117D /* Info.plist */,
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
+ );
+ path = Runner;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 97C146ED1CF9000F007C117D /* Runner */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
+ buildPhases = (
+ 9740EEB61CF901F6004384FC /* Run Script */,
+ 97C146EA1CF9000F007C117D /* Sources */,
+ 97C146EB1CF9000F007C117D /* Frameworks */,
+ 97C146EC1CF9000F007C117D /* Resources */,
+ 9705A1C41CF9048500538489 /* Embed Frameworks */,
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Runner;
+ productName = Runner;
+ productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 97C146E61CF9000F007C117D /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 1020;
+ ORGANIZATIONNAME = "";
+ TargetAttributes = {
+ 97C146ED1CF9000F007C117D = {
+ CreatedOnToolsVersion = 7.3.1;
+ LastSwiftMigration = 1100;
+ };
+ };
+ };
+ buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
+ compatibilityVersion = "Xcode 9.3";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 97C146E51CF9000F007C117D;
+ productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 97C146ED1CF9000F007C117D /* Runner */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 97C146EC1CF9000F007C117D /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Thin Binary";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
+ };
+ 9740EEB61CF901F6004384FC /* Run Script */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Run Script";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 97C146EA1CF9000F007C117D /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C146FB1CF9000F007C117D /* Base */,
+ );
+ name = Main.storyboard;
+ sourceTree = "";
+ };
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C147001CF9000F007C117D /* Base */,
+ );
+ name = LaunchScreen.storyboard;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 249021D3217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 9.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Profile;
+ };
+ 249021D4217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.socialApp;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Profile;
+ };
+ 97C147031CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 9.0;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 97C147041CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 9.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 97C147061CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.socialApp;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Debug;
+ };
+ 97C147071CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.socialApp;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147031CF9000F007C117D /* Debug */,
+ 97C147041CF9000F007C117D /* Release */,
+ 249021D3217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147061CF9000F007C117D /* Debug */,
+ 97C147071CF9000F007C117D /* Release */,
+ 249021D4217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 97C146E61CF9000F007C117D /* Project object */;
+}
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..919434a
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
new file mode 100644
index 0000000..a28140c
--- /dev/null
+++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..1d526a1
--- /dev/null
+++ b/ios/Runner.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift
new file mode 100644
index 0000000..70693e4
--- /dev/null
+++ b/ios/Runner/AppDelegate.swift
@@ -0,0 +1,13 @@
+import UIKit
+import Flutter
+
+@UIApplicationMain
+@objc class AppDelegate: FlutterAppDelegate {
+ override func application(
+ _ application: UIApplication,
+ didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
+ ) -> Bool {
+ GeneratedPluginRegistrant.register(with: self)
+ return super.application(application, didFinishLaunchingWithOptions: launchOptions)
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 0000000..d36b1fa
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,122 @@
+{
+ "images" : [
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "83.5x83.5",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-83.5x83.5@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "1024x1024",
+ "idiom" : "ios-marketing",
+ "filename" : "Icon-App-1024x1024@1x.png",
+ "scale" : "1x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
new file mode 100644
index 0000000..dc9ada4
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
new file mode 100644
index 0000000..28c6bf0
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
new file mode 100644
index 0000000..2ccbfd9
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
new file mode 100644
index 0000000..f091b6b
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
new file mode 100644
index 0000000..4cde121
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
new file mode 100644
index 0000000..d0ef06e
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
new file mode 100644
index 0000000..dcdc230
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
new file mode 100644
index 0000000..2ccbfd9
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
new file mode 100644
index 0000000..c8f9ed8
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
new file mode 100644
index 0000000..a6d6b86
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
new file mode 100644
index 0000000..a6d6b86
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
new file mode 100644
index 0000000..75b2d16
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
new file mode 100644
index 0000000..c4df70d
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
new file mode 100644
index 0000000..6a84f41
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
new file mode 100644
index 0000000..d0e1f58
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
new file mode 100644
index 0000000..0bedcf2
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
@@ -0,0 +1,23 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@3x.png",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
new file mode 100644
index 0000000..89c2725
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
@@ -0,0 +1,5 @@
+# Launch Screen Assets
+
+You can customize the launch screen with your own desired assets by replacing the image files in this directory.
+
+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.
\ No newline at end of file
diff --git a/ios/Runner/Base.lproj/LaunchScreen.storyboard b/ios/Runner/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 0000000..f2e259c
--- /dev/null
+++ b/ios/Runner/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner/Base.lproj/Main.storyboard b/ios/Runner/Base.lproj/Main.storyboard
new file mode 100644
index 0000000..f3c2851
--- /dev/null
+++ b/ios/Runner/Base.lproj/Main.storyboard
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
new file mode 100644
index 0000000..db250f5
--- /dev/null
+++ b/ios/Runner/Info.plist
@@ -0,0 +1,45 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ social_app
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(FLUTTER_BUILD_NAME)
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ LSRequiresIPhoneOS
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIMainStoryboardFile
+ Main
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UIViewControllerBasedStatusBarAppearance
+
+
+
diff --git a/ios/Runner/Runner-Bridging-Header.h b/ios/Runner/Runner-Bridging-Header.h
new file mode 100644
index 0000000..308a2a5
--- /dev/null
+++ b/ios/Runner/Runner-Bridging-Header.h
@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"
diff --git a/lib/layout/cubit/socialCubit.dart b/lib/layout/cubit/socialCubit.dart
new file mode 100644
index 0000000..058582a
--- /dev/null
+++ b/lib/layout/cubit/socialCubit.dart
@@ -0,0 +1,71 @@
+// ignore_for_file: file_names
+import 'package:bloc/bloc.dart';
+import 'package:cloud_firestore/cloud_firestore.dart';
+import 'package:firebase_auth/firebase_auth.dart';
+import 'package:flutter/cupertino.dart';
+import 'package:flutter_bloc/flutter_bloc.dart';
+import 'package:social_app/layout/cubit/socialstatus.dart';
+import 'package:social_app/model/user_model.dart';
+import 'package:social_app/module/chats/chats_screen.dart';
+import 'package:social_app/module/feeds/feeds_screen.dart';
+import 'package:social_app/module/settings/settiings_screen.dart';
+import 'package:social_app/module/users/users_screen.dart';
+import 'package:social_app/shared/componants/components.dart';
+import 'package:social_app/shared/constants/constants.dart';
+import 'package:social_app/shared/network/local/cache_helper.dart';
+
+class SocialCubit extends Cubit {
+ SocialCubit() : super(SocialInitnalState());
+
+ static SocialCubit get(context) => BlocProvider.of(context);
+
+ UserModel? model;
+
+ void getUserData() {
+ emit(SocialGetUserLoadingState());
+
+ FirebaseFirestore.instance
+ .collection('users')
+ .doc('t6GZUN6gdfq6LUgT6hXq')
+ .get()
+ .then((value) {
+ print(value.data());
+ model = UserModel.fromJson(value.data());
+ emit(SocialGetUserSuccessState());
+ }).catchError((e) {
+ print(e.toString());
+ emit(SocialGetUserErrorState(e.toString()));
+ });
+ }
+
+ void signout() {
+ FirebaseAuth.instance.signOut().then((value) {
+ CacheHelper.removeData(key: 'uId');
+ print('signOut Success');
+ }).catchError((e) {
+ print(e.toString());
+ });
+ }
+
+ int currentIndex = 0;
+
+ List screens = [
+ FeedsScreen(),
+ ChatsScreen(),
+
+ UsersScreen(),
+ SettingsScreen()
+ ];
+
+ List titles = ['Home', 'Chat','Users', 'Settings'];
+
+ void changeBottomNav(int index) {
+
+ if (index == 2) {
+ emit(NewPostState());
+ } else {
+ currentIndex = index > 2 ? index-1:index;
+ emit(ChangeBottomNavState());
+ }
+ }
+}
diff --git a/lib/layout/cubit/socialstatus.dart b/lib/layout/cubit/socialstatus.dart
new file mode 100644
index 0000000..61947ba
--- /dev/null
+++ b/lib/layout/cubit/socialstatus.dart
@@ -0,0 +1,19 @@
+abstract class SocialStates {}
+
+class SocialInitnalState extends SocialStates {}
+
+class SocialGetUserLoadingState extends SocialStates {}
+
+class SocialGetUserSuccessState extends SocialStates {}
+
+class SocialGetUserErrorState extends SocialStates {
+ final String error;
+
+ SocialGetUserErrorState(this.error);
+
+}
+
+
+class ChangeBottomNavState extends SocialStates{}
+
+class NewPostState extends SocialStates{}
diff --git a/lib/layout/social_layout.dart b/lib/layout/social_layout.dart
new file mode 100644
index 0000000..ba2a704
--- /dev/null
+++ b/lib/layout/social_layout.dart
@@ -0,0 +1,59 @@
+import 'package:firebase_auth/firebase_auth.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_bloc/flutter_bloc.dart';
+import 'package:social_app/layout/cubit/socialCubit.dart';
+import 'package:social_app/layout/cubit/socialstatus.dart';
+import 'package:social_app/module/Login/login_screen.dart';
+import 'package:social_app/module/NewPost/newpost_screen.dart';
+import 'package:social_app/shared/componants/components.dart';
+import 'package:flutter_conditional_rendering/flutter_conditional_rendering.dart';
+import 'package:social_app/shared/styles/icon.dart';
+
+class SocialLayout extends StatelessWidget {
+ const SocialLayout({Key? key}) : super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ return BlocConsumer(
+ listener: (context, state) {
+ if (state is NewPostState) {
+ navigateTo(context, NewPostScreen());
+ }
+ },
+ builder: (context, state) {
+ var cubit = SocialCubit.get(context);
+
+ return Scaffold(
+ appBar: AppBar(actions: [
+ IconButton(
+ onPressed: () {
+ // SocialCubit.get(context).signout();
+ // navigateAndFinish(context, SocialLoginScreen());
+ },
+ icon: Icon(IconBroken.Notification)),
+ IconButton(onPressed: () {}, icon: Icon(IconBroken.Search)),
+ ], title: Text(cubit.titles[cubit.currentIndex])),
+ body: cubit.screens[cubit.currentIndex],
+ bottomNavigationBar: BottomNavigationBar(
+ currentIndex: cubit.currentIndex,
+ onTap: (index) {
+ cubit.changeBottomNav(index);
+ },
+ items: [
+ BottomNavigationBarItem(
+ icon: Icon(IconBroken.Home), label: 'Home'),
+ BottomNavigationBarItem(
+ icon: Icon(IconBroken.Chat), label: 'Chats'),
+ BottomNavigationBarItem(
+ icon: Icon(IconBroken.Paper_Upload), label: 'Upload'),
+ BottomNavigationBarItem(
+ icon: Icon(IconBroken.Location), label: 'Users'),
+ BottomNavigationBarItem(
+ icon: Icon(IconBroken.Setting), label: 'Settings'),
+ ],
+ ),
+ );
+ },
+ );
+ }
+}
diff --git a/lib/main.dart b/lib/main.dart
new file mode 100644
index 0000000..3318e89
--- /dev/null
+++ b/lib/main.dart
@@ -0,0 +1,88 @@
+import 'package:firebase_core/firebase_core.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_bloc/flutter_bloc.dart';
+import 'package:social_app/layout/cubit/socialCubit.dart';
+import 'package:social_app/layout/social_layout.dart';
+import 'package:social_app/module/Login/login_screen.dart';
+import 'package:social_app/shared/bloc_observer.dart';
+import 'package:social_app/shared/cubit/appCubit.dart';
+import 'package:social_app/shared/cubit/appStates.dart';
+import 'package:social_app/shared/network/local/cache_helper.dart';
+import 'package:social_app/shared/network/remote/dio_helper.dart';
+
+import 'shared/constants/constants.dart';
+import 'shared/styles/themes.dart';
+
+void main() async {
+//! if we did main async we must add => WidgetsFlutterBinding.ensureInitialized();
+//! and this mean make sure that do all before RunApp() then runApp
+//! بيتاكد ان كل حاجه هنا في الميثود خلصت وبعدين يفتح الابلكيشن
+
+ WidgetsFlutterBinding.ensureInitialized();
+ await Firebase.initializeApp();
+
+ Bloc.observer = MyBlocObserver();
+ DioHelper.init();
+ await CacheHelper.init();
+
+ bool? isDark = CacheHelper.getBoolean(key: 'isDark');
+
+ late Widget widget;
+
+ //bool? onBoarding = CacheHelper.getData(key: 'onBoarding');
+
+ uId = CacheHelper.getData(key: 'uId');
+
+ print(uId);
+
+ if (uId != null) {
+ widget = SocialLayout();
+ } else {
+ widget = SocialLoginScreen();
+ }
+
+ runApp(MyApp(isDark: isDark, startWidget: widget));
+}
+
+class MyApp extends StatelessWidget {
+ bool? isDark;
+ Widget? startWidget;
+
+ MyApp({
+ this.startWidget,
+ this.isDark,
+ });
+
+ @override
+ Widget build(BuildContext context) {
+ return MultiBlocProvider(
+ providers: [
+ BlocProvider(
+ create: (context) => SocialCubit()
+ ..getUserData(),
+ ),
+ BlocProvider(
+ create: (BuildContext context) =>
+ AppCubit()..changeAppMode(fromShared: isDark!))
+ ],
+ child: BlocConsumer(
+ listener: (context, state) {},
+ builder: (context, state) {
+ return MaterialApp(
+ title: 'Shop',
+ //! //////////// //app theme ////////
+ //* //////Light////////////
+ theme: lightTheme,
+ //* //////Dark////////////
+ darkTheme: darktheme,
+ themeMode: AppCubit.get(context).isDark
+ ? ThemeMode.dark
+ : ThemeMode.light,
+ //! ///////////////////////////////
+ debugShowCheckedModeBanner: false,
+ home: startWidget);
+ },
+ ),
+ );
+ }
+}
diff --git a/lib/model/user_model.dart b/lib/model/user_model.dart
new file mode 100644
index 0000000..8e19934
--- /dev/null
+++ b/lib/model/user_model.dart
@@ -0,0 +1,28 @@
+class UserModel {
+ String? name;
+ String? email;
+ String? phone;
+ String? uId;
+ bool? isEmailVerified;
+
+ UserModel(
+ {this.name, this.email, this.phone, this.uId, this.isEmailVerified});
+
+ UserModel.fromJson(Map? json) {
+ name = json!['name'];
+ email = json['email'];
+ phone = json['phone'];
+ uId = json['uId'];
+ isEmailVerified = json['isEmailVerified'];
+ }
+
+ Map toMap() {
+ return {
+ 'name': name,
+ 'email': email,
+ 'phone': phone,
+ 'uId': uId,
+ 'isEmailVerified': isEmailVerified
+ };
+ }
+}
diff --git a/lib/module/Login/cubit/cubitLogin.dart b/lib/module/Login/cubit/cubitLogin.dart
new file mode 100644
index 0000000..df8a01b
--- /dev/null
+++ b/lib/module/Login/cubit/cubitLogin.dart
@@ -0,0 +1,49 @@
+// ignore_for_file: file_names
+
+import 'package:bloc/bloc.dart';
+import 'package:firebase_auth/firebase_auth.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_bloc/flutter_bloc.dart';
+import 'package:social_app/module/Login/cubit/statusLogin.dart';
+import 'package:social_app/shared/constants/constants.dart';
+
+
+
+
+class SocialLoginCubit extends Cubit {
+ SocialLoginCubit() : super(SocialLoginInitialState());
+
+ static SocialLoginCubit get(context) => BlocProvider.of(context);
+
+
+
+ void userLogin({
+ required String email,
+ required String password,
+ }) {
+ emit(SocialLoginLoadingState());
+
+ FirebaseAuth.instance.signInWithEmailAndPassword(
+ email: email,
+ password: password
+ ).then((value) {
+ print(value.user!.email);
+ print(value.user!.uid);
+ //! ///
+
+ emit(SocialLoginSuccessState(value.user!.uid));
+ }).catchError((error) {
+ print(error);
+ emit(SocialLoginErrorState(error.toString()));
+ });
+ }
+
+ IconData suffix = Icons.visibility_outlined;
+ bool isPassword = true;
+ void changePassworsVisiility() {
+ isPassword = !isPassword;
+ suffix =
+ isPassword ? Icons.visibility_outlined : Icons.visibility_off_outlined;
+ emit(SocialChangePasswordVisibilityState());
+ }
+}
diff --git a/lib/module/Login/cubit/statusLogin.dart b/lib/module/Login/cubit/statusLogin.dart
new file mode 100644
index 0000000..aa73dd6
--- /dev/null
+++ b/lib/module/Login/cubit/statusLogin.dart
@@ -0,0 +1,21 @@
+// ignore_for_file: file_names
+
+abstract class SocialLoginStates {}
+
+class SocialLoginInitialState extends SocialLoginStates {}
+
+class SocialLoginLoadingState extends SocialLoginStates {}
+
+class SocialLoginSuccessState extends SocialLoginStates {
+ final String uId;
+
+ SocialLoginSuccessState(this.uId);
+}
+
+class SocialLoginErrorState extends SocialLoginStates {
+ final String? error;
+
+ SocialLoginErrorState(this.error);
+}
+
+class SocialChangePasswordVisibilityState extends SocialLoginStates {}
diff --git a/lib/module/Login/login_screen.dart b/lib/module/Login/login_screen.dart
new file mode 100644
index 0000000..ebe9184
--- /dev/null
+++ b/lib/module/Login/login_screen.dart
@@ -0,0 +1,145 @@
+import 'package:flutter/material.dart';
+import 'package:flutter_bloc/flutter_bloc.dart';
+import 'package:social_app/layout/social_layout.dart';
+import 'package:social_app/module/register/register_screen.dart';
+import 'package:social_app/shared/componants/components.dart';
+import 'package:social_app/shared/constants/constants.dart';
+import 'package:social_app/shared/network/local/cache_helper.dart';
+
+import 'cubit/cubitLogin.dart';
+import 'cubit/statusLogin.dart';
+
+class SocialLoginScreen extends StatelessWidget {
+ var emailController = TextEditingController();
+ var passwordController = TextEditingController();
+ var formKey = GlobalKey();
+
+ @override
+ Widget build(BuildContext context) {
+ return BlocProvider(
+ create: (context) => SocialLoginCubit(),
+ child: BlocConsumer(
+ listener: (context, state) {
+ if (state is SocialLoginErrorState) {
+ showToast(text: state.error.toString(), state: ToastStates.ERROR);
+ }
+ if (state is SocialLoginSuccessState) {
+ print('user uId : $uId');
+ CacheHelper.saveData(key: 'uId', value: state.uId).then((value) {
+
+ navigateAndFinish(context, const SocialLayout());
+ });
+ }
+ }, builder: (context, state) {
+ return Scaffold(
+ appBar: AppBar(),
+ body: Center(
+ child: SingleChildScrollView(
+ child: Padding(
+ padding: const EdgeInsets.all(20.0),
+ child: Form(
+ key: formKey,
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
+ 'LOGIN',
+ style: Theme.of(context)
+ .textTheme
+ .headline4!
+ .copyWith(color: Colors.black),
+ ),
+ Text(
+ 'login now to communicate with freinds',
+ style:
+ Theme.of(context).textTheme.bodyText1!.copyWith(
+ color: Colors.grey,
+ ),
+ ),
+ const SizedBox(
+ height: 20.0,
+ ),
+ defaultFormField(
+ controller: emailController,
+ type: TextInputType.emailAddress,
+ validate: (value) {
+ if (value!.isEmpty) {
+ return 'please enter your email';
+ }
+ },
+ label: 'Email Address',
+ prefix: Icons.email_outlined),
+ const SizedBox(
+ height: 20.0,
+ ),
+ defaultFormField(
+ controller: passwordController,
+ type: TextInputType.visiblePassword,
+ suffix: SocialLoginCubit.get(context).suffix,
+ suffixPressed: () {
+ SocialLoginCubit.get(context)
+ .changePassworsVisiility();
+ },
+ onSubmit: (value) {
+ if (formKey.currentState!.validate()) {
+ // SocialLoginCubit.get(context).userLogin(
+ // email: emailController.text,
+ // password: passwordController.text,
+ // );
+ }
+ },
+ isPassword:
+ SocialLoginCubit.get(context).isPassword,
+ validate: (value) {
+ if (value!.isEmpty) {
+ return 'password is too short';
+ }
+ },
+ label: 'Password',
+ prefix: Icons.lock_outline),
+ const SizedBox(
+ height: 30.0,
+ ),
+ state is! SocialLoginLoadingState
+ ? defaultButton(
+ function: () {
+ if (formKey.currentState!.validate()) {
+ SocialLoginCubit.get(context).userLogin(
+ email: emailController.text,
+ password: passwordController.text,
+ );
+ // ShopCubit.get(context).getFavorites();
+ // ShopCubit.get(context).getUserData();
+ }
+ },
+ text: 'Login',
+ isUpperCase: true,
+ )
+ : const Center(
+ child: CircularProgressIndicator(),
+ ),
+ const SizedBox(
+ height: 15.0,
+ ),
+ Row(
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ const Text('don\'t have an account?'),
+ TextButton(
+ onPressed: () {
+ navigateTo(context, RegisterScreen());
+ },
+ child: Text('register'.toUpperCase()),
+ ),
+ ],
+ )
+ ],
+ ),
+ ),
+ ),
+ ),
+ ));
+ }),
+ );
+ }
+}
diff --git a/lib/module/NewPost/newpost_screen.dart b/lib/module/NewPost/newpost_screen.dart
new file mode 100644
index 0000000..7500206
--- /dev/null
+++ b/lib/module/NewPost/newpost_screen.dart
@@ -0,0 +1,14 @@
+import 'package:flutter/material.dart';
+
+class NewPostScreen extends StatelessWidget {
+ const NewPostScreen({ Key? key }) : super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ appBar: AppBar(
+ title: const Text('Add Post'),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/lib/module/chats/chats_screen.dart b/lib/module/chats/chats_screen.dart
new file mode 100644
index 0000000..1b784e8
--- /dev/null
+++ b/lib/module/chats/chats_screen.dart
@@ -0,0 +1,11 @@
+import 'package:flutter/material.dart';
+
+class ChatsScreen extends StatelessWidget {
+
+ @override
+ Widget build(BuildContext context) {
+ return Center(
+ child: Text('chats Screen'),
+ );
+ }
+}
\ No newline at end of file
diff --git a/lib/module/feeds/feeds_screen.dart b/lib/module/feeds/feeds_screen.dart
new file mode 100644
index 0000000..9d9d48d
--- /dev/null
+++ b/lib/module/feeds/feeds_screen.dart
@@ -0,0 +1,288 @@
+// ignore_for_file: prefer_const_constructors
+// ignore_for_file: prefer_const_literals_to_create_immutables
+
+import 'package:flutter/material.dart';
+import 'package:social_app/shared/styles/colors.dart';
+import 'package:social_app/shared/styles/icon.dart';
+
+class FeedsScreen extends StatelessWidget {
+ @override
+ Widget build(BuildContext context) {
+ return SingleChildScrollView(
+ physics: BouncingScrollPhysics(),
+ child: Column(
+ children: [
+ Card(
+ elevation: 5.0,
+ margin: EdgeInsets.all(8.0),
+ clipBehavior: Clip.antiAliasWithSaveLayer,
+ child: Stack(
+ alignment: Alignment.bottomRight,
+ children: [
+ Image(
+ image: NetworkImage(
+ 'https://image.freepik.com/free-photo/horizontal-shot-smiling-curly-haired-woman-indicates-free-space-demonstrates-place-your-advertisement-attracts-attention-sale-wears-green-turtleneck-isolated-vibrant-pink-wall_273609-42770.jpg'),
+ fit: BoxFit.cover,
+ height: 150,
+ width: double.infinity,
+ ),
+ Padding(
+ padding: const EdgeInsets.all(8.0),
+ child: Text(
+ 'Communicate with friends',
+ style: Theme.of(context)
+ .textTheme
+ .subtitle1!
+ .copyWith(color: Colors.white),
+ ),
+ ),
+ ],
+ ),
+ ),
+ ListView.separated(
+ shrinkWrap: true,
+ physics: NeverScrollableScrollPhysics(),
+ itemBuilder: (context, index)=>buildPostItem(context),
+ separatorBuilder: (context, index)=>SizedBox(height: 10,),
+ itemCount: 10,
+ ),
+ SizedBox(height: 15,)
+ ],
+ ),
+ );
+ }
+
+ Widget buildPostItem(context) => Card(
+ elevation: 6.0,
+ clipBehavior: Clip.antiAliasWithSaveLayer,
+ margin: EdgeInsets.symmetric(horizontal: 8.0),
+ child: Padding(
+ padding: const EdgeInsets.all(10.0),
+ child: Column(
+ children: [
+ Row(
+ children: [
+ CircleAvatar(
+ radius: 25,
+ backgroundImage: NetworkImage(
+ 'https://image.freepik.com/free-photo/surprised-female-with-dark-hair-pointing-both-index-fingers-up-with-excited-facial-expression-isolated-blue-wall_176532-14083.jpg'),
+ ),
+ SizedBox(
+ width: 15.0,
+ ),
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ children: [
+ Text(
+ 'Ahmed Mohamed',
+ style: TextStyle(height: 1.4),
+ ),
+ SizedBox(
+ width: 5,
+ ),
+ Icon(
+ Icons.check_circle,
+ color: defultColor,
+ size: 16,
+ ),
+ ],
+ ),
+ Text(
+ 'january 20, 2021 at 11:00 pm',
+ style: Theme.of(context)
+ .textTheme
+ .caption!
+ .copyWith(height: 1.4),
+ ),
+ ]),
+ ),
+ SizedBox(
+ width: 15,
+ ),
+ IconButton(
+ onPressed: () {},
+ icon: Icon(
+ Icons.more_horiz,
+ size: 18.0,
+ ),
+ )
+ ],
+ ),
+ Padding(
+ padding: const EdgeInsets.symmetric(vertical: 15.0),
+ child: Container(
+ height: 1,
+ width: double.infinity,
+ color: Colors.grey[300],
+ ),
+ ),
+ Text(
+ 'By default, Firestore references manipulate a Map object. The downside is that we lose type safety. One solution is to use withConverter, which will modify methods like CollectionReference.add or Query.where to be type-safe.',
+ style: Theme.of(context).textTheme.subtitle1),
+ Padding(
+ padding: const EdgeInsets.only(top: 5.0, bottom: 10.0),
+ child: Container(
+ width: double.infinity,
+ child: Wrap(
+ children: [
+ Padding(
+ padding: const EdgeInsetsDirectional.only(end: 6),
+ child: Container(
+ height: 25,
+ child: MaterialButton(
+ onPressed: () {},
+ minWidth: 1,
+ padding: EdgeInsets.zero,
+ child: Text('#software_development',
+ style: Theme.of(context)
+ .textTheme
+ .caption!
+ .copyWith(color: defultColor)),
+ ),
+ ),
+ ),
+ Padding(
+ padding: const EdgeInsetsDirectional.only(end: 6),
+ child: Container(
+ height: 25,
+ child: MaterialButton(
+ onPressed: () {},
+ minWidth: 1,
+ padding: EdgeInsets.zero,
+ child: Text('#Flutter',
+ style: Theme.of(context)
+ .textTheme
+ .caption!
+ .copyWith(color: defultColor)),
+ ),
+ ),
+ ),
+ Padding(
+ padding: const EdgeInsetsDirectional.only(end: 6),
+ child: Container(
+ height: 25,
+ child: MaterialButton(
+ onPressed: () {},
+ minWidth: 1,
+ padding: EdgeInsets.zero,
+ child: Text('#software_eng',
+ style: Theme.of(context)
+ .textTheme
+ .caption!
+ .copyWith(color: defultColor)),
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ Container(
+ height: 140,
+ width: double.infinity,
+ decoration: BoxDecoration(
+ borderRadius: BorderRadius.circular(5.0),
+ image: DecorationImage(
+ image: NetworkImage(
+ 'https://image.freepik.com/free-photo/horizontal-shot-smiling-curly-haired-woman-indicates-free-space-demonstrates-place-your-advertisement-attracts-attention-sale-wears-green-turtleneck-isolated-vibrant-pink-wall_273609-42770.jpg'),
+ fit: BoxFit.cover,
+ ),
+ ),
+ ),
+ Row(
+ children: [
+ Expanded(
+ child: InkWell(
+ onTap: () {},
+ child: Padding(
+ padding: const EdgeInsets.symmetric(vertical: 5),
+ child: Row(
+ children: [
+ Icon(
+ IconBroken.Heart,
+ size: 17,
+ color: Colors.red,
+ ),
+ Text('120 Likes',
+ style: Theme.of(context).textTheme.caption)
+ ],
+ ),
+ ),
+ ),
+ ),
+ Expanded(
+ child: InkWell(
+ onTap: () {},
+ child: Padding(
+ padding: const EdgeInsets.symmetric(vertical: 5),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.end,
+ children: [
+ Icon(
+ IconBroken.Chat,
+ size: 17,
+ color: Colors.amber,
+ ),
+ Text('120 Comments',
+ style: Theme.of(context).textTheme.caption)
+ ],
+ ),
+ ),
+ ),
+ ),
+ ],
+ ),
+ Padding(
+ padding: const EdgeInsets.only(bottom: 10),
+ child: Container(
+ height: 1,
+ width: double.infinity,
+ color: Colors.grey[300],
+ ),
+ ),
+ Row(
+ children: [
+ Expanded(
+ child: InkWell(
+ onTap: () {},
+ child: Row(
+ children: [
+ CircleAvatar(
+ radius: 18,
+ backgroundImage: NetworkImage(
+ 'https://image.freepik.com/free-photo/surprised-female-with-dark-hair-pointing-both-index-fingers-up-with-excited-facial-expression-isolated-blue-wall_176532-14083.jpg'),
+ ),
+ SizedBox(
+ width: 15.0,
+ ),
+ Text(
+ 'Write a comment...',
+ style:
+ Theme.of(context).textTheme.caption!.copyWith(),
+ ),
+ ],
+ ),
+ ),
+ ),
+ InkWell(
+ onTap: () {},
+ child: Row(
+ children: [
+ Icon(
+ IconBroken.Heart,
+ size: 17,
+ color: Colors.red,
+ ),
+ Text('Like', style: Theme.of(context).textTheme.caption)
+ ],
+ ),
+ ),
+ ],
+ )
+ ],
+ ),
+ ));
+}
diff --git a/lib/module/register/cubit/cubitRegister.dart b/lib/module/register/cubit/cubitRegister.dart
new file mode 100644
index 0000000..c3e05ae
--- /dev/null
+++ b/lib/module/register/cubit/cubitRegister.dart
@@ -0,0 +1,75 @@
+// ignore_for_file: file_names
+
+import 'package:bloc/bloc.dart';
+import 'package:cloud_firestore/cloud_firestore.dart';
+import 'package:firebase_auth/firebase_auth.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_bloc/flutter_bloc.dart';
+import 'package:social_app/model/user_model.dart';
+import 'package:social_app/module/register/cubit/statusRegister.dart';
+
+class SocialRegisterCubit extends Cubit {
+ SocialRegisterCubit() : super(SocialRegisterInitialState());
+
+ static SocialRegisterCubit get(context) => BlocProvider.of(context);
+
+ void userRegister({
+ required String name,
+ required String email,
+ required String password,
+ required String phone,
+ }) {
+ emit(SocialRegisterLoadingState());
+
+ FirebaseAuth.instance
+ .createUserWithEmailAndPassword(email: email, password: password)
+ .then((value) {
+ print(value.user!.email);
+ print(value.user!.uid);
+ userCreate(
+ name: name,
+ email: email,
+ phone: phone,
+ uId: value.user!.uid
+ );
+ // emit(SocialRegisterSuccessState());
+ }).catchError((e) {
+ emit(SocialRegisterErrorState());
+ });
+ }
+
+ void userCreate({
+ required String name,
+ required String email,
+ required String phone,
+ required String uId,
+ }) {
+ UserModel model = UserModel(
+ name: name,
+ email: email,
+ phone: phone,
+ uId: uId,
+ isEmailVerified: false
+ );
+
+ FirebaseFirestore.instance
+ .collection('users')
+ .doc(uId)
+ .set(model.toMap())
+ .then((value) {
+ emit(SocialCreateUserSuccessState(uId));
+ }).catchError((e) {
+ print(e.toString());
+ emit(SocialCreateUserErrorState(e.toString()));
+ });
+ }
+
+ IconData suffix = Icons.visibility_outlined;
+ bool isPassword = true;
+ void changePassworsVisiility() {
+ isPassword = !isPassword;
+ suffix =
+ isPassword ? Icons.visibility_outlined : Icons.visibility_off_outlined;
+ emit(SocialChangePasswordVisibilityState());
+ }
+}
diff --git a/lib/module/register/cubit/statusRegister.dart b/lib/module/register/cubit/statusRegister.dart
new file mode 100644
index 0000000..aba1b27
--- /dev/null
+++ b/lib/module/register/cubit/statusRegister.dart
@@ -0,0 +1,36 @@
+
+// ignore_for_file: file_names
+
+abstract class SocialRegisterStates {}
+
+class SocialRegisterInitialState extends SocialRegisterStates {}
+
+class SocialRegisterLoadingState extends SocialRegisterStates {}
+
+class SocialRegisterSuccessState extends SocialRegisterStates {
+ // final SocialLoginModel? loginModel;
+
+ // SocialRegisterSuccessState(this.loginModel);
+}
+
+class SocialRegisterErrorState extends SocialRegisterStates {
+// final String? error;
+
+// SocialRegisterErrorState(this.error);
+}
+
+class SocialCreateUserSuccessState extends SocialRegisterStates {
+ final String uId;
+
+ SocialCreateUserSuccessState(this.uId);
+
+}
+
+class SocialCreateUserErrorState extends SocialRegisterStates {
+ final String? error;
+
+ SocialCreateUserErrorState(this.error);
+
+}
+
+class SocialChangePasswordVisibilityState extends SocialRegisterStates {}
diff --git a/lib/module/register/register_screen.dart b/lib/module/register/register_screen.dart
new file mode 100644
index 0000000..99b9642
--- /dev/null
+++ b/lib/module/register/register_screen.dart
@@ -0,0 +1,146 @@
+import 'package:flutter/material.dart';
+import 'package:flutter_bloc/flutter_bloc.dart';
+import 'package:social_app/layout/social_layout.dart';
+import 'package:social_app/shared/componants/components.dart';
+import 'package:social_app/shared/network/local/cache_helper.dart';
+
+import 'cubit/cubitRegister.dart';
+import 'cubit/statusRegister.dart';
+
+class RegisterScreen extends StatelessWidget {
+ var formKey = GlobalKey();
+ var emailController = TextEditingController();
+ var passwordController = TextEditingController();
+ var nameController = TextEditingController();
+ var phoneController = TextEditingController();
+
+ @override
+ Widget build(BuildContext context) {
+ var blocConsumer = BlocConsumer(
+ listener: (context, state) {
+ if (state is SocialCreateUserSuccessState) {
+ print('user uId : ${state.uId}');
+ CacheHelper.saveData(key: 'uId', value: state.uId).then((value) {
+ navigateAndFinish(context, const SocialLayout());
+ });
+ }
+ },
+ builder: (context, state) {
+ return Scaffold(
+ appBar: AppBar(),
+ body: Center(
+ child: SingleChildScrollView(
+ child: Padding(
+ padding: const EdgeInsets.all(20.0),
+ child: Form(
+ key: formKey,
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
+ 'register'.toUpperCase(),
+ style: Theme.of(context)
+ .textTheme
+ .headline4!
+ .copyWith(color: Colors.black),
+ ),
+ Text(
+ 'register now to communicate with freinds',
+ style: Theme.of(context).textTheme.bodyText1!.copyWith(
+ color: Colors.grey,
+ ),
+ ),
+ SizedBox(
+ height: 20.0,
+ ),
+ defaultFormField(
+ controller: nameController,
+ type: TextInputType.name,
+ validate: (value) {
+ if (value!.isEmpty) {
+ return 'please enter your name';
+ }
+ },
+ label: 'Name',
+ prefix: Icons.person),
+ SizedBox(
+ height: 20.0,
+ ),
+ defaultFormField(
+ controller: emailController,
+ type: TextInputType.emailAddress,
+ validate: (value) {
+ if (value!.isEmpty) {
+ return 'please enter your email';
+ }
+ },
+ label: 'Email Address',
+ prefix: Icons.email_outlined),
+ SizedBox(
+ height: 20.0,
+ ),
+ defaultFormField(
+ controller: passwordController,
+ type: TextInputType.visiblePassword,
+ suffix: SocialRegisterCubit.get(context).suffix,
+ suffixPressed: () {
+ SocialRegisterCubit.get(context)
+ .changePassworsVisiility();
+ },
+ isPassword:
+ SocialRegisterCubit.get(context).isPassword,
+ validate: (value) {
+ if (value!.isEmpty) {
+ return 'password is too short';
+ }
+ },
+ label: 'Password',
+ prefix: Icons.lock_outline),
+ SizedBox(
+ height: 20.0,
+ ),
+ defaultFormField(
+ controller: phoneController,
+ type: TextInputType.phone,
+ validate: (value) {
+ if (value!.isEmpty) {
+ return 'please enter your phone';
+ }
+ },
+ label: 'Phone',
+ prefix: Icons.phone),
+ SizedBox(
+ height: 30.0,
+ ),
+ state is! SocialRegisterLoadingState
+ ? defaultButton(
+ function: () {
+ if (formKey.currentState!.validate()) {
+ SocialRegisterCubit.get(context).userRegister(
+ name: nameController.text,
+ email: emailController.text,
+ password: passwordController.text,
+ phone: phoneController.text);
+ }
+ },
+ text: 'register',
+ isUpperCase: true,
+ )
+ : Center(
+ child: CircularProgressIndicator(),
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ ),
+ );
+ },
+ );
+ return BlocProvider(
+ create: (context) => SocialRegisterCubit(),
+ child: blocConsumer,
+ );
+ }
+}
diff --git a/lib/module/settings/settiings_screen.dart b/lib/module/settings/settiings_screen.dart
new file mode 100644
index 0000000..199ea90
--- /dev/null
+++ b/lib/module/settings/settiings_screen.dart
@@ -0,0 +1,11 @@
+import 'package:flutter/material.dart';
+
+class SettingsScreen extends StatelessWidget {
+
+ @override
+ Widget build(BuildContext context) {
+ return Center(
+ child: Text('setting Screen'),
+ );
+ }
+}
\ No newline at end of file
diff --git a/lib/module/users/users_screen.dart b/lib/module/users/users_screen.dart
new file mode 100644
index 0000000..49765ad
--- /dev/null
+++ b/lib/module/users/users_screen.dart
@@ -0,0 +1,11 @@
+import 'package:flutter/material.dart';
+
+class UsersScreen extends StatelessWidget {
+
+ @override
+ Widget build(BuildContext context) {
+ return Center(
+ child: Text('users Screen'),
+ );
+ }
+}
\ No newline at end of file
diff --git a/lib/shared/bloc_observer.dart b/lib/shared/bloc_observer.dart
new file mode 100644
index 0000000..8cef5d7
--- /dev/null
+++ b/lib/shared/bloc_observer.dart
@@ -0,0 +1,27 @@
+import 'package:bloc/bloc.dart';
+
+class MyBlocObserver extends BlocObserver {
+ @override
+ void onCreate(BlocBase bloc) {
+ super.onCreate(bloc);
+ print('onCreate -- ${bloc.runtimeType}');
+ }
+
+ @override
+ void onChange(BlocBase bloc, Change change) {
+ super.onChange(bloc, change);
+ print('onChange -- ${bloc.runtimeType}, $change');
+ }
+
+ @override
+ void onError(BlocBase bloc, Object error, StackTrace stackTrace) {
+ print('onError -- ${bloc.runtimeType}, $error');
+ super.onError(bloc, error, stackTrace);
+ }
+
+ @override
+ void onClose(BlocBase bloc) {
+ super.onClose(bloc);
+ print('onClose -- ${bloc.runtimeType}');
+ }
+}
\ No newline at end of file
diff --git a/lib/shared/componants/components.dart b/lib/shared/componants/components.dart
new file mode 100644
index 0000000..8da7226
--- /dev/null
+++ b/lib/shared/componants/components.dart
@@ -0,0 +1,210 @@
+// ignore_for_file: unnecessary_statements
+
+import 'package:flutter/material.dart';
+import 'package:fluttertoast/fluttertoast.dart';
+
+//! ////////////////////////////////////////////
+void navigateTo(context, widget) => Navigator.push(
+ context,
+ MaterialPageRoute(builder: (context) => widget),
+ );
+
+void navigateAndFinish(context, widget) => Navigator.pushAndRemoveUntil(
+ context, MaterialPageRoute(builder: (context) => widget), (route) => false);
+//! ///////////////////////////////////////////
+
+Widget defaultButton({
+ double width = double.infinity,
+ Color background = Colors.blue,
+ bool isUpperCase = true,
+ double radius = 3.0,
+ required Function function,
+ required String text,
+}) =>
+ Container(
+ width: width,
+ height: 50.0,
+ child: MaterialButton(
+ onPressed: () {
+ function();
+ },
+ child: Text(
+ isUpperCase ? text.toUpperCase() : text,
+ style: TextStyle(
+ color: Colors.white,
+ ),
+ ),
+ ),
+ decoration: BoxDecoration(
+ borderRadius: BorderRadius.circular(
+ radius,
+ ),
+ color: background,
+ ),
+ );
+
+Widget defaultFormField({
+ required TextEditingController controller,
+ required TextInputType type,
+ Function(dynamic? val)? onSubmit,
+ Function? onChange,
+ Function? onTap,
+ bool isPassword = false,
+ required String? Function(String? val)? validate,
+ required String label,
+ required IconData prefix,
+ IconData? suffix,
+ Function? suffixPressed,
+ bool isClickable = true,
+}) =>
+ TextFormField(
+ controller: controller,
+ keyboardType: type,
+ obscureText: isPassword,
+ onFieldSubmitted: (s) {
+ onSubmit!(s);
+ },
+ onChanged: (s) {
+ onChange ?? () {};
+ },
+ onTap: () {
+ onTap ?? () {};
+ },
+ validator: (value) {
+ return validate!(value);
+ },
+ decoration: InputDecoration(
+ labelText: label,
+ prefixIcon: Icon(prefix),
+ suffixIcon: suffix != null
+ ? IconButton(
+ onPressed: () {
+ suffixPressed!();
+ },
+ icon: Icon(
+ suffix,
+ ),
+ )
+ : null,
+ border: OutlineInputBorder()),
+ );
+
+void showToast({
+ required String text,
+ required ToastStates state,
+}) =>
+ Fluttertoast.showToast(
+ msg: text,
+ toastLength: Toast.LENGTH_LONG,
+ gravity: ToastGravity.BOTTOM,
+ timeInSecForIosWeb: 1,
+ backgroundColor: chooseToastColor(state),
+ textColor: Colors.white,
+ fontSize: 16.0);
+
+enum ToastStates { SUCCESS, ERROR, WARNING }
+
+Color chooseToastColor(ToastStates state) {
+ Color color;
+
+ switch (state) {
+ case ToastStates.SUCCESS:
+ color = Colors.green;
+ break;
+ case ToastStates.ERROR:
+ color = Colors.red;
+ break;
+ case ToastStates.WARNING:
+ color = Colors.amber;
+ break;
+ }
+ return color;
+}
+
+
+
+
+
+
+
+
+
+
+// Widget buildArticleItem(dynamic article, context) => InkWell(
+// onTap: () {
+// navigateTo(context, WebViewScreen(article['url']));
+// },
+// child: Padding(
+// padding: const EdgeInsets.all(20.0),
+// child: Row(
+// children: [
+// Container(
+// height: 120,
+// width: 120,
+// decoration: BoxDecoration(
+// borderRadius: BorderRadius.circular(10),
+// image: DecorationImage(
+// image: NetworkImage('${article['urlToImage']}'),
+// fit: BoxFit.cover),
+// ),
+// ),
+// SizedBox(
+// width: 20.0,
+// ),
+// Expanded(
+// child: Container(
+// height: 120.0,
+// child: Column(
+// mainAxisAlignment: MainAxisAlignment.start,
+
+// crossAxisAlignment: CrossAxisAlignment.start,
+
+// // mainAxisSize: MainAxisSize.min,
+
+// children: [
+// Expanded(
+// child: Text(
+// '${article['title']}',
+// maxLines: 3,
+// overflow: TextOverflow.ellipsis,
+// style: Theme.of(context).textTheme.bodyText1,
+// ),
+// ),
+// Text(
+// '${article['publishedAt']}',
+// style: TextStyle(
+// color: Colors.grey,
+// ),
+// ),
+// ],
+// ),
+// ),
+// )
+// ],
+// ),
+// ),
+// );
+
+// Widget articleBuilder(list, context, {isSearch = false}) =>
+// list.length > 0?
+// ListView.separated(
+// physics: BouncingScrollPhysics(),
+// itemBuilder: (context, index) =>
+// buildArticleItem(list[index], context),
+// separatorBuilder: (context, index) => Padding(
+// padding: const EdgeInsetsDirectional.only(start: 20),
+// child: Container(
+// width: double.infinity,
+// height: 1,
+// color: Colors.grey[300],
+// ),
+// ),
+// itemCount:
+// list.length
+// ):
+// isSearch
+// ? Container()
+// : Center(
+// child: CircularProgressIndicator(),
+// );
+
diff --git a/lib/shared/constants/constants.dart b/lib/shared/constants/constants.dart
new file mode 100644
index 0000000..75c270d
--- /dev/null
+++ b/lib/shared/constants/constants.dart
@@ -0,0 +1,13 @@
+
+import 'package:social_app/shared/componants/components.dart';
+import 'package:social_app/shared/network/local/cache_helper.dart';
+
+// void signOut(context) {
+// CacheHelper.removeData(key: 'token').then((value) {
+// if (value) {
+// navigateAndFinish(context, ShopLoginScreen());
+// }
+// });
+// }
+
+String? uId = '';
diff --git a/lib/shared/cubit/appCubit.dart b/lib/shared/cubit/appCubit.dart
new file mode 100644
index 0000000..ef7cf33
--- /dev/null
+++ b/lib/shared/cubit/appCubit.dart
@@ -0,0 +1,29 @@
+import 'package:bloc/bloc.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_bloc/flutter_bloc.dart';
+import 'package:social_app/shared/network/local/cache_helper.dart';
+
+
+import 'appStates.dart';
+
+
+class AppCubit extends Cubit {
+ AppCubit() : super(AppInitialState());
+
+ static AppCubit get(context) => BlocProvider.of(context);
+
+ ThemeMode appMood = ThemeMode.dark;
+ bool isDark = false;
+
+ void changeAppMode({bool? fromShared}) {
+ if (fromShared != null) {
+ isDark = fromShared;
+ emit(AppChangeModeState());
+ } else {
+ isDark = !isDark;
+ CacheHelper.putBoolean(key: 'isDark', value: isDark).then((value) {
+ emit(AppChangeModeState());
+ });
+ }
+ }
+}
diff --git a/lib/shared/cubit/appStates.dart b/lib/shared/cubit/appStates.dart
new file mode 100644
index 0000000..b75d58c
--- /dev/null
+++ b/lib/shared/cubit/appStates.dart
@@ -0,0 +1,5 @@
+abstract class AppStates {}
+
+class AppInitialState extends AppStates {}
+
+class AppChangeModeState extends AppStates{}
\ No newline at end of file
diff --git a/lib/shared/network/end_points.dart b/lib/shared/network/end_points.dart
new file mode 100644
index 0000000..6120b90
--- /dev/null
+++ b/lib/shared/network/end_points.dart
@@ -0,0 +1,8 @@
+const LOGIN = 'login';
+const REGISTER = 'register';
+const HOME = 'home';
+const GET_CATEGORIES = 'categories';
+const FAVORITES = 'favorites';
+const PROFILE = 'profile';
+const UPDATE_PROFILE = 'update-profile';
+const SEARCH = 'products/search';
diff --git a/lib/shared/network/local/cache_helper.dart b/lib/shared/network/local/cache_helper.dart
new file mode 100644
index 0000000..19b59f8
--- /dev/null
+++ b/lib/shared/network/local/cache_helper.dart
@@ -0,0 +1,36 @@
+import 'package:flutter/cupertino.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+
+class CacheHelper {
+ static late SharedPreferences sharedPreferences;
+
+ static init() async {
+ sharedPreferences = await SharedPreferences.getInstance();
+ }
+
+ static Future putBoolean(
+ {required String key, required bool value}) async {
+ return await sharedPreferences.setBool(key, value);
+ }
+
+ static bool? getBoolean({required String key}) {
+ return sharedPreferences.getBool(key) ?? false;
+ }
+
+ static dynamic getData({required String key}) {
+ return sharedPreferences.get(key);
+ }
+
+ static Future saveData(
+ {required String key, required dynamic value}) async {
+ if (value is String) return await sharedPreferences.setString(key, value);
+ if (value is int) return await sharedPreferences.setInt(key, value);
+ if (value is bool) return await sharedPreferences.setBool(key, value);
+
+ return await sharedPreferences.setDouble(key, value);
+ }
+
+ static Future removeData({required String key})async {
+ return await sharedPreferences.remove(key);
+ }
+}
diff --git a/lib/shared/network/remote/dio_helper.dart b/lib/shared/network/remote/dio_helper.dart
new file mode 100644
index 0000000..6a90b1b
--- /dev/null
+++ b/lib/shared/network/remote/dio_helper.dart
@@ -0,0 +1,50 @@
+import 'package:dio/dio.dart';
+
+class DioHelper {
+ static late Dio dio;
+
+ static init() {
+ dio = Dio(BaseOptions(
+ baseUrl: 'https://student.valuxapps.com/api/',
+ receiveDataWhenStatusError: true,
+ headers: {
+ 'Content-Type': 'application/json',
+ 'lang': 'en'
+ }));
+ }
+
+ static Future getData(
+ {required String url,
+ Map? query,
+ String? token}) async {
+ dio.options.headers['Authorization'] = token??'';
+
+ return await dio.get(url, queryParameters: query);
+ }
+
+ static Future postData({
+ required String url,
+ Map? query,
+ required Map data,
+ String? token,
+ }) async {
+ dio.options.headers['Authorization'] = token??'';
+
+
+
+ return dio.post(url, queryParameters: query, data: data);
+ }
+
+ static Future putData({
+ required String url,
+ Map? query,
+ required Map data,
+ String? token,
+ }) async {
+ dio.options.headers['Authorization'] = token??'';
+
+
+
+ return dio.put(url, queryParameters: query, data: data);
+ }
+}
diff --git a/lib/shared/styles/colors.dart b/lib/shared/styles/colors.dart
new file mode 100644
index 0000000..7436afd
--- /dev/null
+++ b/lib/shared/styles/colors.dart
@@ -0,0 +1,3 @@
+import 'package:flutter/material.dart';
+
+const defultColor = Colors.blue;
diff --git a/lib/shared/styles/icon.dart b/lib/shared/styles/icon.dart
new file mode 100644
index 0000000..0c288d3
--- /dev/null
+++ b/lib/shared/styles/icon.dart
@@ -0,0 +1,108 @@
+import 'package:flutter/widgets.dart';
+
+class IconBroken {
+ IconBroken._();
+
+ static const String _fontFamily = 'IconBroken';
+
+ static const IconData User = IconData(0xe900, fontFamily: _fontFamily);
+ static const IconData User1 = IconData(0xe901, fontFamily: _fontFamily);
+ static const IconData Activity = IconData(0xe902, fontFamily: _fontFamily);
+ static const IconData Add_User = IconData(0xe903, fontFamily: _fontFamily);
+ static const IconData Arrow___Down_2 = IconData(0xe904, fontFamily: _fontFamily);
+ static const IconData Arrow___Down_3 = IconData(0xe905, fontFamily: _fontFamily);
+ static const IconData Arrow___Down_Circle = IconData(0xe906, fontFamily: _fontFamily);
+ static const IconData Arrow___Down_Square = IconData(0xe907, fontFamily: _fontFamily);
+ static const IconData Arrow___Down = IconData(0xe908, fontFamily: _fontFamily);
+ static const IconData Arrow___Left_2 = IconData(0xe909, fontFamily: _fontFamily);
+ static const IconData Arrow___Left_3 = IconData(0xe90a, fontFamily: _fontFamily);
+ static const IconData Arrow___Left_Circle = IconData(0xe90b, fontFamily: _fontFamily);
+ static const IconData Arrow___Left_Square = IconData(0xe90c, fontFamily: _fontFamily);
+ static const IconData Arrow___Left = IconData(0xe90d, fontFamily: _fontFamily);
+ static const IconData Arrow___Right_2 = IconData(0xe90e, fontFamily: _fontFamily);
+ static const IconData Arrow___Right_3 = IconData(0xe90f, fontFamily: _fontFamily);
+ static const IconData Arrow___Right_Circle = IconData(0xe910, fontFamily: _fontFamily);
+ static const IconData Arrow___Right_Square = IconData(0xe911, fontFamily: _fontFamily);
+ static const IconData Arrow___Right = IconData(0xe912, fontFamily: _fontFamily);
+ static const IconData Arrow___Up_2 = IconData(0xe913, fontFamily: _fontFamily);
+ static const IconData Arrow___Up_3 = IconData(0xe914, fontFamily: _fontFamily);
+ static const IconData Arrow___Up_Circle = IconData(0xe915, fontFamily: _fontFamily);
+ static const IconData Arrow___Up_Square = IconData(0xe916, fontFamily: _fontFamily);
+ static const IconData Arrow___Up = IconData(0xe917, fontFamily: _fontFamily);
+ static const IconData Bag_2 = IconData(0xe918, fontFamily: _fontFamily);
+ static const IconData Bag = IconData(0xe919, fontFamily: _fontFamily);
+ static const IconData Bookmark = IconData(0xe91a, fontFamily: _fontFamily);
+ static const IconData Buy = IconData(0xe91b, fontFamily: _fontFamily);
+ static const IconData Calendar = IconData(0xe91c, fontFamily: _fontFamily);
+ static const IconData Call_Missed = IconData(0xe91d, fontFamily: _fontFamily);
+ static const IconData Call_Silent = IconData(0xe91e, fontFamily: _fontFamily);
+ static const IconData Call = IconData(0xe91f, fontFamily: _fontFamily);
+ static const IconData Calling = IconData(0xe920, fontFamily: _fontFamily);
+ static const IconData Camera = IconData(0xe921, fontFamily: _fontFamily);
+ static const IconData Category = IconData(0xe922, fontFamily: _fontFamily);
+ static const IconData Chart = IconData(0xe923, fontFamily: _fontFamily);
+ static const IconData Chat = IconData(0xe924, fontFamily: _fontFamily);
+ static const IconData Close_Square = IconData(0xe925, fontFamily: _fontFamily);
+ static const IconData Danger = IconData(0xe926, fontFamily: _fontFamily);
+ static const IconData Delete = IconData(0xe927, fontFamily: _fontFamily);
+ static const IconData Discount = IconData(0xe928, fontFamily: _fontFamily);
+ static const IconData Discovery = IconData(0xe929, fontFamily: _fontFamily);
+ static const IconData Document = IconData(0xe92a, fontFamily: _fontFamily);
+ static const IconData Download = IconData(0xe92b, fontFamily: _fontFamily);
+ static const IconData Edit_Square = IconData(0xe92c, fontFamily: _fontFamily);
+ static const IconData Edit = IconData(0xe92d, fontFamily: _fontFamily);
+ static const IconData Filter_2 = IconData(0xe92e, fontFamily: _fontFamily);
+ static const IconData Filter = IconData(0xe92f, fontFamily: _fontFamily);
+ static const IconData Folder = IconData(0xe930, fontFamily: _fontFamily);
+ static const IconData Game = IconData(0xe931, fontFamily: _fontFamily);
+ static const IconData Graph = IconData(0xe932, fontFamily: _fontFamily);
+ static const IconData Heart = IconData(0xe933, fontFamily: _fontFamily);
+ static const IconData Hide = IconData(0xe934, fontFamily: _fontFamily);
+ static const IconData Home = IconData(0xe935, fontFamily: _fontFamily);
+ static const IconData Image_2 = IconData(0xe936, fontFamily: _fontFamily);
+ static const IconData Image = IconData(0xe937, fontFamily: _fontFamily);
+ static const IconData Info_Circle = IconData(0xe938, fontFamily: _fontFamily);
+ static const IconData Info_Square = IconData(0xe939, fontFamily: _fontFamily);
+ static const IconData Location = IconData(0xe93a, fontFamily: _fontFamily);
+ static const IconData Lock = IconData(0xe93b, fontFamily: _fontFamily);
+ static const IconData Login = IconData(0xe93c, fontFamily: _fontFamily);
+ static const IconData Logout = IconData(0xe93d, fontFamily: _fontFamily);
+ static const IconData Message = IconData(0xe93e, fontFamily: _fontFamily);
+ static const IconData More_Circle = IconData(0xe93f, fontFamily: _fontFamily);
+ static const IconData More_Square = IconData(0xe940, fontFamily: _fontFamily);
+ static const IconData Notification = IconData(0xe941, fontFamily: _fontFamily);
+ static const IconData Paper_Download = IconData(0xe942, fontFamily: _fontFamily);
+ static const IconData Paper_Fail = IconData(0xe943, fontFamily: _fontFamily);
+ static const IconData Paper_Negative = IconData(0xe944, fontFamily: _fontFamily);
+ static const IconData Paper_Plus = IconData(0xe945, fontFamily: _fontFamily);
+ static const IconData Paper_Upload = IconData(0xe946, fontFamily: _fontFamily);
+ static const IconData Paper = IconData(0xe947, fontFamily: _fontFamily);
+ static const IconData Password = IconData(0xe948, fontFamily: _fontFamily);
+ static const IconData Play = IconData(0xe949, fontFamily: _fontFamily);
+ static const IconData Plus = IconData(0xe94a, fontFamily: _fontFamily);
+ static const IconData Profile = IconData(0xe94b, fontFamily: _fontFamily);
+ static const IconData Scan = IconData(0xe94c, fontFamily: _fontFamily);
+ static const IconData Search = IconData(0xe94d, fontFamily: _fontFamily);
+ static const IconData Send = IconData(0xe94e, fontFamily: _fontFamily);
+ static const IconData Setting = IconData(0xe94f, fontFamily: _fontFamily);
+ static const IconData Shield_Done = IconData(0xe950, fontFamily: _fontFamily);
+ static const IconData Shield_Fail = IconData(0xe951, fontFamily: _fontFamily);
+ static const IconData Show = IconData(0xe952, fontFamily: _fontFamily);
+ static const IconData Star = IconData(0xe953, fontFamily: _fontFamily);
+ static const IconData Swap = IconData(0xe954, fontFamily: _fontFamily);
+ static const IconData Tick_Square = IconData(0xe955, fontFamily: _fontFamily);
+ static const IconData Ticket_Star = IconData(0xe956, fontFamily: _fontFamily);
+ static const IconData Ticket = IconData(0xe957, fontFamily: _fontFamily);
+ static const IconData Time_Circle = IconData(0xe958, fontFamily: _fontFamily);
+ static const IconData Time_Square = IconData(0xe959, fontFamily: _fontFamily);
+ static const IconData Unlock = IconData(0xe95a, fontFamily: _fontFamily);
+ static const IconData Upload = IconData(0xe95b, fontFamily: _fontFamily);
+ static const IconData Video = IconData(0xe95c, fontFamily: _fontFamily);
+ static const IconData Voice_2 = IconData(0xe95d, fontFamily: _fontFamily);
+ static const IconData Voice = IconData(0xe95e, fontFamily: _fontFamily);
+ static const IconData Volume_Down = IconData(0xe95f, fontFamily: _fontFamily);
+ static const IconData Volume_Off = IconData(0xe960, fontFamily: _fontFamily);
+ static const IconData Volume_Up = IconData(0xe961, fontFamily: _fontFamily);
+ static const IconData Wallet = IconData(0xe962, fontFamily: _fontFamily);
+ static const IconData Work = IconData(0xe963, fontFamily: _fontFamily);
+}
\ No newline at end of file
diff --git a/lib/shared/styles/themes.dart b/lib/shared/styles/themes.dart
new file mode 100644
index 0000000..4369611
--- /dev/null
+++ b/lib/shared/styles/themes.dart
@@ -0,0 +1,70 @@
+import 'package:flutter/material.dart';
+import 'package:flutter/services.dart';
+import 'package:hexcolor/hexcolor.dart';
+import 'package:social_app/shared/styles/colors.dart';
+
+
+ThemeData darktheme = ThemeData(
+ textTheme: TextTheme(
+ bodyText1: TextStyle(
+ fontSize: 18.0, fontWeight: FontWeight.w600, color: Colors.white),
+ subtitle1: TextStyle(
+ fontSize: 14.0, fontWeight: FontWeight.w600, color: Colors.white,height: 1.3),
+ ),
+ primarySwatch:defultColor,
+ appBarTheme: AppBarTheme(
+ titleSpacing: 20.0,
+ titleTextStyle: TextStyle(
+ color: Colors.white, fontSize: 20.0, fontWeight: FontWeight.bold,
+ fontFamily: 'jannah'),
+ backwardsCompatibility: false,
+ systemOverlayStyle: SystemUiOverlayStyle(
+ statusBarBrightness: Brightness.light,
+ statusBarColor: HexColor('333739')),
+ backgroundColor: HexColor('333739'),
+ elevation: 0.0,
+ iconTheme: IconThemeData(color: Colors.white)),
+ bottomNavigationBarTheme: BottomNavigationBarThemeData(
+ type: BottomNavigationBarType.fixed,
+ selectedItemColor: defultColor,
+ backgroundColor: HexColor('333739'),
+ unselectedItemColor: Colors.grey,
+ elevation: 20.0,
+ ),
+ scaffoldBackgroundColor: HexColor('333739'),
+ fontFamily: 'jannah'
+);
+
+ThemeData lightTheme = ThemeData(
+ primarySwatch: defultColor,
+ floatingActionButtonTheme: FloatingActionButtonThemeData(
+ backgroundColor: defultColor,
+ ),
+ scaffoldBackgroundColor: Colors.white,
+ appBarTheme: AppBarTheme(
+ titleSpacing: 20.0,
+ titleTextStyle: TextStyle(
+ color: Colors.black, fontSize: 20.0,
+ fontFamily: 'jannah',
+ fontWeight: FontWeight.bold),
+ backwardsCompatibility: false,
+ systemOverlayStyle: SystemUiOverlayStyle(
+ statusBarBrightness: Brightness.dark, statusBarColor: Colors.white),
+ backgroundColor: Colors.white,
+ elevation: 0.0,
+ iconTheme: IconThemeData(color: Colors.black)),
+ bottomNavigationBarTheme: BottomNavigationBarThemeData(
+ type: BottomNavigationBarType.fixed,
+ selectedItemColor: defultColor,
+ backgroundColor: Colors.white,
+ unselectedItemColor: Colors.grey,
+ elevation: 20.0,
+ ),
+ textTheme: TextTheme(
+ bodyText1: TextStyle(
+ fontSize: 18.0, fontWeight: FontWeight.w600, color: Colors.black),
+ subtitle1: TextStyle(
+ fontSize: 14.0, fontWeight: FontWeight.w600, color: Colors.black,height: 1.3),
+ ),
+ fontFamily: 'jannah'
+);
diff --git a/pubspec.lock b/pubspec.lock
new file mode 100644
index 0000000..83352c3
--- /dev/null
+++ b/pubspec.lock
@@ -0,0 +1,439 @@
+# Generated by pub
+# See https://dart.dev/tools/pub/glossary#lockfile
+packages:
+ async:
+ dependency: transitive
+ description:
+ name: async
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.8.1"
+ bloc:
+ dependency: "direct main"
+ description:
+ name: bloc
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "7.0.0"
+ boolean_selector:
+ dependency: transitive
+ description:
+ name: boolean_selector
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.1.0"
+ carousel_slider:
+ dependency: "direct main"
+ description:
+ name: carousel_slider
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "4.0.0"
+ characters:
+ dependency: transitive
+ description:
+ name: characters
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.1.0"
+ charcode:
+ dependency: transitive
+ description:
+ name: charcode
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.3.1"
+ clock:
+ dependency: transitive
+ description:
+ name: clock
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.1.0"
+ cloud_firestore:
+ dependency: "direct main"
+ description:
+ name: cloud_firestore
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.5.0"
+ cloud_firestore_platform_interface:
+ dependency: transitive
+ description:
+ name: cloud_firestore_platform_interface
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "5.4.0"
+ cloud_firestore_web:
+ dependency: transitive
+ description:
+ name: cloud_firestore_web
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.4.0"
+ collection:
+ dependency: transitive
+ description:
+ name: collection
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.15.0"
+ cupertino_icons:
+ dependency: "direct main"
+ description:
+ name: cupertino_icons
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.0.3"
+ dio:
+ dependency: "direct main"
+ description:
+ name: dio
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "4.0.0"
+ fake_async:
+ dependency: transitive
+ description:
+ name: fake_async
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.2.0"
+ ffi:
+ dependency: transitive
+ description:
+ name: ffi
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.1.2"
+ file:
+ dependency: transitive
+ description:
+ name: file
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "6.1.2"
+ firebase_auth:
+ dependency: "direct main"
+ description:
+ name: firebase_auth
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "3.0.2"
+ firebase_auth_platform_interface:
+ dependency: transitive
+ description:
+ name: firebase_auth_platform_interface
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "6.0.1"
+ firebase_auth_web:
+ dependency: transitive
+ description:
+ name: firebase_auth_web
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "3.0.1"
+ firebase_core:
+ dependency: "direct main"
+ description:
+ name: firebase_core
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.5.0"
+ firebase_core_platform_interface:
+ dependency: transitive
+ description:
+ name: firebase_core_platform_interface
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "4.0.1"
+ firebase_core_web:
+ dependency: transitive
+ description:
+ name: firebase_core_web
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.1.0"
+ flutter:
+ dependency: "direct main"
+ description: flutter
+ source: sdk
+ version: "0.0.0"
+ flutter_bloc:
+ dependency: "direct main"
+ description:
+ name: flutter_bloc
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "7.1.0"
+ flutter_conditional_rendering:
+ dependency: "direct main"
+ description:
+ name: flutter_conditional_rendering
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.0.0"
+ flutter_lints:
+ dependency: "direct dev"
+ description:
+ name: flutter_lints
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.0.4"
+ flutter_test:
+ dependency: "direct dev"
+ description: flutter
+ source: sdk
+ version: "0.0.0"
+ flutter_web_plugins:
+ dependency: transitive
+ description: flutter
+ source: sdk
+ version: "0.0.0"
+ fluttertoast:
+ dependency: "direct main"
+ description:
+ name: fluttertoast
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "8.0.8"
+ hexcolor:
+ dependency: "direct main"
+ description:
+ name: hexcolor
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.0.4"
+ http_parser:
+ dependency: transitive
+ description:
+ name: http_parser
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "4.0.0"
+ intl:
+ dependency: "direct main"
+ description:
+ name: intl
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.17.0"
+ js:
+ dependency: transitive
+ description:
+ name: js
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.6.3"
+ lints:
+ dependency: transitive
+ description:
+ name: lints
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.0.1"
+ matcher:
+ dependency: transitive
+ description:
+ name: matcher
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.12.10"
+ meta:
+ dependency: transitive
+ description:
+ name: meta
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.7.0"
+ nested:
+ dependency: transitive
+ description:
+ name: nested
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.0.0"
+ path:
+ dependency: transitive
+ description:
+ name: path
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.8.0"
+ path_provider_linux:
+ dependency: transitive
+ description:
+ name: path_provider_linux
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.0.2"
+ path_provider_platform_interface:
+ dependency: transitive
+ description:
+ name: path_provider_platform_interface
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.0.1"
+ path_provider_windows:
+ dependency: transitive
+ description:
+ name: path_provider_windows
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.0.3"
+ platform:
+ dependency: transitive
+ description:
+ name: platform
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "3.0.0"
+ plugin_platform_interface:
+ dependency: transitive
+ description:
+ name: plugin_platform_interface
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.0.1"
+ process:
+ dependency: transitive
+ description:
+ name: process
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "4.2.3"
+ provider:
+ dependency: transitive
+ description:
+ name: provider
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "5.0.0"
+ shared_preferences:
+ dependency: "direct main"
+ description:
+ name: shared_preferences
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.0.6"
+ shared_preferences_linux:
+ dependency: transitive
+ description:
+ name: shared_preferences_linux
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.0.2"
+ shared_preferences_macos:
+ dependency: transitive
+ description:
+ name: shared_preferences_macos
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.0.2"
+ shared_preferences_platform_interface:
+ dependency: transitive
+ description:
+ name: shared_preferences_platform_interface
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.0.0"
+ shared_preferences_web:
+ dependency: transitive
+ description:
+ name: shared_preferences_web
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.0.1"
+ shared_preferences_windows:
+ dependency: transitive
+ description:
+ name: shared_preferences_windows
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.0.2"
+ sky_engine:
+ dependency: transitive
+ description: flutter
+ source: sdk
+ version: "0.0.99"
+ smooth_page_indicator:
+ dependency: "direct main"
+ description:
+ name: smooth_page_indicator
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.3.0-nullsafety.0"
+ source_span:
+ dependency: transitive
+ description:
+ name: source_span
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.8.1"
+ stack_trace:
+ dependency: transitive
+ description:
+ name: stack_trace
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.10.0"
+ stream_channel:
+ dependency: transitive
+ description:
+ name: stream_channel
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.1.0"
+ string_scanner:
+ dependency: transitive
+ description:
+ name: string_scanner
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.1.0"
+ term_glyph:
+ dependency: transitive
+ description:
+ name: term_glyph
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.2.0"
+ test_api:
+ dependency: transitive
+ description:
+ name: test_api
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.4.2"
+ typed_data:
+ dependency: transitive
+ description:
+ name: typed_data
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.3.0"
+ vector_math:
+ dependency: transitive
+ description:
+ name: vector_math
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.1.0"
+ win32:
+ dependency: transitive
+ description:
+ name: win32
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.2.5"
+ xdg_directories:
+ dependency: transitive
+ description:
+ name: xdg_directories
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.2.0"
+sdks:
+ dart: ">=2.13.0 <3.0.0"
+ flutter: ">=2.0.1"
diff --git a/pubspec.yaml b/pubspec.yaml
new file mode 100644
index 0000000..5dea67a
--- /dev/null
+++ b/pubspec.yaml
@@ -0,0 +1,111 @@
+name: social_app
+description: A new Flutter project.
+
+# The following line prevents the package from being accidentally published to
+# pub.dev using `flutter pub publish`. This is preferred for private packages.
+publish_to: 'none' # Remove this line if you wish to publish to pub.dev
+
+# The following defines the version and build number for your application.
+# A version number is three numbers separated by dots, like 1.2.43
+# followed by an optional build number separated by a +.
+# Both the version and the builder number may be overridden in flutter
+# build by specifying --build-name and --build-number, respectively.
+# In Android, build-name is used as versionName while build-number used as versionCode.
+# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
+# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
+# Read more about iOS versioning at
+# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
+version: 1.0.0+1
+
+environment:
+ sdk: ">=2.12.0 <3.0.0"
+
+# Dependencies specify other packages that your package needs in order to work.
+# To automatically upgrade your package dependencies to the latest versions
+# consider running `flutter pub upgrade --major-versions`. Alternatively,
+# dependencies can be manually updated by changing the version numbers below to
+# the latest version available on pub.dev. To see which dependencies have newer
+# versions available, run `flutter pub outdated`.
+dependencies:
+ flutter:
+ sdk: flutter
+
+
+ # The following adds the Cupertino Icons font to your application.
+ # Use with the CupertinoIcons class for iOS style icons.
+ cupertino_icons: ^1.0.2
+ intl: ^0.17.0
+
+ bloc: ^7.0.0
+ flutter_bloc: ^7.1.0
+ dio: ^4.0.0
+ hexcolor: ^2.0.3
+ shared_preferences: ^2.0.6
+ smooth_page_indicator: ^0.3.0-nullsafety.0
+ fluttertoast: ^8.0.8
+ carousel_slider: ^4.0.0
+ firebase_core: ^1.5.0
+ firebase_auth: ^3.0.2
+ cloud_firestore: ^2.5.0
+ flutter_conditional_rendering: ^2.0.0
+
+dev_dependencies:
+ flutter_test:
+ sdk: flutter
+
+ # The "flutter_lints" package below contains a set of recommended lints to
+ # encourage good coding practices. The lint set provided by the package is
+ # activated in the `analysis_options.yaml` file located at the root of your
+ # package. See that file for information about deactivating specific lint
+ # rules and activating additional ones.
+ flutter_lints: ^1.0.0
+
+# For information on the generic Dart part of this file, see the
+# following page: https://dart.dev/tools/pub/pubspec
+
+# The following section is specific to Flutter.
+flutter:
+
+ # The following line ensures that the Material Icons font is
+ # included with your application, so that you can use the icons in
+ # the material Icons class.
+ uses-material-design: true
+
+ # To add assets to your application, add an assets section, like this:
+ # assets:
+ # - images/a_dot_burr.jpeg
+ # - images/a_dot_ham.jpeg
+
+ # An image asset can refer to one or more resolution-specific "variants", see
+ # https://flutter.dev/assets-and-images/#resolution-aware.
+
+ # For details regarding adding assets from package dependencies, see
+ # https://flutter.dev/assets-and-images/#from-packages
+
+ # To add custom fonts to your application, add a fonts section here,
+ # in this "flutter" section. Each entry in this list should have a
+ # "family" key with the font family name, and a "fonts" key with a
+ # list giving the asset and other descriptors for the font. For
+ # example:
+
+ fonts:
+ - family: jannah
+ fonts:
+ - asset: assets/Fonts/jannah.ttf
+ - family: IconBroken
+ fonts:
+ - asset: assets/Fonts/icons.ttf
+ # fonts:
+ # - family: Schyler
+ # fonts:
+ # - asset: fonts/Schyler-Regular.ttf
+ # - asset: fonts/Schyler-Italic.ttf
+ # style: italic
+ # - family: Trajan Pro
+ # fonts:
+ # - asset: fonts/TrajanPro.ttf
+ # - asset: fonts/TrajanPro_Bold.ttf
+ # weight: 700
+ #
+ # For details regarding fonts from package dependencies,
+ # see https://flutter.dev/custom-fonts/#from-packages
diff --git a/test/widget_test.dart b/test/widget_test.dart
new file mode 100644
index 0000000..0acc4ee
--- /dev/null
+++ b/test/widget_test.dart
@@ -0,0 +1,30 @@
+// This is a basic Flutter widget test.
+//
+// To perform an interaction with a widget in your test, use the WidgetTester
+// utility that Flutter provides. For example, you can send tap and scroll
+// gestures. You can also use WidgetTester to find child widgets in the widget
+// tree, read text, and verify that the values of widget properties are correct.
+
+// import 'package:flutter/material.dart';
+// import 'package:flutter_test/flutter_test.dart';
+
+// import 'package:social_app/main.dart';
+
+// void main() {
+// testWidgets('Counter increments smoke test', (WidgetTester tester) async {
+// // Build our app and trigger a frame.
+// await tester.pumpWidget(const MyApp());
+
+// // Verify that our counter starts at 0.
+// expect(find.text('0'), findsOneWidget);
+// expect(find.text('1'), findsNothing);
+
+// // Tap the '+' icon and trigger a frame.
+// await tester.tap(find.byIcon(Icons.add));
+// await tester.pump();
+
+// // Verify that our counter has incremented.
+// expect(find.text('0'), findsNothing);
+// expect(find.text('1'), findsOneWidget);
+// });
+// }
diff --git a/web/favicon.png b/web/favicon.png
new file mode 100644
index 0000000..8aaa46a
Binary files /dev/null and b/web/favicon.png differ
diff --git a/web/icons/Icon-192.png b/web/icons/Icon-192.png
new file mode 100644
index 0000000..b749bfe
Binary files /dev/null and b/web/icons/Icon-192.png differ
diff --git a/web/icons/Icon-512.png b/web/icons/Icon-512.png
new file mode 100644
index 0000000..88cfd48
Binary files /dev/null and b/web/icons/Icon-512.png differ
diff --git a/web/icons/Icon-maskable-192.png b/web/icons/Icon-maskable-192.png
new file mode 100644
index 0000000..eb9b4d7
Binary files /dev/null and b/web/icons/Icon-maskable-192.png differ
diff --git a/web/icons/Icon-maskable-512.png b/web/icons/Icon-maskable-512.png
new file mode 100644
index 0000000..d69c566
Binary files /dev/null and b/web/icons/Icon-maskable-512.png differ
diff --git a/web/index.html b/web/index.html
new file mode 100644
index 0000000..7782fb8
--- /dev/null
+++ b/web/index.html
@@ -0,0 +1,101 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ social_app
+
+
+
+
+
+
+
diff --git a/web/manifest.json b/web/manifest.json
new file mode 100644
index 0000000..7b35ccf
--- /dev/null
+++ b/web/manifest.json
@@ -0,0 +1,35 @@
+{
+ "name": "social_app",
+ "short_name": "social_app",
+ "start_url": ".",
+ "display": "standalone",
+ "background_color": "#0175C2",
+ "theme_color": "#0175C2",
+ "description": "A new Flutter project.",
+ "orientation": "portrait-primary",
+ "prefer_related_applications": false,
+ "icons": [
+ {
+ "src": "icons/Icon-192.png",
+ "sizes": "192x192",
+ "type": "image/png"
+ },
+ {
+ "src": "icons/Icon-512.png",
+ "sizes": "512x512",
+ "type": "image/png"
+ },
+ {
+ "src": "icons/Icon-maskable-192.png",
+ "sizes": "192x192",
+ "type": "image/png",
+ "purpose": "maskable"
+ },
+ {
+ "src": "icons/Icon-maskable-512.png",
+ "sizes": "512x512",
+ "type": "image/png",
+ "purpose": "maskable"
+ }
+ ]
+}