diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..07488ba --- /dev/null +++ b/.gitignore @@ -0,0 +1,70 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.buildlog/ +.history +.svn/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# Visual Studio Code related +.vscode/ + +# Flutter/Dart/Pub related +**/doc/api/ +.dart_tool/ +.flutter-plugins +.packages +.pub-cache/ +.pub/ +/build/ + +# Android related +**/android/**/gradle-wrapper.jar +**/android/.gradle +**/android/captures/ +**/android/gradlew +**/android/gradlew.bat +**/android/local.properties +**/android/**/GeneratedPluginRegistrant.java + +# iOS/XCode related +**/ios/**/*.mode1v3 +**/ios/**/*.mode2v3 +**/ios/**/*.moved-aside +**/ios/**/*.pbxuser +**/ios/**/*.perspectivev3 +**/ios/**/*sync/ +**/ios/**/.sconsign.dblite +**/ios/**/.tags* +**/ios/**/.vagrant/ +**/ios/**/DerivedData/ +**/ios/**/Icon? +**/ios/**/Pods/ +**/ios/**/.symlinks/ +**/ios/**/profile +**/ios/**/xcuserdata +**/ios/.generated/ +**/ios/Flutter/App.framework +**/ios/Flutter/Flutter.framework +**/ios/Flutter/Generated.xcconfig +**/ios/Flutter/app.flx +**/ios/Flutter/app.zip +**/ios/Flutter/flutter_assets/ +**/ios/ServiceDefinitions.json +**/ios/Runner/GeneratedPluginRegistrant.* + +# Exceptions to above rules. +!**/ios/**/default.mode1v3 +!**/ios/**/default.mode2v3 +!**/ios/**/default.pbxuser +!**/ios/**/default.perspectivev3 +!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages diff --git a/.metadata b/.metadata new file mode 100644 index 0000000..033ad2a --- /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: 7a4c33425ddd78c54aba07d86f3f9a4a0051769b + channel: stable + +project_type: app diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d401e6b --- /dev/null +++ b/LICENSE @@ -0,0 +1,13 @@ +DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2019 JideGuru + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..338365d --- /dev/null +++ b/README.md @@ -0,0 +1,68 @@ +# 🔥🔥 Flutter Social App Concept [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) + +Flutter representation of a Social App Concept i found in Uplabs. + +Star⭐ the repo if you like what you see😉. + + +Images are from [Unsplash](https://unsplash.com) +## 📸 ScreenShots + + + + +| 1 | 2| +|------|-------| +||| + +| 3 | 4| +|------|-------| +||| + +| 5 | 6| +|------|-------| +||| + +| 7 | 8| +|------|-------| +||| + +| 9 | 10| +|------|-------| +||| + +| 11 | 12| +|------|-------| +||| + +## Toggle theme +To toggle the theme, change the `isDark` variable in `main.dart`. + +`true` for dark and `false` for light. + +## ✨ Requirements +* Any Operating System (ie. MacOS X, Linux, Windows) +* Any IDE with Flutter SDK installed (ie. IntelliJ, Android Studio, VSCode etc) +* A little knowledge of Dart and Flutter +* A brain to think 🤓🤓 + +## 🤓 Author(s) +**Olusegun Festus Babajide** + + +## 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.io/docs/get-started/codelab) +- [Cookbook: Useful Flutter samples](https://flutter.io/docs/cookbook) + +For help getting started with Flutter, view our +[online documentation](https://flutter.io/docs), which offers tutorials, +samples, guidance on mobile development, and a full API reference. + + +## LICENCE +[WTFPL](http://www.wtfpl.net/about/) \ No newline at end of file diff --git a/android/app/build.gradle b/android/app/build.gradle new file mode 100644 index 0000000..8caaf5e --- /dev/null +++ b/android/app/build.gradle @@ -0,0 +1,67 @@ +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: 'kotlin-android' +apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" + +android { + compileSdkVersion 28 + + sourceSets { + main.java.srcDirs += 'src/main/kotlin' + } + + lintOptions { + disable 'InvalidPackage' + } + + defaultConfig { + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). + applicationId "dev.jideguru.social_app_ui" + minSdkVersion 16 + targetSdkVersion 28 + versionCode flutterVersionCode.toInteger() + versionName flutterVersionName + testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + } + + 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" + testImplementation 'junit:junit:4.12' + androidTestImplementation 'com.android.support.test:runner:1.0.2' + androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' +} diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml new file mode 100644 index 0000000..074d787 --- /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..f2af164 --- /dev/null +++ b/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + diff --git a/android/app/src/main/gen/dev/jideguru/social_app_ui/Manifest.java b/android/app/src/main/gen/dev/jideguru/social_app_ui/Manifest.java new file mode 100644 index 0000000..771b9a8 --- /dev/null +++ b/android/app/src/main/gen/dev/jideguru/social_app_ui/Manifest.java @@ -0,0 +1,7 @@ +/*___Generated_by_IDEA___*/ + +package dev.jideguru.social_app_ui; + +/* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */ +public final class Manifest { +} \ No newline at end of file diff --git a/android/app/src/main/gen/dev/jideguru/social_app_ui/R.java b/android/app/src/main/gen/dev/jideguru/social_app_ui/R.java new file mode 100644 index 0000000..aaf1d42 --- /dev/null +++ b/android/app/src/main/gen/dev/jideguru/social_app_ui/R.java @@ -0,0 +1,7 @@ +/*___Generated_by_IDEA___*/ + +package dev.jideguru.social_app_ui; + +/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */ +public final class R { +} \ No newline at end of file diff --git a/android/app/src/main/kotlin/dev/jideguru/social_app_ui/MainActivity.kt b/android/app/src/main/kotlin/dev/jideguru/social_app_ui/MainActivity.kt new file mode 100644 index 0000000..e68aeaf --- /dev/null +++ b/android/app/src/main/kotlin/dev/jideguru/social_app_ui/MainActivity.kt @@ -0,0 +1,13 @@ +package dev.jideguru.social_app_ui + +import android.os.Bundle + +import io.flutter.app.FlutterActivity +import io.flutter.plugins.GeneratedPluginRegistrant + +class MainActivity: FlutterActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + GeneratedPluginRegistrant.registerWith(this) + } +} 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/styles.xml b/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..00fa441 --- /dev/null +++ b/android/app/src/main/res/values/styles.xml @@ -0,0 +1,8 @@ + + + + diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml new file mode 100644 index 0000000..074d787 --- /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..b7faad8 --- /dev/null +++ b/android/build.gradle @@ -0,0 +1,31 @@ +buildscript { + ext.kotlin_version = '1.2.71' + repositories { + google() + jcenter() + } + + dependencies { + classpath 'com.android.tools.build:gradle:3.2.1' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } +} + +allprojects { + repositories { + google() + jcenter() + } +} + +rootProject.buildDir = '../build' +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" +} +subprojects { + 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..8bd86f6 --- /dev/null +++ b/android/gradle.properties @@ -0,0 +1 @@ +org.gradle.jvmargs=-Xmx1536M diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..2819f02 --- /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-4.10.2-all.zip diff --git a/android/settings.gradle b/android/settings.gradle new file mode 100644 index 0000000..5a2f14f --- /dev/null +++ b/android/settings.gradle @@ -0,0 +1,15 @@ +include ':app' + +def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() + +def plugins = new Properties() +def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') +if (pluginsFile.exists()) { + pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } +} + +plugins.each { name, path -> + def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() + include ":$name" + project(":$name").projectDir = pluginDirectory +} diff --git a/assets/cm0.jpeg b/assets/cm0.jpeg new file mode 100644 index 0000000..8466d50 Binary files /dev/null and b/assets/cm0.jpeg differ diff --git a/assets/cm1.jpeg b/assets/cm1.jpeg new file mode 100644 index 0000000..80c207f Binary files /dev/null and b/assets/cm1.jpeg differ diff --git a/assets/cm2.jpeg b/assets/cm2.jpeg new file mode 100644 index 0000000..cbfdf18 Binary files /dev/null and b/assets/cm2.jpeg differ diff --git a/assets/cm3.jpeg b/assets/cm3.jpeg new file mode 100644 index 0000000..cbe7e80 Binary files /dev/null and b/assets/cm3.jpeg differ diff --git a/assets/cm4.jpeg b/assets/cm4.jpeg new file mode 100644 index 0000000..6d8d764 Binary files /dev/null and b/assets/cm4.jpeg differ diff --git a/assets/cm5.jpeg b/assets/cm5.jpeg new file mode 100644 index 0000000..efd7a6f Binary files /dev/null and b/assets/cm5.jpeg differ diff --git a/assets/cm6.jpeg b/assets/cm6.jpeg new file mode 100644 index 0000000..f37fb12 Binary files /dev/null and b/assets/cm6.jpeg differ diff --git a/assets/cm7.jpeg b/assets/cm7.jpeg new file mode 100644 index 0000000..3cebf4a Binary files /dev/null and b/assets/cm7.jpeg differ diff --git a/assets/cm8.jpeg b/assets/cm8.jpeg new file mode 100644 index 0000000..3ec3796 Binary files /dev/null and b/assets/cm8.jpeg differ diff --git a/assets/cm9.jpeg b/assets/cm9.jpeg new file mode 100644 index 0000000..1c3caac Binary files /dev/null and b/assets/cm9.jpeg differ diff --git a/ios/Flutter/AppFrameworkInfo.plist b/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000..9367d48 --- /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 + 8.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..fc722eb --- /dev/null +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,514 @@ +// !$*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 */; }; + 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; + 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; + 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; + 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; + 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 = ( + 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, + 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, + ); + 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 = ""; }; + 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; 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 = ""; }; + 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; 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 = ( + 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, + 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B80C3931E831B6300D905FE /* App.framework */, + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEBA1CF902C7004384FC /* Flutter.framework */, + 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 */, + 97C146F11CF9000F007C117D /* Supporting Files */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, + ); + path = Runner; + sourceTree = ""; + }; + 97C146F11CF9000F007C117D /* Supporting Files */ = { + isa = PBXGroup; + children = ( + ); + name = "Supporting Files"; + 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 = 0910; + ORGANIZATIONNAME = "The Chromium Authors"; + TargetAttributes = { + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + LastSwiftMigration = 0910; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + 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 */, + 9740EEB41CF90195004384FC /* Debug.xcconfig 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\" 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; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + 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_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_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 = 8.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = 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; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = S8QB4VV633; + ENABLE_BITCODE = NO; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + PRODUCT_BUNDLE_IDENTIFIER = dev.jideguru.socialAppUi; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + 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_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_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 = 8.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + 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_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_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 = 8.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = 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; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + PRODUCT_BUNDLE_IDENTIFIER = dev.jideguru.socialAppUi; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_SWIFT3_OBJC_INFERENCE = On; + SWIFT_VERSION = 4.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; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + PRODUCT_BUNDLE_IDENTIFIER = dev.jideguru.socialAppUi; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_SWIFT3_OBJC_INFERENCE = On; + SWIFT_VERSION = 4.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..1d526a1 --- /dev/null +++ b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000..786d6aa --- /dev/null +++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/WorkspaceSettings.xcsettings b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..949b678 --- /dev/null +++ b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + BuildSystemType + Original + + diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift new file mode 100644 index 0000000..71cc41e --- /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: [UIApplicationLaunchOptionsKey: 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..3d43d11 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..360b880 --- /dev/null +++ b/ios/Runner/Info.plist @@ -0,0 +1,45 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + social_app_ui + 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..7335fdf --- /dev/null +++ b/ios/Runner/Runner-Bridging-Header.h @@ -0,0 +1 @@ +#import "GeneratedPluginRegistrant.h" \ No newline at end of file diff --git a/lib/main.dart b/lib/main.dart new file mode 100644 index 0000000..02dc9f9 --- /dev/null +++ b/lib/main.dart @@ -0,0 +1,43 @@ +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:social_app_ui/screens/main_screen.dart'; +import 'package:social_app_ui/util/const.dart'; + + +void main() async{ + SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]).then((_) { + runApp(MyApp()); + }); +} + + +class MyApp extends StatefulWidget { + @override + _MyAppState createState() => _MyAppState(); +} + +class _MyAppState extends State { + bool isDark = false; + + @override + void initState() { + super.initState(); + SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.values); + SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle( + statusBarColor: isDark ? Constants.darkPrimary : Constants.lightPrimary, + statusBarIconBrightness: isDark?Brightness.light:Brightness.dark, + )); + } + + + @override + Widget build(BuildContext context) { + return MaterialApp( + debugShowCheckedModeBanner: false, + title: Constants.appName, + theme: isDark ? Constants.darkTheme : Constants.lightTheme, + home: MainScreen(), + ); + } +} + diff --git a/lib/screens/chats.dart b/lib/screens/chats.dart new file mode 100644 index 0000000..82afbfa --- /dev/null +++ b/lib/screens/chats.dart @@ -0,0 +1,131 @@ +import 'package:flutter/material.dart'; +import 'package:social_app_ui/util/data.dart'; +import 'package:social_app_ui/widgets/chat_item.dart'; + + +class Chats extends StatefulWidget { + @override + _ChatsState createState() => _ChatsState(); +} + +class _ChatsState extends State with SingleTickerProviderStateMixin, + AutomaticKeepAliveClientMixin{ + TabController _tabController; + + @override + void initState() { + super.initState(); + _tabController = TabController(vsync: this, initialIndex: 0, length: 2); + } + + + @override + Widget build(BuildContext context) { + super.build(context); + return Scaffold( + appBar: AppBar( +// elevation: 4, + leading: IconButton( + icon: Icon( + Icons.keyboard_backspace, + ), + onPressed: ()=>Navigator.pop(context), + ), + title: TextField( + decoration: InputDecoration.collapsed( + hintText: 'Search', + ), + ), + actions: [ + IconButton( + icon: Icon( + Icons.filter_list, + ), + onPressed: (){}, + ), + ], + bottom: TabBar( + controller: _tabController, + indicatorColor: Theme.of(context).accentColor, + labelColor: Theme.of(context).accentColor, + unselectedLabelColor: Theme.of(context).textTheme.caption.color, + isScrollable: false, + tabs: [ + Tab( + text: "Message", + ), + Tab( + text: "Groups", + ), + ], + ), + ), + + body: TabBarView( + controller: _tabController, + children: [ + ListView.separated( + padding: EdgeInsets.all(10), + separatorBuilder: (BuildContext context, int index) { + return Align( + alignment: Alignment.centerRight, + child: Container( + height: 0.5, + width: MediaQuery.of(context).size.width / 1.3, + child: Divider(), + ), + ); + }, + itemCount: chats.length, + itemBuilder: (BuildContext context, int index) { + Map chat = chats[index]; + return ChatItem( + dp: chat['dp'], + name: chat['name'], + isOnline: chat['isOnline'], + counter: chat['counter'], + msg: chat['msg'], + time: chat['time'], + ); + }, + ), + ListView.separated( + padding: EdgeInsets.all(10), + separatorBuilder: (BuildContext context, int index) { + return Align( + alignment: Alignment.centerRight, + child: Container( + height: 0.5, + width: MediaQuery.of(context).size.width / 1.3, + child: Divider(), + ), + ); + }, + itemCount: groups.length, + itemBuilder: (BuildContext context, int index) { + Map chat = groups[index]; + return ChatItem( + dp: chat['dp'], + name: chat['name'], + isOnline: chat['isOnline'], + counter: chat['counter'], + msg: chat['msg'], + time: chat['time'], + ); + }, + ), + ], + ), + + floatingActionButton: FloatingActionButton( + child: Icon( + Icons.add, + ), + onPressed: (){}, + ), + ); + } + + @override + bool get wantKeepAlive => true; +} diff --git a/lib/screens/conversation.dart b/lib/screens/conversation.dart new file mode 100644 index 0000000..4c40406 --- /dev/null +++ b/lib/screens/conversation.dart @@ -0,0 +1,185 @@ +import 'package:flutter/material.dart'; +import 'package:social_app_ui/util/data.dart'; +import 'dart:math'; + +import 'package:social_app_ui/widgets/chat_bubble.dart'; + + + +class Conversation extends StatefulWidget { + @override + _ConversationState createState() => _ConversationState(); +} + +class _ConversationState extends State { + static Random random = Random(); + String name = names[random.nextInt(10)]; + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + leading: IconButton( + icon: Icon( + Icons.keyboard_backspace, + ), + onPressed: ()=>Navigator.pop(context), + ), + titleSpacing: 0, + title: InkWell( + child: Row( + + children: [ + Padding( + padding: EdgeInsets.only(left: 0.0, right: 10.0), + child: CircleAvatar( + backgroundImage: AssetImage( + "assets/cm${random.nextInt(10)}.jpeg", + ), + ), + ), + + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SizedBox(height: 15.0), + Text( + name, + style: TextStyle( + fontWeight: FontWeight.bold, + fontSize: 14, + ), + ), + SizedBox(height: 5), + Text( + "Online", + style: TextStyle( + fontWeight: FontWeight.w400, + fontSize: 11, + ), + ), + ], + ), + ), + ], + ), + + onTap: (){}, + ), + actions: [ + IconButton( + icon: Icon( + Icons.more_horiz, + ), + onPressed: (){}, + ), + ], + ), + + + body: Container( + height: MediaQuery.of(context).size.height, + child: Column( + children: [ + SizedBox(height: 10), + Flexible( + child: ListView.builder( + padding: EdgeInsets.symmetric(horizontal: 10), + itemCount: conversation.length, + reverse: true, + itemBuilder: (BuildContext context, int index) { + Map msg = conversation[index]; + return ChatBubble( + message: msg['type'] == "text" + ?messages[random.nextInt(10)] + :"assets/cm${random.nextInt(10)}.jpeg", + username: msg["username"], + time: msg["time"], + type: msg['type'], + replyText: msg["replyText"], + isMe: msg['isMe'], + isGroup: msg['isGroup'], + isReply: msg['isReply'], + replyName: name, + ); + }, + ), + ), + + Align( + alignment: Alignment.bottomCenter, + child: Container( +// height: 140, + decoration: BoxDecoration( + color: Theme.of(context).primaryColor, + boxShadow: [ + BoxShadow( + color: Colors.grey[500], + offset: Offset(0.0, 1.5), + blurRadius: 4.0, + ), + ], + ), + constraints: BoxConstraints( + maxHeight: 190, + ), + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Flexible( + child: ListTile( + leading: IconButton( + icon: Icon( + Icons.add, + color: Theme.of(context).accentColor, + ), + onPressed: (){}, + ), + + contentPadding: EdgeInsets.all(0), + title: TextField( + style: TextStyle( + fontSize: 15.0, + color: Theme.of(context).textTheme.title.color, + ), + decoration: InputDecoration( + contentPadding: EdgeInsets.all(10.0), + border: OutlineInputBorder( + borderRadius: BorderRadius.circular(5.0), + borderSide: BorderSide(color: Theme.of(context).primaryColor,), + ), + enabledBorder: OutlineInputBorder( + borderSide: BorderSide(color: Theme.of(context).primaryColor,), + borderRadius: BorderRadius.circular(5.0), + ), + hintText: "Write your message...", + hintStyle: TextStyle( + fontSize: 15.0, + color: Theme.of(context).textTheme.title.color, + ), + ), + maxLines: null, + ), + + + trailing: IconButton( + icon: Icon( + Icons.mic, + color: Theme.of(context).accentColor, + ), + onPressed: (){}, + ), + ), + ), + ], + ), + ), + ), + + ], + ), + ), + + ); + } +} diff --git a/lib/screens/friends.dart b/lib/screens/friends.dart new file mode 100644 index 0000000..1804f31 --- /dev/null +++ b/lib/screens/friends.dart @@ -0,0 +1,92 @@ +import 'package:flutter/material.dart'; +import 'package:social_app_ui/util/data.dart'; + +class Friends extends StatefulWidget { + @override + _FriendsState createState() => _FriendsState(); +} + +class _FriendsState extends State { + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + leading: IconButton( + icon: Icon( + Icons.keyboard_backspace, + ), + onPressed: ()=>Navigator.pop(context), + ), + title: TextField( + decoration: InputDecoration.collapsed( + hintText: 'Search', + ), + ), + actions: [ + IconButton( + icon: Icon( + Icons.filter_list, + ), + onPressed: (){}, + ), + ], + ), + + + body: ListView.separated( + padding: EdgeInsets.all(10), + separatorBuilder: (BuildContext context, int index) { + return Align( + alignment: Alignment.centerRight, + child: Container( + height: 0.5, + width: MediaQuery.of(context).size.width / 1.3, + child: Divider(), + ), + ); + }, + itemCount: friends.length, + itemBuilder: (BuildContext context, int index) { + Map friend = friends[index]; + return Padding( + padding: const EdgeInsets.symmetric(horizontal: 8.0), + child: ListTile( + leading: CircleAvatar( + backgroundImage: AssetImage( + friend['dp'], + ), + radius: 25, + ), + + contentPadding: EdgeInsets.all(0), + title: Text(friend['name']), + subtitle: Text(friend['status']), + trailing: friend['isAccept'] + ? FlatButton( + child: Text( + "Unfollow", + style: TextStyle( + color: Colors.white, + ), + ), + color: Colors.grey, + onPressed: (){}, + ):FlatButton( + child: Text( + "Follow", + style: TextStyle( + color: Colors.white, + ), + ), + color: Theme.of(context).accentColor, + onPressed: (){}, + ), + onTap: (){}, + ), + ); + }, + + ), + ); + } +} diff --git a/lib/screens/home.dart b/lib/screens/home.dart new file mode 100644 index 0000000..f1cd6cc --- /dev/null +++ b/lib/screens/home.dart @@ -0,0 +1,50 @@ +import 'package:flutter/material.dart'; +import 'package:social_app_ui/util/data.dart'; +import 'package:social_app_ui/widgets/post_item.dart'; + +class Home extends StatefulWidget { + @override + _HomeState createState() => _HomeState(); +} + +class _HomeState extends State { + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: Text("Feeds"), + centerTitle: true, + actions: [ + IconButton( + icon: Icon( + Icons.filter_list, + ), + onPressed: (){}, + ), + ], + ), + + + body: ListView.builder( + padding: EdgeInsets.symmetric(horizontal: 20), + itemCount: posts.length, + itemBuilder: (BuildContext context, int index) { + + Map post = posts[index]; + return PostItem( + img: post['img'], + name: post['name'], + dp: post['dp'], + time: post['time'], + ); + }, + ), + floatingActionButton: FloatingActionButton( + child: Icon( + Icons.add, + ), + onPressed: (){}, + ), + ); + } +} diff --git a/lib/screens/main_screen.dart b/lib/screens/main_screen.dart new file mode 100644 index 0000000..9520206 --- /dev/null +++ b/lib/screens/main_screen.dart @@ -0,0 +1,114 @@ +import 'package:flutter/material.dart'; +import 'package:social_app_ui/screens/chats.dart'; +import 'package:social_app_ui/screens/friends.dart'; +import 'package:social_app_ui/screens/home.dart'; +import 'package:social_app_ui/screens/notifications.dart'; +import 'package:social_app_ui/screens/profile.dart'; +import 'package:social_app_ui/widgets/icon_badge.dart'; + +class MainScreen extends StatefulWidget { + @override + _MainScreenState createState() => _MainScreenState(); +} + +class _MainScreenState extends State { + PageController _pageController; + int _page = 2; + + @override + Widget build(BuildContext context) { + + return Scaffold( + body: PageView( + physics: NeverScrollableScrollPhysics(), + controller: _pageController, + onPageChanged: onPageChanged, + children: [ + Chats(), + Friends(), + Home(), + Notifications(), + Profile(), + ], + ), + + bottomNavigationBar: Theme( + data: Theme.of(context).copyWith( + // sets the background color of the `BottomNavigationBar` + canvasColor: Theme.of(context).primaryColor, + // sets the active color of the `BottomNavigationBar` if `Brightness` is light + primaryColor: Theme.of(context).accentColor, + textTheme: Theme + .of(context) + .textTheme + .copyWith(caption: TextStyle(color: Colors.grey[500]), + ), + ), + child: BottomNavigationBar( + type: BottomNavigationBarType.fixed, + items: [ + BottomNavigationBarItem( + icon: Icon( + Icons.message, + ), + title: Container(height: 0.0), + ), + + BottomNavigationBarItem( + icon: Icon( + Icons.group, + ), + title: Container(height: 0.0), + ), + + BottomNavigationBarItem( + icon: Icon( + Icons.home, + ), + title: Container(height: 0.0), + ), + + BottomNavigationBarItem( + icon: IconBadge( + icon: Icons.notifications, + ), + title: Container(height: 0.0), + ), + + BottomNavigationBarItem( + icon: Icon( + Icons.person, + ), + title: Container(height: 0.0), + ), + ], + onTap: navigationTapped, + currentIndex: _page, + ), + ), + + ); + } + + void navigationTapped(int page) { + _pageController.jumpToPage(page); + } + + @override + void initState() { + super.initState(); + _pageController = PageController(initialPage: 2); + } + + @override + void dispose() { + super.dispose(); + _pageController.dispose(); + } + + void onPageChanged(int page) { + setState(() { + this._page = page; + }); + } +} diff --git a/lib/screens/notifications.dart b/lib/screens/notifications.dart new file mode 100644 index 0000000..1787b2a --- /dev/null +++ b/lib/screens/notifications.dart @@ -0,0 +1,71 @@ +import 'package:flutter/material.dart'; +import 'package:social_app_ui/util/data.dart'; + +class Notifications extends StatefulWidget { + @override + _NotificationsState createState() => _NotificationsState(); +} + +class _NotificationsState extends State { + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: Text( + "Notifications", + ), + centerTitle: true, + actions: [ + IconButton( + icon: Icon( + Icons.filter_list, + ), + onPressed: (){}, + ), + ], + ), + + body: ListView.separated( + padding: EdgeInsets.all(10), + separatorBuilder: (BuildContext context, int index) { + return Align( + alignment: Alignment.centerRight, + child: Container( + height: 0.5, + width: MediaQuery.of(context).size.width / 1.3, + child: Divider(), + ), + ); + }, + itemCount: notifications.length, + itemBuilder: (BuildContext context, int index) { + Map notif = notifications[index]; + return Padding( + padding: const EdgeInsets.all(8.0), + child: ListTile( + leading: CircleAvatar( + backgroundImage: AssetImage( + notif['dp'], + ), + radius: 25, + ), + + contentPadding: EdgeInsets.all(0), + title: Text(notif['notif']), +// subtitle: Text(notif['notif']), + trailing: Text( + notif['time'], + style: TextStyle( + fontWeight: FontWeight.w300, + fontSize: 11, + ), + ), + onTap: (){}, + ), + ); + }, + + ), + ); + } +} diff --git a/lib/screens/profile.dart b/lib/screens/profile.dart new file mode 100644 index 0000000..7676d50 --- /dev/null +++ b/lib/screens/profile.dart @@ -0,0 +1,163 @@ +import 'dart:math'; + +import 'package:flutter/material.dart'; +import 'package:social_app_ui/util/data.dart'; + +class Profile extends StatefulWidget { + @override + _ProfileState createState() => _ProfileState(); +} + +class _ProfileState extends State { + static Random random = Random(); + @override + Widget build(BuildContext context) { + return Scaffold( + body: SingleChildScrollView( + padding: EdgeInsets.symmetric(horizontal: 10), + child: Container( + width: MediaQuery.of(context).size.width, + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + + SizedBox(height: 40), + CircleAvatar( + backgroundImage: AssetImage( + "assets/cm${random.nextInt(10)}.jpeg", + ), + radius: 50, + ), + SizedBox(height: 10), + Text( + names[random.nextInt(10)], + style: TextStyle( + fontWeight: FontWeight.bold, + fontSize: 22, + ), + ), + SizedBox(height: 3), + + Text( + "Status should be here", + style: TextStyle( + ), + ), + SizedBox(height: 20), + Row( + mainAxisSize: MainAxisSize.min, + children: [ + FlatButton( + child: Icon( + Icons.message, + color: Colors.white, + ), + color: Colors.grey, + onPressed: (){}, + ), + SizedBox(width: 10), + FlatButton( + child: Icon( + Icons.add, + color: Colors.white, + ), + color: Theme.of(context).accentColor, + onPressed: (){}, + ), + + ], + ), + + SizedBox(height: 40), + Padding( + padding: EdgeInsets.symmetric(horizontal: 50), + child: Row( +// mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Column( + children: [ + Text( + random.nextInt(10000).toString(), + style: TextStyle( + fontWeight: FontWeight.bold, + fontSize: 22, + ), + ), + SizedBox(height: 4), + Text( + "Posts", + style: TextStyle( + ), + ), + ], + ), + + Column( + children: [ + Text( + random.nextInt(10000).toString(), + style: TextStyle( + fontWeight: FontWeight.bold, + fontSize: 22, + ), + ), + SizedBox(height: 4), + Text( + "Friends", + style: TextStyle( + ), + ), + ], + ), + + Column( + children: [ + Text( + random.nextInt(10000).toString(), + style: TextStyle( + fontWeight: FontWeight.bold, + fontSize: 22, + ), + ), + SizedBox(height: 4), + Text( + "Groups", + style: TextStyle( + ), + ), + ], + ), + + ], + ), + ), + SizedBox(height: 20), + GridView.builder( + shrinkWrap: true, + physics: NeverScrollableScrollPhysics(), + primary: false, + padding: EdgeInsets.all(5), + itemCount: 15, + gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( + crossAxisCount: 3, + childAspectRatio: 200 / 200, + ), + itemBuilder: (BuildContext context, int index) { + return Padding( + padding: EdgeInsets.all(5.0), + child: Image.asset( + "assets/cm${random.nextInt(10)}.jpeg", + fit: BoxFit.cover, + ), + ); + }, + ), + ], + ), + ), + ), + ); + } +} diff --git a/lib/util/const.dart b/lib/util/const.dart new file mode 100644 index 0000000..9b11cb6 --- /dev/null +++ b/lib/util/const.dart @@ -0,0 +1,59 @@ +import 'package:flutter/material.dart'; +class Constants{ + + static String appName = "Social app"; + + //Colors for theme + static Color lightPrimary = Color(0xfffcfcff); + static Color darkPrimary = Colors.black; + static Color lightAccent = Colors.blue; + static Color darkAccent = Colors.blueAccent; + static Color lightBG = Color(0xfffcfcff); + static Color darkBG = Colors.black; + static Color badgeColor = Colors.red; + + static ThemeData lightTheme = ThemeData( + backgroundColor: lightBG, + primaryColor: lightPrimary, + accentColor: lightAccent, + cursorColor: lightAccent, + scaffoldBackgroundColor: lightBG, + appBarTheme: AppBarTheme( + elevation: 0, + textTheme: TextTheme( + title: TextStyle( + color: darkBG, + fontSize: 18.0, + fontWeight: FontWeight.w800, + ), + ), +// iconTheme: IconThemeData( +// color: lightAccent, +// ), + ), + ); + + static ThemeData darkTheme = ThemeData( + brightness: Brightness.dark, + backgroundColor: darkBG, + primaryColor: darkPrimary, + accentColor: darkAccent, + scaffoldBackgroundColor: darkBG, + cursorColor: darkAccent, + appBarTheme: AppBarTheme( + elevation: 0, + textTheme: TextTheme( + title: TextStyle( + color: lightBG, + fontSize: 18.0, + fontWeight: FontWeight.w800, + ), + ), +// iconTheme: IconThemeData( +// color: darkAccent, +// ), + ), + ); + + +} \ No newline at end of file diff --git a/lib/util/data.dart b/lib/util/data.dart new file mode 100644 index 0000000..0ed0b72 --- /dev/null +++ b/lib/util/data.dart @@ -0,0 +1,93 @@ +import 'dart:math'; +Random random = Random(); +List names = [ + "Ling Waldner", + "Gricelda Barrera", + "Lenard Milton", + "Bryant Marley", + "Rosalva Sadberry", + "Guadalupe Ratledge", + "Brandy Gazda", + "Kurt Toms", + "Rosario Gathright", + "Kim Delph", + "Stacy Christensen", +]; + +List messages = [ + "Hey, how are you doing?", + "Are you available tomorrow?", + "It's late. Go to bed!", + "This cracked me up 😂😂", + "Flutter Rocks!!!", + "The last rocket🚀", + "Griezmann signed for Barca❤️❤️", + "Will you be attending the meetup tomorrow?", + "Are you angry at something?", + "Let's make a UI serie.", + "Can i hear your voice?", +]; + +List notifs = [ + "${names[random.nextInt(10)]} and ${random.nextInt(100)} others liked your post", + "${names[random.nextInt(10)]} mentioned you in a comment", + "${names[random.nextInt(10)]} shared your post", + "${names[random.nextInt(10)]} commented on your post", + "${names[random.nextInt(10)]} replied to your comment", + "${names[random.nextInt(10)]} reacted to your comment", + "${names[random.nextInt(10)]} asked you to join a Group️", + "${names[random.nextInt(10)]} asked you to like a page", + "You have memories with ${names[random.nextInt(10)]}", + "${names[random.nextInt(10)]} Tagged you and ${random.nextInt(100)} others in a post", + "${names[random.nextInt(10)]} Sent you a friend request", +]; + +List notifications = List.generate(13, (index)=>{ + "name": names[random.nextInt(10)], + "dp": "assets/cm${random.nextInt(10)}.jpeg", + "time": "${random.nextInt(50)} min ago", + "notif": notifs[random.nextInt(10)] +}); + +List posts = List.generate(13, (index)=>{ + "name": names[random.nextInt(10)], + "dp": "assets/cm${random.nextInt(10)}.jpeg", + "time": "${random.nextInt(50)} min ago", + "img": "assets/cm${random.nextInt(10)}.jpeg" +}); + +List chats = List.generate(13, (index)=>{ + "name": names[random.nextInt(10)], + "dp": "assets/cm${random.nextInt(10)}.jpeg", + "msg": messages[random.nextInt(10)], + "counter": random.nextInt(20), + "time": "${random.nextInt(50)} min ago", + "isOnline": random.nextBool(), +}); + +List groups = List.generate(13, (index)=>{ + "name": "Group ${random.nextInt(20)}", + "dp": "assets/cm${random.nextInt(10)}.jpeg", + "msg": messages[random.nextInt(10)], + "counter": random.nextInt(20), + "time": "${random.nextInt(50)} min ago", + "isOnline": random.nextBool(), +}); + +List types = ["text", "image"]; +List conversation = List.generate(10, (index)=>{ + "username": "Group ${random.nextInt(20)}", + "time": "${random.nextInt(50)} min ago", + "type": types[random.nextInt(2)], + "replyText": messages[random.nextInt(10)], + "isMe": random.nextBool(), + "isGroup": false, + "isReply": random.nextBool(), +}); + +List friends = List.generate(13, (index)=>{ + "name": names[random.nextInt(10)], + "dp": "assets/cm${random.nextInt(10)}.jpeg", + "status": "Anything could be here", + "isAccept": random.nextBool(), +}); \ No newline at end of file diff --git a/lib/widgets/chat_bubble.dart b/lib/widgets/chat_bubble.dart new file mode 100644 index 0000000..e648ac9 --- /dev/null +++ b/lib/widgets/chat_bubble.dart @@ -0,0 +1,196 @@ +import 'dart:async'; +import 'dart:math'; +import 'package:flutter/material.dart'; + +class ChatBubble extends StatefulWidget { + + + final String message, time, username, type, replyText, replyName; + final bool isMe, isGroup, isReply; + + ChatBubble({ + @required this.message, + @required this.time, + @required this.isMe, + @required this.isGroup, + @required this.username, + @required this.type, + @required this.replyText, + @required this.isReply, + @required this.replyName}); + + + @override + _ChatBubbleState createState() => _ChatBubbleState(); +} + + +class _ChatBubbleState extends State { + + + List colors = Colors.primaries; + static Random random = Random(); + int rNum = random.nextInt(18); + + + + @override + Widget build(BuildContext context) { + final bg = widget.isMe ?Theme.of(context).accentColor : Colors.grey[200]; + final align = widget.isMe ? CrossAxisAlignment.end: CrossAxisAlignment.start; +// final icon = widget.delivered ? Icons.done_all : Icons.done; + final radius = widget.isMe + ? BorderRadius.only( + topLeft: Radius.circular(5.0), + bottomLeft: Radius.circular(5.0), + bottomRight: Radius.circular(10.0), + ) + : BorderRadius.only( + topRight: Radius.circular(5.0), + bottomLeft: Radius.circular(10.0), + bottomRight: Radius.circular(5.0), + ); + return Column( + crossAxisAlignment: align, + children: [ + Container( +// width: MediaQuery.of(context).size.width/2, + margin: const EdgeInsets.all(3.0), + padding: const EdgeInsets.all(5.0), + decoration: BoxDecoration( +// boxShadow: [ +// BoxShadow( +// blurRadius: .5, +// spreadRadius: 1.0, +// color: Colors.black.withOpacity(.12), +// ), +// ], + color: bg, + borderRadius: radius, + ), + constraints: BoxConstraints( + maxWidth: MediaQuery.of(context).size.width/1.3, + minWidth: 20.0, + ), + child: Column( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + widget.isMe?SizedBox(): + widget.isGroup?Padding( + padding: EdgeInsets.only(right: 48.0), + child: Container( + child: Text( + widget.username, + style: TextStyle( + fontSize: 13, + color: colors[rNum], + fontWeight: FontWeight.bold, + ), + textAlign: TextAlign.left, + ), + alignment: Alignment.centerLeft, + ), + ) + :SizedBox(), + widget.isGroup?widget.isMe?SizedBox():SizedBox(height: 5):SizedBox(), + + + widget.isReply?Container( + decoration: BoxDecoration( + color: !widget.isMe + ?Colors.grey[50] + :Colors.blue[50], + borderRadius: BorderRadius.all(Radius.circular(5.0)), + ), + constraints: BoxConstraints( + minHeight: 25, + maxHeight: 100, + minWidth: 80, + ), + child: Padding( + padding: EdgeInsets.all(5), + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + + Container( + child: Text( + widget.isMe?"You":widget.replyName, + style: TextStyle( + color: Theme.of(context).accentColor, + fontWeight: FontWeight.bold, + fontSize: 12, + ), + maxLines: 1, + textAlign: TextAlign.left, + ), + alignment: Alignment.centerLeft, + ), + + SizedBox(height: 2), + Container( + child:Text( + widget.replyText, + style: TextStyle( + color: Colors.black, + fontSize: 10, + ), + maxLines: 2, + ), + alignment: Alignment.centerLeft, + ), + + ], + ), + ), + ):SizedBox(width: 2), + + widget.isReply?SizedBox(height: 5):SizedBox(), + Padding( + padding: EdgeInsets.all(widget.type == "text" ? 5:0), + child: widget.type == "text"? !widget.isReply + ?Text( + widget.message, + style: TextStyle( + color: widget.isMe + ?Colors.white + :Colors.black, + ), + ) + :Container( + alignment: Alignment.centerLeft, + child: Text( + widget.message, + style: TextStyle( + color: widget.isMe + ?Colors.white + :Colors.black, + ), + ), + ):Image.asset( + "${widget.message}", + height: 130, + width: MediaQuery.of(context).size.width/1.3, + fit: BoxFit.cover, + ), + ), + ], + ), + ), + + Padding( + padding: widget.isMe + ? EdgeInsets.only(right: 10, bottom: 10.0,) + :EdgeInsets.only(left: 10, bottom: 10.0,), + child: Text(widget.time, + style: TextStyle( + color: Colors.black, + fontSize: 10.0, + ), + ), + ), + ], + ); + } +} diff --git a/lib/widgets/chat_item.dart b/lib/widgets/chat_item.dart new file mode 100644 index 0000000..5583088 --- /dev/null +++ b/lib/widgets/chat_item.dart @@ -0,0 +1,130 @@ +import 'package:flutter/material.dart'; +import 'package:social_app_ui/screens/conversation.dart'; + + +class ChatItem extends StatefulWidget { + + final String dp; + final String name; + final String time; + final String msg; + final bool isOnline; + final int counter; + + ChatItem({ + Key key, + @required this.dp, + @required this.name, + @required this.time, + @required this.msg, + @required this.isOnline, + @required this.counter, + }) : super(key: key); + + @override + _ChatItemState createState() => _ChatItemState(); +} + +class _ChatItemState extends State { + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.symmetric(horizontal: 8.0), + child: ListTile( + contentPadding: EdgeInsets.all(0), + leading: Stack( + children: [ + CircleAvatar( + backgroundImage: AssetImage( + "${widget.dp}", + ), + radius: 25, + ), + + Positioned( + bottom: 0.0, + left: 6.0, + child: Container( + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(6), + ), + height: 11, + width: 11, + child: Center( + child: Container( + decoration: BoxDecoration( + color: widget.isOnline + ?Colors.greenAccent + :Colors.grey, + borderRadius: BorderRadius.circular(6), + ), + height: 7, + width: 7, + ), + ), + ), + ), + + ], + ), + + title: Text( + "${widget.name}", + style: TextStyle( + fontWeight: FontWeight.bold, + ), + ), + subtitle: Text("${widget.msg}"), + trailing: Column( + crossAxisAlignment: CrossAxisAlignment.end, + children: [ + SizedBox(height: 10), + Text( + "${widget.time}", + style: TextStyle( + fontWeight: FontWeight.w300, + fontSize: 11, + ), + ), + + SizedBox(height: 5), + widget.counter == 0 + ?SizedBox() + :Container( + padding: EdgeInsets.all(1), + decoration: BoxDecoration( + color: Colors.red, + borderRadius: BorderRadius.circular(6), + ), + constraints: BoxConstraints( + minWidth: 11, + minHeight: 11, + ), + child: Padding( + padding: EdgeInsets.only(top: 1, left: 5, right: 5), + child:Text( + "${widget.counter}", + style: TextStyle( + color: Colors.white, + fontSize: 10, + ), + textAlign: TextAlign.center, + ), + ), + ), + ], + ), + onTap: (){ + Navigator.of(context, rootNavigator: true).push( + MaterialPageRoute( + builder: (BuildContext context){ + return Conversation(); + }, + ), + ); + }, + ), + ); + } +} diff --git a/lib/widgets/icon_badge.dart b/lib/widgets/icon_badge.dart new file mode 100644 index 0000000..085a812 --- /dev/null +++ b/lib/widgets/icon_badge.dart @@ -0,0 +1,62 @@ +import 'package:flutter/material.dart'; + +class IconBadge extends StatefulWidget { + + final IconData icon; + final double size; + final Color color; + + IconBadge({Key key, @required this.icon, this.size, this.color}) + : super(key: key); + + @override + _IconBadgeState createState() => _IconBadgeState(); +} + +class _IconBadgeState extends State { + + int counter = 0; + + @override + void initState() { + super.initState(); + } + + @override + Widget build(BuildContext context) { + return Stack( + children: [ + Icon( + widget.icon, + size: widget.size, + color: widget.color ?? null, + ), + Positioned( + right: 0.0, + child: Container( + padding: EdgeInsets.all(1), + decoration: BoxDecoration( + color: Colors.red, + borderRadius: BorderRadius.circular(6), + ), + constraints: BoxConstraints( + minWidth: 11, + minHeight: 11, + ), + child: Padding( + padding: EdgeInsets.only(top: 1), + child:Text( + '16', + style: TextStyle( + color: Colors.white, + fontSize: 9, + ), + textAlign: TextAlign.center, + ), + ), + ), + ), + ], + ); + } +} diff --git a/lib/widgets/post_item.dart b/lib/widgets/post_item.dart new file mode 100644 index 0000000..6085476 --- /dev/null +++ b/lib/widgets/post_item.dart @@ -0,0 +1,65 @@ +import 'package:flutter/material.dart'; + +class PostItem extends StatefulWidget { + final String dp; + final String name; + final String time; + final String img; + + + PostItem({ + Key key, + @required this.dp, + @required this.name, + @required this.time, + @required this.img + }) : super(key: key); + @override + _PostItemState createState() => _PostItemState(); +} + +class _PostItemState extends State { + @override + Widget build(BuildContext context) { + return Padding( + padding: EdgeInsets.symmetric(vertical: 5), + child: InkWell( + child: Column( + children: [ + ListTile( + leading: CircleAvatar( + backgroundImage: AssetImage( + "${widget.dp}", + ), + ), + + contentPadding: EdgeInsets.all(0), + title: Text( + "${widget.name}", + style: TextStyle( + fontWeight: FontWeight.bold, + ), + ), + trailing: Text( + "${widget.time}", + style: TextStyle( + fontWeight: FontWeight.w300, + fontSize: 11, + ), + ), + ), + + Image.asset( + "${widget.img}", + height: 170, + width: MediaQuery.of(context).size.width, + fit: BoxFit.cover, + ), + + ], + ), + onTap: (){}, + ), + ); + } +} diff --git a/pubspec.lock b/pubspec.lock new file mode 100644 index 0000000..f6b0bbd --- /dev/null +++ b/pubspec.lock @@ -0,0 +1,146 @@ +# Generated by pub +# See https://www.dartlang.org/tools/pub/glossary#lockfile +packages: + async: + dependency: transitive + description: + name: async + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.0" + boolean_selector: + dependency: transitive + description: + name: boolean_selector + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.4" + charcode: + dependency: transitive + description: + name: charcode + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.2" + collection: + dependency: transitive + description: + name: collection + url: "https://pub.dartlang.org" + source: hosted + version: "1.14.11" + cupertino_icons: + dependency: "direct main" + description: + name: cupertino_icons + url: "https://pub.dartlang.org" + source: hosted + version: "0.1.2" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + matcher: + dependency: transitive + description: + name: matcher + url: "https://pub.dartlang.org" + source: hosted + version: "0.12.5" + meta: + dependency: transitive + description: + name: meta + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.6" + path: + dependency: transitive + description: + name: path + url: "https://pub.dartlang.org" + source: hosted + version: "1.6.2" + pedantic: + dependency: transitive + description: + name: pedantic + url: "https://pub.dartlang.org" + source: hosted + version: "1.5.0" + quiver: + dependency: transitive + description: + name: quiver + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.2" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_span: + dependency: transitive + description: + name: source_span + url: "https://pub.dartlang.org" + source: hosted + version: "1.5.5" + stack_trace: + dependency: transitive + description: + name: stack_trace + url: "https://pub.dartlang.org" + source: hosted + version: "1.9.3" + stream_channel: + dependency: transitive + description: + name: stream_channel + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.0" + string_scanner: + dependency: transitive + description: + name: string_scanner + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.4" + term_glyph: + dependency: transitive + description: + name: term_glyph + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.0" + test_api: + dependency: transitive + description: + name: test_api + url: "https://pub.dartlang.org" + source: hosted + version: "0.2.4" + typed_data: + dependency: transitive + description: + name: typed_data + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.6" + vector_math: + dependency: transitive + description: + name: vector_math + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.8" +sdks: + dart: ">=2.2.0 <3.0.0" diff --git a/pubspec.yaml b/pubspec.yaml new file mode 100644 index 0000000..26eef10 --- /dev/null +++ b/pubspec.yaml @@ -0,0 +1,80 @@ +name: social_app_ui +description: A Social app UI made with flutter. + +# 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.1.0 <3.0.0" + +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: ^0.1.2 + +dev_dependencies: + flutter_test: + sdk: flutter + + +# For information on the generic Dart part of this file, see the +# following page: https://www.dartlang.org/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: + - assets/cm1.jpeg + - assets/cm2.jpeg + - assets/cm3.jpeg + - assets/cm4.jpeg + - assets/cm5.jpeg + - assets/cm6.jpeg + - assets/cm7.jpeg + - assets/cm8.jpeg + - assets/cm9.jpeg + - assets/cm0.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: 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/ss/1.png b/ss/1.png new file mode 100644 index 0000000..cc4ccd3 Binary files /dev/null and b/ss/1.png differ diff --git a/ss/10.png b/ss/10.png new file mode 100644 index 0000000..98fdfcc Binary files /dev/null and b/ss/10.png differ diff --git a/ss/11.png b/ss/11.png new file mode 100644 index 0000000..6a279f3 Binary files /dev/null and b/ss/11.png differ diff --git a/ss/12.png b/ss/12.png new file mode 100644 index 0000000..7044fb1 Binary files /dev/null and b/ss/12.png differ diff --git a/ss/13.png b/ss/13.png new file mode 100644 index 0000000..15ec105 Binary files /dev/null and b/ss/13.png differ diff --git a/ss/14.png b/ss/14.png new file mode 100644 index 0000000..67590e1 Binary files /dev/null and b/ss/14.png differ diff --git a/ss/2.png b/ss/2.png new file mode 100644 index 0000000..9f3b559 Binary files /dev/null and b/ss/2.png differ diff --git a/ss/3.png b/ss/3.png new file mode 100644 index 0000000..21aa0ab Binary files /dev/null and b/ss/3.png differ diff --git a/ss/4.png b/ss/4.png new file mode 100644 index 0000000..f030f45 Binary files /dev/null and b/ss/4.png differ diff --git a/ss/5.png b/ss/5.png new file mode 100644 index 0000000..1126dc0 Binary files /dev/null and b/ss/5.png differ diff --git a/ss/6.png b/ss/6.png new file mode 100644 index 0000000..0bf9bdc Binary files /dev/null and b/ss/6.png differ diff --git a/ss/7.png b/ss/7.png new file mode 100644 index 0000000..f6c56f8 Binary files /dev/null and b/ss/7.png differ diff --git a/ss/8.png b/ss/8.png new file mode 100644 index 0000000..e0e415a Binary files /dev/null and b/ss/8.png differ diff --git a/ss/9.png b/ss/9.png new file mode 100644 index 0000000..5c3b648 Binary files /dev/null and b/ss/9.png differ