commit 1ccff543a1343110e9a9c6e7bd8f2a7b2f165ba3 Author: Shaz hemani Date: Tue Dec 8 12:58:14 2020 +0500 app setup , login and rebistration screen and more diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..955a348 --- /dev/null +++ b/.gitignore @@ -0,0 +1,41 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.buildlog/ +.history +.svn/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# The .vscode folder contains launch configuration and tasks you configure in +# VS Code which you may wish to be included in version control, so this line +# is commented out by default. +#.vscode/ + +# Flutter/Dart/Pub related +**/doc/api/ +**/ios/Flutter/.last_build_id +.dart_tool/ +.flutter-plugins +.flutter-plugins-dependencies +.packages +.pub-cache/ +.pub/ +/build/ + +# Symbolication related +app.*.symbols + +# Obfuscation related +app.*.map.json + +# Exceptions to above rules. +!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages diff --git a/README.md b/README.md new file mode 100644 index 0000000..4f612cf --- /dev/null +++ b/README.md @@ -0,0 +1,78 @@ +# Robo-advisory + +## Directory Structure + . + ├── models # Model classes + ├── providers # Provides for State Management + ├── screens # APP Screens/Views + │ ├── sample screen # Screen separate folder for local widget + │ ├── local_widgets + │ ├── sample_screen.dart + ├── services # Front-to-backend methods such as APIs + ├── widgets # wWdgets used in multiple different views + ├── utils # Helper Methods + ├── theme # Theme Configuration + ├── main.dart # Entry Point + └── README.md +## Enviroment Setup +### Step 1: (Some Basic Steps): +- #### Install Homebrew: (Package Manager) + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" +- #### Install GIT + brew install git +### Step 2: (Setup Android Studio): +- #### Download Android Studio + The fastest way is to download and install Android Studio. + Android Studio is available at:https://developer.android.com/studio/index.html + +- #### Install Android Studio + To install Android Studio on your Mac, proceed as follows + 1. Launch the Android Studio DMG file. + 2. Drag a nd drop Android Studio into the Applications folder, then launch Android Studio. + 3. Select whether you want to import previous Android Studio settings, then click OK. + 4. The Android Studio Setup Wizard guides you though the rest of the setup, which includes downloading Android SDK components that are required for development. Click the Next button. + 5. Select a Standard installation and click Next. + 6. On the Verify Settings window, click Finish. + Once installed, you get the Welcome to Android Studio window. + +- #### Configure SDK Manager + 1. In the left pane select Android SDK. On the right pane, select the SDK Platforms Tab and select the SDKs for API level. + 2. Click the OK button to download and install these Android SDKs. + 3. After accepting the licence you should see the following screen: + Wait until all components are installed + +- #### Setup the ANDROID_HOME system variable + 1. Open the SDK Manager and make a copy of the Android SDK Location + 2. Open the Terminal app and type the following command: + ```export ANDROID_HOME=/Users/HDO/Library/Android/sdk``` + To check the `ANDROID_HOME` is correctly setup type the following commands: + ``` + cd $ANDROID_HOME + ls + ``` + You should see the following result: + ``` + add-ons extras patcher platforms system-images + build-tools licenses platform-tools sources tools + ``` + +- #### Persist the ANDROID_HOME system variable for the current user + Add Android Studio home path into your `.zsh` or `.bash` profile + +### Step 3: (Install Flutter): +1. Download Flutter SDK +2. Add the flutter tool to your path + +For SDK and instructions: https://flutter.dev/docs/get-started/install/macos + +### Step 4: (Install the Flutter and Dart plugins): +To install these: +1. Start Android Studio. +2. Open plugin preferences (Preference -> Plugins -> Search (Flutter) [Author: Flutter.dev]). +3. Click Yes when prompted to install the Dart plugin and restart. + +### Step 4: (Clone Porject): +- Clone Project Using Git command line tool: + + git clone git@github.com:Octek/Robo-advisory.git robo_advisory + cd robo_advisory diff --git a/android/.gitignore b/android/.gitignore new file mode 100644 index 0000000..0a741cb --- /dev/null +++ b/android/.gitignore @@ -0,0 +1,11 @@ +gradle-wrapper.jar +/.gradle +/captures/ +/gradlew +/gradlew.bat +/local.properties +GeneratedPluginRegistrant.java + +# Remember to never publicly share your keystore. +# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app +key.properties diff --git a/android/app/build.gradle b/android/app/build.gradle new file mode 100644 index 0000000..7cb2de9 --- /dev/null +++ b/android/app/build.gradle @@ -0,0 +1,63 @@ +def localProperties = new Properties() +def localPropertiesFile = rootProject.file('local.properties') +if (localPropertiesFile.exists()) { + localPropertiesFile.withReader('UTF-8') { reader -> + localProperties.load(reader) + } +} + +def flutterRoot = localProperties.getProperty('flutter.sdk') +if (flutterRoot == null) { + throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") +} + +def flutterVersionCode = localProperties.getProperty('flutter.versionCode') +if (flutterVersionCode == null) { + flutterVersionCode = '1' +} + +def flutterVersionName = localProperties.getProperty('flutter.versionName') +if (flutterVersionName == null) { + flutterVersionName = '1.0' +} + +apply plugin: 'com.android.application' +apply plugin: 'kotlin-android' +apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" + +android { + compileSdkVersion 29 + + sourceSets { + main.java.srcDirs += 'src/main/kotlin' + } + + lintOptions { + disable 'InvalidPackage' + } + + defaultConfig { + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). + applicationId "com.example.robo_advisory" + minSdkVersion 16 + targetSdkVersion 29 + versionCode flutterVersionCode.toInteger() + versionName flutterVersionName + } + + buildTypes { + release { + // TODO: Add your own signing config for the release build. + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig signingConfigs.debug + } + } +} + +flutter { + source '../..' +} + +dependencies { + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" +} diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml new file mode 100644 index 0000000..2452a39 --- /dev/null +++ b/android/app/src/debug/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..4f6dda2 --- /dev/null +++ b/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + diff --git a/android/app/src/main/kotlin/com/example/robo_advisory/MainActivity.kt b/android/app/src/main/kotlin/com/example/robo_advisory/MainActivity.kt new file mode 100644 index 0000000..ce12b91 --- /dev/null +++ b/android/app/src/main/kotlin/com/example/robo_advisory/MainActivity.kt @@ -0,0 +1,6 @@ +package com.example.robo_advisory + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity: FlutterActivity() { +} diff --git a/android/app/src/main/res/drawable/launch_background.xml b/android/app/src/main/res/drawable/launch_background.xml new file mode 100644 index 0000000..304732f --- /dev/null +++ b/android/app/src/main/res/drawable/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..db77bb4 Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..17987b7 Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..09d4391 Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..d5f1c8d Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..4d6372e Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..1f83a33 --- /dev/null +++ b/android/app/src/main/res/values/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml new file mode 100644 index 0000000..2452a39 --- /dev/null +++ b/android/app/src/profile/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/android/build.gradle b/android/build.gradle new file mode 100644 index 0000000..3100ad2 --- /dev/null +++ b/android/build.gradle @@ -0,0 +1,31 @@ +buildscript { + ext.kotlin_version = '1.3.50' + repositories { + google() + jcenter() + } + + dependencies { + classpath 'com.android.tools.build:gradle:3.5.0' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } +} + +allprojects { + repositories { + google() + jcenter() + } +} + +rootProject.buildDir = '../build' +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" +} +subprojects { + project.evaluationDependsOn(':app') +} + +task clean(type: Delete) { + delete rootProject.buildDir +} diff --git a/android/gradle.properties b/android/gradle.properties new file mode 100644 index 0000000..a673820 --- /dev/null +++ b/android/gradle.properties @@ -0,0 +1,4 @@ +org.gradle.jvmargs=-Xmx1536M +android.useAndroidX=true +android.enableJetifier=true +android.enableR8=true diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..296b146 --- /dev/null +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Fri Jun 23 08:50:38 CEST 2017 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip diff --git a/android/settings.gradle b/android/settings.gradle new file mode 100644 index 0000000..44e62bc --- /dev/null +++ b/android/settings.gradle @@ -0,0 +1,11 @@ +include ':app' + +def localPropertiesFile = new File(rootProject.projectDir, "local.properties") +def properties = new Properties() + +assert localPropertiesFile.exists() +localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } + +def flutterSdkPath = properties.getProperty("flutter.sdk") +assert flutterSdkPath != null, "flutter.sdk not set in local.properties" +apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" diff --git a/images/icons/account_icon.svg b/images/icons/account_icon.svg new file mode 100644 index 0000000..aff8fb7 --- /dev/null +++ b/images/icons/account_icon.svg @@ -0,0 +1,4 @@ + + + + diff --git a/images/icons/currency_icon.svg b/images/icons/currency_icon.svg new file mode 100644 index 0000000..692c519 --- /dev/null +++ b/images/icons/currency_icon.svg @@ -0,0 +1,4 @@ + + + + diff --git a/images/icons/home_icon.svg b/images/icons/home_icon.svg new file mode 100644 index 0000000..d261ca2 --- /dev/null +++ b/images/icons/home_icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/images/icons/logout_icon.svg b/images/icons/logout_icon.svg new file mode 100644 index 0000000..fdcd2a1 --- /dev/null +++ b/images/icons/logout_icon.svg @@ -0,0 +1,4 @@ + + + + diff --git a/images/icons/plus_icon.svg b/images/icons/plus_icon.svg new file mode 100644 index 0000000..e46b4a0 --- /dev/null +++ b/images/icons/plus_icon.svg @@ -0,0 +1,4 @@ + + + + diff --git a/images/icons/reload_icon.svg b/images/icons/reload_icon.svg new file mode 100644 index 0000000..6a3bc94 --- /dev/null +++ b/images/icons/reload_icon.svg @@ -0,0 +1,4 @@ + + + + diff --git a/images/icons/share_icon.svg b/images/icons/share_icon.svg new file mode 100644 index 0000000..56f5442 --- /dev/null +++ b/images/icons/share_icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/ios/.gitignore b/ios/.gitignore new file mode 100644 index 0000000..e96ef60 --- /dev/null +++ b/ios/.gitignore @@ -0,0 +1,32 @@ +*.mode1v3 +*.mode2v3 +*.moved-aside +*.pbxuser +*.perspectivev3 +**/*sync/ +.sconsign.dblite +.tags* +**/.vagrant/ +**/DerivedData/ +Icon? +**/Pods/ +**/.symlinks/ +profile +xcuserdata +**/.generated/ +Flutter/App.framework +Flutter/Flutter.framework +Flutter/Flutter.podspec +Flutter/Generated.xcconfig +Flutter/app.flx +Flutter/app.zip +Flutter/flutter_assets/ +Flutter/flutter_export_environment.sh +ServiceDefinitions.json +Runner/GeneratedPluginRegistrant.* + +# Exceptions to above rules. +!default.mode1v3 +!default.mode2v3 +!default.pbxuser +!default.perspectivev3 diff --git a/ios/Flutter/AppFrameworkInfo.plist b/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000..f2872cf --- /dev/null +++ b/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 9.0 + + diff --git a/ios/Flutter/Debug.xcconfig b/ios/Flutter/Debug.xcconfig new file mode 100644 index 0000000..e8efba1 --- /dev/null +++ b/ios/Flutter/Debug.xcconfig @@ -0,0 +1,2 @@ +#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "Generated.xcconfig" diff --git a/ios/Flutter/Release.xcconfig b/ios/Flutter/Release.xcconfig new file mode 100644 index 0000000..399e934 --- /dev/null +++ b/ios/Flutter/Release.xcconfig @@ -0,0 +1,2 @@ +#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "Generated.xcconfig" diff --git a/ios/Podfile b/ios/Podfile new file mode 100644 index 0000000..1e8c3c9 --- /dev/null +++ b/ios/Podfile @@ -0,0 +1,41 @@ +# Uncomment this line to define a global platform for your project +# platform :ios, '9.0' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_ios_podfile_setup + +target 'Runner' do + use_frameworks! + use_modular_headers! + + flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_ios_build_settings(target) + end +end diff --git a/ios/Podfile.lock b/ios/Podfile.lock new file mode 100644 index 0000000..4cc4113 --- /dev/null +++ b/ios/Podfile.lock @@ -0,0 +1,28 @@ +PODS: + - Flutter (1.0.0) + - path_provider (0.0.1): + - Flutter + - shared_preferences (0.0.1): + - Flutter + +DEPENDENCIES: + - Flutter (from `Flutter`) + - path_provider (from `.symlinks/plugins/path_provider/ios`) + - shared_preferences (from `.symlinks/plugins/shared_preferences/ios`) + +EXTERNAL SOURCES: + Flutter: + :path: Flutter + path_provider: + :path: ".symlinks/plugins/path_provider/ios" + shared_preferences: + :path: ".symlinks/plugins/shared_preferences/ios" + +SPEC CHECKSUMS: + Flutter: 0e3d915762c693b495b44d77113d4970485de6ec + path_provider: abfe2b5c733d04e238b0d8691db0cfd63a27a93c + shared_preferences: af6bfa751691cdc24be3045c43ec037377ada40d + +PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c + +COCOAPODS: 1.10.0 diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000..295010a --- /dev/null +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,563 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; + F87ADA014EB67BEF3AD7799E /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6E16B760F1C0842088C54BF1 /* Pods_Runner.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 6E16B760F1C0842088C54BF1 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + A3A8079BBFA05F5901058C96 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; + F59C4DBFA482833E1775B849 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; + FBC037BB1DAB59467C2B688B /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + F87ADA014EB67BEF3AD7799E /* Pods_Runner.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + B8822B84D13D77CE4D92D054 /* Pods */, + DAF423B17F721CFDF2994998 /* Frameworks */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, + ); + path = Runner; + sourceTree = ""; + }; + B8822B84D13D77CE4D92D054 /* Pods */ = { + isa = PBXGroup; + children = ( + FBC037BB1DAB59467C2B688B /* Pods-Runner.debug.xcconfig */, + F59C4DBFA482833E1775B849 /* Pods-Runner.release.xcconfig */, + A3A8079BBFA05F5901058C96 /* Pods-Runner.profile.xcconfig */, + ); + name = Pods; + path = Pods; + sourceTree = ""; + }; + DAF423B17F721CFDF2994998 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 6E16B760F1C0842088C54BF1 /* Pods_Runner.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 32747C3D938C26CED403FB48 /* [CP] Check Pods Manifest.lock */, + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + 8AB297F4C2E3C2167EC85F57 /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1020; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + LastSwiftMigration = 1100; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 32747C3D938C26CED403FB48 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 8AB297F4C2E3C2167EC85F57 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 249021D3217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 249021D4217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.roboAdvisory; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.roboAdvisory; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 97C147071CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Flutter", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.roboAdvisory; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147031CF9000F007C117D /* Debug */, + 97C147041CF9000F007C117D /* Release */, + 249021D3217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147061CF9000F007C117D /* Debug */, + 97C147071CF9000F007C117D /* Release */, + 249021D4217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..1d526a1 --- /dev/null +++ b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..f9b0d7c --- /dev/null +++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000..a28140c --- /dev/null +++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Runner.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..21a3cc1 --- /dev/null +++ b/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..f9b0d7c --- /dev/null +++ b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift new file mode 100644 index 0000000..70693e4 --- /dev/null +++ b/ios/Runner/AppDelegate.swift @@ -0,0 +1,13 @@ +import UIKit +import Flutter + +@UIApplicationMain +@objc class AppDelegate: FlutterAppDelegate { + override func application( + _ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? + ) -> Bool { + GeneratedPluginRegistrant.register(with: self) + return super.application(application, didFinishLaunchingWithOptions: launchOptions) + } +} diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d36b1fa --- /dev/null +++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,122 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "Icon-App-83.5x83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "Icon-App-1024x1024@1x.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png new file mode 100644 index 0000000..dc9ada4 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png new file mode 100644 index 0000000..28c6bf0 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file mode 100644 index 0000000..2ccbfd9 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 0000000..f091b6b Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file mode 100644 index 0000000..4cde121 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 0000000..d0ef06e Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png new file mode 100644 index 0000000..dcdc230 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png new file mode 100644 index 0000000..2ccbfd9 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 0000000..c8f9ed8 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file mode 100644 index 0000000..a6d6b86 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 0000000..a6d6b86 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 0000000..75b2d16 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file mode 100644 index 0000000..c4df70d Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png new file mode 100644 index 0000000..6a84f41 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png new file mode 100644 index 0000000..d0e1f58 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 0000000..0bedcf2 --- /dev/null +++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "LaunchImage.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file mode 100644 index 0000000..89c2725 --- /dev/null +++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md @@ -0,0 +1,5 @@ +# Launch Screen Assets + +You can customize the launch screen with your own desired assets by replacing the image files in this directory. + +You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. \ No newline at end of file diff --git a/ios/Runner/Base.lproj/LaunchScreen.storyboard b/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..f2e259c --- /dev/null +++ b/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Runner/Base.lproj/Main.storyboard b/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 0000000..f3c2851 --- /dev/null +++ b/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist new file mode 100644 index 0000000..2873a03 --- /dev/null +++ b/ios/Runner/Info.plist @@ -0,0 +1,45 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + robo_advisory + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIViewControllerBasedStatusBarAppearance + + + diff --git a/ios/Runner/Runner-Bridging-Header.h b/ios/Runner/Runner-Bridging-Header.h new file mode 100644 index 0000000..308a2a5 --- /dev/null +++ b/ios/Runner/Runner-Bridging-Header.h @@ -0,0 +1 @@ +#import "GeneratedPluginRegistrant.h" diff --git a/lib/config/Routes.dart b/lib/config/Routes.dart new file mode 100644 index 0000000..e0b4333 --- /dev/null +++ b/lib/config/Routes.dart @@ -0,0 +1,21 @@ +import 'package:flutter/material.dart'; +import 'package:robo_advisory/screens/login.dart'; +import 'package:robo_advisory/screens/register/register_step_1.dart'; +import 'package:robo_advisory/screens/dashboard/dashboard.dart'; +import 'package:robo_advisory/screens/welcome.dart'; + +class Routes { + static const String splashScreen = '/welcome'; + static const String login = '/'; + static const String register = '/register'; + static const String dashboard = '/dashboard'; + + static Map getRoute() { + return { + splashScreen: (_) => WelcomeScreen(), + login: (_) => LoginScreen(), + register: (_) => RegisterFirstScreen(), + dashboard: (_) => DashboardScreen(), + }; + } +} diff --git a/lib/injection/dependency_injection.dart b/lib/injection/dependency_injection.dart new file mode 100644 index 0000000..344cd4b --- /dev/null +++ b/lib/injection/dependency_injection.dart @@ -0,0 +1,13 @@ +enum Flavor { MOCK, PRO } + +class Injector { + static Flavor _flavor; + + static void configure(Flavor flavor) { + _flavor = flavor; + } + + static Flavor checkInjector() { + return _flavor; + } +} diff --git a/lib/main.dart b/lib/main.dart new file mode 100644 index 0000000..bce60f2 --- /dev/null +++ b/lib/main.dart @@ -0,0 +1,32 @@ +import 'package:flutter/material.dart'; +import 'package:provider/provider.dart'; +import 'providers/auth_provider.dart'; +import 'providers/user_provider.dart'; +import 'providers/wallet_provider.dart'; +import 'package:robo_advisory/config/Routes.dart'; +import 'package:robo_advisory/injection/dependency_injection.dart'; + +void main() { + Injector.configure(Flavor.MOCK); + runApp(MyApp()); +} + +class MyApp extends StatelessWidget { + // This widget is the root of your application. + @override + Widget build(BuildContext context) { + return MultiProvider( + providers: [ + ChangeNotifierProvider(create: (_) => AuthProvider()), + ChangeNotifierProvider(create: (_) => UserProvider()), + ChangeNotifierProvider(create: (_) => WalletProvider()), + ], + child: MaterialApp( + initialRoute: Routes.login, + routes: Routes.getRoute(), + title: 'Robo Advisory', + // theme: ThemeData.dark(), + ), + ); + } +} diff --git a/lib/models/expenses.dart b/lib/models/expenses.dart new file mode 100644 index 0000000..b30f3c3 --- /dev/null +++ b/lib/models/expenses.dart @@ -0,0 +1,10 @@ +class Expenses { + String type; + String amount; + String percentage; + Expenses({ + this.type, + this.amount, + this.percentage, + }); +} diff --git a/lib/models/healthSteam.dart b/lib/models/healthSteam.dart new file mode 100644 index 0000000..3b3571f --- /dev/null +++ b/lib/models/healthSteam.dart @@ -0,0 +1,15 @@ +class HealthSteam { + String type; + String valueInPercentage; + String goldInGram; + String goldPriceInTurkishLira; + String oneGramGoldPriceInLira; + + HealthSteam({ + this.type, + this.valueInPercentage, + this.goldInGram, + this.goldPriceInTurkishLira, + this.oneGramGoldPriceInLira, + }); +} diff --git a/lib/models/user.dart b/lib/models/user.dart new file mode 100644 index 0000000..525ac73 --- /dev/null +++ b/lib/models/user.dart @@ -0,0 +1,8 @@ +class User { + int userId; + String name; + String email; + String token; + + User({this.userId, this.name, this.email, this.token}); +} diff --git a/lib/models/wallet.dart b/lib/models/wallet.dart new file mode 100644 index 0000000..544cbdc --- /dev/null +++ b/lib/models/wallet.dart @@ -0,0 +1,29 @@ +import 'package:robo_advisory/models/healthSteam.dart'; +import 'package:robo_advisory/models/expenses.dart'; + +class Wallet { + String totalAssets; + String totalTurkishLiraPool; + String totalGoldInGram; + String totalGoldInTurkishLira; + String healthSteamDay; + List healthStream; + List expensesChart; + + Wallet({ + this.totalAssets, + this.totalTurkishLiraPool, + this.totalGoldInGram, + this.totalGoldInTurkishLira, + this.healthSteamDay, + this.healthStream, + this.expensesChart, + }); + + Wallet.fromMap(Map map) + : totalAssets = map["total_assets"], + totalTurkishLiraPool = map["total_turkish_lira"], + totalGoldInGram = map["total_gold_in_gram"], + totalGoldInTurkishLira = map["total_gold_in_turkish_lira"], + healthSteamDay = map["health_stream_day"]; +} diff --git a/lib/providers/auth_provider.dart b/lib/providers/auth_provider.dart new file mode 100644 index 0000000..e54906d --- /dev/null +++ b/lib/providers/auth_provider.dart @@ -0,0 +1,49 @@ +import 'dart:async'; +import 'package:flutter/material.dart'; + +enum Status { + NotLoggedIn, + NotRegistered, + LoggedIn, + Registered, + Authenticating, + Registering, + LoggedOut +} + +class AuthProvider with ChangeNotifier { + Status _loggedInStatus = Status.NotLoggedIn; + Status _registeredInStatus = Status.NotRegistered; + + Status get loggedInStatus => _loggedInStatus; + Status get registeredInStatus => _registeredInStatus; + + Future> login(String email, int pinCode) async { + var result; + + final Map loginData = { + 'user': {'email': email, 'pinCode': pinCode} + }; + + _loggedInStatus = Status.Authenticating; + notifyListeners(); + Timer(Duration(seconds: 30), () { + _loggedInStatus = Status.LoggedIn; + notifyListeners(); + result = {'status': true, 'message': 'Successful'}; + return result; + }); + } + + Future> register( + String email, String password, String passwordConfirmation) async { + final Map registrationData = { + 'user': { + 'email': email, + 'password': password, + 'password_confirmation': passwordConfirmation + } + }; + return {'status': true, 'message': 'Successfully registered'}; + } +} diff --git a/lib/providers/user_provider.dart b/lib/providers/user_provider.dart new file mode 100644 index 0000000..fd57904 --- /dev/null +++ b/lib/providers/user_provider.dart @@ -0,0 +1,13 @@ +import 'package:flutter/foundation.dart'; +import 'package:robo_advisory/models/user.dart'; + +class UserProvider with ChangeNotifier { + User _user = new User(); + + User get user => _user; + + void setUser(User user) { + _user = user; + notifyListeners(); + } +} diff --git a/lib/providers/wallet_provider.dart b/lib/providers/wallet_provider.dart new file mode 100644 index 0000000..8320eab --- /dev/null +++ b/lib/providers/wallet_provider.dart @@ -0,0 +1,18 @@ +import 'package:flutter/foundation.dart'; +import 'package:robo_advisory/models/wallet.dart'; +import 'package:robo_advisory/repository/wallet.repository.dart'; + +class WalletProvider with ChangeNotifier { + Wallet _wallet = new Wallet(); + + Wallet get wallet => _wallet; + + void setWallet(Wallet wallet) { + _wallet = wallet; + notifyListeners(); + } + + Future loadWallet() async { + return await WalletRepository.loadWallet(); + } +} diff --git a/lib/repository/wallet.repository.dart b/lib/repository/wallet.repository.dart new file mode 100644 index 0000000..cdb7731 --- /dev/null +++ b/lib/repository/wallet.repository.dart @@ -0,0 +1,22 @@ +import 'package:robo_advisory/injection/dependency_injection.dart'; +import 'package:robo_advisory/models/wallet.dart'; + +class WalletRepository { + static loadWallet() async { + switch (Injector.checkInjector()) { + case Flavor.MOCK: + return Wallet.fromMap(wallerJSON); + default: + // TODO: check how it will work with the API + return Wallet.fromMap(wallerJSON); + } + } +} + +final wallerJSON = { + 'total_assets': '50,000.00 TL', + 'total_turkish_lira': '5000.00 TL', + 'total_gold_in_gram': '90.00g XAU', + 'total_gold_in_turkish_lira': '45,000.00 TL', + 'health_stream_day': 'Day 01' +}; diff --git a/lib/screens/dashboard/dashboard.dart b/lib/screens/dashboard/dashboard.dart new file mode 100644 index 0000000..f1c577c --- /dev/null +++ b/lib/screens/dashboard/dashboard.dart @@ -0,0 +1,85 @@ +import 'package:flutter/material.dart'; +import 'package:robo_advisory/models/wallet.dart'; +import 'package:robo_advisory/screens/dashboard/local_widgets/bottom_navigation.dart'; +import 'package:robo_advisory/screens/home/home.dart'; +import 'package:robo_advisory/screens/fund_transfer/fund_transfer.dart'; +import 'package:robo_advisory/screens/settlement/settlement.dart'; +import 'package:robo_advisory/screens/history/history.dart'; +import 'package:robo_advisory/widgets/drawer.dart'; +import 'package:provider/provider.dart'; +import 'package:robo_advisory/providers/wallet_provider.dart'; +import 'package:flutter_spinkit/flutter_spinkit.dart'; + +// TODO: temp +import 'dart:async'; + +class DashboardScreen extends StatefulWidget { + @override + _DashboardScreenState createState() => _DashboardScreenState(); +} + +class _DashboardScreenState extends State { + final GlobalKey _scaffoldKey = GlobalKey(); + + void _openEndDrawer() { + _scaffoldKey.currentState.openEndDrawer(); + } + + int _selectedIndex = 0; + bool loadingData = true; + Wallet walletData; + + void _onItemTapped(int index) { + setState(() { + _selectedIndex = index; + }); + } + + void initState() { + WalletProvider walletProvider = + Provider.of(context, listen: false); + walletProvider.loadWallet().then((value) { + if (value.totalAssets != null) { + Timer(Duration(seconds: 3), () { + setState(() { + loadingData = false; + walletData = value; + }); + print(value.totalAssets); + }); + } + }); + super.initState(); + } + + @override + Widget build(BuildContext context) { + var currentTab = [ + HomeScreen( + toggleDrawer: _openEndDrawer, + wallet: walletData, + ), + FundTransferScreen(), + SettlementScreen(), + HistoryScreen(), + ]; + return Scaffold( + key: _scaffoldKey, + backgroundColor: Colors.white, + body: loadingData + ? Container( + child: Center( + child: SpinKitFadingFour( + color: Colors.black, + size: 100.0, + ), + ), + ) + : currentTab[_selectedIndex], + endDrawer: AppDrawer(), + bottomNavigationBar: BottomNavigation( + selectedIndex: _selectedIndex, + onItemTapped: _onItemTapped, + )); + } +} diff --git a/lib/screens/dashboard/local_widgets/bottom_navigation.dart b/lib/screens/dashboard/local_widgets/bottom_navigation.dart new file mode 100644 index 0000000..c2b60c1 --- /dev/null +++ b/lib/screens/dashboard/local_widgets/bottom_navigation.dart @@ -0,0 +1,54 @@ +import 'package:flutter/material.dart'; +import 'package:robo_advisory/theme/icons.dart'; +import 'package:flutter_svg/flutter_svg.dart'; + +class BottomNavigation extends StatelessWidget { + BottomNavigation({@required this.selectedIndex, @required this.onItemTapped}); + final int selectedIndex; + final Function onItemTapped; + @override + Widget build(BuildContext context) { + return BottomNavigationBar( + type: BottomNavigationBarType.fixed, + backgroundColor: Color(0xFFC4C4C4), + items: [ + BottomNavigationBarItem( + icon: SvgPicture.asset( + homeIcon, + color: selectedIndex == 0 ? Color(0xFF896126) : Colors.black, + height: 30.0, + ), + label: '', + ), + BottomNavigationBarItem( + icon: SvgPicture.asset( + shareIcon, + color: selectedIndex == 1 ? Color(0xFF896126) : Colors.black, + height: 30.0, + ), + label: '', + ), + BottomNavigationBarItem( + icon: SvgPicture.asset( + reloadIcon, + color: selectedIndex == 2 ? Color(0xFF896126) : Colors.black, + height: 30.0, + ), + label: '', + ), + BottomNavigationBarItem( + icon: SvgPicture.asset( + currencyIcon, + color: selectedIndex == 3 ? Color(0xFF896126) : Colors.black, + height: 30.0, + ), + label: '', + ), + ], + showSelectedLabels: false, + showUnselectedLabels: false, + currentIndex: selectedIndex, + onTap: onItemTapped, + ); + } +} diff --git a/lib/screens/fund_transfer/fund_transfer.dart b/lib/screens/fund_transfer/fund_transfer.dart new file mode 100644 index 0000000..08f5aa3 --- /dev/null +++ b/lib/screens/fund_transfer/fund_transfer.dart @@ -0,0 +1,12 @@ +import 'package:flutter/material.dart'; + +class FundTransferScreen extends StatelessWidget { + @override + Widget build(BuildContext context) { + return SafeArea( + child: Center( + child: Text('Fund Transfer Screen'), + ), + ); + } +} diff --git a/lib/screens/history/history.dart b/lib/screens/history/history.dart new file mode 100644 index 0000000..0e6e864 --- /dev/null +++ b/lib/screens/history/history.dart @@ -0,0 +1,12 @@ +import 'package:flutter/material.dart'; + +class HistoryScreen extends StatelessWidget { + @override + Widget build(BuildContext context) { + return SafeArea( + child: Center( + child: Text('History Screen'), + ), + ); + } +} diff --git a/lib/screens/home/home.dart b/lib/screens/home/home.dart new file mode 100644 index 0000000..22987bc --- /dev/null +++ b/lib/screens/home/home.dart @@ -0,0 +1,276 @@ +import 'package:flutter/material.dart'; +import 'package:google_fonts/google_fonts.dart'; +import 'package:robo_advisory/models/wallet.dart'; +import 'package:robo_advisory/theme/theme.dart'; + +class HomeScreen extends StatelessWidget { + HomeScreen({@required this.toggleDrawer, @required this.wallet}); + final Function toggleDrawer; + final Wallet wallet; + double calculatePercentage(double fullWidth, int percentValue) { + return (percentValue / 100) * fullWidth; + } + + @override + Widget build(BuildContext context) { + return SingleChildScrollView( + child: Center( + child: SafeArea( + child: Padding( + padding: AppTheme.padding, + child: Column( + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text( + 'Hi Johne', + style: GoogleFonts.inter( + textStyle: TextStyle( + fontWeight: FontWeight.bold, + fontSize: 36.0, + color: Colors.black, + ), + ), + ), + GestureDetector( + onTap: toggleDrawer, + child: Icon(Icons.more_vert), + ), + ], + ), + SizedBox( + height: 30.0, + ), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Container( + alignment: Alignment.centerLeft, + width: double.infinity, + padding: EdgeInsets.all(20.0), + color: Color(0xFFC4C4C4), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + 'Total Assets', + style: GoogleFonts.inter( + textStyle: TextStyle( + fontWeight: FontWeight.normal, + fontSize: 16, + color: Colors.black, + ), + ), + ), + Text( + wallet.totalAssets, + style: GoogleFonts.inter( + textStyle: TextStyle( + fontWeight: FontWeight.w600, + fontSize: 45, + color: Colors.black, + ), + ), + ), + ], + ), + ), + Container( + padding: EdgeInsets.only( + left: 20.0, right: 20.0, top: 7.0, bottom: 7.0), + color: Color(0xFFE5E5E5), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text( + 'TRY pool', + style: GoogleFonts.inter( + textStyle: TextStyle( + fontWeight: FontWeight.normal, + fontSize: 16, + color: Colors.black, + ), + ), + ), + Text( + wallet.totalTurkishLiraPool, + style: GoogleFonts.inter( + textStyle: TextStyle( + fontWeight: FontWeight.normal, + fontSize: 16, + color: Colors.black, + ), + ), + ), + ], + ), + ), + Container( + padding: EdgeInsets.only( + left: 20.0, right: 20.0, top: 7.0, bottom: 7.0), + color: Color(0xFFC4C4C4), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text( + 'Total XAU grams', + style: GoogleFonts.inter( + textStyle: TextStyle( + fontWeight: FontWeight.normal, + fontSize: 16, + color: Colors.black, + ), + ), + ), + Text( + wallet.totalGoldInGram, + style: GoogleFonts.inter( + textStyle: TextStyle( + fontWeight: FontWeight.normal, + fontSize: 16, + color: Colors.black, + ), + ), + ), + ], + ), + ), + ], + ), + SizedBox( + height: 30.0, + ), + Container( + width: double.infinity, + padding: EdgeInsets.only( + left: 20.0, right: 20.0, top: 7.0, bottom: 20.0), + color: Color(0xFFE5E5E5), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + 'Financial Health Stream', + style: GoogleFonts.inter( + textStyle: TextStyle( + fontWeight: FontWeight.normal, + fontSize: 16, + color: Colors.black, + ), + ), + ), + SizedBox( + height: 10.0, + ), + Row( + children: [ + SizedBox( + width: calculatePercentage( + MediaQuery.of(context).size.width - 100, 30), + height: 5.0, + child: const DecoratedBox( + decoration: const BoxDecoration( + color: Color(0xFF892626), + ), + ), + ), + SizedBox( + width: calculatePercentage( + MediaQuery.of(context).size.width - 100, 50), + height: 5.0, + child: const DecoratedBox( + decoration: const BoxDecoration( + color: Color(0xFF896126), + ), + ), + ), + SizedBox( + width: calculatePercentage( + MediaQuery.of(context).size.width - 100, 20), + height: 5.0, + child: const DecoratedBox( + decoration: const BoxDecoration( + color: Color(0xFF348926), + ), + ), + ) + ], + ) + ], + ), + ), + SizedBox( + height: 30.0, + ), + Column( + children: [ + Container( + padding: EdgeInsets.only( + left: 20.0, right: 20.0, top: 7.0, bottom: 7.0), + color: Color(0xFFE5E5E5), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text( + 'TRY pool', + style: GoogleFonts.inter( + textStyle: TextStyle( + fontWeight: FontWeight.normal, + fontSize: 16, + color: Colors.black, + ), + ), + ), + Text( + wallet.totalGoldInTurkishLira, + style: GoogleFonts.inter( + textStyle: TextStyle( + fontWeight: FontWeight.normal, + fontSize: 16, + color: Color(0xFF896126), + ), + ), + ), + ], + ), + ), + Container( + padding: EdgeInsets.only( + left: 20.0, right: 20.0, top: 7.0, bottom: 7.0), + color: Color(0xFFC4C4C4), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text( + 'Total XAU grams', + style: GoogleFonts.inter( + textStyle: TextStyle( + fontWeight: FontWeight.normal, + fontSize: 16, + color: Colors.black, + ), + ), + ), + Text( + wallet.totalGoldInGram, + style: GoogleFonts.inter( + textStyle: TextStyle( + fontWeight: FontWeight.normal, + fontSize: 16, + color: Colors.black, + ), + ), + ), + ], + ), + ), + ], + ) + ], + ), + ), + ), + ), + ); + } +} diff --git a/lib/screens/login.dart b/lib/screens/login.dart new file mode 100644 index 0000000..68d3110 --- /dev/null +++ b/lib/screens/login.dart @@ -0,0 +1,152 @@ +import 'package:flutter/material.dart'; +import 'package:pin_code_fields/pin_code_fields.dart'; +import 'package:robo_advisory/utils/constants.dart'; +import 'package:robo_advisory/config/Routes.dart'; + +class LoginScreen extends StatelessWidget { + bool rememberSwitch = false; + + void _onSwitchChanged(bool value) { + print('testing switch'); + rememberSwitch = true; + } + + @override + Widget build(BuildContext context) { + return Scaffold( + backgroundColor: Colors.white, + body: SafeArea( + child: Column( + children: [ + Expanded( + child: Container( + child: Center( + child: FlatButton( + splashColor: Colors.transparent, + highlightColor: Colors.transparent, + onPressed: () { + Navigator.pushNamed(context, Routes.register); + }, + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Icon(Icons.person_add_alt_1), + SizedBox( + height: 5.0, + ), + Text('Add New Account'), + ], + ), + ), + ), + ), + ), + Expanded( + child: Container( + child: Padding( + padding: EdgeInsets.only(left: 20.0, right: 20.0), + child: SingleChildScrollView( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Align( + child: Text( + 'Log In', + style: TextStyle(fontSize: 20.0), + ), + alignment: Alignment.centerLeft, + ), + SizedBox( + height: 15.0, + ), + TextField( + keyboardType: TextInputType.emailAddress, + style: TextStyle( + color: Colors.black, + ), + decoration: roboInputDecoration( + placeholderHint: 'User Name or Email address'), + onChanged: (value) { + print(value); + }, + ), + SizedBox( + height: 20.0, + ), + Padding( + padding: EdgeInsets.only(left: 10.0, right: 10.0), + child: PinCodeTextField( + length: 5, + cursorColor: Colors.black, + animationType: AnimationType.fade, + backgroundColor: Colors.white, + animationDuration: Duration(milliseconds: 300), + textStyle: TextStyle(fontSize: 20, height: 1.6), + enableActiveFill: true, + keyboardType: TextInputType.number, + pinTheme: otpPinTheme, + boxShadows: [ + BoxShadow( + offset: Offset(0, 1), + color: Colors.black12, + blurRadius: 10, + ) + ], + onCompleted: (v) { + print("Completed"); + }, + onChanged: (value) { + print(value); + }, + ), + ), + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Switch( + value: rememberSwitch, + onChanged: _onSwitchChanged, + // activeTrackColor: Colors.white, + // activeColor: Colors.white, + ), + FlatButton( + splashColor: Colors.transparent, + highlightColor: Colors.transparent, + onPressed: () { + Navigator.pushNamed( + context, Routes.splashScreen); + }, + child: Text('Forgot Password?'), + ) + ], + ), + SizedBox( + height: 15.0, + ), + SizedBox( + width: double.infinity, + child: RaisedButton( + color: Color(0xFF495057), + textColor: Colors.white, + onPressed: () { + Navigator.pushNamed(context, Routes.dashboard); + }, + child: Text('Log In'), + padding: EdgeInsets.all(18.0), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(18.0), + ), + ), + ) + ], + ), + ), + ), + ), + ) + ], + ), + ), + ); + } +} diff --git a/lib/screens/register/register_step_1.dart b/lib/screens/register/register_step_1.dart new file mode 100644 index 0000000..44ce38e --- /dev/null +++ b/lib/screens/register/register_step_1.dart @@ -0,0 +1,118 @@ +import 'package:flutter/material.dart'; +import 'package:pin_code_fields/pin_code_fields.dart'; +import 'package:robo_advisory/utils/constants.dart'; +import 'package:robo_advisory/screens/register/register_step_2.dart'; + +class RegisterFirstScreen extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Scaffold( + backgroundColor: Colors.white, + body: SafeArea( + child: Align( + alignment: Alignment.bottomCenter, + child: Container( + margin: EdgeInsets.only(bottom: 50.0, left: 20.0, right: 20.0), + child: SingleChildScrollView( + child: Column( + children: [ + Align( + child: Text( + 'Kindly Fill the Blanks', + style: TextStyle(fontSize: 20.0), + ), + alignment: Alignment.centerLeft, + ), + SizedBox( + height: 15.0, + ), + TextField( + keyboardType: TextInputType.emailAddress, + style: TextStyle( + color: Colors.black, + ), + decoration: roboInputDecoration( + placeholderHint: 'Email Address', + ), + onChanged: (value) { + print(value); + }, + ), + SizedBox( + height: 20.0, + ), + Padding( + padding: EdgeInsets.only(left: 10.0, right: 10.0), + child: PinCodeTextField( + length: 5, + cursorColor: Colors.black, + backgroundColor: Colors.white, + animationType: AnimationType.fade, + animationDuration: Duration(milliseconds: 300), + textStyle: TextStyle(fontSize: 20, height: 1.6), + enableActiveFill: true, + keyboardType: TextInputType.number, + pinTheme: otpPinTheme, + boxShadows: [ + BoxShadow( + offset: Offset(0, 1), + color: Colors.black12, + blurRadius: 10, + ) + ], + onCompleted: (v) { + print("Completed"); + }, + onChanged: (value) { + print(value); + }, + ), + ), + Align( + child: Row( + children: [ + Transform.scale( + scale: 0.8, + child: Switch( + value: false, + ), + ), + Text('Remember me') + ], + ), + alignment: Alignment.centerLeft, + ), + SizedBox( + height: 15.0, + ), + SizedBox( + width: double.infinity, + child: RaisedButton( + color: Color(0xFF495057), + textColor: Colors.white, + onPressed: () { + Navigator.push( + context, + MaterialPageRoute( + builder: (context) { + return RegisterSecondScreen(); + }, + ), + ); + }, + child: Text('Continue'), + padding: EdgeInsets.all(18.0), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(18.0), + ), + ), + ) + ], + ), + ), + ), + ), + ), + ); + } +} diff --git a/lib/screens/register/register_step_2.dart b/lib/screens/register/register_step_2.dart new file mode 100644 index 0000000..97a4b53 --- /dev/null +++ b/lib/screens/register/register_step_2.dart @@ -0,0 +1,81 @@ +import 'package:flutter/material.dart'; +import 'package:robo_advisory/utils/constants.dart'; +import 'package:robo_advisory/config/Routes.dart'; + +class RegisterSecondScreen extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Scaffold( + backgroundColor: Colors.white, + body: SafeArea( + child: Align( + alignment: Alignment.bottomCenter, + child: Container( + margin: EdgeInsets.only(bottom: 50.0, left: 20.0, right: 20.0), + child: SingleChildScrollView( + child: Column( + children: [ + Align( + child: Text( + 'One More Step', + style: TextStyle(fontSize: 20.0), + ), + alignment: Alignment.centerLeft, + ), + SizedBox( + height: 15.0, + ), + TextField( + style: TextStyle( + color: Colors.black, + ), + decoration: roboInputDecoration( + placeholderHint: 'User Name', + ), + onChanged: (value) { + print(value); + }, + ), + SizedBox( + height: 15.0, + ), + TextField( + keyboardType: TextInputType.number, + style: TextStyle( + color: Colors.black, + ), + decoration: roboInputDecoration( + placeholderHint: 'Mobile Number', + ), + onChanged: (value) { + print(value); + }, + ), + SizedBox( + height: 15.0, + ), + SizedBox( + width: double.infinity, + child: RaisedButton( + color: Color(0xFF495057), + textColor: Colors.white, + onPressed: () { + Navigator.pushNamed(context, Routes.dashboard); + print('Next Step'); + }, + child: Text('Register'), + padding: EdgeInsets.all(18.0), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(18.0), + ), + ), + ) + ], + ), + ), + ), + ), + ), + ); + } +} diff --git a/lib/screens/settlement/settlement.dart b/lib/screens/settlement/settlement.dart new file mode 100644 index 0000000..9d4c91b --- /dev/null +++ b/lib/screens/settlement/settlement.dart @@ -0,0 +1,12 @@ +import 'package:flutter/material.dart'; + +class SettlementScreen extends StatelessWidget { + @override + Widget build(BuildContext context) { + return SafeArea( + child: Center( + child: Text('Settlement Screen'), + ), + ); + } +} diff --git a/lib/screens/welcome.dart b/lib/screens/welcome.dart new file mode 100644 index 0000000..df41995 --- /dev/null +++ b/lib/screens/welcome.dart @@ -0,0 +1,18 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_spinkit/flutter_spinkit.dart'; + +class WelcomeScreen extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Scaffold( + body: Container( + child: Center( + child: SpinKitFadingFour( + color: Colors.black, + size: 100.0, + ), + ), + ), + ); + } +} diff --git a/lib/theme/icons.dart b/lib/theme/icons.dart new file mode 100644 index 0000000..ba3498a --- /dev/null +++ b/lib/theme/icons.dart @@ -0,0 +1,7 @@ +const homeIcon = 'images/icons/home_icon.svg'; +const shareIcon = 'images/icons/share_icon.svg'; +const reloadIcon = 'images/icons/reload_icon.svg'; +const currencyIcon = 'images/icons/currency_icon.svg'; +const accountIcon = 'images/icons/account_icon.svg'; +const logoutIcon = 'images/icons/logout_icon.svg'; +const plusIcon = 'images/icons/plus_icon.svg'; diff --git a/lib/theme/theme.dart b/lib/theme/theme.dart new file mode 100644 index 0000000..1b21cc3 --- /dev/null +++ b/lib/theme/theme.dart @@ -0,0 +1,7 @@ +import 'package:flutter/material.dart'; + +class AppTheme { + const AppTheme(); + static EdgeInsets padding = + const EdgeInsets.symmetric(horizontal: 30, vertical: 50); +} diff --git a/lib/utils/constants.dart b/lib/utils/constants.dart new file mode 100644 index 0000000..1ea2c38 --- /dev/null +++ b/lib/utils/constants.dart @@ -0,0 +1,34 @@ +import 'package:flutter/material.dart'; +import 'package:pin_code_fields/pin_code_fields.dart'; + +final otpPinTheme = PinTheme( + inactiveFillColor: Colors.white, + activeColor: Colors.white, + activeFillColor: Colors.white, + selectedFillColor: Colors.white, + selectedColor: Colors.white, + inactiveColor: Colors.grey, + shape: PinCodeFieldShape.box, + borderRadius: BorderRadius.circular(5), + fieldHeight: 60, + fieldWidth: 50, +); + +InputDecoration roboInputDecoration({String placeholderHint}) { + return InputDecoration( + filled: true, + fillColor: Colors.white, + hintText: placeholderHint, + hintStyle: TextStyle( + color: Colors.grey, + ), + border: OutlineInputBorder( + borderRadius: BorderRadius.all( + Radius.circular(30.0), + ), + borderSide: BorderSide( + width: 1.0, + ), + ), + ); +} diff --git a/lib/utils/size_config.dart b/lib/utils/size_config.dart new file mode 100644 index 0000000..f0adefb --- /dev/null +++ b/lib/utils/size_config.dart @@ -0,0 +1,30 @@ +import 'package:flutter/material.dart'; + +class SizeConfig { + static MediaQueryData _mediaQueryData; + static double screenWidth; + static double screenHeight; + static double defaultSize; + static Orientation orientation; + + void init(BuildContext context) { + _mediaQueryData = MediaQuery.of(context); + screenWidth = _mediaQueryData.size.width; + screenHeight = _mediaQueryData.size.height; + orientation = _mediaQueryData.orientation; + } +} + +// Get the proportionate height as per screen size +double getProportionateScreenHeight(double inputHeight) { + double screenHeight = SizeConfig.screenHeight; + // 812 is the layout height that designer use + return (inputHeight / 812.0) * screenHeight; +} + +// Get the proportionate height as per screen size +double getProportionateScreenWidth(double inputWidth) { + double screenWidth = SizeConfig.screenWidth; + // 375 is the layout width that designer use + return (inputWidth / 375.0) * screenWidth; +} diff --git a/lib/widgets/drawer.dart b/lib/widgets/drawer.dart new file mode 100644 index 0000000..cd16fa4 --- /dev/null +++ b/lib/widgets/drawer.dart @@ -0,0 +1,161 @@ +import 'package:flutter/material.dart'; +import 'package:robo_advisory/theme/icons.dart'; +import 'package:flutter_svg/flutter_svg.dart'; +import 'package:google_fonts/google_fonts.dart'; +import 'package:robo_advisory/config/Routes.dart'; + +class AppDrawer extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Drawer( + child: Container( + color: Color(0xFFB0B0B0), + child: ListView( + padding: EdgeInsets.zero, + children: [ + _createHeader(), + Center( + child: SvgPicture.asset( + plusIcon, + color: Color(0xFF2F2F2F), + height: 25.0, + ), + ), + Divider(), + SizedBox( + height: 30.0, + ), + _createDrawerItem( + icon: shareIcon, + text: 'Send Money', + onTap: () => print('contact'), + ), + _createDrawerItem( + icon: currencyIcon, + text: 'Pay Bills', + onTap: () => print('Events'), + ), + _createDrawerItem( + icon: reloadIcon, + text: 'Convert', + onTap: () => print('Notes'), + ), + SizedBox( + height: 30.0, + ), + _createDrawerItem( + icon: accountIcon, + text: 'Account', + ), + _createDrawerItem( + icon: logoutIcon, + text: 'Logout', + onTap: () => Navigator.pushNamed(context, Routes.login), + ), + ListTile( + title: Text('0.0.1'), + onTap: () {}, + ), + ], + ), + ), + ); + } + + Widget _createHeader() { + return DrawerHeader( + margin: EdgeInsets.zero, + padding: EdgeInsets.zero, + child: Stack( + children: [ + Positioned( + bottom: 12.0, + left: 16.0, + child: Column( + children: [ + Row( + children: [ + CircleAvatar( + backgroundColor: Color(0xFF5F5F5F), + ), + SizedBox( + width: 20.0, + ), + Text( + 'Johne doe 01', + style: GoogleFonts.inter( + textStyle: TextStyle( + fontWeight: FontWeight.w600, + fontSize: 23, + color: Colors.black, + ), + ), + ), + ], + ), + SizedBox( + height: 10.0, + ), + Row( + children: [ + CircleAvatar( + backgroundColor: Color(0xFF5F5F5F), + ), + SizedBox( + width: 20.0, + ), + Text( + 'Johne doe 02', + style: GoogleFonts.inter( + textStyle: TextStyle( + fontWeight: FontWeight.w600, + fontSize: 23, + color: Colors.black, + ), + ), + ), + ], + ), + ], + ), + ), + ], + ), + ); + } + + Widget _createDrawerItem( + {String icon, String text, GestureTapCallback onTap}) { + return ListTile( + title: Row( + children: [ + SizedBox( + width: 30.0, + child: SvgPicture.asset( + icon, + color: Color(0xFF2F2F2F), + height: 25.0, + ), + ), + SizedBox( + width: 20.0, + ), + Padding( + padding: EdgeInsets.only(left: 8.0), + child: Text( + text, + style: GoogleFonts.inter( + textStyle: TextStyle( + fontWeight: FontWeight.w500, + fontSize: 15, + color: Colors.black, + ), + ), + ), + ) + ], + ), + onTap: onTap, + ); + } +} diff --git a/pubspec.lock b/pubspec.lock new file mode 100644 index 0000000..911a441 --- /dev/null +++ b/pubspec.lock @@ -0,0 +1,397 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + async: + dependency: transitive + description: + name: async + url: "https://pub.dartlang.org" + source: hosted + version: "2.5.0-nullsafety.1" + boolean_selector: + dependency: transitive + description: + name: boolean_selector + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.0-nullsafety.1" + characters: + dependency: transitive + description: + name: characters + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.0-nullsafety.3" + charcode: + dependency: transitive + description: + name: charcode + url: "https://pub.dartlang.org" + source: hosted + version: "1.2.0-nullsafety.1" + clock: + dependency: transitive + description: + name: clock + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.0-nullsafety.1" + collection: + dependency: transitive + description: + name: collection + url: "https://pub.dartlang.org" + source: hosted + version: "1.15.0-nullsafety.3" + convert: + dependency: transitive + description: + name: convert + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.1" + crypto: + dependency: transitive + description: + name: crypto + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.5" + cupertino_icons: + dependency: "direct main" + description: + name: cupertino_icons + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.0" + fake_async: + dependency: transitive + description: + name: fake_async + url: "https://pub.dartlang.org" + source: hosted + version: "1.2.0-nullsafety.1" + ffi: + dependency: transitive + description: + name: ffi + url: "https://pub.dartlang.org" + source: hosted + version: "0.1.3" + file: + dependency: transitive + description: + name: file + url: "https://pub.dartlang.org" + source: hosted + version: "5.2.1" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_spinkit: + dependency: "direct main" + description: + name: flutter_spinkit + url: "https://pub.dartlang.org" + source: hosted + version: "4.1.2+1" + flutter_svg: + dependency: "direct main" + description: + name: flutter_svg + url: "https://pub.dartlang.org" + source: hosted + version: "0.19.1" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + flutter_web_plugins: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + google_fonts: + dependency: "direct main" + description: + name: google_fonts + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.1" + http: + dependency: "direct main" + description: + name: http + url: "https://pub.dartlang.org" + source: hosted + version: "0.12.2" + http_parser: + dependency: transitive + description: + name: http_parser + url: "https://pub.dartlang.org" + source: hosted + version: "3.1.4" + intl: + dependency: transitive + description: + name: intl + url: "https://pub.dartlang.org" + source: hosted + version: "0.16.1" + matcher: + dependency: transitive + description: + name: matcher + url: "https://pub.dartlang.org" + source: hosted + version: "0.12.10-nullsafety.1" + meta: + dependency: transitive + description: + name: meta + url: "https://pub.dartlang.org" + source: hosted + version: "1.3.0-nullsafety.3" + nested: + dependency: transitive + description: + name: nested + url: "https://pub.dartlang.org" + source: hosted + version: "0.0.4" + path: + dependency: transitive + description: + name: path + url: "https://pub.dartlang.org" + source: hosted + version: "1.8.0-nullsafety.1" + path_drawing: + dependency: transitive + description: + name: path_drawing + url: "https://pub.dartlang.org" + source: hosted + version: "0.4.1+1" + path_parsing: + dependency: transitive + description: + name: path_parsing + url: "https://pub.dartlang.org" + source: hosted + version: "0.1.4" + path_provider: + dependency: transitive + description: + name: path_provider + url: "https://pub.dartlang.org" + source: hosted + version: "1.6.24" + path_provider_linux: + dependency: transitive + description: + name: path_provider_linux + url: "https://pub.dartlang.org" + source: hosted + version: "0.0.1+2" + path_provider_macos: + dependency: transitive + description: + name: path_provider_macos + url: "https://pub.dartlang.org" + source: hosted + version: "0.0.4+6" + path_provider_platform_interface: + dependency: transitive + description: + name: path_provider_platform_interface + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.4" + path_provider_windows: + dependency: transitive + description: + name: path_provider_windows + url: "https://pub.dartlang.org" + source: hosted + version: "0.0.4+3" + pedantic: + dependency: transitive + description: + name: pedantic + url: "https://pub.dartlang.org" + source: hosted + version: "1.9.2" + petitparser: + dependency: transitive + description: + name: petitparser + url: "https://pub.dartlang.org" + source: hosted + version: "3.1.0" + pin_code_fields: + dependency: "direct main" + description: + name: pin_code_fields + url: "https://pub.dartlang.org" + source: hosted + version: "6.0.1" + platform: + dependency: transitive + description: + name: platform + url: "https://pub.dartlang.org" + source: hosted + version: "2.2.1" + plugin_platform_interface: + dependency: transitive + description: + name: plugin_platform_interface + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.3" + process: + dependency: transitive + description: + name: process + url: "https://pub.dartlang.org" + source: hosted + version: "3.0.13" + provider: + dependency: "direct main" + description: + name: provider + url: "https://pub.dartlang.org" + source: hosted + version: "4.3.2+2" + shared_preferences: + dependency: "direct main" + description: + name: shared_preferences + url: "https://pub.dartlang.org" + source: hosted + version: "0.5.12+4" + shared_preferences_linux: + dependency: transitive + description: + name: shared_preferences_linux + url: "https://pub.dartlang.org" + source: hosted + version: "0.0.2+4" + shared_preferences_macos: + dependency: transitive + description: + name: shared_preferences_macos + url: "https://pub.dartlang.org" + source: hosted + version: "0.0.1+11" + shared_preferences_platform_interface: + dependency: transitive + description: + name: shared_preferences_platform_interface + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.4" + shared_preferences_web: + dependency: transitive + description: + name: shared_preferences_web + url: "https://pub.dartlang.org" + source: hosted + version: "0.1.2+7" + shared_preferences_windows: + dependency: transitive + description: + name: shared_preferences_windows + url: "https://pub.dartlang.org" + source: hosted + version: "0.0.1+3" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_span: + dependency: transitive + description: + name: source_span + url: "https://pub.dartlang.org" + source: hosted + version: "1.8.0-nullsafety.2" + stack_trace: + dependency: transitive + description: + name: stack_trace + url: "https://pub.dartlang.org" + source: hosted + version: "1.10.0-nullsafety.1" + stream_channel: + dependency: transitive + description: + name: stream_channel + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.0-nullsafety.1" + string_scanner: + dependency: transitive + description: + name: string_scanner + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.0-nullsafety.1" + term_glyph: + dependency: transitive + description: + name: term_glyph + url: "https://pub.dartlang.org" + source: hosted + version: "1.2.0-nullsafety.1" + test_api: + dependency: transitive + description: + name: test_api + url: "https://pub.dartlang.org" + source: hosted + version: "0.2.19-nullsafety.2" + typed_data: + dependency: transitive + description: + name: typed_data + url: "https://pub.dartlang.org" + source: hosted + version: "1.3.0-nullsafety.3" + vector_math: + dependency: transitive + description: + name: vector_math + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.0-nullsafety.3" + win32: + dependency: transitive + description: + name: win32 + url: "https://pub.dartlang.org" + source: hosted + version: "1.7.4" + xdg_directories: + dependency: transitive + description: + name: xdg_directories + url: "https://pub.dartlang.org" + source: hosted + version: "0.1.2" + xml: + dependency: transitive + description: + name: xml + url: "https://pub.dartlang.org" + source: hosted + version: "4.5.1" +sdks: + dart: ">=2.10.0-110 <2.11.0" + flutter: ">=1.22.0 <2.0.0" diff --git a/pubspec.yaml b/pubspec.yaml new file mode 100644 index 0000000..dc06239 --- /dev/null +++ b/pubspec.yaml @@ -0,0 +1,84 @@ +name: robo_advisory +description: A new Flutter project. + +# The following line prevents the package from being accidentally published to +# pub.dev using `pub publish`. This is preferred for private packages. +publish_to: 'none' # Remove this line if you wish to publish to pub.dev + +# The following defines the version and build number for your application. +# A version number is three numbers separated by dots, like 1.2.43 +# followed by an optional build number separated by a +. +# Both the version and the builder number may be overridden in flutter +# build by specifying --build-name and --build-number, respectively. +# In Android, build-name is used as versionName while build-number used as versionCode. +# Read more about Android versioning at https://developer.android.com/studio/publish/versioning +# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. +# Read more about iOS versioning at +# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html +version: 1.0.0+1 + +environment: + sdk: ">=2.7.0 <3.0.0" + +dependencies: + flutter: + sdk: flutter + + + # The following adds the Cupertino Icons font to your application. + # Use with the CupertinoIcons class for iOS style icons. + cupertino_icons: ^1.0.0 + provider: ^4.3.2+2 + http: ^0.12.2 + shared_preferences: ^0.5.12+4 + flutter_spinkit: ^4.1.2+1 + pin_code_fields: ^6.0.1 + flutter_svg: ^0.19.1 + google_fonts: ^1.1.1 +dev_dependencies: + flutter_test: + sdk: flutter + +# For information on the generic Dart part of this file, see the +# following page: https://dart.dev/tools/pub/pubspec + +# The following section is specific to Flutter. +flutter: + + # The following line ensures that the Material Icons font is + # included with your application, so that you can use the icons in + # the material Icons class. + uses-material-design: true + assets: + - images/icons/ + + # To add assets to your application, add an assets section, like this: + # assets: + # - images/a_dot_burr.jpeg + # - images/a_dot_ham.jpeg + + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/assets-and-images/#resolution-aware. + + # For details regarding adding assets from package dependencies, see + # https://flutter.dev/assets-and-images/#from-packages + + # To add custom fonts to your application, add a fonts section here, + # in this "flutter" section. Each entry in this list should have a + # "family" key with the font family name, and a "fonts" key with a + # list giving the asset and other descriptors for the font. For + # example: + # fonts: + # - family: Schyler + # fonts: + # - asset: fonts/Schyler-Regular.ttf + # - asset: fonts/Schyler-Italic.ttf + # style: italic + # - family: Trajan Pro + # fonts: + # - asset: fonts/TrajanPro.ttf + # - asset: fonts/TrajanPro_Bold.ttf + # weight: 700 + # + # For details regarding fonts from package dependencies, + # see https://flutter.dev/custom-fonts/#from-packages diff --git a/test/widget_test.dart b/test/widget_test.dart new file mode 100644 index 0000000..71dec98 --- /dev/null +++ b/test/widget_test.dart @@ -0,0 +1,30 @@ +// This is a basic Flutter widget test. +// +// To perform an interaction with a widget in your test, use the WidgetTester +// utility that Flutter provides. For example, you can send tap and scroll +// gestures. You can also use WidgetTester to find child widgets in the widget +// tree, read text, and verify that the values of widget properties are correct. + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; + +import 'package:robo_advisory/main.dart'; + +void main() { + testWidgets('Counter increments smoke test', (WidgetTester tester) async { + // Build our app and trigger a frame. + await tester.pumpWidget(MyApp()); + + // Verify that our counter starts at 0. + expect(find.text('0'), findsOneWidget); + expect(find.text('1'), findsNothing); + + // Tap the '+' icon and trigger a frame. + await tester.tap(find.byIcon(Icons.add)); + await tester.pump(); + + // Verify that our counter has incremented. + expect(find.text('0'), findsNothing); + expect(find.text('1'), findsOneWidget); + }); +}