├── android ├── gradle.properties ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── drawable │ │ │ │ │ └── launch_background.xml │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── flutter_social │ │ │ │ │ └── MainActivity.java │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── settings.gradle └── build.gradle ├── ios ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner │ ├── AppDelegate.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ ├── main.m │ ├── AppDelegate.m │ ├── Info.plist │ └── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard ├── Runner.xcworkspace │ └── contents.xcworkspacedata └── Runner.xcodeproj │ ├── project.xcworkspace │ └── contents.xcworkspacedata │ ├── xcshareddata │ └── xcschemes │ │ └── Runner.xcscheme │ └── project.pbxproj ├── screenshots ├── 1.png ├── 10.png ├── 2.png ├── 3.png ├── 4.png ├── 5.png ├── 6.png ├── 7.png ├── 8.png ├── 9.png └── banner.png ├── assets ├── images │ ├── empty.png │ ├── logo.png │ ├── man1.jpg │ ├── man2.jpg │ ├── man3.jpg │ ├── man4.jpg │ ├── man5.jpg │ ├── woman1.jpg │ ├── woman2.jpg │ ├── woman3.jpg │ ├── woman4.jpg │ ├── woman5.jpg │ ├── home_page.png │ ├── placeholder.jpg │ └── post_banner.jpg └── fonts │ ├── Barlow-Bold.ttf │ ├── Barlow-Regular.ttf │ ├── Barlow-SemiBold.ttf │ ├── Quicksand-Bold.ttf │ ├── Quicksand-Medium.ttf │ ├── Quicksand-Regular.ttf │ └── Quicksand-SemiBold.ttf ├── .metadata ├── lib ├── _routing │ ├── routes.dart │ └── router.dart ├── main.dart ├── models │ ├── message.dart │ ├── chat.dart │ ├── feed.dart │ └── user.dart ├── theme.dart ├── app.dart ├── utils │ ├── colors.dart │ └── utils.dart ├── views │ ├── tabs │ │ ├── feeds.dart │ │ ├── notifications.dart │ │ ├── profile.dart │ │ └── chats.dart │ ├── home.dart │ ├── landing.dart │ ├── chat_details.dart │ ├── reset_password.dart │ ├── register.dart │ ├── login.dart │ └── user_details.dart └── widgets │ ├── chat_bubble.dart │ ├── feed_card2.dart │ ├── feed_card3.dart │ └── feed_card1.dart ├── LICENSE ├── README.md ├── .gitignore ├── pubspec.yaml └── pubspec.lock /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /screenshots/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/screenshots/1.png -------------------------------------------------------------------------------- /screenshots/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/screenshots/10.png -------------------------------------------------------------------------------- /screenshots/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/screenshots/2.png -------------------------------------------------------------------------------- /screenshots/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/screenshots/3.png -------------------------------------------------------------------------------- /screenshots/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/screenshots/4.png -------------------------------------------------------------------------------- /screenshots/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/screenshots/5.png -------------------------------------------------------------------------------- /screenshots/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/screenshots/6.png -------------------------------------------------------------------------------- /screenshots/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/screenshots/7.png -------------------------------------------------------------------------------- /screenshots/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/screenshots/8.png -------------------------------------------------------------------------------- /screenshots/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/screenshots/9.png -------------------------------------------------------------------------------- /assets/images/empty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/assets/images/empty.png -------------------------------------------------------------------------------- /assets/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/assets/images/logo.png -------------------------------------------------------------------------------- /assets/images/man1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/assets/images/man1.jpg -------------------------------------------------------------------------------- /assets/images/man2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/assets/images/man2.jpg -------------------------------------------------------------------------------- /assets/images/man3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/assets/images/man3.jpg -------------------------------------------------------------------------------- /assets/images/man4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/assets/images/man4.jpg -------------------------------------------------------------------------------- /assets/images/man5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/assets/images/man5.jpg -------------------------------------------------------------------------------- /screenshots/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/screenshots/banner.png -------------------------------------------------------------------------------- /assets/images/woman1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/assets/images/woman1.jpg -------------------------------------------------------------------------------- /assets/images/woman2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/assets/images/woman2.jpg -------------------------------------------------------------------------------- /assets/images/woman3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/assets/images/woman3.jpg -------------------------------------------------------------------------------- /assets/images/woman4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/assets/images/woman4.jpg -------------------------------------------------------------------------------- /assets/images/woman5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/assets/images/woman5.jpg -------------------------------------------------------------------------------- /assets/fonts/Barlow-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/assets/fonts/Barlow-Bold.ttf -------------------------------------------------------------------------------- /assets/images/home_page.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/assets/images/home_page.png -------------------------------------------------------------------------------- /assets/images/placeholder.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/assets/images/placeholder.jpg -------------------------------------------------------------------------------- /assets/images/post_banner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/assets/images/post_banner.jpg -------------------------------------------------------------------------------- /assets/fonts/Barlow-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/assets/fonts/Barlow-Regular.ttf -------------------------------------------------------------------------------- /assets/fonts/Barlow-SemiBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/assets/fonts/Barlow-SemiBold.ttf -------------------------------------------------------------------------------- /assets/fonts/Quicksand-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/assets/fonts/Quicksand-Bold.ttf -------------------------------------------------------------------------------- /assets/fonts/Quicksand-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/assets/fonts/Quicksand-Medium.ttf -------------------------------------------------------------------------------- /assets/fonts/Quicksand-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/assets/fonts/Quicksand-Regular.ttf -------------------------------------------------------------------------------- /assets/fonts/Quicksand-SemiBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/assets/fonts/Quicksand-SemiBold.ttf -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emrade/flutter-social/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char* argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip 7 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 7a4c33425ddd78c54aba07d86f3f9a4a0051769b 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /lib/_routing/routes.dart: -------------------------------------------------------------------------------- 1 | const String landingViewRoute = '/'; 2 | 3 | const String loginViewRoute = 'login'; 4 | const String registerViewRoute = 'register'; 5 | const String resetPasswordViewRoute = 'reset_password'; 6 | 7 | const String homeViewRoute = 'home'; 8 | const String chatDetailsViewRoute = 'chat_details'; 9 | const String userDetailsViewRoute = 'user_details'; -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/services.dart'; 3 | import 'package:flutter_social/app.dart'; 4 | import 'package:flutter_social/utils/colors.dart'; 5 | 6 | void main() { 7 | SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle( 8 | statusBarColor: primaryDark 9 | )); 10 | runApp(App()); 11 | } 12 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/example/flutter_social/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.flutter_social; 2 | 3 | import android.os.Bundle; 4 | import io.flutter.app.FlutterActivity; 5 | import io.flutter.plugins.GeneratedPluginRegistrant; 6 | 7 | public class MainActivity extends FlutterActivity { 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | GeneratedPluginRegistrant.registerWith(this); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "GeneratedPluginRegistrant.h" 3 | 4 | @implementation AppDelegate 5 | 6 | - (BOOL)application:(UIApplication *)application 7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 8 | [GeneratedPluginRegistrant registerWithRegistry:self]; 9 | // Override point for customization after application launch. 10 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 11 | } 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /lib/models/message.dart: -------------------------------------------------------------------------------- 1 | class Message { 2 | bool fromMe; 3 | String body; 4 | 5 | Message(this.body, this.fromMe); 6 | } 7 | 8 | List messages = [ 9 | Message("Hey! How's it going? 😀", false), 10 | Message("Great thanks, i am looking forward to meeting you tomorrow 😍", true), 11 | Message("Me too. Were you able to reach Frank?", false), 12 | Message("Not yet", false), 13 | Message("I'm sure he is asleep 😴", false), 14 | Message("I was thinking the exact same thing!", true), 15 | ]; -------------------------------------------------------------------------------- /lib/theme.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_social/utils/colors.dart'; 3 | import 'package:flutter_social/utils/utils.dart'; 4 | 5 | ThemeData buildThemeData(){ 6 | final baseTheme = ThemeData(fontFamily: AvailableFonts.primaryFont); 7 | 8 | // return baseTheme.copyWith(); 9 | return baseTheme.copyWith( 10 | primaryColor: primaryColor, 11 | primaryColorDark: primaryDark, 12 | primaryColorLight: primaryLight, 13 | accentColor: secondaryColor, 14 | ); 15 | } -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /lib/app.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_social/_routing/routes.dart'; 3 | import 'package:flutter_social/_routing/router.dart' as router; 4 | import 'package:flutter_social/theme.dart'; 5 | 6 | class App extends StatelessWidget { 7 | @override 8 | Widget build(BuildContext context) { 9 | return MaterialApp( 10 | title: 'Flutter Social', 11 | debugShowCheckedModeBanner: false, 12 | theme: buildThemeData(), 13 | onGenerateRoute: router.generateRoute, 14 | initialRoute: landingViewRoute, 15 | ); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | google() 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.2.1' 9 | } 10 | } 11 | 12 | allprojects { 13 | repositories { 14 | google() 15 | jcenter() 16 | } 17 | } 18 | 19 | rootProject.buildDir = '../build' 20 | subprojects { 21 | project.buildDir = "${rootProject.buildDir}/${project.name}" 22 | } 23 | subprojects { 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /lib/models/chat.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_social/models/user.dart'; 2 | 3 | class Chat { 4 | int id, userId, unreadCount; 5 | String userName, userImage; 6 | String message; 7 | 8 | Chat(this.id, this.userId, this.userName, this.userImage, this.unreadCount, this.message); 9 | } 10 | 11 | List chats = [ 12 | Chat(1, users[1].id, users[1].name, users[1].photo, 3, "Hey! How's it going?"), 13 | Chat(2, users[2].id, users[2].name, users[2].photo, 1, "What kind of music do you like?"), 14 | Chat(3, users[3].id, users[3].name, users[3].photo, 0, "Sound good to me."), 15 | Chat(4, users[4].id, users[4].name, users[4].photo, 0, "Sure, see you on Saturday."), 16 | ]; -------------------------------------------------------------------------------- /lib/models/feed.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_social/models/user.dart'; 2 | import 'package:flutter_social/utils/utils.dart'; 3 | 4 | class Feed { 5 | int id, userId; 6 | String createdAt; 7 | String description = 8 | 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum id neque libero. Donec finibus sem viverra.'; 9 | String bannerImg = AvailableImages.postBanner['assetPath']; 10 | String userName, userImage; 11 | 12 | Feed(this.id, this.createdAt, this.userId, this.userName, this.userImage); 13 | } 14 | 15 | final List feeds = [ 16 | Feed(1, '19 Aug', users[0].id, users[0].name, users[0].photo), 17 | Feed(2, '20 Aug', users[1].id, users[1].name, users[1].photo), 18 | Feed(3, '22 Aug', users[2].id, users[2].name, users[2].photo), 19 | Feed(4, '1 Sept', users[3].id,users[3].name, users[3].photo), 20 | ]; 21 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /lib/utils/colors.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'dart:ui'; 3 | 4 | const primaryColor = const Color(0xFFfbab66); 5 | const primaryLight = const Color(0xFFFF9F59); 6 | const primaryDark = const Color(0xFFFF9F59); 7 | 8 | const secondaryColor = const Color(0xFFFF9F59); 9 | const secondaryLight = const Color(0xFFFF9F59); 10 | const secondaryDark = const Color(0xFFFF9F59); 11 | 12 | const Color gradientStart = const Color(0xFFfbab66); 13 | const Color gradientEnd = const Color(0xFFf7418c); 14 | 15 | const primaryGradient = const LinearGradient( 16 | colors: const [gradientStart, gradientEnd], 17 | stops: const [0.0, 1.0], 18 | begin: Alignment.topCenter, 19 | end: Alignment.bottomCenter, 20 | ); 21 | 22 | const chatBubbleGradient = const LinearGradient( 23 | colors: const [Color(0xFFFD60A3), Color(0xFFFF8961)], 24 | begin: Alignment.topRight, 25 | end: Alignment.bottomLeft, 26 | ); 27 | 28 | const chatBubbleGradient2 = const LinearGradient( 29 | colors: const [Color(0xFFf4e3e3), Color(0xFFf4e3e3)], 30 | begin: Alignment.topRight, 31 | end: Alignment.bottomLeft, 32 | ); 33 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Emmanuel Fache 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Flutter Social (Heart String) - A UI for a Social Media App 2 | 3 | A Flutter UI implementation of a social media application 4 | 5 | 6 | Star this repo if you like what you see. 7 | 8 | ## 📸 Screenshots 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | ## Author(s) 20 | **Emmanuel Fache** 21 | 22 | ## Getting Started 23 | 24 | **Note**: Make sure your Flutter environment is setup. 25 | #### Installation 26 | 27 | In the command terminal, run the following commands: 28 | 29 | $ git clone https://github.com/emrade/flutter-social.git flutter_social 30 | $ cd flutter_social/ 31 | $ flutter packages get 32 | $ flutter run 33 | 34 | ##### Check out Flutter’s online [documentation](http://flutter.io/) for help getting started with your Flutter project. 35 | -------------------------------------------------------------------------------- /lib/models/user.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_social/utils/utils.dart'; 2 | 3 | class User { 4 | int id; 5 | String name; 6 | String photo; 7 | String location = 'Seattle, USA.'; 8 | String gender; 9 | int age; 10 | 11 | User(this.id, this.name, this.photo, this.gender, this.age); 12 | } 13 | 14 | 15 | // Names generated at http://random-name-generator.info/ 16 | final List users = [ 17 | User(1, 'Matt Maxwell', AvailableImages.man1['assetPath'], 'M', 27), 18 | User(2, 'Maria Perez', AvailableImages.woman1['assetPath'], 'F', 24), 19 | User(3, 'Craig Jordan', AvailableImages.man2['assetPath'], 'M', 28), 20 | User(4, 'Charlotte Mckenzie', AvailableImages.woman2['assetPath'], 'F', 23), 21 | User(5, 'Rita Pena', AvailableImages.woman3['assetPath'], 'F', 25), 22 | User(6, 'Robin Mcguire', AvailableImages.man3['assetPath'], 'M', 29), 23 | User(7, 'Angelina Love', AvailableImages.woman4['assetPath'], 'F', 22), 24 | User(8, 'Louis Diaz', AvailableImages.man4['assetPath'], 'M', 23), 25 | User(9, 'Kyle Poole', AvailableImages.man5['assetPath'], 'M', 25), 26 | User(10, 'Brenda Watkins', AvailableImages.woman5['assetPath'], 'F', 26), 27 | ]; 28 | 29 | final List userHobbies = [ 30 | "Dancing", "Hiking", "Singing", "Reading", "Fishing" 31 | ]; 32 | -------------------------------------------------------------------------------- /lib/_routing/router.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_social/_routing/routes.dart'; 3 | import 'package:flutter_social/views/chat_details.dart'; 4 | import 'package:flutter_social/views/home.dart'; 5 | import 'package:flutter_social/views/landing.dart'; 6 | import 'package:flutter_social/views/login.dart'; 7 | import 'package:flutter_social/views/register.dart'; 8 | import 'package:flutter_social/views/reset_password.dart'; 9 | import 'package:flutter_social/views/user_details.dart'; 10 | 11 | Route generateRoute(RouteSettings settings) { 12 | switch (settings.name) { 13 | case landingViewRoute: 14 | return MaterialPageRoute(builder: (context) => LandingPage()); 15 | case homeViewRoute: 16 | return MaterialPageRoute(builder: (context) => HomePage()); 17 | case loginViewRoute: 18 | return MaterialPageRoute(builder: (context) => LoginPage()); 19 | case registerViewRoute: 20 | return MaterialPageRoute(builder: (context) => RegisterPage()); 21 | case resetPasswordViewRoute: 22 | return MaterialPageRoute(builder: (context) => ResetPasswordPage()); 23 | case chatDetailsViewRoute: 24 | return MaterialPageRoute(builder: (context) => ChatDetailsPage(userId: settings.arguments)); 25 | case userDetailsViewRoute: 26 | return MaterialPageRoute(builder: (context) => UserDetailsPage(userId: settings.arguments)); 27 | break; 28 | default: 29 | return MaterialPageRoute(builder: (context) => LandingPage()); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # Visual Studio Code related 19 | .vscode/ 20 | 21 | # Flutter/Dart/Pub related 22 | **/doc/api/ 23 | .dart_tool/ 24 | .flutter-plugins 25 | .packages 26 | .pub-cache/ 27 | .pub/ 28 | /build/ 29 | 30 | # Android related 31 | **/android/**/gradle-wrapper.jar 32 | **/android/.gradle 33 | **/android/captures/ 34 | **/android/gradlew 35 | **/android/gradlew.bat 36 | **/android/local.properties 37 | **/android/**/GeneratedPluginRegistrant.java 38 | 39 | # iOS/XCode related 40 | **/ios/**/*.mode1v3 41 | **/ios/**/*.mode2v3 42 | **/ios/**/*.moved-aside 43 | **/ios/**/*.pbxuser 44 | **/ios/**/*.perspectivev3 45 | **/ios/**/*sync/ 46 | **/ios/**/.sconsign.dblite 47 | **/ios/**/.tags* 48 | **/ios/**/.vagrant/ 49 | **/ios/**/DerivedData/ 50 | **/ios/**/Icon? 51 | **/ios/**/Pods/ 52 | **/ios/**/.symlinks/ 53 | **/ios/**/profile 54 | **/ios/**/xcuserdata 55 | **/ios/.generated/ 56 | **/ios/Flutter/App.framework 57 | **/ios/Flutter/Flutter.framework 58 | **/ios/Flutter/Generated.xcconfig 59 | **/ios/Flutter/app.flx 60 | **/ios/Flutter/app.zip 61 | **/ios/Flutter/flutter_assets/ 62 | **/ios/ServiceDefinitions.json 63 | **/ios/Runner/GeneratedPluginRegistrant.* 64 | 65 | # Exceptions to above rules. 66 | !**/ios/**/default.mode1v3 67 | !**/ios/**/default.mode2v3 68 | !**/ios/**/default.pbxuser 69 | !**/ios/**/default.perspectivev3 70 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 71 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | flutter_social 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 9 | 13 | 20 | 24 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /lib/views/tabs/feeds.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_social/models/feed.dart'; 3 | import 'package:flutter_social/widgets/feed_card1.dart'; 4 | import 'package:flutter_social/widgets/feed_card2.dart'; 5 | import 'package:flutter_social/widgets/feed_card3.dart'; 6 | 7 | class FeedsPage extends StatelessWidget { 8 | @override 9 | Widget build(BuildContext context) { 10 | 11 | final pageTitle = Padding( 12 | padding: EdgeInsets.only(top: 1.0, bottom: 30.0), 13 | child: Text( 14 | "Feed", 15 | style: TextStyle( 16 | fontWeight: FontWeight.bold, 17 | color: Colors.black, 18 | fontSize: 40.0, 19 | ), 20 | ), 21 | ); 22 | 23 | return Scaffold( 24 | body: SingleChildScrollView( 25 | child: Container( 26 | color: Colors.grey.withOpacity(0.1), 27 | padding: EdgeInsets.only(top: 40.0), 28 | width: MediaQuery.of(context).size.width, 29 | child: Column( 30 | crossAxisAlignment: CrossAxisAlignment.start, 31 | children: [ 32 | Container( 33 | padding: EdgeInsets.only(top: 30.0, left: 30.0, right: 30.0, bottom: 30.0), 34 | child: Column( 35 | crossAxisAlignment: CrossAxisAlignment.start, 36 | children: [ 37 | pageTitle, 38 | FeedCard1(feed: feeds[0]), 39 | SizedBox( 40 | height: 10.0, 41 | ), 42 | FeedCard2( 43 | feed: feeds[1], 44 | ), 45 | SizedBox( 46 | height: 10.0, 47 | ), 48 | FeedCard3( 49 | feed: feeds[2], 50 | ), 51 | ], 52 | ), 53 | ) 54 | ], 55 | ), 56 | ), 57 | ), 58 | ); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /lib/widgets/chat_bubble.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_social/models/message.dart'; 3 | import 'package:flutter_social/utils/colors.dart'; 4 | 5 | class ChatBubble extends StatelessWidget { 6 | final Message message; 7 | 8 | const ChatBubble({Key key, this.message}) : super(key: key); 9 | @override 10 | Widget build(BuildContext context) { 11 | final messageBody = message.body; 12 | final fromMe = message.fromMe; 13 | return Align( 14 | alignment: fromMe ? Alignment.centerRight : Alignment.centerLeft, 15 | child: Container( 16 | padding: EdgeInsets.all(15.0), 17 | margin: fromMe 18 | ? EdgeInsets.only( 19 | right: 20.0, 20 | bottom: 20.0, 21 | ) 22 | : EdgeInsets.only( 23 | left: 20.0, 24 | bottom: 20.0, 25 | ), 26 | decoration: BoxDecoration( 27 | gradient: fromMe ? chatBubbleGradient : chatBubbleGradient2, 28 | borderRadius: fromMe 29 | ? BorderRadius.only( 30 | topLeft: Radius.circular(12.0), 31 | bottomLeft: Radius.circular(12.0), 32 | topRight: Radius.circular(12.0), 33 | ) 34 | : BorderRadius.only( 35 | topRight: Radius.circular(12.0), 36 | topLeft: Radius.circular(12.0), 37 | bottomRight: Radius.circular(12.0), 38 | ), 39 | ), 40 | constraints: BoxConstraints( 41 | minHeight: 20.0, 42 | minWidth: 30.0, 43 | maxWidth: MediaQuery.of(context).size.width * 0.7, 44 | ), 45 | child: Center( 46 | child: Text( 47 | messageBody, 48 | style: TextStyle( 49 | color: fromMe ? Colors.white70 : Colors.black, 50 | fontSize: 20.0, 51 | fontWeight: FontWeight.w600, 52 | ), 53 | ), 54 | ), 55 | ), 56 | ); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 26 | 27 | android { 28 | compileSdkVersion 28 29 | 30 | lintOptions { 31 | disable 'InvalidPackage' 32 | } 33 | 34 | defaultConfig { 35 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 36 | applicationId "com.example.flutter_social" 37 | minSdkVersion 16 38 | targetSdkVersion 28 39 | versionCode flutterVersionCode.toInteger() 40 | versionName flutterVersionName 41 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 42 | } 43 | 44 | buildTypes { 45 | release { 46 | // TODO: Add your own signing config for the release build. 47 | // Signing with the debug keys for now, so `flutter run --release` works. 48 | signingConfig signingConfigs.debug 49 | } 50 | } 51 | } 52 | 53 | flutter { 54 | source '../..' 55 | } 56 | 57 | dependencies { 58 | testImplementation 'junit:junit:4.12' 59 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 60 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 61 | } 62 | -------------------------------------------------------------------------------- /lib/views/tabs/notifications.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_social/utils/utils.dart'; 3 | 4 | class NotificationsPage extends StatelessWidget { 5 | @override 6 | Widget build(BuildContext context) { 7 | final deviceHeight = MediaQuery.of(context).size.height; 8 | final deviceWidth = MediaQuery.of(context).size.width; 9 | 10 | final pageTitle = Padding( 11 | padding: EdgeInsets.only(top: 1.0, bottom: 30.0), 12 | child: Text( 13 | "Notifications", 14 | style: TextStyle( 15 | fontWeight: FontWeight.bold, 16 | color: Colors.black, 17 | fontSize: 40.0, 18 | ), 19 | ), 20 | ); 21 | 22 | final image = Image.asset( 23 | AvailableImages.emptyState['assetPath'], 24 | ); 25 | 26 | final notificationHeader = Container( 27 | padding: EdgeInsets.only(top: 30.0, bottom: 10.0), 28 | child: Text( 29 | "No New Notification", 30 | style: TextStyle(fontWeight: FontWeight.w700, fontSize: 24.0), 31 | ), 32 | ); 33 | final notificationText = Text( 34 | "You currently do not have any unread notifications.", 35 | style: TextStyle( 36 | fontWeight: FontWeight.w600, 37 | fontSize: 18.0, 38 | color: Colors.grey.withOpacity(0.6), 39 | ), 40 | textAlign: TextAlign.center, 41 | ); 42 | 43 | return Scaffold( 44 | body: Container( 45 | padding: EdgeInsets.only( 46 | top: 70.0, 47 | left: 30.0, 48 | right: 30.0, 49 | bottom: 30.0, 50 | ), 51 | height: deviceHeight, 52 | width: deviceWidth, 53 | child: Column( 54 | crossAxisAlignment: CrossAxisAlignment.start, 55 | children: [ 56 | pageTitle, 57 | SizedBox( 58 | height: deviceHeight * 0.1, 59 | ), 60 | Column( 61 | mainAxisAlignment: MainAxisAlignment.center, 62 | children: [image, notificationHeader, notificationText], 63 | ), 64 | ], 65 | ), 66 | ), 67 | ); 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /lib/views/home.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_social/utils/colors.dart'; 3 | import 'package:flutter_social/views/tabs/chats.dart'; 4 | import 'package:flutter_social/views/tabs/feeds.dart'; 5 | import 'package:flutter_social/views/tabs/notifications.dart'; 6 | import 'package:flutter_social/views/tabs/profile.dart'; 7 | import 'package:line_icons/line_icons.dart'; 8 | 9 | class HomePage extends StatefulWidget { 10 | @override 11 | _HomePageState createState() => _HomePageState(); 12 | } 13 | 14 | class _HomePageState extends State { 15 | int _currentIndex = 0; 16 | final List _pages = [ 17 | FeedsPage(), 18 | ChatsPage(), 19 | NotificationsPage(), 20 | ProfilePage() 21 | ]; 22 | 23 | void onTabTapped(int index) { 24 | setState(() { 25 | _currentIndex = index; 26 | }); 27 | } 28 | 29 | @override 30 | Widget build(BuildContext context) { 31 | 32 | final bottomNavBar = BottomNavigationBar( 33 | onTap: onTabTapped, 34 | currentIndex: _currentIndex, 35 | selectedItemColor: primaryColor, 36 | unselectedItemColor: Colors.grey.withOpacity(0.6), 37 | elevation: 0.0, 38 | items: [ 39 | BottomNavigationBarItem( 40 | icon: Icon(Icons.rss_feed), 41 | title: Text( 42 | 'Feed', 43 | style: TextStyle(fontWeight: FontWeight.bold), 44 | ), 45 | ), 46 | BottomNavigationBarItem( 47 | icon: Icon(LineIcons.comments), 48 | title: Text( 49 | 'Chats', 50 | style: TextStyle(fontWeight: FontWeight.bold), 51 | ), 52 | ), 53 | BottomNavigationBarItem( 54 | icon: Icon(LineIcons.bell), 55 | title: Text( 56 | 'Notifications', 57 | style: TextStyle(fontWeight: FontWeight.bold), 58 | ), 59 | ), 60 | BottomNavigationBarItem( 61 | icon: Icon(LineIcons.user), 62 | title: Text( 63 | 'Profile', 64 | style: TextStyle(fontWeight: FontWeight.bold), 65 | ), 66 | ) 67 | ], 68 | ); 69 | 70 | return Scaffold( 71 | bottomNavigationBar: bottomNavBar, 72 | body: _pages[_currentIndex], 73 | ); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /lib/utils/utils.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class AppConfig { 4 | static const appName = "Heart String"; 5 | static const appTagline = "Find your perfect match"; 6 | } 7 | 8 | class AvailableFonts { 9 | static const primaryFont = "Quicksand"; 10 | } 11 | 12 | class AvailableImages { 13 | 14 | static const man1 = { 15 | 'assetImage' : AssetImage('assets/images/man1.jpg'), 16 | 'assetPath' : 'assets/images/man1.jpg', 17 | }; 18 | 19 | static const man2 = { 20 | 'assetImage' : AssetImage('assets/images/man2.jpg'), 21 | 'assetPath' : 'assets/images/man2.jpg', 22 | }; 23 | 24 | static const man3 = { 25 | 'assetImage' : AssetImage('assets/images/man3.jpg'), 26 | 'assetPath' : 'assets/images/man3.jpg', 27 | }; 28 | 29 | static const man4 = { 30 | 'assetImage' : AssetImage('assets/images/man4.jpg'), 31 | 'assetPath' : 'assets/images/man4.jpg', 32 | }; 33 | 34 | static const man5 = { 35 | 'assetImage' : AssetImage('assets/images/man5.jpg'), 36 | 'assetPath' : 'assets/images/man5.jpg', 37 | }; 38 | 39 | 40 | static const woman1 = { 41 | 'assetImage' : AssetImage('assets/images/woman1.jpg'), 42 | 'assetPath' : 'assets/images/woman1.jpg', 43 | }; 44 | 45 | static const woman2 = { 46 | 'assetImage' : AssetImage('assets/images/woman2.jpg'), 47 | 'assetPath' : 'assets/images/woman2.jpg', 48 | }; 49 | 50 | static const woman3 = { 51 | 'assetImage' : AssetImage('assets/images/woman3.jpg'), 52 | 'assetPath' : 'assets/images/woman3.jpg', 53 | }; 54 | 55 | static const woman4 = { 56 | 'assetImage' : AssetImage('assets/images/woman4.jpg'), 57 | 'assetPath' : 'assets/images/woman4.jpg', 58 | }; 59 | 60 | static const woman5 = { 61 | 'assetImage' : AssetImage('assets/images/woman5.jpg'), 62 | 'assetPath' : 'assets/images/woman5.jpg', 63 | }; 64 | 65 | static const postBanner = { 66 | 'assetImage' : AssetImage('assets/images/post_banner.jpg'), 67 | 'assetPath' : 'assets/images/post_banner.jpg', 68 | }; 69 | 70 | static const emptyState = { 71 | 'assetImage' : AssetImage('assets/images/empty.png'), 72 | 'assetPath' : 'assets/images/empty.png', 73 | }; 74 | 75 | static const homePage = const AssetImage('assets/images/home_page.png'); 76 | static const appLogo = const AssetImage('assets/images/logo.png'); 77 | } -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /lib/widgets/feed_card2.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_social/_routing/routes.dart'; 3 | import 'package:flutter_social/models/feed.dart'; 4 | 5 | class FeedCard2 extends StatelessWidget { 6 | final Feed feed; 7 | 8 | const FeedCard2({Key key, this.feed}) : super(key: key); 9 | @override 10 | Widget build(BuildContext context) { 11 | final userImage = Positioned( 12 | left: 0, 13 | top: 15.0, 14 | child: InkWell( 15 | onTap: () => Navigator.pushNamed(context, userDetailsViewRoute, 16 | arguments: feed.userId), 17 | child: Hero( 18 | tag: feed.userImage, 19 | child: Material( 20 | elevation: 5.0, 21 | borderRadius: BorderRadius.circular(14.0), 22 | child: Container( 23 | height: 120.0, 24 | width: 120.0, 25 | decoration: BoxDecoration( 26 | borderRadius: BorderRadius.circular(14.0), 27 | image: DecorationImage( 28 | image: AssetImage(feed.userImage), 29 | fit: BoxFit.cover, 30 | ), 31 | ), 32 | ), 33 | ), 34 | ), 35 | ), 36 | ); 37 | 38 | final postDate = Text( 39 | feed.createdAt, 40 | style: TextStyle( 41 | color: Colors.grey.withOpacity(0.6), 42 | fontWeight: FontWeight.bold, 43 | ), 44 | ); 45 | 46 | final userName = Text( 47 | feed.userName, 48 | style: TextStyle( 49 | color: Colors.black, 50 | fontWeight: FontWeight.bold, 51 | fontSize: 16.0, 52 | ), 53 | ); 54 | 55 | final descriptionText = Container( 56 | height: 80.0, 57 | child: Text( 58 | feed.description, 59 | style: TextStyle( 60 | color: Colors.grey, 61 | fontWeight: FontWeight.w600, 62 | fontSize: 14.0, 63 | ), 64 | ), 65 | ); 66 | 67 | final cardContent = Column( 68 | crossAxisAlignment: CrossAxisAlignment.start, 69 | children: [ 70 | postDate, 71 | userName, 72 | SizedBox( 73 | height: 5.0, 74 | ), 75 | descriptionText 76 | ], 77 | ); 78 | 79 | return Container( 80 | height: 150.0, 81 | width: MediaQuery.of(context).size.width, 82 | child: Stack( 83 | children: [ 84 | Padding( 85 | padding: const EdgeInsets.only(left: 40.0), 86 | child: Material( 87 | elevation: 5.0, 88 | borderRadius: BorderRadius.circular(14.0), 89 | child: Container( 90 | padding: EdgeInsets.only(top: 20.0, left: 100.0), 91 | height: 150.0, 92 | width: MediaQuery.of(context).size.width, 93 | decoration: BoxDecoration( 94 | color: Colors.white, 95 | borderRadius: BorderRadius.circular(14.0), 96 | ), 97 | child: cardContent, 98 | ), 99 | ), 100 | ), 101 | userImage 102 | ], 103 | ), 104 | ); 105 | } 106 | } 107 | -------------------------------------------------------------------------------- /lib/widgets/feed_card3.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_social/_routing/routes.dart'; 3 | import 'package:flutter_social/models/feed.dart'; 4 | 5 | class FeedCard3 extends StatelessWidget { 6 | final Feed feed; 7 | 8 | const FeedCard3({Key key, this.feed}) : super(key: key); 9 | @override 10 | Widget build(BuildContext context) { 11 | final userImage = Positioned( 12 | right: 0, 13 | top: 15.0, 14 | child: InkWell( 15 | onTap: () => Navigator.pushNamed(context, userDetailsViewRoute, 16 | arguments: feed.userId), 17 | child: Hero( 18 | tag: feed.userImage, 19 | child: Material( 20 | elevation: 5.0, 21 | borderRadius: BorderRadius.circular(14.0), 22 | child: Container( 23 | height: 120.0, 24 | width: 120.0, 25 | decoration: BoxDecoration( 26 | borderRadius: BorderRadius.circular(14.0), 27 | image: DecorationImage( 28 | image: AssetImage(feed.userImage), 29 | fit: BoxFit.cover, 30 | ), 31 | ), 32 | ), 33 | ), 34 | ), 35 | ), 36 | ); 37 | 38 | final postDate = Text( 39 | feed.createdAt, 40 | style: TextStyle( 41 | color: Colors.grey.withOpacity(0.6), 42 | fontWeight: FontWeight.bold, 43 | ), 44 | ); 45 | 46 | final userName = Text( 47 | feed.userName, 48 | style: TextStyle( 49 | color: Colors.black, 50 | fontWeight: FontWeight.bold, 51 | fontSize: 16.0, 52 | ), 53 | ); 54 | 55 | final descriptionText = Container( 56 | height: 80.0, 57 | child: Text( 58 | feed.description, 59 | style: TextStyle( 60 | color: Colors.grey, 61 | fontWeight: FontWeight.w600, 62 | fontSize: 14.0, 63 | ), 64 | ), 65 | ); 66 | 67 | final cardContent = Column( 68 | crossAxisAlignment: CrossAxisAlignment.start, 69 | children: [ 70 | postDate, 71 | userName, 72 | SizedBox( 73 | height: 5.0, 74 | ), 75 | descriptionText 76 | ], 77 | ); 78 | 79 | return Container( 80 | height: 150.0, 81 | width: MediaQuery.of(context).size.width, 82 | child: Stack( 83 | children: [ 84 | Padding( 85 | padding: const EdgeInsets.only(right: 40.0), 86 | child: Material( 87 | elevation: 5.0, 88 | borderRadius: BorderRadius.circular(14.0), 89 | child: Container( 90 | padding: EdgeInsets.only(top: 20.0, right: 100.0, left: 20.0), 91 | height: 150.0, 92 | width: MediaQuery.of(context).size.width, 93 | decoration: BoxDecoration( 94 | color: Colors.white, 95 | borderRadius: BorderRadius.circular(14.0), 96 | ), 97 | child: cardContent, 98 | ), 99 | ), 100 | ), 101 | userImage 102 | ], 103 | ), 104 | ); 105 | } 106 | } 107 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_social 2 | description: A new Flutter project. 3 | 4 | # The following defines the version and build number for your application. 5 | # A version number is three numbers separated by dots, like 1.2.43 6 | # followed by an optional build number separated by a +. 7 | # Both the version and the builder number may be overridden in flutter 8 | # build by specifying --build-name and --build-number, respectively. 9 | # In Android, build-name is used as versionName while build-number used as versionCode. 10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 12 | # Read more about iOS versioning at 13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 14 | version: 1.0.0+1 15 | 16 | environment: 17 | sdk: ">=2.1.0 <3.0.0" 18 | 19 | dependencies: 20 | flutter: 21 | sdk: flutter 22 | line_icons: ^0.2.0 23 | 24 | # The following adds the Cupertino Icons font to your application. 25 | # Use with the CupertinoIcons class for iOS style icons. 26 | cupertino_icons: ^0.1.2 27 | 28 | dev_dependencies: 29 | flutter_test: 30 | sdk: flutter 31 | 32 | 33 | # For information on the generic Dart part of this file, see the 34 | # following page: https://www.dartlang.org/tools/pub/pubspec 35 | 36 | # The following section is specific to Flutter. 37 | flutter: 38 | 39 | # The following line ensures that the Material Icons font is 40 | # included with your application, so that you can use the icons in 41 | # the material Icons class. 42 | uses-material-design: true 43 | 44 | # To add assets to your application, add an assets section, like this: 45 | assets: 46 | - assets/images/man1.jpg 47 | - assets/images/man2.jpg 48 | - assets/images/man3.jpg 49 | - assets/images/man4.jpg 50 | - assets/images/man5.jpg 51 | - assets/images/woman1.jpg 52 | - assets/images/woman2.jpg 53 | - assets/images/woman3.jpg 54 | - assets/images/woman4.jpg 55 | - assets/images/woman5.jpg 56 | - assets/images/home_page.png 57 | - assets/images/logo.png 58 | - assets/images/empty.png 59 | - assets/images/post_banner.jpg 60 | 61 | # An image asset can refer to one or more resolution-specific "variants", see 62 | # https://flutter.dev/assets-and-images/#resolution-aware. 63 | 64 | # For details regarding adding assets from package dependencies, see 65 | # https://flutter.dev/assets-and-images/#from-packages 66 | 67 | # To add custom fonts to your application, add a fonts section here, 68 | # in this "flutter" section. Each entry in this list should have a 69 | # "family" key with the font family name, and a "fonts" key with a 70 | # list giving the asset and other descriptors for the font. For 71 | # example: 72 | fonts: 73 | - family: Barlow 74 | fonts: 75 | - asset: assets/fonts/Barlow-Regular.ttf 76 | - asset: assets/fonts/Barlow-SemiBold.ttf 77 | weight: 400 78 | - asset: assets/fonts/Barlow-Bold.ttf 79 | weight: 700 80 | - family: Quicksand 81 | fonts: 82 | - asset: assets/fonts/Quicksand-Regular.ttf 83 | - asset: assets/fonts/Quicksand-Medium.ttf 84 | - asset: assets/fonts/Quicksand-SemiBold.ttf 85 | - asset: assets/fonts/Quicksand-Bold.ttf 86 | # 87 | # For details regarding fonts from package dependencies, 88 | # see https://flutter.dev/custom-fonts/#from-packages 89 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 31 | 32 | 33 | 34 | 40 | 41 | 42 | 43 | 44 | 45 | 56 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 75 | 77 | 83 | 84 | 85 | 86 | 88 | 89 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.2.0" 11 | boolean_selector: 12 | dependency: transitive 13 | description: 14 | name: boolean_selector 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.0.4" 18 | charcode: 19 | dependency: transitive 20 | description: 21 | name: charcode 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "1.1.2" 25 | collection: 26 | dependency: transitive 27 | description: 28 | name: collection 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.14.11" 32 | cupertino_icons: 33 | dependency: "direct main" 34 | description: 35 | name: cupertino_icons 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "0.1.2" 39 | flutter: 40 | dependency: "direct main" 41 | description: flutter 42 | source: sdk 43 | version: "0.0.0" 44 | flutter_test: 45 | dependency: "direct dev" 46 | description: flutter 47 | source: sdk 48 | version: "0.0.0" 49 | line_icons: 50 | dependency: "direct main" 51 | description: 52 | name: line_icons 53 | url: "https://pub.dartlang.org" 54 | source: hosted 55 | version: "0.2.0" 56 | matcher: 57 | dependency: transitive 58 | description: 59 | name: matcher 60 | url: "https://pub.dartlang.org" 61 | source: hosted 62 | version: "0.12.5" 63 | meta: 64 | dependency: transitive 65 | description: 66 | name: meta 67 | url: "https://pub.dartlang.org" 68 | source: hosted 69 | version: "1.1.6" 70 | path: 71 | dependency: transitive 72 | description: 73 | name: path 74 | url: "https://pub.dartlang.org" 75 | source: hosted 76 | version: "1.6.2" 77 | pedantic: 78 | dependency: transitive 79 | description: 80 | name: pedantic 81 | url: "https://pub.dartlang.org" 82 | source: hosted 83 | version: "1.7.0" 84 | quiver: 85 | dependency: transitive 86 | description: 87 | name: quiver 88 | url: "https://pub.dartlang.org" 89 | source: hosted 90 | version: "2.0.3" 91 | sky_engine: 92 | dependency: transitive 93 | description: flutter 94 | source: sdk 95 | version: "0.0.99" 96 | source_span: 97 | dependency: transitive 98 | description: 99 | name: source_span 100 | url: "https://pub.dartlang.org" 101 | source: hosted 102 | version: "1.5.5" 103 | stack_trace: 104 | dependency: transitive 105 | description: 106 | name: stack_trace 107 | url: "https://pub.dartlang.org" 108 | source: hosted 109 | version: "1.9.3" 110 | stream_channel: 111 | dependency: transitive 112 | description: 113 | name: stream_channel 114 | url: "https://pub.dartlang.org" 115 | source: hosted 116 | version: "2.0.0" 117 | string_scanner: 118 | dependency: transitive 119 | description: 120 | name: string_scanner 121 | url: "https://pub.dartlang.org" 122 | source: hosted 123 | version: "1.0.4" 124 | term_glyph: 125 | dependency: transitive 126 | description: 127 | name: term_glyph 128 | url: "https://pub.dartlang.org" 129 | source: hosted 130 | version: "1.1.0" 131 | test_api: 132 | dependency: transitive 133 | description: 134 | name: test_api 135 | url: "https://pub.dartlang.org" 136 | source: hosted 137 | version: "0.2.5" 138 | typed_data: 139 | dependency: transitive 140 | description: 141 | name: typed_data 142 | url: "https://pub.dartlang.org" 143 | source: hosted 144 | version: "1.1.6" 145 | vector_math: 146 | dependency: transitive 147 | description: 148 | name: vector_math 149 | url: "https://pub.dartlang.org" 150 | source: hosted 151 | version: "2.0.8" 152 | sdks: 153 | dart: ">=2.2.2 <3.0.0" 154 | -------------------------------------------------------------------------------- /lib/views/landing.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_social/_routing/routes.dart'; 3 | import 'package:flutter_social/utils/colors.dart'; 4 | import 'package:flutter_social/utils/utils.dart'; 5 | import 'package:flutter/services.dart'; 6 | 7 | class LandingPage extends StatelessWidget { 8 | @override 9 | Widget build(BuildContext context) { 10 | // Change Status Bar Color 11 | SystemChrome.setSystemUIOverlayStyle( 12 | SystemUiOverlayStyle(statusBarColor: primaryColor), 13 | ); 14 | 15 | final logo = Container( 16 | height: 100.0, 17 | width: 100.0, 18 | decoration: BoxDecoration( 19 | image: DecorationImage( 20 | image: AvailableImages.appLogo, 21 | fit: BoxFit.cover, 22 | ), 23 | ), 24 | ); 25 | 26 | final appName = Column( 27 | children: [ 28 | Text( 29 | AppConfig.appName, 30 | style: TextStyle( 31 | fontWeight: FontWeight.bold, 32 | color: Colors.white, 33 | fontSize: 30.0, 34 | ), 35 | ), 36 | Text( 37 | AppConfig.appTagline, 38 | style: TextStyle( 39 | color: Colors.white, 40 | fontSize: 18.0, 41 | fontWeight: FontWeight.w500 42 | ), 43 | ) 44 | ], 45 | ); 46 | 47 | final loginBtn = InkWell( 48 | onTap: () => Navigator.pushNamed(context, loginViewRoute), 49 | child: Container( 50 | height: 60.0, 51 | width: MediaQuery.of(context).size.width, 52 | decoration: BoxDecoration( 53 | borderRadius: BorderRadius.circular(7.0), 54 | border: Border.all(color: Colors.white), 55 | color: Colors.transparent, 56 | ), 57 | child: Center( 58 | child: Text( 59 | 'LOG IN', 60 | style: TextStyle( 61 | fontWeight: FontWeight.w600, 62 | fontSize: 20.0, 63 | color: Colors.white, 64 | ), 65 | ), 66 | ), 67 | ), 68 | ); 69 | 70 | final registerBtn = Container( 71 | height: 60.0, 72 | width: MediaQuery.of(context).size.width, 73 | decoration: BoxDecoration( 74 | borderRadius: BorderRadius.circular(7.0), 75 | border: Border.all(color: Colors.white), 76 | color: Colors.white, 77 | ), 78 | child: RaisedButton( 79 | elevation: 5.0, 80 | onPressed: () => Navigator.pushNamed(context, registerViewRoute), 81 | color: Colors.white, 82 | shape: new RoundedRectangleBorder( 83 | borderRadius: new BorderRadius.circular(7.0), 84 | ), 85 | child: Text( 86 | 'SIGN UP', 87 | style: TextStyle( 88 | fontWeight: FontWeight.w600, 89 | fontSize: 20.0, 90 | ), 91 | ), 92 | ), 93 | ); 94 | 95 | final buttons = Padding( 96 | padding: EdgeInsets.only( 97 | top: 80.0, 98 | bottom: 30.0, 99 | left: 30.0, 100 | right: 30.0, 101 | ), 102 | child: Column( 103 | children: [loginBtn, SizedBox(height: 20.0), registerBtn], 104 | ), 105 | ); 106 | 107 | return Scaffold( 108 | body: Container( 109 | child: Stack( 110 | children: [ 111 | Container( 112 | padding: EdgeInsets.only(top: 70.0), 113 | decoration: BoxDecoration(gradient: primaryGradient), 114 | height: MediaQuery.of(context).size.height, 115 | width: MediaQuery.of(context).size.width, 116 | child: Column( 117 | children: [logo, appName, buttons], 118 | ), 119 | ), 120 | Positioned( 121 | bottom: 0, 122 | child: Padding( 123 | padding: EdgeInsets.only(left: 10.0), 124 | child: Container( 125 | height: 300.0, 126 | width: MediaQuery.of(context).size.width, 127 | decoration: BoxDecoration( 128 | image: DecorationImage( 129 | image: AvailableImages.homePage, 130 | fit: BoxFit.contain, 131 | ), 132 | ), 133 | ), 134 | ), 135 | ) 136 | ], 137 | ), 138 | ), 139 | ); 140 | } 141 | } 142 | -------------------------------------------------------------------------------- /lib/views/chat_details.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/widgets.dart'; 3 | import 'package:flutter_social/_routing/routes.dart'; 4 | import 'package:flutter_social/models/message.dart'; 5 | import 'package:flutter_social/models/user.dart'; 6 | import 'package:flutter_social/widgets/chat_bubble.dart'; 7 | 8 | class ChatDetailsPage extends StatelessWidget { 9 | final int userId; 10 | const ChatDetailsPage({Key key, this.userId}) : super(key: key); 11 | 12 | @override 13 | Widget build(BuildContext context) { 14 | final User user = users.singleWhere((user) => user.id == userId); 15 | 16 | final deviceHeight = MediaQuery.of(context).size.height; 17 | final deviceWidth = MediaQuery.of(context).size.width; 18 | 19 | final userImage = InkWell( 20 | onTap: () => Navigator.pushNamed(context, userDetailsViewRoute, arguments: user.id), 21 | child: Hero( 22 | tag: user.photo, 23 | child: Container( 24 | margin: EdgeInsets.only(right: 8.0, bottom: 10.0), 25 | height: 50.0, 26 | width: 50.0, 27 | decoration: BoxDecoration( 28 | image: DecorationImage( 29 | image: AssetImage(user.photo), 30 | fit: BoxFit.cover, 31 | ), 32 | shape: BoxShape.circle, 33 | ), 34 | ), 35 | ), 36 | ); 37 | 38 | final userName = Hero( 39 | tag: user.name, 40 | child: Text( 41 | user.name, 42 | style: TextStyle( 43 | fontSize: 20.0, 44 | fontWeight: FontWeight.bold, 45 | ), 46 | ), 47 | ); 48 | 49 | final appBar = Material( 50 | elevation: 5.0, 51 | shadowColor: Colors.grey, 52 | child: Container( 53 | padding: EdgeInsets.only(left: 20.0, right: 20.0, top: 30.0), 54 | child: Row( 55 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 56 | children: [ 57 | IconButton( 58 | onPressed: () => Navigator.pop(context), 59 | icon: Icon(Icons.arrow_back), 60 | ), 61 | userName, 62 | userImage 63 | ], 64 | ), 65 | ), 66 | ); 67 | 68 | final textInput = Container( 69 | padding: EdgeInsets.only(left: 10.0), 70 | height: 47.0, 71 | width: deviceWidth * 0.7, 72 | decoration: BoxDecoration( 73 | borderRadius: BorderRadius.circular(8.0), 74 | color: Colors.white, 75 | ), 76 | child: TextField( 77 | decoration: InputDecoration( 78 | border: InputBorder.none, 79 | hintText: 'Type a message...', 80 | hintStyle: TextStyle( 81 | color: Colors.grey.withOpacity(0.6), 82 | fontWeight: FontWeight.w600, 83 | ), 84 | ), 85 | ), 86 | ); 87 | 88 | final messageList = ListView.builder( 89 | scrollDirection: Axis.vertical, 90 | itemCount: messages.length, 91 | itemBuilder: (BuildContext context, int index) { 92 | return ChatBubble( 93 | message: messages[index], 94 | ); 95 | }, 96 | ); 97 | 98 | final inputBox = Positioned( 99 | bottom: 0, 100 | left: 0, 101 | right: 0, 102 | child: Container( 103 | height: 60.0, 104 | width: deviceHeight, 105 | decoration: BoxDecoration( 106 | color: Colors.grey.shade200, 107 | ), 108 | child: Row( 109 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 110 | children: [ 111 | IconButton( 112 | onPressed: () {}, 113 | icon: Icon( 114 | Icons.camera_alt, 115 | color: Colors.grey, 116 | ), 117 | iconSize: 32.0, 118 | ), 119 | textInput, 120 | IconButton( 121 | onPressed: () {}, 122 | icon: Icon( 123 | Icons.send, 124 | color: Colors.grey, 125 | ), 126 | iconSize: 32.0, 127 | ), 128 | ], 129 | ), 130 | ), 131 | ); 132 | 133 | return Scaffold( 134 | body: Stack( 135 | children: [ 136 | Container( 137 | height: deviceHeight, 138 | width: deviceWidth, 139 | child: Column( 140 | children: [ 141 | appBar, 142 | SizedBox( 143 | height: 10.0, 144 | ), 145 | Flexible( 146 | child: messageList, 147 | ), 148 | ], 149 | ), 150 | ), 151 | inputBox 152 | ], 153 | ), 154 | ); 155 | } 156 | } 157 | -------------------------------------------------------------------------------- /lib/views/reset_password.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_social/_routing/routes.dart'; 3 | import 'package:flutter_social/utils/colors.dart'; 4 | import 'package:line_icons/line_icons.dart'; 5 | 6 | class ResetPasswordPage extends StatefulWidget { 7 | @override 8 | _ResetPasswordPageState createState() => _ResetPasswordPageState(); 9 | } 10 | 11 | class _ResetPasswordPageState extends State { 12 | final _formKey = GlobalKey(); 13 | 14 | @override 15 | Widget build(BuildContext context) { 16 | final appBar = Padding( 17 | padding: EdgeInsets.only(bottom: 40.0), 18 | child: Row( 19 | mainAxisAlignment: MainAxisAlignment.start, 20 | children: [ 21 | IconButton( 22 | onPressed: () => Navigator.pop(context), 23 | icon: Icon( 24 | Icons.arrow_back, 25 | color: Colors.white, 26 | ), 27 | ) 28 | ], 29 | ), 30 | ); 31 | 32 | final pageTitle = Container( 33 | child: Text( 34 | "Reset Password", 35 | style: TextStyle( 36 | fontWeight: FontWeight.bold, 37 | color: Colors.white, 38 | fontSize: 40.0, 39 | ), 40 | ), 41 | ); 42 | 43 | final emailField = TextFormField( 44 | decoration: InputDecoration( 45 | labelText: 'Email Address', 46 | labelStyle: TextStyle(color: Colors.white), 47 | prefixIcon: Icon( 48 | LineIcons.envelope, 49 | color: Colors.white, 50 | ), 51 | enabledBorder: UnderlineInputBorder( 52 | borderSide: BorderSide(color: Colors.white), 53 | ), 54 | focusedBorder: UnderlineInputBorder( 55 | borderSide: BorderSide(color: Colors.white), 56 | ), 57 | ), 58 | keyboardType: TextInputType.emailAddress, 59 | style: TextStyle(color: Colors.white), 60 | cursorColor: Colors.white, 61 | ); 62 | 63 | final resetPasswordForm = Padding( 64 | padding: EdgeInsets.only(top: 30.0), 65 | child: Form( 66 | key: _formKey, 67 | child: Column( 68 | children: [emailField], 69 | ), 70 | ), 71 | ); 72 | 73 | final resetPasswordBtn = Container( 74 | margin: EdgeInsets.only(top: 40.0), 75 | height: 60.0, 76 | width: MediaQuery.of(context).size.width, 77 | decoration: BoxDecoration( 78 | borderRadius: BorderRadius.circular(7.0), 79 | border: Border.all(color: Colors.white), 80 | color: Colors.white, 81 | ), 82 | child: RaisedButton( 83 | elevation: 5.0, 84 | onPressed: () => Navigator.pushNamed(context, landingViewRoute), 85 | color: Colors.white, 86 | shape: new RoundedRectangleBorder( 87 | borderRadius: new BorderRadius.circular(7.0), 88 | ), 89 | child: Text( 90 | 'RESET', 91 | style: TextStyle( 92 | fontWeight: FontWeight.w800, 93 | fontSize: 20.0, 94 | ), 95 | ), 96 | ), 97 | ); 98 | 99 | final newUser = Padding( 100 | padding: EdgeInsets.only(top: 50.0), 101 | child: InkWell( 102 | onTap: () => Navigator.pushNamed(context, registerViewRoute), 103 | child: Row( 104 | mainAxisAlignment: MainAxisAlignment.center, 105 | children: [ 106 | Text( 107 | 'Or', 108 | style: TextStyle( 109 | color: Colors.white70, 110 | fontSize: 18.0, 111 | fontWeight: FontWeight.w600, 112 | ), 113 | ), 114 | Text( 115 | ' Create new account', 116 | style: TextStyle( 117 | color: Colors.white, 118 | fontSize: 18.0, 119 | fontWeight: FontWeight.w600, 120 | ), 121 | ), 122 | ], 123 | ), 124 | ), 125 | ); 126 | 127 | return Scaffold( 128 | body: Container( 129 | padding: EdgeInsets.only(top: 40.0), 130 | decoration: BoxDecoration(gradient: primaryGradient), 131 | height: MediaQuery.of(context).size.height, 132 | width: MediaQuery.of(context).size.width, 133 | child: Column( 134 | children: [ 135 | appBar, 136 | Container( 137 | padding: EdgeInsets.only(left: 30.0, right: 30.0), 138 | child: Column( 139 | crossAxisAlignment: CrossAxisAlignment.start, 140 | children: [ 141 | pageTitle, 142 | resetPasswordForm, 143 | resetPasswordBtn, 144 | newUser 145 | ], 146 | ), 147 | ) 148 | ], 149 | ), 150 | ), 151 | ); 152 | } 153 | } 154 | -------------------------------------------------------------------------------- /lib/widgets/feed_card1.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_social/_routing/routes.dart'; 3 | import 'package:flutter_social/models/feed.dart'; 4 | import 'package:line_icons/line_icons.dart'; 5 | 6 | class FeedCard1 extends StatelessWidget { 7 | final Feed feed; 8 | 9 | const FeedCard1({Key key, this.feed}) : super(key: key); 10 | @override 11 | Widget build(BuildContext context) { 12 | final userimage = InkWell( 13 | onTap: () => Navigator.pushNamed(context, userDetailsViewRoute, 14 | arguments: feed.userId), 15 | child: Hero( 16 | tag: feed.userImage, 17 | child: Container( 18 | margin: EdgeInsets.only(right: 10.0), 19 | height: 40.0, 20 | width: 40.0, 21 | decoration: BoxDecoration( 22 | image: DecorationImage( 23 | image: AssetImage(feed.userImage), fit: BoxFit.cover), 24 | borderRadius: BorderRadius.circular(7.0), 25 | ), 26 | ), 27 | ), 28 | ); 29 | 30 | final headerDesc = Column( 31 | crossAxisAlignment: CrossAxisAlignment.start, 32 | children: [ 33 | Text( 34 | feed.userName, 35 | style: TextStyle( 36 | color: Colors.black, 37 | fontWeight: FontWeight.bold, 38 | ), 39 | ), 40 | Text( 41 | feed.createdAt, 42 | style: TextStyle( 43 | color: Colors.grey.withOpacity(0.6), 44 | fontWeight: FontWeight.bold, 45 | ), 46 | ) 47 | ], 48 | ); 49 | 50 | final header = Row( 51 | mainAxisAlignment: MainAxisAlignment.start, 52 | children: [userimage, headerDesc], 53 | ); 54 | 55 | final descriptionText = Container( 56 | height: 80.0, 57 | child: Text( 58 | feed.description, 59 | style: TextStyle( 60 | color: Colors.grey, 61 | fontWeight: FontWeight.w600, 62 | fontSize: 16.0, 63 | ), 64 | ), 65 | ); 66 | 67 | final divider = Divider( 68 | color: Colors.grey.withOpacity(0.6), 69 | ); 70 | 71 | final footer = Row( 72 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 73 | children: [ 74 | Icon(Icons.share), 75 | Row( 76 | children: [ 77 | Text('256'), 78 | SizedBox( 79 | width: 3.0, 80 | ), 81 | Icon(LineIcons.comments), 82 | SizedBox( 83 | width: 30.0, 84 | ), 85 | Text('4k'), 86 | SizedBox( 87 | width: 3.0, 88 | ), 89 | Icon(LineIcons.heart_o), 90 | ], 91 | ), 92 | ], 93 | ); 94 | 95 | return Container( 96 | height: 300.0, 97 | child: Stack( 98 | children: [ 99 | Material( 100 | elevation: 5.0, 101 | borderRadius: BorderRadius.circular(14.0), 102 | child: Container( 103 | height: 150.0, 104 | width: MediaQuery.of(context).size.width, 105 | decoration: BoxDecoration( 106 | borderRadius: BorderRadius.circular(14.0), 107 | image: DecorationImage( 108 | image: AssetImage(feed.bannerImg), 109 | fit: BoxFit.cover, 110 | ), 111 | ), 112 | ), 113 | ), 114 | Positioned( 115 | top: 90.0, 116 | left: 0.0, 117 | right: 0.0, 118 | child: Padding( 119 | padding: EdgeInsets.only(left: 10.0, right: 10.0), 120 | child: Material( 121 | elevation: 5.0, 122 | shadowColor: Colors.white, 123 | borderRadius: BorderRadius.circular(14.0), 124 | child: Container( 125 | height: 200.0, 126 | width: 20.0, 127 | decoration: BoxDecoration( 128 | color: Colors.white, 129 | borderRadius: BorderRadius.circular(14.0), 130 | ), 131 | child: Padding( 132 | padding: EdgeInsets.only( 133 | top: 20.0, 134 | bottom: 00.0, 135 | left: 20.0, 136 | right: 20.0, 137 | ), 138 | child: Column( 139 | children: [ 140 | header, 141 | SizedBox( 142 | height: 10.0, 143 | ), 144 | descriptionText, 145 | divider, 146 | footer 147 | ], 148 | ), 149 | ), 150 | ), 151 | ), 152 | ), 153 | ) 154 | ], 155 | ), 156 | ); 157 | } 158 | } 159 | -------------------------------------------------------------------------------- /lib/views/register.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_social/_routing/routes.dart'; 3 | import 'package:flutter_social/utils/colors.dart'; 4 | import 'package:line_icons/line_icons.dart'; 5 | 6 | class RegisterPage extends StatefulWidget { 7 | @override 8 | _RegisterPageState createState() => _RegisterPageState(); 9 | } 10 | 11 | class _RegisterPageState extends State { 12 | final _formKey = GlobalKey(); 13 | int _genderRadioBtnVal = -1; 14 | 15 | void _handleGenderChange(int value) { 16 | setState(() { 17 | _genderRadioBtnVal = value; 18 | }); 19 | } 20 | 21 | @override 22 | Widget build(BuildContext context) { 23 | final appBar = Padding( 24 | padding: EdgeInsets.only(bottom: 40.0), 25 | child: Row( 26 | mainAxisAlignment: MainAxisAlignment.start, 27 | children: [ 28 | IconButton( 29 | onPressed: () => Navigator.pop(context), 30 | icon: Icon( 31 | Icons.arrow_back, 32 | color: Colors.black, 33 | ), 34 | ) 35 | ], 36 | ), 37 | ); 38 | 39 | final pageTitle = Container( 40 | child: Text( 41 | "Tell us about you.", 42 | style: TextStyle( 43 | fontWeight: FontWeight.bold, 44 | color: Colors.black, 45 | fontSize: 40.0, 46 | ), 47 | ), 48 | ); 49 | 50 | final formFieldSpacing = SizedBox( 51 | height: 30.0, 52 | ); 53 | 54 | final registerForm = Padding( 55 | padding: EdgeInsets.only(top: 30.0), 56 | child: Form( 57 | key: _formKey, 58 | child: Column( 59 | children: [ 60 | _buildFormField('Name', LineIcons.user), 61 | formFieldSpacing, 62 | _buildFormField('Email Address', LineIcons.envelope), 63 | formFieldSpacing, 64 | _buildFormField('Phone Number', LineIcons.mobile_phone), 65 | formFieldSpacing, 66 | _buildFormField('Password', LineIcons.lock), 67 | formFieldSpacing, 68 | ], 69 | ), 70 | ), 71 | ); 72 | 73 | final gender = Padding( 74 | padding: EdgeInsets.only(top: 0.0), 75 | child: Row( 76 | children: [ 77 | Radio( 78 | value: 0, 79 | groupValue: _genderRadioBtnVal, 80 | onChanged: _handleGenderChange, 81 | ), 82 | Text("Male"), 83 | Radio( 84 | value: 1, 85 | groupValue: _genderRadioBtnVal, 86 | onChanged: _handleGenderChange, 87 | ), 88 | Text("Female"), 89 | Radio( 90 | value: 2, 91 | groupValue: _genderRadioBtnVal, 92 | onChanged: _handleGenderChange, 93 | ), 94 | Text("Other"), 95 | ], 96 | ), 97 | ); 98 | 99 | final submitBtn = Padding( 100 | padding: EdgeInsets.only(top: 20.0), 101 | child: Container( 102 | margin: EdgeInsets.only(top: 10.0, bottom: 20.0), 103 | height: 60.0, 104 | width: MediaQuery.of(context).size.width, 105 | decoration: BoxDecoration( 106 | borderRadius: BorderRadius.circular(7.0), 107 | border: Border.all(color: Colors.white), 108 | ), 109 | child: Material( 110 | borderRadius: BorderRadius.circular(7.0), 111 | color: primaryColor, 112 | elevation: 10.0, 113 | shadowColor: Colors.white70, 114 | child: MaterialButton( 115 | onPressed: () => Navigator.of(context).pushNamed(homeViewRoute), 116 | child: Text( 117 | 'CREATE ACCOUNT', 118 | style: TextStyle( 119 | fontWeight: FontWeight.w800, 120 | fontSize: 20.0, 121 | color: Colors.white, 122 | ), 123 | ), 124 | ), 125 | ), 126 | ), 127 | ); 128 | 129 | return Scaffold( 130 | body: SingleChildScrollView( 131 | child: Container( 132 | padding: EdgeInsets.only(top: 40.0), 133 | child: Column( 134 | children: [ 135 | appBar, 136 | Container( 137 | padding: EdgeInsets.only(left: 30.0, right: 30.0), 138 | child: Column( 139 | crossAxisAlignment: CrossAxisAlignment.start, 140 | children: [ 141 | pageTitle, 142 | registerForm, 143 | gender, 144 | submitBtn 145 | ], 146 | ), 147 | ) 148 | ], 149 | ), 150 | ), 151 | ), 152 | ); 153 | } 154 | 155 | Widget _buildFormField(String label, IconData icon) { 156 | return TextFormField( 157 | decoration: InputDecoration( 158 | labelText: label, 159 | labelStyle: TextStyle(color: Colors.black), 160 | prefixIcon: Icon( 161 | icon, 162 | color: Colors.black38, 163 | ), 164 | enabledBorder: UnderlineInputBorder( 165 | borderSide: BorderSide(color: Colors.black38), 166 | ), 167 | focusedBorder: UnderlineInputBorder( 168 | borderSide: BorderSide(color: Colors.orange), 169 | ), 170 | ), 171 | keyboardType: TextInputType.text, 172 | style: TextStyle(color: Colors.black), 173 | cursorColor: Colors.black, 174 | ); 175 | } 176 | } 177 | -------------------------------------------------------------------------------- /lib/views/login.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_social/_routing/routes.dart'; 3 | import 'package:flutter_social/utils/colors.dart'; 4 | import 'package:line_icons/line_icons.dart'; 5 | import 'package:flutter/services.dart'; 6 | 7 | class LoginPage extends StatefulWidget { 8 | @override 9 | _LoginPageState createState() => _LoginPageState(); 10 | } 11 | 12 | class _LoginPageState extends State { 13 | final _formKey = GlobalKey(); 14 | 15 | @override 16 | Widget build(BuildContext context) { 17 | // Change Status Bar Color 18 | SystemChrome.setSystemUIOverlayStyle( 19 | SystemUiOverlayStyle(statusBarColor: primaryColor), 20 | ); 21 | final pageTitle = Column( 22 | crossAxisAlignment: CrossAxisAlignment.start, 23 | children: [ 24 | Text( 25 | "Log In.", 26 | style: TextStyle( 27 | fontWeight: FontWeight.bold, 28 | color: Colors.white, 29 | fontSize: 45.0, 30 | ), 31 | ), 32 | Text( 33 | "We missed you!", 34 | style: TextStyle( 35 | color: Colors.white, 36 | fontSize: 18.0, 37 | fontWeight: FontWeight.w500, 38 | ), 39 | ) 40 | ], 41 | ); 42 | 43 | final emailField = TextFormField( 44 | decoration: InputDecoration( 45 | labelText: 'Email Address', 46 | labelStyle: TextStyle(color: Colors.white), 47 | prefixIcon: Icon( 48 | LineIcons.envelope, 49 | color: Colors.white, 50 | ), 51 | enabledBorder: UnderlineInputBorder( 52 | borderSide: BorderSide(color: Colors.white), 53 | ), 54 | focusedBorder: UnderlineInputBorder( 55 | borderSide: BorderSide(color: Colors.white), 56 | ), 57 | ), 58 | keyboardType: TextInputType.emailAddress, 59 | style: TextStyle(color: Colors.white), 60 | cursorColor: Colors.white, 61 | ); 62 | 63 | final passwordField = TextFormField( 64 | decoration: InputDecoration( 65 | labelText: 'Password', 66 | labelStyle: TextStyle(color: Colors.white), 67 | prefixIcon: Icon( 68 | LineIcons.lock, 69 | color: Colors.white, 70 | ), 71 | enabledBorder: UnderlineInputBorder( 72 | borderSide: BorderSide(color: Colors.white), 73 | ), 74 | focusedBorder: UnderlineInputBorder( 75 | borderSide: BorderSide(color: Colors.white), 76 | ), 77 | ), 78 | keyboardType: TextInputType.text, 79 | style: TextStyle(color: Colors.white), 80 | cursorColor: Colors.white, 81 | obscureText: true, 82 | ); 83 | 84 | final loginForm = Padding( 85 | padding: EdgeInsets.only(top: 30.0), 86 | child: Form( 87 | key: _formKey, 88 | child: Column( 89 | children: [emailField, passwordField], 90 | ), 91 | ), 92 | ); 93 | 94 | final loginBtn = Container( 95 | margin: EdgeInsets.only(top: 40.0), 96 | height: 60.0, 97 | width: MediaQuery.of(context).size.width, 98 | decoration: BoxDecoration( 99 | borderRadius: BorderRadius.circular(7.0), 100 | border: Border.all(color: Colors.white), 101 | color: Colors.white, 102 | ), 103 | child: RaisedButton( 104 | elevation: 5.0, 105 | onPressed: () => Navigator.pushNamed(context, homeViewRoute), 106 | color: Colors.white, 107 | shape: new RoundedRectangleBorder( 108 | borderRadius: new BorderRadius.circular(7.0), 109 | ), 110 | child: Text( 111 | 'SIGN IN', 112 | style: TextStyle( 113 | fontWeight: FontWeight.w800, 114 | fontSize: 20.0, 115 | ), 116 | ), 117 | ), 118 | ); 119 | 120 | final forgotPassword = Padding( 121 | padding: EdgeInsets.only(top: 50.0), 122 | child: InkWell( 123 | onTap: () => Navigator.pushNamed(context, resetPasswordViewRoute), 124 | child: Center( 125 | child: Text( 126 | 'Forgot Password?', 127 | style: TextStyle( 128 | color: Colors.white70, 129 | fontSize: 18.0, 130 | fontWeight: FontWeight.w600, 131 | ), 132 | ), 133 | ), 134 | ), 135 | ); 136 | 137 | final newUser = Padding( 138 | padding: EdgeInsets.only(top: 20.0), 139 | child: InkWell( 140 | onTap: () => Navigator.pushNamed(context, registerViewRoute), 141 | child: Row( 142 | mainAxisAlignment: MainAxisAlignment.center, 143 | children: [ 144 | Text( 145 | 'New User?', 146 | style: TextStyle( 147 | color: Colors.white70, 148 | fontSize: 18.0, 149 | fontWeight: FontWeight.w600, 150 | ), 151 | ), 152 | Text( 153 | ' Create account', 154 | style: TextStyle( 155 | color: Colors.white, 156 | fontSize: 18.0, 157 | fontWeight: FontWeight.w600, 158 | ), 159 | ), 160 | ], 161 | ), 162 | ), 163 | ); 164 | 165 | return Scaffold( 166 | body: SingleChildScrollView( 167 | child: Container( 168 | padding: EdgeInsets.only(top: 150.0, left: 30.0, right: 30.0), 169 | decoration: BoxDecoration(gradient: primaryGradient), 170 | height: MediaQuery.of(context).size.height, 171 | width: MediaQuery.of(context).size.width, 172 | child: Column( 173 | crossAxisAlignment: CrossAxisAlignment.start, 174 | children: [ 175 | pageTitle, 176 | loginForm, 177 | loginBtn, 178 | forgotPassword, 179 | newUser 180 | ], 181 | ), 182 | ), 183 | ), 184 | ); 185 | } 186 | } 187 | -------------------------------------------------------------------------------- /lib/views/tabs/profile.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_social/models/user.dart'; 4 | import 'package:flutter_social/utils/colors.dart'; 5 | import 'package:line_icons/line_icons.dart'; 6 | 7 | class ProfilePage extends StatelessWidget { 8 | final User user = users[0]; 9 | 10 | @override 11 | Widget build(BuildContext context) { 12 | final hr = Divider(); 13 | final userStats = Positioned( 14 | bottom: 10.0, 15 | left: 40.0, 16 | right: 40.0, 17 | child: Row( 18 | mainAxisAlignment: MainAxisAlignment.spaceAround, 19 | children: [ 20 | _buildUserStats('VISITORS', '2305'), 21 | _buildUserStats('LIKED', '276'), 22 | _buildUserStats('MATCHED', '51'), 23 | ], 24 | ), 25 | ); 26 | 27 | final userImage = Container( 28 | height: 100.0, 29 | width: 100.0, 30 | decoration: BoxDecoration( 31 | image: DecorationImage( 32 | image: AssetImage(user.photo), 33 | fit: BoxFit.cover, 34 | ), 35 | shape: BoxShape.circle, 36 | ), 37 | ); 38 | 39 | final userNameLocation = Container( 40 | child: Column( 41 | mainAxisAlignment: MainAxisAlignment.center, 42 | crossAxisAlignment: CrossAxisAlignment.start, 43 | children: [ 44 | Text( 45 | user.name, 46 | style: TextStyle( 47 | fontSize: 24.0, 48 | fontWeight: FontWeight.w900, 49 | ), 50 | ), 51 | Text( 52 | user.location, 53 | style: TextStyle( 54 | color: Colors.grey.withOpacity(0.6), 55 | fontSize: 20.0, 56 | fontWeight: FontWeight.w600, 57 | ), 58 | ), 59 | ], 60 | ), 61 | ); 62 | 63 | final userInfo = Stack( 64 | children: [ 65 | Padding( 66 | padding: const EdgeInsets.only(left: 20.0, right: 20.0), 67 | child: Material( 68 | elevation: 5.0, 69 | borderRadius: BorderRadius.circular(8.0), 70 | shadowColor: Colors.white, 71 | child: Container( 72 | height: 220.0, 73 | width: MediaQuery.of(context).size.width, 74 | decoration: BoxDecoration( 75 | borderRadius: BorderRadius.circular(8.0), 76 | border: Border.all( 77 | color: Colors.grey.withOpacity(0.2), 78 | ), 79 | color: Colors.white, 80 | ), 81 | child: Padding( 82 | padding: const EdgeInsets.only(left: 20.0, bottom: 20.0), 83 | child: Row( 84 | children: [ 85 | userImage, 86 | SizedBox(width: 10.0), 87 | userNameLocation 88 | ], 89 | ), 90 | ), 91 | ), 92 | ), 93 | ), 94 | userStats 95 | ], 96 | ); 97 | 98 | final secondCard = Padding( 99 | padding: EdgeInsets.only(right: 20.0, left: 20.0, bottom: 30.0), 100 | child: Material( 101 | elevation: 5.0, 102 | borderRadius: BorderRadius.circular(8.0), 103 | shadowColor: Colors.white, 104 | child: Container( 105 | height: 200.0, 106 | decoration: BoxDecoration( 107 | color: Colors.white, 108 | borderRadius: BorderRadius.circular(8.0), 109 | ), 110 | child: Column( 111 | children: [ 112 | _buildIconTile(Icons.favorite, Colors.red, 'Likes'), 113 | hr, 114 | _buildIconTile(LineIcons.eye, Colors.green, 'Visitors'), 115 | hr, 116 | _buildIconTile(LineIcons.users, Colors.purpleAccent, 'Groups'), 117 | ], 118 | ), 119 | ), 120 | ), 121 | ); 122 | 123 | final thirdCard = Padding( 124 | padding: EdgeInsets.only(right: 20.0, left: 20.0, bottom: 30.0), 125 | child: Material( 126 | elevation: 5.0, 127 | borderRadius: BorderRadius.circular(8.0), 128 | shadowColor: Colors.white, 129 | child: Container( 130 | height: 350.0, 131 | decoration: BoxDecoration( 132 | color: Colors.white, 133 | borderRadius: BorderRadius.circular(8.0), 134 | ), 135 | child: Column( 136 | children: [ 137 | _buildIconTile(LineIcons.money, Colors.red, 'My Wallet'), 138 | hr, 139 | _buildIconTile(LineIcons.diamond, Colors.blue, 'VIP Center'), 140 | hr, 141 | _buildIconTile(LineIcons.user_plus, Colors.orangeAccent, 'Find Friends'), 142 | hr, 143 | _buildIconTile(LineIcons.user_times, Colors.black, 'Blacklist'), 144 | hr, 145 | _buildIconTile(LineIcons.cogs, Colors.grey.withOpacity(0.6), 'Settings'), 146 | ], 147 | ), 148 | ), 149 | ), 150 | ); 151 | 152 | return Scaffold( 153 | body: SingleChildScrollView( 154 | child: Column( 155 | children: [ 156 | Container( 157 | width: MediaQuery.of(context).size.width, 158 | child: Column( 159 | children: [ 160 | Stack( 161 | children: [ 162 | Container( 163 | height: 350.0, 164 | ), 165 | Container( 166 | height: 250.0, 167 | decoration: BoxDecoration(gradient: primaryGradient), 168 | ), 169 | Positioned(top: 100, right: 0, left: 0, child: userInfo) 170 | ], 171 | ), 172 | secondCard, thirdCard 173 | ], 174 | ), 175 | ), 176 | ], 177 | ), 178 | ), 179 | ); 180 | } 181 | 182 | Widget _buildUserStats(String name, String value) { 183 | return Column( 184 | children: [ 185 | Text( 186 | name, 187 | style: TextStyle( 188 | color: Colors.grey.withOpacity(0.6), 189 | fontWeight: FontWeight.w600, 190 | fontSize: 16.0, 191 | ), 192 | ), 193 | Text( 194 | value, 195 | style: TextStyle( 196 | color: Colors.black87, 197 | fontWeight: FontWeight.w900, 198 | fontSize: 20.0, 199 | ), 200 | ), 201 | ], 202 | ); 203 | } 204 | 205 | Widget _buildIconTile(IconData icon, Color color, String title) { 206 | return ListTile( 207 | title: Text(title, style: TextStyle(fontWeight: FontWeight.bold),), 208 | leading: Container( 209 | height: 30.0, 210 | width: 30.0, 211 | decoration: BoxDecoration( 212 | color: color, 213 | borderRadius: BorderRadius.circular(10.0), 214 | ), 215 | child: Center( 216 | child: Icon( 217 | icon, 218 | color: Colors.white, 219 | ), 220 | ), 221 | ), 222 | trailing: Icon(LineIcons.chevron_circle_right), 223 | ); 224 | } 225 | } 226 | -------------------------------------------------------------------------------- /lib/views/user_details.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/painting.dart'; 3 | import 'package:flutter/rendering.dart'; 4 | import 'package:flutter_social/models/user.dart'; 5 | import 'package:flutter_social/utils/colors.dart'; 6 | import 'package:line_icons/line_icons.dart'; 7 | 8 | class UserDetailsPage extends StatelessWidget { 9 | final int userId; 10 | 11 | const UserDetailsPage({Key key, this.userId}) : super(key: key); 12 | @override 13 | Widget build(BuildContext context) { 14 | final User user = users.singleWhere((user) => user.id == userId); 15 | 16 | // final deviceHeight = MediaQuery.of(context).size.height; 17 | final deviceWidth = MediaQuery.of(context).size.width; 18 | 19 | final cancelBtn = Positioned( 20 | top: 50.0, 21 | left: 20.0, 22 | child: Container( 23 | height: 35.0, 24 | width: 35.0, 25 | decoration: BoxDecoration( 26 | shape: BoxShape.circle, 27 | color: Colors.grey.withOpacity(0.5), 28 | ), 29 | child: IconButton( 30 | icon: Icon(LineIcons.close, color: Colors.white), 31 | onPressed: () => Navigator.pop(context), 32 | iconSize: 20.0, 33 | ), 34 | ), 35 | ); 36 | 37 | final userImage = Stack( 38 | children: [ 39 | Hero( 40 | tag: user.photo, 41 | child: Container( 42 | height: 350.0, 43 | width: deviceWidth, 44 | decoration: BoxDecoration( 45 | image: DecorationImage( 46 | image: AssetImage(user.photo), 47 | fit: BoxFit.cover, 48 | ), 49 | ), 50 | ), 51 | ), 52 | cancelBtn 53 | ], 54 | ); 55 | 56 | final userName = Container( 57 | padding: EdgeInsets.only(left: 20.0, right: 20.0, top: 20.0), 58 | child: Row( 59 | children: [ 60 | Text( 61 | user.name, 62 | style: TextStyle( 63 | fontSize: 30.0, 64 | fontWeight: FontWeight.bold, 65 | ), 66 | ), 67 | SizedBox( 68 | width: 20.0, 69 | ), 70 | Container( 71 | padding: EdgeInsets.symmetric(horizontal: 3.0), 72 | height: 30.0, 73 | width: 60.0, 74 | decoration: BoxDecoration( 75 | gradient: chatBubbleGradient, 76 | borderRadius: BorderRadius.circular(30.0)), 77 | child: Center( 78 | child: Row( 79 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 80 | children: [ 81 | Icon( 82 | user.gender == 'M' ? LineIcons.mars : LineIcons.venus, 83 | color: Colors.white, 84 | ), 85 | Text( 86 | user.age.toString(), 87 | style: TextStyle( 88 | fontWeight: FontWeight.bold, 89 | color: Colors.white, 90 | fontSize: 18.0, 91 | ), 92 | ) 93 | ], 94 | ), 95 | ), 96 | ) 97 | ], 98 | )); 99 | 100 | final userLocation = Container( 101 | padding: EdgeInsets.only(left: 20.0, right: 20.0), 102 | child: Text( 103 | user.location, 104 | style: TextStyle( 105 | fontSize: 18.0, 106 | fontWeight: FontWeight.bold, 107 | color: Colors.grey.withOpacity(0.8), 108 | ), 109 | ), 110 | ); 111 | 112 | final aboutUser = Padding( 113 | padding: EdgeInsets.all(20.0), 114 | child: Material( 115 | elevation: 5.0, 116 | borderRadius: BorderRadius.circular(12.0), 117 | shadowColor: Colors.white, 118 | child: Container( 119 | padding: EdgeInsets.all(15.0), 120 | width: deviceWidth, 121 | decoration: BoxDecoration( 122 | borderRadius: BorderRadius.circular(12.0), 123 | color: Colors.white, 124 | ), 125 | constraints: BoxConstraints(minHeight: 100.0), 126 | child: Column( 127 | crossAxisAlignment: CrossAxisAlignment.start, 128 | children: [ 129 | SizedBox( 130 | height: 5.0, 131 | ), 132 | Text( 133 | "ABOUT ME", 134 | style: TextStyle( 135 | color: Colors.black, 136 | fontSize: 18.0, 137 | fontWeight: FontWeight.bold, 138 | ), 139 | ), 140 | SizedBox( 141 | height: 2.0, 142 | ), 143 | Text( 144 | "My name is ${user.name} and i love meeting new people and making new friends. I love sports, reading, hiking and partying. Don't be reluctant to hit me up.", 145 | style: TextStyle( 146 | color: Colors.black54, 147 | fontWeight: FontWeight.w600, 148 | fontSize: 16.0, 149 | ), 150 | ) 151 | ], 152 | ), 153 | ), 154 | ), 155 | ); 156 | 157 | final hobbies = Padding( 158 | padding: EdgeInsets.only(bottom: 20.0, left: 20.0, right: 20.0), 159 | child: Material( 160 | elevation: 5.0, 161 | borderRadius: BorderRadius.circular(12.0), 162 | shadowColor: Colors.white, 163 | child: Container( 164 | padding: EdgeInsets.all(15.0), 165 | width: deviceWidth, 166 | decoration: BoxDecoration( 167 | borderRadius: BorderRadius.circular(12.0), 168 | color: Colors.white, 169 | ), 170 | constraints: BoxConstraints(minHeight: 100.0), 171 | child: Column( 172 | crossAxisAlignment: CrossAxisAlignment.start, 173 | children: [ 174 | SizedBox( 175 | height: 5.0, 176 | ), 177 | Text( 178 | "HOBBIES", 179 | style: TextStyle( 180 | color: Colors.black, 181 | fontSize: 18.0, 182 | fontWeight: FontWeight.bold, 183 | ), 184 | ), 185 | SizedBox( 186 | height: 2.0, 187 | ), 188 | Wrap( 189 | children: userHobbies 190 | .map((hobby) => _buildHobbiesCards(hobby)) 191 | .toList(), 192 | ) 193 | ], 194 | ), 195 | ), 196 | ), 197 | ); 198 | 199 | return Scaffold( 200 | body: SingleChildScrollView( 201 | child: Column( 202 | crossAxisAlignment: CrossAxisAlignment.start, 203 | children: [ 204 | userImage, 205 | userName, 206 | userLocation, 207 | aboutUser, 208 | hobbies 209 | ], 210 | ), 211 | ), 212 | ); 213 | } 214 | 215 | Widget _buildHobbiesCards(String name) { 216 | return Container( 217 | padding: EdgeInsets.only( 218 | left: 10.0, 219 | right: 10.0, 220 | ), 221 | margin: EdgeInsets.only(right: 5.0, bottom: 3.0), 222 | height: 30.0, 223 | constraints: BoxConstraints(maxWidth: 80.0), 224 | decoration: BoxDecoration( 225 | borderRadius: BorderRadius.circular(12.0), 226 | color: Colors.transparent, 227 | border: Border.all(color: Colors.grey, width: 2.0), 228 | ), 229 | child: Center( 230 | child: Text( 231 | name, 232 | style: TextStyle( 233 | fontWeight: FontWeight.w600, 234 | ), 235 | )), 236 | ); 237 | } 238 | } 239 | -------------------------------------------------------------------------------- /lib/views/tabs/chats.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/widgets.dart'; 3 | import 'package:flutter_social/_routing/routes.dart'; 4 | import 'package:flutter_social/models/chat.dart'; 5 | import 'package:flutter_social/models/user.dart'; 6 | import 'package:flutter_social/utils/colors.dart'; 7 | 8 | class ChatsPage extends StatelessWidget { 9 | @override 10 | Widget build(BuildContext context) { 11 | final deviceWidth = MediaQuery.of(context).size.width; 12 | 13 | final pageTitle = Padding( 14 | padding: EdgeInsets.only(top: 1.0, bottom: 20.0), 15 | child: Text( 16 | "Chats", 17 | style: TextStyle( 18 | fontWeight: FontWeight.bold, 19 | color: Colors.black, 20 | fontSize: 40.0, 21 | ), 22 | ), 23 | ); 24 | 25 | final searchBar = Container( 26 | padding: EdgeInsets.only(left: 20.0, right: 20.0), 27 | height: 50.0, 28 | width: deviceWidth, 29 | decoration: BoxDecoration( 30 | color: Colors.grey.withOpacity(0.3), 31 | borderRadius: BorderRadius.circular(12.0), 32 | ), 33 | child: TextField( 34 | decoration: InputDecoration( 35 | border: InputBorder.none, 36 | prefixIcon: Icon( 37 | Icons.search, 38 | color: Colors.grey, 39 | ), 40 | contentPadding: EdgeInsets.only(top: 15.0), 41 | hintText: 'Search...', 42 | hintStyle: TextStyle( 43 | color: Colors.grey.withOpacity(0.6), 44 | fontWeight: FontWeight.w600, 45 | ), 46 | ), 47 | ), 48 | ); 49 | 50 | final onlineUsersHeading = Text( 51 | "ONLINE USERS", 52 | style: TextStyle( 53 | color: Colors.grey.withOpacity(0.6), 54 | fontWeight: FontWeight.w600, 55 | fontSize: 20.0, 56 | ), 57 | ); 58 | 59 | final listOfOnlineUsers = Container( 60 | height: 100.0, 61 | child: ListView( 62 | scrollDirection: Axis.horizontal, 63 | children: users.map((user) => _buildUserCard(user, context)).toList(), 64 | ), 65 | ); 66 | 67 | final onlineUsers = Container( 68 | margin: EdgeInsets.only(top: 20.0), 69 | child: Column( 70 | crossAxisAlignment: CrossAxisAlignment.start, 71 | children: [ 72 | onlineUsersHeading, 73 | SizedBox( 74 | height: 10.0, 75 | ), 76 | listOfOnlineUsers 77 | ], 78 | ), 79 | ); 80 | 81 | final chatList = Container( 82 | height: 500.0, 83 | child: ListView( 84 | children: chats.map((chat) => _buildChatTile(chat, context)).toList(), 85 | ), 86 | ); 87 | 88 | return Scaffold( 89 | body: SingleChildScrollView( 90 | child: Container( 91 | padding: EdgeInsets.only(top: 40.0), 92 | width: deviceWidth, 93 | child: Column( 94 | crossAxisAlignment: CrossAxisAlignment.start, 95 | children: [ 96 | Container( 97 | padding: EdgeInsets.only(top: 30.0, left: 30.0, right: 30.0), 98 | child: Column( 99 | crossAxisAlignment: CrossAxisAlignment.start, 100 | children: [ 101 | pageTitle, 102 | searchBar, 103 | onlineUsers, 104 | chatList 105 | ], 106 | ), 107 | ) 108 | ], 109 | ), 110 | ), 111 | ), 112 | ); 113 | } 114 | 115 | Widget _buildUserCard(User user, BuildContext context) { 116 | final firstName = user.name.split(" ")[0]; 117 | 118 | final onlineTag = Positioned( 119 | bottom: 10.0, 120 | right: 3.0, 121 | child: Container( 122 | height: 15.0, 123 | width: 15.0, 124 | decoration: BoxDecoration( 125 | shape: BoxShape.circle, 126 | border: Border.all(color: Colors.white, width: 2.0), 127 | color: Colors.lightGreen, 128 | ), 129 | ), 130 | ); 131 | return Column( 132 | children: [ 133 | InkWell( 134 | onTap: () => Navigator.pushNamed(context, chatDetailsViewRoute, arguments: user.id), 135 | child: Stack( 136 | children: [ 137 | Container( 138 | margin: EdgeInsets.only(right: 8.0), 139 | height: 70.0, 140 | width: 70.0, 141 | decoration: BoxDecoration( 142 | image: DecorationImage( 143 | image: AssetImage(user.photo), 144 | fit: BoxFit.cover, 145 | ), 146 | shape: BoxShape.circle, 147 | ), 148 | ), 149 | onlineTag 150 | ], 151 | ), 152 | ), 153 | Text( 154 | firstName, 155 | style: TextStyle(fontWeight: FontWeight.w600), 156 | ) 157 | ], 158 | ); 159 | } 160 | 161 | Widget _buildChatTile(Chat chat, BuildContext context) { 162 | final unreadCount = Positioned( 163 | bottom: 9.0, 164 | right: 0.0, 165 | child: Container( 166 | height: 25.0, 167 | width: 25.0, 168 | decoration: BoxDecoration( 169 | shape: BoxShape.circle, 170 | border: Border.all(color: Colors.white, width: 2.0), 171 | gradient: primaryGradient, 172 | ), 173 | child: Center( 174 | child: Text( 175 | chat.unreadCount.toString(), 176 | style: TextStyle(color: Colors.white), 177 | ), 178 | ), 179 | ), 180 | ); 181 | 182 | final userImage = InkWell( 183 | onTap: () { 184 | Navigator.pushNamed( 185 | context, 186 | userDetailsViewRoute, 187 | arguments: chat.userId, 188 | ); 189 | }, 190 | child: Stack( 191 | children: [ 192 | Hero( 193 | tag: chat.userImage, 194 | child: Container( 195 | margin: EdgeInsets.only(right: 8.0, bottom: 10.0), 196 | height: 70.0, 197 | width: 70.0, 198 | decoration: BoxDecoration( 199 | image: DecorationImage( 200 | image: AssetImage(chat.userImage), 201 | fit: BoxFit.cover, 202 | ), 203 | shape: BoxShape.circle, 204 | ), 205 | ), 206 | ), 207 | chat.unreadCount == 0 ? Container() : unreadCount 208 | ], 209 | ), 210 | ); 211 | 212 | final userNameMessage = Expanded( 213 | child: InkWell( 214 | onTap: () { 215 | Navigator.pushNamed( 216 | context, 217 | chatDetailsViewRoute, 218 | arguments: chat.userId, 219 | ); 220 | }, 221 | child: Container( 222 | padding: EdgeInsets.only( 223 | left: 10.0, 224 | ), 225 | child: Column( 226 | crossAxisAlignment: CrossAxisAlignment.start, 227 | children: [ 228 | Hero( 229 | tag: chat.userName, 230 | child: Text( 231 | chat.userName, 232 | style: TextStyle( 233 | fontWeight: FontWeight.bold, 234 | fontSize: 20.0, 235 | ), 236 | ), 237 | ), 238 | Text( 239 | chat.message, 240 | style: TextStyle( 241 | fontWeight: FontWeight.w600, 242 | fontSize: 18.0, 243 | color: Colors.grey.withOpacity(0.6), 244 | ), 245 | overflow: TextOverflow.ellipsis, 246 | ), 247 | ], 248 | ), 249 | ), 250 | ), 251 | ); 252 | return Container( 253 | margin: EdgeInsets.only(bottom: 8.0), 254 | child: Row( 255 | children: [userImage, userNameMessage], 256 | ), 257 | ); 258 | } 259 | } 260 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 14 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 15 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 16 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 17 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 18 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 19 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 20 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 21 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXCopyFilesBuildPhase section */ 25 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 26 | isa = PBXCopyFilesBuildPhase; 27 | buildActionMask = 2147483647; 28 | dstPath = ""; 29 | dstSubfolderSpec = 10; 30 | files = ( 31 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 32 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 33 | ); 34 | name = "Embed Frameworks"; 35 | runOnlyForDeploymentPostprocessing = 0; 36 | }; 37 | /* End PBXCopyFilesBuildPhase section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 41 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 42 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 43 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 44 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 45 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 46 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 47 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 48 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 49 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 50 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 51 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 52 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 53 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 54 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 55 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 56 | /* End PBXFileReference section */ 57 | 58 | /* Begin PBXFrameworksBuildPhase section */ 59 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 60 | isa = PBXFrameworksBuildPhase; 61 | buildActionMask = 2147483647; 62 | files = ( 63 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 64 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 65 | ); 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | /* End PBXFrameworksBuildPhase section */ 69 | 70 | /* Begin PBXGroup section */ 71 | 9740EEB11CF90186004384FC /* Flutter */ = { 72 | isa = PBXGroup; 73 | children = ( 74 | 3B80C3931E831B6300D905FE /* App.framework */, 75 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 76 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 77 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 78 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 79 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 80 | ); 81 | name = Flutter; 82 | sourceTree = ""; 83 | }; 84 | 97C146E51CF9000F007C117D = { 85 | isa = PBXGroup; 86 | children = ( 87 | 9740EEB11CF90186004384FC /* Flutter */, 88 | 97C146F01CF9000F007C117D /* Runner */, 89 | 97C146EF1CF9000F007C117D /* Products */, 90 | CF3B75C9A7D2FA2A4C99F110 /* Frameworks */, 91 | ); 92 | sourceTree = ""; 93 | }; 94 | 97C146EF1CF9000F007C117D /* Products */ = { 95 | isa = PBXGroup; 96 | children = ( 97 | 97C146EE1CF9000F007C117D /* Runner.app */, 98 | ); 99 | name = Products; 100 | sourceTree = ""; 101 | }; 102 | 97C146F01CF9000F007C117D /* Runner */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 106 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 107 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 108 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 109 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 110 | 97C147021CF9000F007C117D /* Info.plist */, 111 | 97C146F11CF9000F007C117D /* Supporting Files */, 112 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 113 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 114 | ); 115 | path = Runner; 116 | sourceTree = ""; 117 | }; 118 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 97C146F21CF9000F007C117D /* main.m */, 122 | ); 123 | name = "Supporting Files"; 124 | sourceTree = ""; 125 | }; 126 | /* End PBXGroup section */ 127 | 128 | /* Begin PBXNativeTarget section */ 129 | 97C146ED1CF9000F007C117D /* Runner */ = { 130 | isa = PBXNativeTarget; 131 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 132 | buildPhases = ( 133 | 9740EEB61CF901F6004384FC /* Run Script */, 134 | 97C146EA1CF9000F007C117D /* Sources */, 135 | 97C146EB1CF9000F007C117D /* Frameworks */, 136 | 97C146EC1CF9000F007C117D /* Resources */, 137 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 138 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 139 | ); 140 | buildRules = ( 141 | ); 142 | dependencies = ( 143 | ); 144 | name = Runner; 145 | productName = Runner; 146 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 147 | productType = "com.apple.product-type.application"; 148 | }; 149 | /* End PBXNativeTarget section */ 150 | 151 | /* Begin PBXProject section */ 152 | 97C146E61CF9000F007C117D /* Project object */ = { 153 | isa = PBXProject; 154 | attributes = { 155 | LastUpgradeCheck = 0910; 156 | ORGANIZATIONNAME = "The Chromium Authors"; 157 | TargetAttributes = { 158 | 97C146ED1CF9000F007C117D = { 159 | CreatedOnToolsVersion = 7.3.1; 160 | }; 161 | }; 162 | }; 163 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 164 | compatibilityVersion = "Xcode 3.2"; 165 | developmentRegion = English; 166 | hasScannedForEncodings = 0; 167 | knownRegions = ( 168 | en, 169 | Base, 170 | ); 171 | mainGroup = 97C146E51CF9000F007C117D; 172 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 173 | projectDirPath = ""; 174 | projectRoot = ""; 175 | targets = ( 176 | 97C146ED1CF9000F007C117D /* Runner */, 177 | ); 178 | }; 179 | /* End PBXProject section */ 180 | 181 | /* Begin PBXResourcesBuildPhase section */ 182 | 97C146EC1CF9000F007C117D /* Resources */ = { 183 | isa = PBXResourcesBuildPhase; 184 | buildActionMask = 2147483647; 185 | files = ( 186 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 187 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 188 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 189 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 190 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 191 | ); 192 | runOnlyForDeploymentPostprocessing = 0; 193 | }; 194 | /* End PBXResourcesBuildPhase section */ 195 | 196 | /* Begin PBXShellScriptBuildPhase section */ 197 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 198 | isa = PBXShellScriptBuildPhase; 199 | buildActionMask = 2147483647; 200 | files = ( 201 | ); 202 | inputPaths = ( 203 | ); 204 | name = "Thin Binary"; 205 | outputPaths = ( 206 | ); 207 | runOnlyForDeploymentPostprocessing = 0; 208 | shellPath = /bin/sh; 209 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 210 | }; 211 | 9740EEB61CF901F6004384FC /* Run Script */ = { 212 | isa = PBXShellScriptBuildPhase; 213 | buildActionMask = 2147483647; 214 | files = ( 215 | ); 216 | inputPaths = ( 217 | ); 218 | name = "Run Script"; 219 | outputPaths = ( 220 | ); 221 | runOnlyForDeploymentPostprocessing = 0; 222 | shellPath = /bin/sh; 223 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 224 | }; 225 | /* End PBXShellScriptBuildPhase section */ 226 | 227 | /* Begin PBXSourcesBuildPhase section */ 228 | 97C146EA1CF9000F007C117D /* Sources */ = { 229 | isa = PBXSourcesBuildPhase; 230 | buildActionMask = 2147483647; 231 | files = ( 232 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 233 | 97C146F31CF9000F007C117D /* main.m in Sources */, 234 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 235 | ); 236 | runOnlyForDeploymentPostprocessing = 0; 237 | }; 238 | /* End PBXSourcesBuildPhase section */ 239 | 240 | /* Begin PBXVariantGroup section */ 241 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 242 | isa = PBXVariantGroup; 243 | children = ( 244 | 97C146FB1CF9000F007C117D /* Base */, 245 | ); 246 | name = Main.storyboard; 247 | sourceTree = ""; 248 | }; 249 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 250 | isa = PBXVariantGroup; 251 | children = ( 252 | 97C147001CF9000F007C117D /* Base */, 253 | ); 254 | name = LaunchScreen.storyboard; 255 | sourceTree = ""; 256 | }; 257 | /* End PBXVariantGroup section */ 258 | 259 | /* Begin XCBuildConfiguration section */ 260 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 261 | isa = XCBuildConfiguration; 262 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 263 | buildSettings = { 264 | ALWAYS_SEARCH_USER_PATHS = NO; 265 | CLANG_ANALYZER_NONNULL = YES; 266 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 267 | CLANG_CXX_LIBRARY = "libc++"; 268 | CLANG_ENABLE_MODULES = YES; 269 | CLANG_ENABLE_OBJC_ARC = YES; 270 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 271 | CLANG_WARN_BOOL_CONVERSION = YES; 272 | CLANG_WARN_COMMA = YES; 273 | CLANG_WARN_CONSTANT_CONVERSION = YES; 274 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 275 | CLANG_WARN_EMPTY_BODY = YES; 276 | CLANG_WARN_ENUM_CONVERSION = YES; 277 | CLANG_WARN_INFINITE_RECURSION = YES; 278 | CLANG_WARN_INT_CONVERSION = YES; 279 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 280 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 281 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 282 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 283 | CLANG_WARN_STRICT_PROTOTYPES = YES; 284 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 285 | CLANG_WARN_UNREACHABLE_CODE = YES; 286 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 287 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 288 | COPY_PHASE_STRIP = NO; 289 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 290 | ENABLE_NS_ASSERTIONS = NO; 291 | ENABLE_STRICT_OBJC_MSGSEND = YES; 292 | GCC_C_LANGUAGE_STANDARD = gnu99; 293 | GCC_NO_COMMON_BLOCKS = YES; 294 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 295 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 296 | GCC_WARN_UNDECLARED_SELECTOR = YES; 297 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 298 | GCC_WARN_UNUSED_FUNCTION = YES; 299 | GCC_WARN_UNUSED_VARIABLE = YES; 300 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 301 | MTL_ENABLE_DEBUG_INFO = NO; 302 | SDKROOT = iphoneos; 303 | TARGETED_DEVICE_FAMILY = "1,2"; 304 | VALIDATE_PRODUCT = YES; 305 | }; 306 | name = Profile; 307 | }; 308 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 309 | isa = XCBuildConfiguration; 310 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 311 | buildSettings = { 312 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 313 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 314 | DEVELOPMENT_TEAM = S8QB4VV633; 315 | ENABLE_BITCODE = NO; 316 | FRAMEWORK_SEARCH_PATHS = ( 317 | "$(inherited)", 318 | "$(PROJECT_DIR)/Flutter", 319 | ); 320 | INFOPLIST_FILE = Runner/Info.plist; 321 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 322 | LIBRARY_SEARCH_PATHS = ( 323 | "$(inherited)", 324 | "$(PROJECT_DIR)/Flutter", 325 | ); 326 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterSocial; 327 | PRODUCT_NAME = "$(TARGET_NAME)"; 328 | VERSIONING_SYSTEM = "apple-generic"; 329 | }; 330 | name = Profile; 331 | }; 332 | 97C147031CF9000F007C117D /* Debug */ = { 333 | isa = XCBuildConfiguration; 334 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 335 | buildSettings = { 336 | ALWAYS_SEARCH_USER_PATHS = NO; 337 | CLANG_ANALYZER_NONNULL = YES; 338 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 339 | CLANG_CXX_LIBRARY = "libc++"; 340 | CLANG_ENABLE_MODULES = YES; 341 | CLANG_ENABLE_OBJC_ARC = YES; 342 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 343 | CLANG_WARN_BOOL_CONVERSION = YES; 344 | CLANG_WARN_COMMA = YES; 345 | CLANG_WARN_CONSTANT_CONVERSION = YES; 346 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 347 | CLANG_WARN_EMPTY_BODY = YES; 348 | CLANG_WARN_ENUM_CONVERSION = YES; 349 | CLANG_WARN_INFINITE_RECURSION = YES; 350 | CLANG_WARN_INT_CONVERSION = YES; 351 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 352 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 353 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 354 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 355 | CLANG_WARN_STRICT_PROTOTYPES = YES; 356 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 357 | CLANG_WARN_UNREACHABLE_CODE = YES; 358 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 359 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 360 | COPY_PHASE_STRIP = NO; 361 | DEBUG_INFORMATION_FORMAT = dwarf; 362 | ENABLE_STRICT_OBJC_MSGSEND = YES; 363 | ENABLE_TESTABILITY = YES; 364 | GCC_C_LANGUAGE_STANDARD = gnu99; 365 | GCC_DYNAMIC_NO_PIC = NO; 366 | GCC_NO_COMMON_BLOCKS = YES; 367 | GCC_OPTIMIZATION_LEVEL = 0; 368 | GCC_PREPROCESSOR_DEFINITIONS = ( 369 | "DEBUG=1", 370 | "$(inherited)", 371 | ); 372 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 373 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 374 | GCC_WARN_UNDECLARED_SELECTOR = YES; 375 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 376 | GCC_WARN_UNUSED_FUNCTION = YES; 377 | GCC_WARN_UNUSED_VARIABLE = YES; 378 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 379 | MTL_ENABLE_DEBUG_INFO = YES; 380 | ONLY_ACTIVE_ARCH = YES; 381 | SDKROOT = iphoneos; 382 | TARGETED_DEVICE_FAMILY = "1,2"; 383 | }; 384 | name = Debug; 385 | }; 386 | 97C147041CF9000F007C117D /* Release */ = { 387 | isa = XCBuildConfiguration; 388 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 389 | buildSettings = { 390 | ALWAYS_SEARCH_USER_PATHS = NO; 391 | CLANG_ANALYZER_NONNULL = YES; 392 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 393 | CLANG_CXX_LIBRARY = "libc++"; 394 | CLANG_ENABLE_MODULES = YES; 395 | CLANG_ENABLE_OBJC_ARC = YES; 396 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 397 | CLANG_WARN_BOOL_CONVERSION = YES; 398 | CLANG_WARN_COMMA = YES; 399 | CLANG_WARN_CONSTANT_CONVERSION = YES; 400 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 401 | CLANG_WARN_EMPTY_BODY = YES; 402 | CLANG_WARN_ENUM_CONVERSION = YES; 403 | CLANG_WARN_INFINITE_RECURSION = YES; 404 | CLANG_WARN_INT_CONVERSION = YES; 405 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 406 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 407 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 408 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 409 | CLANG_WARN_STRICT_PROTOTYPES = YES; 410 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 411 | CLANG_WARN_UNREACHABLE_CODE = YES; 412 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 413 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 414 | COPY_PHASE_STRIP = NO; 415 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 416 | ENABLE_NS_ASSERTIONS = NO; 417 | ENABLE_STRICT_OBJC_MSGSEND = YES; 418 | GCC_C_LANGUAGE_STANDARD = gnu99; 419 | GCC_NO_COMMON_BLOCKS = YES; 420 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 421 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 422 | GCC_WARN_UNDECLARED_SELECTOR = YES; 423 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 424 | GCC_WARN_UNUSED_FUNCTION = YES; 425 | GCC_WARN_UNUSED_VARIABLE = YES; 426 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 427 | MTL_ENABLE_DEBUG_INFO = NO; 428 | SDKROOT = iphoneos; 429 | TARGETED_DEVICE_FAMILY = "1,2"; 430 | VALIDATE_PRODUCT = YES; 431 | }; 432 | name = Release; 433 | }; 434 | 97C147061CF9000F007C117D /* Debug */ = { 435 | isa = XCBuildConfiguration; 436 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 437 | buildSettings = { 438 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 439 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 440 | ENABLE_BITCODE = NO; 441 | FRAMEWORK_SEARCH_PATHS = ( 442 | "$(inherited)", 443 | "$(PROJECT_DIR)/Flutter", 444 | ); 445 | INFOPLIST_FILE = Runner/Info.plist; 446 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 447 | LIBRARY_SEARCH_PATHS = ( 448 | "$(inherited)", 449 | "$(PROJECT_DIR)/Flutter", 450 | ); 451 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterSocial; 452 | PRODUCT_NAME = "$(TARGET_NAME)"; 453 | VERSIONING_SYSTEM = "apple-generic"; 454 | }; 455 | name = Debug; 456 | }; 457 | 97C147071CF9000F007C117D /* Release */ = { 458 | isa = XCBuildConfiguration; 459 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 460 | buildSettings = { 461 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 462 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 463 | ENABLE_BITCODE = NO; 464 | FRAMEWORK_SEARCH_PATHS = ( 465 | "$(inherited)", 466 | "$(PROJECT_DIR)/Flutter", 467 | ); 468 | INFOPLIST_FILE = Runner/Info.plist; 469 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 470 | LIBRARY_SEARCH_PATHS = ( 471 | "$(inherited)", 472 | "$(PROJECT_DIR)/Flutter", 473 | ); 474 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterSocial; 475 | PRODUCT_NAME = "$(TARGET_NAME)"; 476 | VERSIONING_SYSTEM = "apple-generic"; 477 | }; 478 | name = Release; 479 | }; 480 | /* End XCBuildConfiguration section */ 481 | 482 | /* Begin XCConfigurationList section */ 483 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 484 | isa = XCConfigurationList; 485 | buildConfigurations = ( 486 | 97C147031CF9000F007C117D /* Debug */, 487 | 97C147041CF9000F007C117D /* Release */, 488 | 249021D3217E4FDB00AE95B9 /* Profile */, 489 | ); 490 | defaultConfigurationIsVisible = 0; 491 | defaultConfigurationName = Release; 492 | }; 493 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 494 | isa = XCConfigurationList; 495 | buildConfigurations = ( 496 | 97C147061CF9000F007C117D /* Debug */, 497 | 97C147071CF9000F007C117D /* Release */, 498 | 249021D4217E4FDB00AE95B9 /* Profile */, 499 | ); 500 | defaultConfigurationIsVisible = 0; 501 | defaultConfigurationName = Release; 502 | }; 503 | /* End XCConfigurationList section */ 504 | }; 505 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 506 | } 507 | --------------------------------------------------------------------------------