├── .gitignore
├── .metadata
├── README.md
├── android
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── flutter_ghana_ui_challenge_week_1
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── assets
├── fonts
│ ├── Quicksand-Bold.ttf
│ ├── Quicksand-Medium.ttf
│ ├── Quicksand-Regular.ttf
│ └── Quicksand-SemiBold.ttf
└── images
│ ├── assassin.jpg
│ ├── bleach.jpg
│ ├── hamburger.png
│ ├── luffy.jpg
│ ├── mikasa.jpg
│ ├── naruto.jpg
│ ├── natsu.jpg
│ ├── rom.jpg
│ ├── rom2.png
│ └── saitama.jpg
├── ios
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ └── contents.xcworkspacedata
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
├── lib
├── app.dart
├── main.dart
├── models
│ └── notification.dart
├── router.dart
├── theme.dart
├── utils
│ ├── colors.dart
│ └── utils.dart
├── views
│ ├── home
│ │ ├── home.dart
│ │ └── widgets
│ │ │ ├── tab_section.dart
│ │ │ └── tile_section.dart
│ └── notifications
│ │ ├── notifications.dart
│ │ └── widgets
│ │ ├── search_bar.dart
│ │ ├── second_section.dart
│ │ └── tab_section.dart
└── widgets
│ ├── category_card.dart
│ ├── custom_appbar.dart
│ ├── custom_text.dart
│ ├── header.dart
│ ├── media_section.dart
│ ├── notification_card.dart
│ ├── photo_card.dart
│ └── video_card.dart
├── pubspec.lock
├── pubspec.yaml
└── screenshots
├── 1.png
├── 2.png
└── banner.png
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | .dart_tool/
26 | .flutter-plugins
27 | .packages
28 | .pub-cache/
29 | .pub/
30 | /build/
31 |
32 | # Android related
33 | **/android/**/gradle-wrapper.jar
34 | **/android/.gradle
35 | **/android/captures/
36 | **/android/gradlew
37 | **/android/gradlew.bat
38 | **/android/local.properties
39 | **/android/**/GeneratedPluginRegistrant.java
40 |
41 | # iOS/XCode related
42 | **/ios/**/*.mode1v3
43 | **/ios/**/*.mode2v3
44 | **/ios/**/*.moved-aside
45 | **/ios/**/*.pbxuser
46 | **/ios/**/*.perspectivev3
47 | **/ios/**/*sync/
48 | **/ios/**/.sconsign.dblite
49 | **/ios/**/.tags*
50 | **/ios/**/.vagrant/
51 | **/ios/**/DerivedData/
52 | **/ios/**/Icon?
53 | **/ios/**/Pods/
54 | **/ios/**/.symlinks/
55 | **/ios/**/profile
56 | **/ios/**/xcuserdata
57 | **/ios/.generated/
58 | **/ios/Flutter/App.framework
59 | **/ios/Flutter/Flutter.framework
60 | **/ios/Flutter/Generated.xcconfig
61 | **/ios/Flutter/app.flx
62 | **/ios/Flutter/app.zip
63 | **/ios/Flutter/flutter_assets/
64 | **/ios/ServiceDefinitions.json
65 | **/ios/Runner/GeneratedPluginRegistrant.*
66 |
67 | # Exceptions to above rules.
68 | !**/ios/**/default.mode1v3
69 | !**/ios/**/default.mode2v3
70 | !**/ios/**/default.pbxuser
71 | !**/ios/**/default.perspectivev3
72 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
73 |
--------------------------------------------------------------------------------
/.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: 20e59316b8b8474554b38493b8ca888794b0234a
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Flutter Ghana UI Challenge Week 1 - Social Media App
2 |
3 | A Flutter UI implementation of a Social Media App inspired by Outcroud's desgin on Dribble.
4 |
5 |
6 | Star this repo if you like what you see.
7 |
8 | ## 📸 Screenshots
9 |
10 |
11 |
12 |
13 |
14 |
15 | ## Author(s)
16 | **Emmanuel Fache**
17 |
18 | ## Getting Started
19 |
20 | **Note**: Make sure your Flutter environment is setup.
21 | #### Installation
22 |
23 | In the command terminal, run the following commands:
24 |
25 | $ git clone https://github.com/emrade/flutter-ghana-ui-challenge-week-1.git ui_challenge
26 | $ cd ui_challenge/
27 | $ flutter packages get
28 | $ flutter run
29 |
30 | ##### Check out Flutter’s online [documentation](http://flutter.io/) for help getting started with your Flutter project.
31 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 28
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | lintOptions {
36 | disable 'InvalidPackage'
37 | }
38 |
39 | defaultConfig {
40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41 | applicationId "com.example.flutter_ghana_ui_challenge_week_1"
42 | minSdkVersion 16
43 | targetSdkVersion 28
44 | versionCode flutterVersionCode.toInteger()
45 | versionName flutterVersionName
46 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
47 | }
48 |
49 | buildTypes {
50 | release {
51 | // TODO: Add your own signing config for the release build.
52 | // Signing with the debug keys for now, so `flutter run --release` works.
53 | signingConfig signingConfigs.debug
54 | }
55 | }
56 | }
57 |
58 | flutter {
59 | source '../..'
60 | }
61 |
62 | dependencies {
63 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
64 | testImplementation 'junit:junit:4.12'
65 | androidTestImplementation 'com.android.support.test:runner:1.0.2'
66 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
67 | }
68 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
9 |
13 |
20 |
24 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/flutter_ghana_ui_challenge_week_1/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.flutter_ghana_ui_challenge_week_1
2 |
3 | import android.os.Bundle
4 |
5 | import io.flutter.app.FlutterActivity
6 | import io.flutter.plugins.GeneratedPluginRegistrant
7 |
8 | class MainActivity: FlutterActivity() {
9 | override fun onCreate(savedInstanceState: Bundle?) {
10 | super.onCreate(savedInstanceState)
11 | GeneratedPluginRegistrant.registerWith(this)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emrade/flutter-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/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-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/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-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/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-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/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-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.2.71'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.2.1'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | jcenter()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 |
3 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/assets/fonts/Quicksand-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emrade/flutter-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/assets/fonts/Quicksand-Bold.ttf
--------------------------------------------------------------------------------
/assets/fonts/Quicksand-Medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emrade/flutter-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/assets/fonts/Quicksand-Medium.ttf
--------------------------------------------------------------------------------
/assets/fonts/Quicksand-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emrade/flutter-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/assets/fonts/Quicksand-Regular.ttf
--------------------------------------------------------------------------------
/assets/fonts/Quicksand-SemiBold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emrade/flutter-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/assets/fonts/Quicksand-SemiBold.ttf
--------------------------------------------------------------------------------
/assets/images/assassin.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emrade/flutter-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/assets/images/assassin.jpg
--------------------------------------------------------------------------------
/assets/images/bleach.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emrade/flutter-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/assets/images/bleach.jpg
--------------------------------------------------------------------------------
/assets/images/hamburger.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emrade/flutter-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/assets/images/hamburger.png
--------------------------------------------------------------------------------
/assets/images/luffy.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emrade/flutter-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/assets/images/luffy.jpg
--------------------------------------------------------------------------------
/assets/images/mikasa.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emrade/flutter-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/assets/images/mikasa.jpg
--------------------------------------------------------------------------------
/assets/images/naruto.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emrade/flutter-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/assets/images/naruto.jpg
--------------------------------------------------------------------------------
/assets/images/natsu.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emrade/flutter-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/assets/images/natsu.jpg
--------------------------------------------------------------------------------
/assets/images/rom.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emrade/flutter-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/assets/images/rom.jpg
--------------------------------------------------------------------------------
/assets/images/rom2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emrade/flutter-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/assets/images/rom2.png
--------------------------------------------------------------------------------
/assets/images/saitama.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emrade/flutter-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/assets/images/saitama.jpg
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
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 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 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 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
17 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; };
18 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
19 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
20 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
21 | /* End PBXBuildFile section */
22 |
23 | /* Begin PBXCopyFilesBuildPhase section */
24 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
25 | isa = PBXCopyFilesBuildPhase;
26 | buildActionMask = 2147483647;
27 | dstPath = "";
28 | dstSubfolderSpec = 10;
29 | files = (
30 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */,
31 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */,
32 | );
33 | name = "Embed Frameworks";
34 | runOnlyForDeploymentPostprocessing = 0;
35 | };
36 | /* End PBXCopyFilesBuildPhase section */
37 |
38 | /* Begin PBXFileReference section */
39 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
40 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
41 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
42 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; };
43 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
44 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
45 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
46 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
47 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
48 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; };
49 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
50 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
51 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
52 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
53 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
54 | /* End PBXFileReference section */
55 |
56 | /* Begin PBXFrameworksBuildPhase section */
57 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
58 | isa = PBXFrameworksBuildPhase;
59 | buildActionMask = 2147483647;
60 | files = (
61 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
62 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
63 | );
64 | runOnlyForDeploymentPostprocessing = 0;
65 | };
66 | /* End PBXFrameworksBuildPhase section */
67 |
68 | /* Begin PBXGroup section */
69 | 9740EEB11CF90186004384FC /* Flutter */ = {
70 | isa = PBXGroup;
71 | children = (
72 | 3B80C3931E831B6300D905FE /* App.framework */,
73 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
74 | 9740EEBA1CF902C7004384FC /* Flutter.framework */,
75 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
76 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
77 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
78 | );
79 | name = Flutter;
80 | sourceTree = "";
81 | };
82 | 97C146E51CF9000F007C117D = {
83 | isa = PBXGroup;
84 | children = (
85 | 9740EEB11CF90186004384FC /* Flutter */,
86 | 97C146F01CF9000F007C117D /* Runner */,
87 | 97C146EF1CF9000F007C117D /* Products */,
88 | );
89 | sourceTree = "";
90 | };
91 | 97C146EF1CF9000F007C117D /* Products */ = {
92 | isa = PBXGroup;
93 | children = (
94 | 97C146EE1CF9000F007C117D /* Runner.app */,
95 | );
96 | name = Products;
97 | sourceTree = "";
98 | };
99 | 97C146F01CF9000F007C117D /* Runner */ = {
100 | isa = PBXGroup;
101 | children = (
102 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
103 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
104 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
105 | 97C147021CF9000F007C117D /* Info.plist */,
106 | 97C146F11CF9000F007C117D /* Supporting Files */,
107 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
108 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
109 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
110 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
111 | );
112 | path = Runner;
113 | sourceTree = "";
114 | };
115 | 97C146F11CF9000F007C117D /* Supporting Files */ = {
116 | isa = PBXGroup;
117 | children = (
118 | );
119 | name = "Supporting Files";
120 | sourceTree = "";
121 | };
122 | /* End PBXGroup section */
123 |
124 | /* Begin PBXNativeTarget section */
125 | 97C146ED1CF9000F007C117D /* Runner */ = {
126 | isa = PBXNativeTarget;
127 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
128 | buildPhases = (
129 | 9740EEB61CF901F6004384FC /* Run Script */,
130 | 97C146EA1CF9000F007C117D /* Sources */,
131 | 97C146EB1CF9000F007C117D /* Frameworks */,
132 | 97C146EC1CF9000F007C117D /* Resources */,
133 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
134 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
135 | );
136 | buildRules = (
137 | );
138 | dependencies = (
139 | );
140 | name = Runner;
141 | productName = Runner;
142 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
143 | productType = "com.apple.product-type.application";
144 | };
145 | /* End PBXNativeTarget section */
146 |
147 | /* Begin PBXProject section */
148 | 97C146E61CF9000F007C117D /* Project object */ = {
149 | isa = PBXProject;
150 | attributes = {
151 | LastUpgradeCheck = 1020;
152 | ORGANIZATIONNAME = "The Chromium Authors";
153 | TargetAttributes = {
154 | 97C146ED1CF9000F007C117D = {
155 | CreatedOnToolsVersion = 7.3.1;
156 | LastSwiftMigration = 0910;
157 | };
158 | };
159 | };
160 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
161 | compatibilityVersion = "Xcode 3.2";
162 | developmentRegion = en;
163 | hasScannedForEncodings = 0;
164 | knownRegions = (
165 | en,
166 | Base,
167 | );
168 | mainGroup = 97C146E51CF9000F007C117D;
169 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
170 | projectDirPath = "";
171 | projectRoot = "";
172 | targets = (
173 | 97C146ED1CF9000F007C117D /* Runner */,
174 | );
175 | };
176 | /* End PBXProject section */
177 |
178 | /* Begin PBXResourcesBuildPhase section */
179 | 97C146EC1CF9000F007C117D /* Resources */ = {
180 | isa = PBXResourcesBuildPhase;
181 | buildActionMask = 2147483647;
182 | files = (
183 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
184 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
185 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */,
186 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
187 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
188 | );
189 | runOnlyForDeploymentPostprocessing = 0;
190 | };
191 | /* End PBXResourcesBuildPhase section */
192 |
193 | /* Begin PBXShellScriptBuildPhase section */
194 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
195 | isa = PBXShellScriptBuildPhase;
196 | buildActionMask = 2147483647;
197 | files = (
198 | );
199 | inputPaths = (
200 | );
201 | name = "Thin Binary";
202 | outputPaths = (
203 | );
204 | runOnlyForDeploymentPostprocessing = 0;
205 | shellPath = /bin/sh;
206 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
207 | };
208 | 9740EEB61CF901F6004384FC /* Run Script */ = {
209 | isa = PBXShellScriptBuildPhase;
210 | buildActionMask = 2147483647;
211 | files = (
212 | );
213 | inputPaths = (
214 | );
215 | name = "Run Script";
216 | outputPaths = (
217 | );
218 | runOnlyForDeploymentPostprocessing = 0;
219 | shellPath = /bin/sh;
220 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
221 | };
222 | /* End PBXShellScriptBuildPhase section */
223 |
224 | /* Begin PBXSourcesBuildPhase section */
225 | 97C146EA1CF9000F007C117D /* Sources */ = {
226 | isa = PBXSourcesBuildPhase;
227 | buildActionMask = 2147483647;
228 | files = (
229 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
230 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
231 | );
232 | runOnlyForDeploymentPostprocessing = 0;
233 | };
234 | /* End PBXSourcesBuildPhase section */
235 |
236 | /* Begin PBXVariantGroup section */
237 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
238 | isa = PBXVariantGroup;
239 | children = (
240 | 97C146FB1CF9000F007C117D /* Base */,
241 | );
242 | name = Main.storyboard;
243 | sourceTree = "";
244 | };
245 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
246 | isa = PBXVariantGroup;
247 | children = (
248 | 97C147001CF9000F007C117D /* Base */,
249 | );
250 | name = LaunchScreen.storyboard;
251 | sourceTree = "";
252 | };
253 | /* End PBXVariantGroup section */
254 |
255 | /* Begin XCBuildConfiguration section */
256 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
257 | isa = XCBuildConfiguration;
258 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
259 | buildSettings = {
260 | ALWAYS_SEARCH_USER_PATHS = NO;
261 | CLANG_ANALYZER_NONNULL = YES;
262 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
263 | CLANG_CXX_LIBRARY = "libc++";
264 | CLANG_ENABLE_MODULES = YES;
265 | CLANG_ENABLE_OBJC_ARC = YES;
266 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
267 | CLANG_WARN_BOOL_CONVERSION = YES;
268 | CLANG_WARN_COMMA = YES;
269 | CLANG_WARN_CONSTANT_CONVERSION = YES;
270 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
271 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
272 | CLANG_WARN_EMPTY_BODY = YES;
273 | CLANG_WARN_ENUM_CONVERSION = YES;
274 | CLANG_WARN_INFINITE_RECURSION = YES;
275 | CLANG_WARN_INT_CONVERSION = YES;
276 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
277 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
278 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
279 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
280 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
281 | CLANG_WARN_STRICT_PROTOTYPES = YES;
282 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
283 | CLANG_WARN_UNREACHABLE_CODE = YES;
284 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
285 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
286 | COPY_PHASE_STRIP = NO;
287 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
288 | ENABLE_NS_ASSERTIONS = NO;
289 | ENABLE_STRICT_OBJC_MSGSEND = YES;
290 | GCC_C_LANGUAGE_STANDARD = gnu99;
291 | GCC_NO_COMMON_BLOCKS = YES;
292 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
293 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
294 | GCC_WARN_UNDECLARED_SELECTOR = YES;
295 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
296 | GCC_WARN_UNUSED_FUNCTION = YES;
297 | GCC_WARN_UNUSED_VARIABLE = YES;
298 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
299 | MTL_ENABLE_DEBUG_INFO = NO;
300 | SDKROOT = iphoneos;
301 | TARGETED_DEVICE_FAMILY = "1,2";
302 | VALIDATE_PRODUCT = YES;
303 | };
304 | name = Profile;
305 | };
306 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
307 | isa = XCBuildConfiguration;
308 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
309 | buildSettings = {
310 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
311 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
312 | DEVELOPMENT_TEAM = S8QB4VV633;
313 | ENABLE_BITCODE = NO;
314 | FRAMEWORK_SEARCH_PATHS = (
315 | "$(inherited)",
316 | "$(PROJECT_DIR)/Flutter",
317 | );
318 | INFOPLIST_FILE = Runner/Info.plist;
319 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
320 | LIBRARY_SEARCH_PATHS = (
321 | "$(inherited)",
322 | "$(PROJECT_DIR)/Flutter",
323 | );
324 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterGhanaUiChallengeWeek1;
325 | PRODUCT_NAME = "$(TARGET_NAME)";
326 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
327 | SWIFT_VERSION = 4.0;
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_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
347 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
348 | CLANG_WARN_EMPTY_BODY = YES;
349 | CLANG_WARN_ENUM_CONVERSION = YES;
350 | CLANG_WARN_INFINITE_RECURSION = YES;
351 | CLANG_WARN_INT_CONVERSION = YES;
352 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
353 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
354 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
355 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
356 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
357 | CLANG_WARN_STRICT_PROTOTYPES = YES;
358 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
359 | CLANG_WARN_UNREACHABLE_CODE = YES;
360 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
361 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
362 | COPY_PHASE_STRIP = NO;
363 | DEBUG_INFORMATION_FORMAT = dwarf;
364 | ENABLE_STRICT_OBJC_MSGSEND = YES;
365 | ENABLE_TESTABILITY = YES;
366 | GCC_C_LANGUAGE_STANDARD = gnu99;
367 | GCC_DYNAMIC_NO_PIC = NO;
368 | GCC_NO_COMMON_BLOCKS = YES;
369 | GCC_OPTIMIZATION_LEVEL = 0;
370 | GCC_PREPROCESSOR_DEFINITIONS = (
371 | "DEBUG=1",
372 | "$(inherited)",
373 | );
374 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
375 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
376 | GCC_WARN_UNDECLARED_SELECTOR = YES;
377 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
378 | GCC_WARN_UNUSED_FUNCTION = YES;
379 | GCC_WARN_UNUSED_VARIABLE = YES;
380 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
381 | MTL_ENABLE_DEBUG_INFO = YES;
382 | ONLY_ACTIVE_ARCH = YES;
383 | SDKROOT = iphoneos;
384 | TARGETED_DEVICE_FAMILY = "1,2";
385 | };
386 | name = Debug;
387 | };
388 | 97C147041CF9000F007C117D /* Release */ = {
389 | isa = XCBuildConfiguration;
390 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
391 | buildSettings = {
392 | ALWAYS_SEARCH_USER_PATHS = NO;
393 | CLANG_ANALYZER_NONNULL = YES;
394 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
395 | CLANG_CXX_LIBRARY = "libc++";
396 | CLANG_ENABLE_MODULES = YES;
397 | CLANG_ENABLE_OBJC_ARC = YES;
398 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
399 | CLANG_WARN_BOOL_CONVERSION = YES;
400 | CLANG_WARN_COMMA = YES;
401 | CLANG_WARN_CONSTANT_CONVERSION = YES;
402 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
403 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
404 | CLANG_WARN_EMPTY_BODY = YES;
405 | CLANG_WARN_ENUM_CONVERSION = YES;
406 | CLANG_WARN_INFINITE_RECURSION = YES;
407 | CLANG_WARN_INT_CONVERSION = YES;
408 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
409 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
410 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
411 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
412 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
413 | CLANG_WARN_STRICT_PROTOTYPES = YES;
414 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
415 | CLANG_WARN_UNREACHABLE_CODE = YES;
416 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
417 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
418 | COPY_PHASE_STRIP = NO;
419 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
420 | ENABLE_NS_ASSERTIONS = NO;
421 | ENABLE_STRICT_OBJC_MSGSEND = YES;
422 | GCC_C_LANGUAGE_STANDARD = gnu99;
423 | GCC_NO_COMMON_BLOCKS = YES;
424 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
425 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
426 | GCC_WARN_UNDECLARED_SELECTOR = YES;
427 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
428 | GCC_WARN_UNUSED_FUNCTION = YES;
429 | GCC_WARN_UNUSED_VARIABLE = YES;
430 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
431 | MTL_ENABLE_DEBUG_INFO = NO;
432 | SDKROOT = iphoneos;
433 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
434 | TARGETED_DEVICE_FAMILY = "1,2";
435 | VALIDATE_PRODUCT = YES;
436 | };
437 | name = Release;
438 | };
439 | 97C147061CF9000F007C117D /* Debug */ = {
440 | isa = XCBuildConfiguration;
441 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
442 | buildSettings = {
443 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
444 | CLANG_ENABLE_MODULES = YES;
445 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
446 | ENABLE_BITCODE = NO;
447 | FRAMEWORK_SEARCH_PATHS = (
448 | "$(inherited)",
449 | "$(PROJECT_DIR)/Flutter",
450 | );
451 | INFOPLIST_FILE = Runner/Info.plist;
452 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
453 | LIBRARY_SEARCH_PATHS = (
454 | "$(inherited)",
455 | "$(PROJECT_DIR)/Flutter",
456 | );
457 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterGhanaUiChallengeWeek1;
458 | PRODUCT_NAME = "$(TARGET_NAME)";
459 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
460 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
461 | SWIFT_SWIFT3_OBJC_INFERENCE = On;
462 | SWIFT_VERSION = 4.0;
463 | VERSIONING_SYSTEM = "apple-generic";
464 | };
465 | name = Debug;
466 | };
467 | 97C147071CF9000F007C117D /* Release */ = {
468 | isa = XCBuildConfiguration;
469 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
470 | buildSettings = {
471 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
472 | CLANG_ENABLE_MODULES = YES;
473 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
474 | ENABLE_BITCODE = NO;
475 | FRAMEWORK_SEARCH_PATHS = (
476 | "$(inherited)",
477 | "$(PROJECT_DIR)/Flutter",
478 | );
479 | INFOPLIST_FILE = Runner/Info.plist;
480 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
481 | LIBRARY_SEARCH_PATHS = (
482 | "$(inherited)",
483 | "$(PROJECT_DIR)/Flutter",
484 | );
485 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterGhanaUiChallengeWeek1;
486 | PRODUCT_NAME = "$(TARGET_NAME)";
487 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
488 | SWIFT_SWIFT3_OBJC_INFERENCE = On;
489 | SWIFT_VERSION = 4.0;
490 | VERSIONING_SYSTEM = "apple-generic";
491 | };
492 | name = Release;
493 | };
494 | /* End XCBuildConfiguration section */
495 |
496 | /* Begin XCConfigurationList section */
497 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
498 | isa = XCConfigurationList;
499 | buildConfigurations = (
500 | 97C147031CF9000F007C117D /* Debug */,
501 | 97C147041CF9000F007C117D /* Release */,
502 | 249021D3217E4FDB00AE95B9 /* Profile */,
503 | );
504 | defaultConfigurationIsVisible = 0;
505 | defaultConfigurationName = Release;
506 | };
507 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
508 | isa = XCConfigurationList;
509 | buildConfigurations = (
510 | 97C147061CF9000F007C117D /* Debug */,
511 | 97C147071CF9000F007C117D /* Release */,
512 | 249021D4217E4FDB00AE95B9 /* Profile */,
513 | );
514 | defaultConfigurationIsVisible = 0;
515 | defaultConfigurationName = Release;
516 | };
517 | /* End XCConfigurationList section */
518 |
519 | };
520 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
521 | }
522 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emrade/flutter-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emrade/flutter-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/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-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/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-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/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-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/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-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/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-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/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-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/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-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/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-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/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-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/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-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/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-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/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-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emrade/flutter-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emrade/flutter-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emrade/flutter-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emrade/flutter-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | flutter_ghana_ui_challenge_week_1
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/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
--------------------------------------------------------------------------------
/lib/app.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'router.dart' as router;
3 | import 'theme.dart';
4 | import 'utils/utils.dart';
5 |
6 | class App extends StatelessWidget {
7 | @override
8 | Widget build(BuildContext context) {
9 | return MaterialApp(
10 | title: AppConstants.appName,
11 | debugShowCheckedModeBanner: false,
12 | theme: buildThemeData(),
13 | onGenerateRoute: router.generateRoute,
14 | initialRoute: router.homeViewRoute,
15 | );
16 | }
17 | }
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'app.dart';
3 |
4 | void main() => runApp(App());
--------------------------------------------------------------------------------
/lib/models/notification.dart:
--------------------------------------------------------------------------------
1 | import '../utils/utils.dart';
2 |
3 | class AppNotification {
4 | String image, notification, time = '2 hours ago';
5 | bool isRead;
6 |
7 | AppNotification(this.image, this.notification, this.isRead);
8 | }
9 |
10 | List notifications = [
11 | AppNotification(AvailableImages.bleach, 'Kurosaki Ichigo commented on your post: "Bankai! 🔪" ', false),
12 | AppNotification(AvailableImages.naruto, 'Uzumaki Naruto commented on your post: "Nakama 👊"', true),
13 | AppNotification(AvailableImages.natsu, 'Natsu Dragonnel commented on your post: "Zeref 👿"', false),
14 | AppNotification(AvailableImages.luffy, 'Monkey D. Luffy commented on your post: "Gear 5th 😁"', true),
15 | ];
--------------------------------------------------------------------------------
/lib/router.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'views/notifications/notifications.dart';
3 | import 'views/home/home.dart';
4 |
5 | const String homeViewRoute = '/';
6 | const String notificationsViewRoute = '/notifications';
7 |
8 | Route generateRoute(RouteSettings settings) {
9 | switch (settings.name) {
10 | case homeViewRoute:
11 | return MaterialPageRoute(builder: (_) => HomePage());
12 | case notificationsViewRoute:
13 | return MaterialPageRoute(builder: (_) => NotificationsPage());
14 |
15 | break;
16 | default:
17 | return MaterialPageRoute(builder: (_) => HomePage());
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/lib/theme.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'utils/colors.dart';
3 | import 'utils/utils.dart';
4 |
5 | ThemeData buildThemeData() {
6 | final baseTheme = ThemeData(fontFamily: AvailableFonts.primaryFont);
7 |
8 | return baseTheme.copyWith(
9 | primaryColor: CustomColors.primaryColor,
10 | scaffoldBackgroundColor: CustomColors.scaffoldColor,
11 | appBarTheme: AppBarTheme(
12 | color: CustomColors.appBarColor,
13 | elevation: 0,
14 | ),
15 | );
16 | }
17 |
--------------------------------------------------------------------------------
/lib/utils/colors.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class CustomColors {
4 | static const primaryColor = const Color(0xFFFFAC00);
5 | static const statusBarColor = Colors.white;
6 | static const appBarColor = Colors.white;
7 | static const scaffoldColor = Colors.white;
8 |
9 | static const headerTextColor = const Color(0xFF120E4C);
10 | static const notificationSectionColor = const Color(0xFF1D2637);
11 |
12 | static const orange = const Color(0xFFFFAC00);
13 | static const red = const Color(0xFFEE604E);
14 | static const blue = const Color(0xFF7D7DE3);
15 | static const unselectedCardColor = const Color(0xFFF6F6F6);
16 | }
--------------------------------------------------------------------------------
/lib/utils/utils.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../utils/colors.dart';
3 |
4 | class AppConstants {
5 | static const appName = "Flutter Ghana UI Challenge Week 1";
6 | }
7 |
8 | class AppTextStyles {
9 | static const headerTextStyle = const TextStyle(
10 | fontSize: 32.0,
11 | fontWeight: FontWeight.w800,
12 | color: CustomColors.headerTextColor
13 | );
14 |
15 | static const subHeaderTextStyle = const TextStyle(
16 | fontSize: 20.0,
17 | fontWeight: FontWeight.w800,
18 | );
19 |
20 | static const unselectedTabTextStyle = const TextStyle(
21 | fontWeight: FontWeight.w600,
22 | color: Colors.grey,
23 | );
24 |
25 | static const selectedTabTextStyle = const TextStyle(
26 | fontWeight: FontWeight.w600,
27 | color: CustomColors.primaryColor,
28 | );
29 | }
30 |
31 | class AvailableFonts {
32 | static const primaryFont = "Quicksand";
33 | }
34 |
35 | class AvailableImages {
36 | static const hamburger = 'assets/images/hamburger.png';
37 | static const assassin = 'assets/images/assassin.jpg';
38 | static const bleach = 'assets/images/bleach.jpg';
39 | static const luffy = 'assets/images/luffy.jpg';
40 | static const mikasa = 'assets/images/mikasa.jpg';
41 | static const naruto = 'assets/images/naruto.jpg';
42 | static const natsu = 'assets/images/natsu.jpg';
43 | static const saitama = 'assets/images/saitama.jpg';
44 | static const rom = 'assets/images/rom.jpg';
45 | static const rom2 = 'assets/images/rom2.png';
46 | }
47 |
--------------------------------------------------------------------------------
/lib/views/home/home.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_ghana_ui_challenge_week_1/widgets/custom_text.dart';
3 | import 'widgets/tab_section.dart';
4 | import 'widgets/tile_section.dart';
5 | import '../../widgets/media_section.dart';
6 | import '../../widgets/custom_appbar.dart';
7 | import '../../widgets/header.dart';
8 | import '../../utils/utils.dart';
9 |
10 | class HomePage extends StatelessWidget {
11 | final List _photos = [
12 | "",
13 | AvailableImages.bleach,
14 | AvailableImages.saitama,
15 | AvailableImages.luffy,
16 | AvailableImages.naruto,
17 | AvailableImages.natsu,
18 | AvailableImages.mikasa,
19 | ];
20 |
21 | final List _videos = [
22 | AvailableImages.rom,
23 | AvailableImages.rom2,
24 | ];
25 |
26 | @override
27 | Widget build(BuildContext context) {
28 | final _headerText = Header(isHome: true);
29 |
30 | final _descriptionText = CustomText(
31 | text: "Sed ut amnet dolor",
32 | size: 18.00,
33 | weight: FontWeight.w500,
34 | );
35 |
36 | final _tileSection = TileSection();
37 |
38 | final _tabSection = TabSection();
39 |
40 | final _photosSection = MediaSection(title: "My Photos", media: _photos);
41 |
42 | final _videosSection =
43 | MediaSection(title: "My Videos", media: _videos, isPhoto: false);
44 |
45 | return Scaffold(
46 | appBar: CustomAppBar(isHome: true),
47 | body: SafeArea(
48 | child: SingleChildScrollView(
49 | padding: EdgeInsets.symmetric(horizontal: 20.0),
50 | child: Container(
51 | padding: EdgeInsets.only(top: 0.0),
52 | child: Column(
53 | crossAxisAlignment: CrossAxisAlignment.start,
54 | children: [
55 | _headerText,
56 | _descriptionText,
57 | _tileSection,
58 | _tabSection,
59 | _photosSection,
60 | _videosSection
61 | ],
62 | ),
63 | ),
64 | ),
65 | ),
66 | );
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/lib/views/home/widgets/tab_section.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_ghana_ui_challenge_week_1/utils/utils.dart';
3 | import '../../../utils/colors.dart';
4 |
5 | class TabSection extends StatefulWidget {
6 | @override
7 | _TabSectionState createState() => _TabSectionState();
8 | }
9 |
10 | class _TabSectionState extends State
11 | with SingleTickerProviderStateMixin {
12 | TabController tabController;
13 | int selectedTabIndex = 0;
14 | final List _tabs = [
15 | "CHAT",
16 | "FEATURED",
17 | "POPULAR",
18 | "FOLLOWERS",
19 | "LIKES"
20 | ];
21 |
22 | @override
23 | void initState() {
24 | super.initState();
25 | tabController = TabController(vsync: this, length: _tabs.length);
26 | }
27 |
28 | @override
29 | Widget build(BuildContext context) {
30 | return Container(
31 | padding: EdgeInsets.only(top: 30.0),
32 | child: TabBar(
33 | onTap: (index) {
34 | setState(() {
35 | selectedTabIndex = index;
36 | });
37 | },
38 | controller: tabController,
39 | unselectedLabelColor: Colors.grey.withOpacity(0.6),
40 | isScrollable: true,
41 | indicator: BoxDecoration(
42 | color: CustomColors.primaryColor.withOpacity(0.3),
43 | borderRadius: BorderRadius.circular(12.0),
44 | ),
45 | tabs: _tabs.map((tab) {
46 | var index = _tabs.indexOf(tab);
47 | return Tab(
48 | child: Text(
49 | tab,
50 | style: switchColor(index),
51 | ),
52 | );
53 | }).toList(),
54 | ),
55 | );
56 | }
57 |
58 | TextStyle switchColor(index) {
59 | return selectedTabIndex == index
60 | ? AppTextStyles.selectedTabTextStyle
61 | : AppTextStyles.unselectedTabTextStyle;
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/lib/views/home/widgets/tile_section.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../../../utils/colors.dart';
3 | import '../../../widgets/category_card.dart';
4 | class TileSection extends StatefulWidget {
5 | @override
6 | _TileSectionState createState() => _TileSectionState();
7 | }
8 |
9 | class _TileSectionState extends State {
10 | int selectedCardIndex = 0;
11 | @override
12 | Widget build(BuildContext context) {
13 | return Container(
14 | padding: EdgeInsets.only(top: 30.0, bottom: 10.0),
15 | child: Container(
16 | child: Row(
17 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
18 | children: [
19 | _buildCategoryCard(0, CustomColors.orange, '24', 'photos', context),
20 | _buildCategoryCard(1, CustomColors.red, '48', 'articles', context),
21 | _buildCategoryCard(
22 | 2, CustomColors.blue, '22k', 'followers', context),
23 | ],
24 | ),
25 | ),
26 | );
27 | }
28 |
29 | Widget _buildCategoryCard(
30 | int index,
31 | Color color,
32 | String top,
33 | String bottom,
34 | BuildContext context,
35 | ) {
36 | return CategoryCard(
37 | index: index,
38 | selectedCardIndex: selectedCardIndex,
39 | color: color,
40 | top: top,
41 | bottom: bottom,
42 | onPressed: () => selectCategory(index),
43 | );
44 | }
45 |
46 | void selectCategory(int index) {
47 | setState(() {
48 | selectedCardIndex = index;
49 | });
50 | }
51 | }
--------------------------------------------------------------------------------
/lib/views/notifications/notifications.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:flutter/material.dart';
3 | import 'widgets/search_bar.dart';
4 | import 'widgets/second_section.dart';
5 | import 'widgets/tab_section.dart';
6 | import '../../widgets/custom_appbar.dart';
7 | import '../../widgets/header.dart';
8 |
9 | class NotificationsPage extends StatelessWidget {
10 |
11 | @override
12 | Widget build(BuildContext context) {
13 | final screenHeight = MediaQuery.of(context).size.height;
14 |
15 | final _headerText = Header(isHome: false);
16 |
17 | final _searchBar = SearchBar();
18 |
19 | final _tabSection = TabSection();
20 |
21 | final _firstSection = Container(
22 | height: screenHeight * 0.35,
23 | padding: EdgeInsets.only(top: 30.0, left: 20.0, right: 20.0),
24 | child: Column(
25 | crossAxisAlignment: CrossAxisAlignment.start,
26 | children: [_headerText, _searchBar, _tabSection],
27 | ),
28 | );
29 |
30 |
31 | final _secondSection = SecondSection();
32 |
33 | return Scaffold(
34 | appBar: CustomAppBar(isHome: false),
35 | body: SafeArea(
36 | child: SingleChildScrollView(
37 | child: Column(
38 | children: [_firstSection, _secondSection],
39 | ),
40 | ),
41 | ),
42 | );
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/lib/views/notifications/widgets/search_bar.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:flutter/material.dart';
3 | import '../../../utils/colors.dart';
4 |
5 | class SearchBar extends StatelessWidget {
6 | @override
7 | Widget build(BuildContext context) {
8 | return Container(
9 | margin: EdgeInsets.only(top: 50.0),
10 | height: 50.0,
11 | decoration: BoxDecoration(
12 | borderRadius: BorderRadius.circular(12.0),
13 | color: CustomColors.unselectedCardColor,
14 | ),
15 | child: TextField(
16 | decoration: InputDecoration(
17 | hintText: "Search for name",
18 | hintStyle: TextStyle(
19 | fontWeight: FontWeight.w600,
20 | color: Colors.grey.withOpacity(0.6),
21 | ),
22 | border: InputBorder.none,
23 | prefixIcon: Icon(
24 | CupertinoIcons.search,
25 | color: Colors.black,
26 | size: 30.0,
27 | ),
28 | ),
29 | ),
30 | );
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/lib/views/notifications/widgets/second_section.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../../../models/notification.dart';
3 | import '../../../utils/colors.dart';
4 | import '../../../widgets/notification_card.dart';
5 | class SecondSection extends StatelessWidget {
6 | @override
7 | Widget build(BuildContext context) {
8 | final screenHeight = MediaQuery.of(context).size.height;
9 |
10 | final _ssbr = Radius.circular(45.0);
11 |
12 | return Container(
13 | height: screenHeight * 0.55,
14 | padding: EdgeInsets.only(left: 20.0, right: 20.0),
15 | decoration: BoxDecoration(
16 | borderRadius: BorderRadius.only(topLeft: _ssbr, topRight: _ssbr),
17 | color: CustomColors.notificationSectionColor,
18 | ),
19 | child: ListView.builder(
20 | padding: EdgeInsets.symmetric(vertical: 40.0, horizontal: 10.0),
21 | itemCount: notifications.length,
22 | itemBuilder: (BuildContext context, int index) {
23 | AppNotification notification = notifications[index];
24 | return NotificationCard(notification: notification);
25 | },
26 | ),
27 | );
28 | }
29 | }
--------------------------------------------------------------------------------
/lib/views/notifications/widgets/tab_section.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../../../utils/colors.dart';
3 |
4 | class TabSection extends StatefulWidget {
5 | @override
6 | _TabSectionState createState() => _TabSectionState();
7 | }
8 |
9 | class _TabSectionState extends State
10 | with SingleTickerProviderStateMixin {
11 | TabController tabController;
12 | final List _tabs = ["TODAY", "LAST WEEK"];
13 |
14 | @override
15 | void initState() {
16 | super.initState();
17 | tabController = TabController(vsync: this, length: _tabs.length);
18 | }
19 |
20 | @override
21 | Widget build(BuildContext context) {
22 | return Container(
23 | padding: EdgeInsets.only(top: 30.0),
24 | child: TabBar(
25 | controller: tabController,
26 | unselectedLabelColor: Colors.grey.withOpacity(0.6),
27 | labelColor: CustomColors.notificationSectionColor,
28 | indicatorColor: Colors.white,
29 | isScrollable: true,
30 | tabs: _tabs.map((tab) {
31 | return Tab(
32 | child: Text(
33 | tab,
34 | style: TextStyle(
35 | fontWeight: FontWeight.w700,
36 | ),
37 | ),
38 | );
39 | }).toList(),
40 | ),
41 | );
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/lib/widgets/category_card.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../utils/colors.dart';
3 |
4 | class CategoryCard extends StatefulWidget {
5 | final int index;
6 | final int selectedCardIndex;
7 | final Color color;
8 | final String top;
9 | final String bottom;
10 | final Function onPressed;
11 |
12 | const CategoryCard(
13 | {Key key,
14 | @required this.index,
15 | @required this.selectedCardIndex,
16 | @required this.color,
17 | @required this.top,
18 | @required this.bottom,
19 | @required this.onPressed})
20 | : super(key: key);
21 | @override
22 | _CategoryCardState createState() => _CategoryCardState();
23 | }
24 |
25 | class _CategoryCardState extends State {
26 | @override
27 | Widget build(BuildContext context) {
28 | final double screenWidth = MediaQuery.of(context).size.width;
29 |
30 | final BorderRadius br = BorderRadius.circular(24.0);
31 |
32 | final bool isSelected =
33 | widget.index == widget.selectedCardIndex ? true : false;
34 |
35 | final TextStyle topTextStyle = TextStyle(
36 | fontSize: 32.0,
37 | fontWeight: FontWeight.w700,
38 | color: isSelected ? Colors.white : widget.color,
39 | );
40 |
41 | final TextStyle bottomTextStyle = TextStyle(
42 | fontSize: 18.0,
43 | fontWeight: FontWeight.w600,
44 | color: isSelected ? Colors.white : Colors.black,
45 | );
46 |
47 | return Material(
48 | elevation: isSelected ? 4.0 : 0,
49 | borderRadius: br,
50 | child: AnimatedContainer(
51 | width: screenWidth * 0.28,
52 | height: screenWidth * 0.28,
53 | duration: Duration(milliseconds: 500),
54 | curve: Curves.easeIn,
55 | decoration: BoxDecoration(
56 | borderRadius: br,
57 | color: switchColor(widget.index, widget.color),
58 | ),
59 | child: MaterialButton(
60 | shape: RoundedRectangleBorder(borderRadius: br),
61 | onPressed: widget.onPressed,
62 | child: Column(
63 | mainAxisAlignment: MainAxisAlignment.center,
64 | children: [
65 | Text(
66 | widget.top,
67 | style: topTextStyle,
68 | ),
69 | Text(
70 | widget.bottom,
71 | style: bottomTextStyle,
72 | )
73 | ],
74 | ),
75 | ),
76 | ),
77 | );
78 | }
79 |
80 | Color switchColor(int index, Color color) {
81 | if (widget.selectedCardIndex == index) {
82 | return color;
83 | } else {
84 | return CustomColors.unselectedCardColor;
85 | }
86 | }
87 | }
88 |
--------------------------------------------------------------------------------
/lib/widgets/custom_appbar.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../utils/utils.dart';
3 |
4 | import '../router.dart';
5 |
6 | class CustomAppBar extends StatelessWidget implements PreferredSizeWidget {
7 | final bool isHome;
8 |
9 | const CustomAppBar({Key key, @required this.isHome}) : super(key: key);
10 |
11 | @override
12 | Size get preferredSize => Size(null, 56.0);
13 |
14 | @override
15 | Widget build(BuildContext context) {
16 | final _userImage = GestureDetector(
17 | onTap: () => Navigator.pushNamed(context, isHome ? notificationsViewRoute : homeViewRoute),
18 | child: Container(
19 | margin: EdgeInsets.only(right: 20.0, top: 20.0),
20 | height: 40.0,
21 | width: 37.0,
22 | decoration: BoxDecoration(
23 | borderRadius: BorderRadius.circular(15.0),
24 | image: DecorationImage(
25 | image: AssetImage(AvailableImages.assassin),
26 | fit: BoxFit.cover,
27 | ),
28 | ),
29 | ),
30 | );
31 |
32 | return AppBar(
33 | leading: Padding(
34 | padding: EdgeInsets.only(left: 10.0),
35 | child: GestureDetector(
36 | onTap: () => Navigator.pushNamed(context, isHome ? notificationsViewRoute : homeViewRoute),
37 | child: Image.asset(
38 | AvailableImages.hamburger,
39 | width: 2.0,
40 | fit: BoxFit.contain,
41 | ),
42 | ),
43 | ),
44 | actions: [_userImage],
45 | );
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/lib/widgets/custom_text.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class CustomText extends StatelessWidget {
4 | final String text;
5 | final Color color;
6 | final double size;
7 | final FontWeight weight;
8 |
9 | const CustomText({
10 | Key key,
11 | @required this.text,
12 | this.color = Colors.grey,
13 | this.size = 14.0,
14 | this.weight = FontWeight.normal,
15 | }) : super(key: key);
16 | @override
17 | Widget build(BuildContext context) {
18 | return Text(
19 | text,
20 | style: TextStyle(color: color, fontSize: size, fontWeight: weight),
21 | );
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/lib/widgets/header.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_ghana_ui_challenge_week_1/utils/colors.dart';
3 | import '../utils/utils.dart';
4 |
5 | class Header extends StatelessWidget {
6 | final bool isHome;
7 |
8 | const Header({Key key, @required this.isHome}) : super(key: key);
9 | @override
10 | Widget build(BuildContext context) {
11 | return isHome? Container(
12 | padding: EdgeInsets.only(top: 20.0),
13 | child: Text( "Feed",
14 | style: AppTextStyles.headerTextStyle,
15 | ),
16 | ) : Container(
17 | child: Row(
18 | crossAxisAlignment: CrossAxisAlignment.center,
19 | children: [
20 | Text(
21 | "Notifications",
22 | style: AppTextStyles.headerTextStyle,
23 | ),
24 | SizedBox(
25 | width: 10.0,
26 | ),
27 | Container(
28 | height: 30.0,
29 | width: 30.0,
30 | decoration: BoxDecoration(
31 | borderRadius: BorderRadius.circular(8.0),
32 | color: CustomColors.primaryColor.withOpacity(0.3),
33 | ),
34 | child: Center(
35 | child: Text(
36 | "12",
37 | style: TextStyle(
38 | color: Theme.of(context).primaryColor,
39 | fontWeight: FontWeight.w600,
40 | ),
41 | ),
42 | ),
43 | )
44 | ],
45 | ),
46 | );
47 | }
48 | }
--------------------------------------------------------------------------------
/lib/widgets/media_section.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../utils/utils.dart';
3 | import 'video_card.dart';
4 | import 'photo_card.dart';
5 |
6 | class MediaSection extends StatelessWidget {
7 | final title;
8 | final List media;
9 | final bool isPhoto;
10 |
11 | const MediaSection({
12 | Key key,
13 | @required this.title,
14 | this.media,
15 | this.isPhoto = true,
16 | }) : super(key: key);
17 | @override
18 | Widget build(BuildContext context) {
19 | final screenWidth = MediaQuery.of(context).size.width;
20 | return Container(
21 | padding: EdgeInsets.only(top: 30.0),
22 | child: Column(
23 | crossAxisAlignment: CrossAxisAlignment.start,
24 | children: [
25 | Text(
26 | title,
27 | style: AppTextStyles.subHeaderTextStyle,
28 | ),
29 | SizedBox(height: 10.0),
30 | Container(
31 | height: screenWidth * 0.32,
32 | child: ListView.builder(
33 | itemCount: media.length,
34 | scrollDirection: Axis.horizontal,
35 | itemBuilder: (BuildContext context, int index) {
36 | var item = media[index];
37 | return isPhoto
38 | ? PhotoCard(photo: item)
39 | : VideoCard(video: item);
40 | },
41 | ),
42 | )
43 | ],
44 | ),
45 | );
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/lib/widgets/notification_card.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../models/notification.dart';
3 |
4 | class NotificationCard extends StatelessWidget {
5 | final AppNotification notification;
6 |
7 | const NotificationCard({Key key, @required this.notification})
8 | : super(key: key);
9 | @override
10 | Widget build(BuildContext context) {
11 | final isUnread = Positioned(
12 | top: 0.0,
13 | right: 6.0,
14 | child: Container(
15 | height: 12.0,
16 | width: 12.0,
17 | decoration: BoxDecoration(shape: BoxShape.circle, color: Colors.red),
18 | ),
19 | );
20 |
21 | final _userImage = Container(
22 | margin: EdgeInsets.only(right: 20.0),
23 | child: Stack(
24 | children: [
25 | Container(
26 | width: 80.0,
27 | ),
28 | Container(
29 | margin: EdgeInsets.only(top: 3.0),
30 | height: 70.0,
31 | width: 70.0,
32 | decoration: BoxDecoration(
33 | image: DecorationImage(
34 | image: AssetImage(notification.image),
35 | fit: BoxFit.cover,
36 | ),
37 | borderRadius: BorderRadius.circular(12.0),
38 | ),
39 | ),
40 | notification.isRead ? Container() : isUnread
41 | ],
42 | ),
43 | );
44 |
45 | final _notificationAndTime = Container(
46 | child: Flexible(
47 | child: Column(
48 | crossAxisAlignment: CrossAxisAlignment.start,
49 | children: [
50 | Text(
51 | notification.notification,
52 | style: TextStyle(
53 | color: Colors.white,
54 | fontWeight: FontWeight.w600,
55 | fontSize: 16.0
56 | ),
57 | ),
58 | SizedBox(
59 | height: 10.0,
60 | ),
61 | Text(
62 | notification.time,
63 | style: TextStyle(
64 | color: Colors.grey.withOpacity(0.6),
65 | fontWeight: FontWeight.w600,
66 | fontSize: 16.0
67 | ),
68 | ),
69 | ],
70 | ),
71 | ),
72 | );
73 |
74 | return Container(
75 | margin: EdgeInsets.only(bottom: 28.0),
76 | child: Row(
77 | mainAxisAlignment: MainAxisAlignment.start,
78 | children: [_userImage, _notificationAndTime],
79 | ),
80 | );
81 | }
82 | }
83 |
--------------------------------------------------------------------------------
/lib/widgets/photo_card.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../utils/colors.dart';
3 |
4 | class PhotoCard extends StatelessWidget {
5 | final String photo;
6 |
7 | const PhotoCard({Key key, @required this.photo}) : super(key: key);
8 | @override
9 | Widget build(BuildContext context) {
10 | final double screenWidth = MediaQuery.of(context).size.width;
11 |
12 | final BorderRadius br = BorderRadius.circular(20.0);
13 |
14 | final bool isPhoto = photo.isNotEmpty ? true : false;
15 |
16 | return Padding(
17 | padding: const EdgeInsets.only(bottom: 10.0, right: 10.0),
18 | child: Material(
19 | elevation: isPhoto ? 4.0 : 0,
20 | borderRadius: br,
21 | child: Container(
22 | width: screenWidth * 0.3,
23 | height: screenWidth * 0.3,
24 | decoration: BoxDecoration(
25 | color: CustomColors.unselectedCardColor,
26 | borderRadius: br,
27 | image: isPhoto
28 | ? DecorationImage(image: AssetImage(photo), fit: BoxFit.cover)
29 | : null),
30 | child: isPhoto
31 | ? null
32 | : Center(
33 | child: Icon(
34 | Icons.add,
35 | size: 40.0,
36 | color: Colors.grey.withOpacity(0.4),
37 | ),
38 | ),
39 | ),
40 | ),
41 | );
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/lib/widgets/video_card.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../utils/colors.dart';
3 |
4 | class VideoCard extends StatelessWidget {
5 | final video;
6 |
7 | const VideoCard({Key key, @required this.video}) : super(key: key);
8 | @override
9 | Widget build(BuildContext context) {
10 | final double screenWidth = MediaQuery.of(context).size.width;
11 |
12 | final BorderRadius br = BorderRadius.circular(20.0);
13 |
14 | final playIcon = Positioned(
15 | bottom: 12.0,
16 | left: 12.0,
17 | child: Material(
18 | elevation: 4.0,
19 | borderRadius: BorderRadius.circular(8.0),
20 | child: Container(
21 | height: 35.0,
22 | width: 35.0,
23 | decoration: BoxDecoration(
24 | borderRadius: BorderRadius.circular(8.0),
25 | color: Colors.white,
26 | ),
27 | child: Center(
28 | child: Icon(Icons.play_arrow),
29 | ),
30 | ),
31 | ),
32 | );
33 |
34 | return Padding(
35 | padding: const EdgeInsets.only(bottom: 10.0, right: 10.0),
36 | child: Material(
37 | elevation: 4.0,
38 | borderRadius: br,
39 | child: Stack(
40 | children: [
41 | Container(
42 | width: screenWidth * 0.5,
43 | height: screenWidth * 0.3,
44 | decoration: BoxDecoration(
45 | color: CustomColors.unselectedCardColor,
46 | borderRadius: br,
47 | image: DecorationImage(
48 | image: AssetImage(video),
49 | fit: BoxFit.cover,
50 | ),
51 | ),
52 | ),
53 | playIcon
54 | ],
55 | ),
56 | ),
57 | );
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/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 | matcher:
50 | dependency: transitive
51 | description:
52 | name: matcher
53 | url: "https://pub.dartlang.org"
54 | source: hosted
55 | version: "0.12.5"
56 | meta:
57 | dependency: transitive
58 | description:
59 | name: meta
60 | url: "https://pub.dartlang.org"
61 | source: hosted
62 | version: "1.1.6"
63 | path:
64 | dependency: transitive
65 | description:
66 | name: path
67 | url: "https://pub.dartlang.org"
68 | source: hosted
69 | version: "1.6.2"
70 | pedantic:
71 | dependency: transitive
72 | description:
73 | name: pedantic
74 | url: "https://pub.dartlang.org"
75 | source: hosted
76 | version: "1.7.0"
77 | quiver:
78 | dependency: transitive
79 | description:
80 | name: quiver
81 | url: "https://pub.dartlang.org"
82 | source: hosted
83 | version: "2.0.3"
84 | sky_engine:
85 | dependency: transitive
86 | description: flutter
87 | source: sdk
88 | version: "0.0.99"
89 | source_span:
90 | dependency: transitive
91 | description:
92 | name: source_span
93 | url: "https://pub.dartlang.org"
94 | source: hosted
95 | version: "1.5.5"
96 | stack_trace:
97 | dependency: transitive
98 | description:
99 | name: stack_trace
100 | url: "https://pub.dartlang.org"
101 | source: hosted
102 | version: "1.9.3"
103 | stream_channel:
104 | dependency: transitive
105 | description:
106 | name: stream_channel
107 | url: "https://pub.dartlang.org"
108 | source: hosted
109 | version: "2.0.0"
110 | string_scanner:
111 | dependency: transitive
112 | description:
113 | name: string_scanner
114 | url: "https://pub.dartlang.org"
115 | source: hosted
116 | version: "1.0.4"
117 | term_glyph:
118 | dependency: transitive
119 | description:
120 | name: term_glyph
121 | url: "https://pub.dartlang.org"
122 | source: hosted
123 | version: "1.1.0"
124 | test_api:
125 | dependency: transitive
126 | description:
127 | name: test_api
128 | url: "https://pub.dartlang.org"
129 | source: hosted
130 | version: "0.2.5"
131 | typed_data:
132 | dependency: transitive
133 | description:
134 | name: typed_data
135 | url: "https://pub.dartlang.org"
136 | source: hosted
137 | version: "1.1.6"
138 | vector_math:
139 | dependency: transitive
140 | description:
141 | name: vector_math
142 | url: "https://pub.dartlang.org"
143 | source: hosted
144 | version: "2.0.8"
145 | sdks:
146 | dart: ">=2.2.2 <3.0.0"
147 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: flutter_ghana_ui_challenge_week_1
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 |
23 | # The following adds the Cupertino Icons font to your application.
24 | # Use with the CupertinoIcons class for iOS style icons.
25 | cupertino_icons: ^0.1.2
26 |
27 | dev_dependencies:
28 | flutter_test:
29 | sdk: flutter
30 |
31 |
32 | # For information on the generic Dart part of this file, see the
33 | # following page: https://dart.dev/tools/pub/pubspec
34 |
35 | # The following section is specific to Flutter.
36 | flutter:
37 |
38 | # The following line ensures that the Material Icons font is
39 | # included with your application, so that you can use the icons in
40 | # the material Icons class.
41 | uses-material-design: true
42 |
43 | # To add assets to your application, add an assets section, like this:
44 | assets:
45 | - assets/images/hamburger.png
46 | - assets/images/assassin.jpg
47 | - assets/images/bleach.jpg
48 | - assets/images/luffy.jpg
49 | - assets/images/mikasa.jpg
50 | - assets/images/naruto.jpg
51 | - assets/images/natsu.jpg
52 | - assets/images/saitama.jpg
53 | - assets/images/rom.jpg
54 | - assets/images/rom2.png
55 |
56 | # An image asset can refer to one or more resolution-specific "variants", see
57 | # https://flutter.dev/assets-and-images/#resolution-aware.
58 |
59 | # For details regarding adding assets from package dependencies, see
60 | # https://flutter.dev/assets-and-images/#from-packages
61 |
62 | # To add custom fonts to your application, add a fonts section here,
63 | # in this "flutter" section. Each entry in this list should have a
64 | # "family" key with the font family name, and a "fonts" key with a
65 | # list giving the asset and other descriptors for the font. For
66 | # example:
67 | fonts:
68 | - family: Quicksand
69 | fonts:
70 | - asset: assets/fonts/Quicksand-Regular.ttf
71 | - asset: assets/fonts/Quicksand-Medium.ttf
72 | - asset: assets/fonts/Quicksand-SemiBold.ttf
73 | - asset: assets/fonts/Quicksand-Bold.ttf
74 | #
75 | # For details regarding fonts from package dependencies,
76 | # see https://flutter.dev/custom-fonts/#from-packages
77 |
--------------------------------------------------------------------------------
/screenshots/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emrade/flutter-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/screenshots/1.png
--------------------------------------------------------------------------------
/screenshots/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emrade/flutter-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/screenshots/2.png
--------------------------------------------------------------------------------
/screenshots/banner.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/emrade/flutter-ghana-ui-challenge-week-1/531bf2a6b70d269b557f85b6fbbaba228cca40bc/screenshots/banner.png
--------------------------------------------------------------------------------