├── .gitignore ├── README.md ├── android ├── .gradle │ ├── 4.10.2 │ │ ├── fileChanges │ │ │ └── last-build.bin │ │ ├── fileContent │ │ │ └── fileContent.lock │ │ ├── fileHashes │ │ │ ├── fileHashes.bin │ │ │ ├── fileHashes.lock │ │ │ └── resourceHashesCache.bin │ │ ├── gc.properties │ │ ├── javaCompile │ │ │ ├── classAnalysis.bin │ │ │ ├── jarAnalysis.bin │ │ │ ├── javaCompile.lock │ │ │ └── taskHistory.bin │ │ └── taskHistory │ │ │ ├── taskHistory.bin │ │ │ └── taskHistory.lock │ ├── buildOutputCleanup │ │ ├── buildOutputCleanup.lock │ │ ├── cache.properties │ │ └── outputFiles.bin │ └── vcs-1 │ │ └── gc.properties ├── .project ├── .settings │ └── org.eclipse.buildship.core.prefs ├── app │ ├── .classpath │ ├── .project │ ├── .settings │ │ └── org.eclipse.buildship.core.prefs │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ │ ├── com │ │ │ │ └── example │ │ │ │ │ └── myapp │ │ │ │ │ └── MainActivity.java │ │ │ └── io │ │ │ │ └── flutter │ │ │ │ └── plugins │ │ │ │ └── GeneratedPluginRegistrant.java │ │ └── res │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── mipmap-hdpi │ │ │ ├── ic_app.png │ │ │ ├── ic_iconblack.png │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ ├── ic_app.png │ │ │ ├── ic_iconblack.png │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ ├── ic_app.png │ │ │ ├── ic_iconblack.png │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ ├── ic_app.png │ │ │ ├── ic_iconblack.png │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_app.png │ │ │ ├── ic_iconblack.png │ │ │ └── ic_launcher.png │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── key.properties ├── local.properties ├── myapp_android.iml └── settings.gradle ├── assets ├── app.png ├── binance.png ├── bittrex.jpg ├── coinbase.png ├── coinbase_pro.jpg ├── hitbtc.png └── mercatox.png ├── ios ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ ├── Generated.xcconfig │ └── Release.xcconfig ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ └── contents.xcworkspacedata └── Runner │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── Icon-App-20x20@1x.png │ │ ├── Icon-App-20x20@2x.png │ │ ├── Icon-App-20x20@3x.png │ │ ├── Icon-App-29x29@1x.png │ │ ├── Icon-App-29x29@2x.png │ │ ├── Icon-App-29x29@3x.png │ │ ├── Icon-App-40x40@1x.png │ │ ├── Icon-App-40x40@2x.png │ │ ├── Icon-App-40x40@3x.png │ │ ├── Icon-App-60x60@2x.png │ │ ├── Icon-App-60x60@3x.png │ │ ├── Icon-App-76x76@1x.png │ │ ├── Icon-App-76x76@2x.png │ │ └── Icon-App-83.5x83.5@2x.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── GeneratedPluginRegistrant.h │ ├── GeneratedPluginRegistrant.m │ ├── Info.plist │ └── main.m ├── lib ├── main.dart ├── utility │ └── fetch_exchange_data.dart └── views │ ├── exchange_register_manually.dart │ ├── exchange_registering.dart │ ├── exchange_select.dart │ └── wallet_information.dart ├── myapp.iml ├── pubspec.lock ├── pubspec.yaml └── test └── widget_test.dart /.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Get it on Google Play 2 | 3 | # BitView 4 | 5 | ![ic_app](https://user-images.githubusercontent.com/35738310/56090106-c0db8880-5e9d-11e9-8993-9a49208c5347.png) 6 | 7 | 8 | 9 | A Flutter project. I built a crypto portfolio with a very simple kept overview of your balances and the total value. 10 | You can add the balances of your exchanges via the API of Binance, Bittrex, HitBTC, Coinbase or Coinbase Pro. 11 | 12 | ## Overview 13 | When you are just interested how I connect the exchanges, then go to 'lib/utility/fetch_exchange_data.dart' 14 | 15 | | | | | 16 | | :---------: | :------------------: | :----------------------: | 17 | | ![Balance](https://user-images.githubusercontent.com/35738310/56091858-7addef00-5eb4-11e9-8315-25f0635a320e.png) | ![Main Page](https://user-images.githubusercontent.com/35738310/56091829-220e5680-5eb4-11e9-9c5c-bc4b435dffc6.png) | ![Exchanges](https://user-images.githubusercontent.com/35738310/56091861-829d9380-5eb4-11e9-84e2-b1cae9c0db6d.png) | 18 | 19 | ## Things to do 20 | 21 | - [x] API support 22 | - [x] fix bugs for public build 23 | - [x] add fiat value to specific coin 24 | - [ ] add more exchanges(HitBTC recenetly added) 25 | - [ ] manually add exchanges/coins 26 | - [x] different currency support (EUR, USD, GBP) 27 | - [x] maybe improve loading speed 28 | -------------------------------------------------------------------------------- /android/.gradle/4.10.2/fileChanges/last-build.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /android/.gradle/4.10.2/fileContent/fileContent.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/.gradle/4.10.2/fileContent/fileContent.lock -------------------------------------------------------------------------------- /android/.gradle/4.10.2/fileHashes/fileHashes.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/.gradle/4.10.2/fileHashes/fileHashes.bin -------------------------------------------------------------------------------- /android/.gradle/4.10.2/fileHashes/fileHashes.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/.gradle/4.10.2/fileHashes/fileHashes.lock -------------------------------------------------------------------------------- /android/.gradle/4.10.2/fileHashes/resourceHashesCache.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/.gradle/4.10.2/fileHashes/resourceHashesCache.bin -------------------------------------------------------------------------------- /android/.gradle/4.10.2/gc.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/.gradle/4.10.2/gc.properties -------------------------------------------------------------------------------- /android/.gradle/4.10.2/javaCompile/classAnalysis.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/.gradle/4.10.2/javaCompile/classAnalysis.bin -------------------------------------------------------------------------------- /android/.gradle/4.10.2/javaCompile/jarAnalysis.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/.gradle/4.10.2/javaCompile/jarAnalysis.bin -------------------------------------------------------------------------------- /android/.gradle/4.10.2/javaCompile/javaCompile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/.gradle/4.10.2/javaCompile/javaCompile.lock -------------------------------------------------------------------------------- /android/.gradle/4.10.2/javaCompile/taskHistory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/.gradle/4.10.2/javaCompile/taskHistory.bin -------------------------------------------------------------------------------- /android/.gradle/4.10.2/taskHistory/taskHistory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/.gradle/4.10.2/taskHistory/taskHistory.bin -------------------------------------------------------------------------------- /android/.gradle/4.10.2/taskHistory/taskHistory.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/.gradle/4.10.2/taskHistory/taskHistory.lock -------------------------------------------------------------------------------- /android/.gradle/buildOutputCleanup/buildOutputCleanup.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock -------------------------------------------------------------------------------- /android/.gradle/buildOutputCleanup/cache.properties: -------------------------------------------------------------------------------- 1 | #Sun Mar 10 19:09:48 CET 2019 2 | gradle.version=4.10.2 3 | -------------------------------------------------------------------------------- /android/.gradle/buildOutputCleanup/outputFiles.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/.gradle/buildOutputCleanup/outputFiles.bin -------------------------------------------------------------------------------- /android/.gradle/vcs-1/gc.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/.gradle/vcs-1/gc.properties -------------------------------------------------------------------------------- /android/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | android 4 | Project android created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.buildship.core.gradleprojectbuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.buildship.core.gradleprojectnature 16 | 17 | 18 | -------------------------------------------------------------------------------- /android/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | connection.project.dir= 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /android/app/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /android/app/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | app 4 | Project app created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.buildship.core.gradleprojectbuilder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.buildship.core.gradleprojectnature 22 | 23 | 24 | -------------------------------------------------------------------------------- /android/app/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | connection.project.dir=.. 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 26 | 27 | 28 | def keystoreProperties = new Properties() 29 | def keystorePropertiesFile = rootProject.file('key.properties') 30 | if (keystorePropertiesFile.exists()) { 31 | keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) 32 | } 33 | 34 | android { 35 | compileSdkVersion 28 36 | 37 | lintOptions { 38 | disable 'InvalidPackage' 39 | } 40 | 41 | defaultConfig { 42 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 43 | applicationId "com.portfolio.bitview" 44 | minSdkVersion 16 45 | targetSdkVersion 28 46 | versionCode flutterVersionCode.toInteger() 47 | versionName flutterVersionName 48 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 49 | } 50 | 51 | signingConfigs { 52 | release { 53 | keyAlias keystoreProperties['keyAlias'] 54 | keyPassword keystoreProperties['keyPassword'] 55 | storeFile file(keystoreProperties['storeFile']) 56 | storePassword keystoreProperties['storePassword'] 57 | } 58 | } 59 | buildTypes { 60 | release { 61 | signingConfig signingConfigs.release 62 | minifyEnabled true 63 | useProguard true 64 | 65 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 66 | 67 | } 68 | } 69 | } 70 | 71 | flutter { 72 | source '../..' 73 | } 74 | 75 | dependencies { 76 | testImplementation 'junit:junit:4.12' 77 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 78 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 79 | } 80 | -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | #Flutter Wrapper 2 | -keep class io.flutter.app.** { *; } 3 | -keep class io.flutter.plugin.** { *; } 4 | -keep class io.flutter.util.** { *; } 5 | -keep class io.flutter.view.** { *; } 6 | -keep class io.flutter.** { *; } 7 | -keep class io.flutter.plugins.** { *; } -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 9 | 13 | 20 | 24 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/example/myapp/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.myapp; 2 | 3 | import android.os.Bundle; 4 | import io.flutter.app.FlutterActivity; 5 | import io.flutter.plugins.GeneratedPluginRegistrant; 6 | 7 | public class MainActivity extends FlutterActivity { 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | GeneratedPluginRegistrant.registerWith(this); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java: -------------------------------------------------------------------------------- 1 | package io.flutter.plugins; 2 | 3 | import io.flutter.plugin.common.PluginRegistry; 4 | import io.github.ponnamkarthik.toast.fluttertoast.FluttertoastPlugin; 5 | import io.flutter.plugins.sharedpreferences.SharedPreferencesPlugin; 6 | 7 | /** 8 | * Generated file. Do not edit. 9 | */ 10 | public final class GeneratedPluginRegistrant { 11 | public static void registerWith(PluginRegistry registry) { 12 | if (alreadyRegisteredWith(registry)) { 13 | return; 14 | } 15 | FluttertoastPlugin.registerWith(registry.registrarFor("io.github.ponnamkarthik.toast.fluttertoast.FluttertoastPlugin")); 16 | SharedPreferencesPlugin.registerWith(registry.registrarFor("io.flutter.plugins.sharedpreferences.SharedPreferencesPlugin")); 17 | } 18 | 19 | private static boolean alreadyRegisteredWith(PluginRegistry registry) { 20 | final String key = GeneratedPluginRegistrant.class.getCanonicalName(); 21 | if (registry.hasPlugin(key)) { 22 | return true; 23 | } 24 | registry.registrarFor(key); 25 | return false; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/app/src/main/res/mipmap-hdpi/ic_app.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_iconblack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/app/src/main/res/mipmap-hdpi/ic_iconblack.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/app/src/main/res/mipmap-mdpi/ic_app.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_iconblack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/app/src/main/res/mipmap-mdpi/ic_iconblack.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/app/src/main/res/mipmap-xhdpi/ic_app.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_iconblack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/app/src/main/res/mipmap-xhdpi/ic_iconblack.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/app/src/main/res/mipmap-xxhdpi/ic_app.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_iconblack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/app/src/main/res/mipmap-xxhdpi/ic_iconblack.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/app/src/main/res/mipmap-xxxhdpi/ic_app.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_iconblack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/app/src/main/res/mipmap-xxxhdpi/ic_iconblack.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | google() 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.2.1' 9 | } 10 | } 11 | 12 | allprojects { 13 | repositories { 14 | google() 15 | jcenter() 16 | } 17 | } 18 | 19 | rootProject.buildDir = '../build' 20 | subprojects { 21 | project.buildDir = "${rootProject.buildDir}/${project.name}" 22 | } 23 | subprojects { 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip 7 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # Attempt to set APP_HOME 46 | # Resolve links: $0 may be a link 47 | PRG="$0" 48 | # Need this for relative symlinks. 49 | while [ -h "$PRG" ] ; do 50 | ls=`ls -ld "$PRG"` 51 | link=`expr "$ls" : '.*-> \(.*\)$'` 52 | if expr "$link" : '/.*' > /dev/null; then 53 | PRG="$link" 54 | else 55 | PRG=`dirname "$PRG"`"/$link" 56 | fi 57 | done 58 | SAVED="`pwd`" 59 | cd "`dirname \"$PRG\"`/" >/dev/null 60 | APP_HOME="`pwd -P`" 61 | cd "$SAVED" >/dev/null 62 | 63 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 64 | 65 | # Determine the Java command to use to start the JVM. 66 | if [ -n "$JAVA_HOME" ] ; then 67 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 68 | # IBM's JDK on AIX uses strange locations for the executables 69 | JAVACMD="$JAVA_HOME/jre/sh/java" 70 | else 71 | JAVACMD="$JAVA_HOME/bin/java" 72 | fi 73 | if [ ! -x "$JAVACMD" ] ; then 74 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 75 | 76 | Please set the JAVA_HOME variable in your environment to match the 77 | location of your Java installation." 78 | fi 79 | else 80 | JAVACMD="java" 81 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 82 | 83 | Please set the JAVA_HOME variable in your environment to match the 84 | location of your Java installation." 85 | fi 86 | 87 | # Increase the maximum file descriptors if we can. 88 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 89 | MAX_FD_LIMIT=`ulimit -H -n` 90 | if [ $? -eq 0 ] ; then 91 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 92 | MAX_FD="$MAX_FD_LIMIT" 93 | fi 94 | ulimit -n $MAX_FD 95 | if [ $? -ne 0 ] ; then 96 | warn "Could not set maximum file descriptor limit: $MAX_FD" 97 | fi 98 | else 99 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 100 | fi 101 | fi 102 | 103 | # For Darwin, add options to specify how the application appears in the dock 104 | if $darwin; then 105 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 106 | fi 107 | 108 | # For Cygwin, switch paths to Windows format before running java 109 | if $cygwin ; then 110 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 111 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 112 | JAVACMD=`cygpath --unix "$JAVACMD"` 113 | 114 | # We build the pattern for arguments to be converted via cygpath 115 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 116 | SEP="" 117 | for dir in $ROOTDIRSRAW ; do 118 | ROOTDIRS="$ROOTDIRS$SEP$dir" 119 | SEP="|" 120 | done 121 | OURCYGPATTERN="(^($ROOTDIRS))" 122 | # Add a user-defined pattern to the cygpath arguments 123 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 124 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 125 | fi 126 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 127 | i=0 128 | for arg in "$@" ; do 129 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 130 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 131 | 132 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 133 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 134 | else 135 | eval `echo args$i`="\"$arg\"" 136 | fi 137 | i=$((i+1)) 138 | done 139 | case $i in 140 | (0) set -- ;; 141 | (1) set -- "$args0" ;; 142 | (2) set -- "$args0" "$args1" ;; 143 | (3) set -- "$args0" "$args1" "$args2" ;; 144 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 145 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 146 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 147 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 148 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 149 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 150 | esac 151 | fi 152 | 153 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 154 | function splitJvmOpts() { 155 | JVM_OPTS=("$@") 156 | } 157 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 158 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 159 | 160 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 161 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /android/key.properties: -------------------------------------------------------------------------------- 1 | storePassword=androidapp 2 | keyPassword=androidapp 3 | keyAlias=key 4 | storeFile=/home/alessandro/key.jks -------------------------------------------------------------------------------- /android/local.properties: -------------------------------------------------------------------------------- 1 | sdk.dir=/home/alessandro/Android/Sdk 2 | flutter.sdk=/home/alessandro/Development/flutter 3 | flutter.buildMode=release 4 | flutter.versionName=1.1.0 5 | flutter.versionCode=5 -------------------------------------------------------------------------------- /android/myapp_android.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /assets/app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/assets/app.png -------------------------------------------------------------------------------- /assets/binance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/assets/binance.png -------------------------------------------------------------------------------- /assets/bittrex.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/assets/bittrex.jpg -------------------------------------------------------------------------------- /assets/coinbase.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/assets/coinbase.png -------------------------------------------------------------------------------- /assets/coinbase_pro.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/assets/coinbase_pro.jpg -------------------------------------------------------------------------------- /assets/hitbtc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/assets/hitbtc.png -------------------------------------------------------------------------------- /assets/mercatox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/assets/mercatox.png -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Generated.xcconfig: -------------------------------------------------------------------------------- 1 | // This is a generated file; do not edit or check into version control. 2 | FLUTTER_ROOT=/home/alessandro/Development/flutter 3 | FLUTTER_APPLICATION_PATH=/home/alessandro/myapp 4 | FLUTTER_TARGET=lib/main.dart 5 | FLUTTER_BUILD_DIR=build 6 | SYMROOT=${SOURCE_ROOT}/../build/ios 7 | FLUTTER_FRAMEWORK_DIR=/home/alessandro/Development/flutter/bin/cache/artifacts/engine/ios 8 | FLUTTER_BUILD_NAME=1.0.0 9 | FLUTTER_BUILD_NUMBER=1 10 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 14 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 15 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 16 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 17 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 18 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 19 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 20 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 21 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXCopyFilesBuildPhase section */ 25 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 26 | isa = PBXCopyFilesBuildPhase; 27 | buildActionMask = 2147483647; 28 | dstPath = ""; 29 | dstSubfolderSpec = 10; 30 | files = ( 31 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 32 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 33 | ); 34 | name = "Embed Frameworks"; 35 | runOnlyForDeploymentPostprocessing = 0; 36 | }; 37 | /* End PBXCopyFilesBuildPhase section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 41 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 42 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 43 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 44 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 45 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 46 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 47 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 48 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 49 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 50 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 51 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 52 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 53 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 54 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 55 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 56 | /* End PBXFileReference section */ 57 | 58 | /* Begin PBXFrameworksBuildPhase section */ 59 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 60 | isa = PBXFrameworksBuildPhase; 61 | buildActionMask = 2147483647; 62 | files = ( 63 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 64 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 65 | ); 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | /* End PBXFrameworksBuildPhase section */ 69 | 70 | /* Begin PBXGroup section */ 71 | 9740EEB11CF90186004384FC /* Flutter */ = { 72 | isa = PBXGroup; 73 | children = ( 74 | 3B80C3931E831B6300D905FE /* App.framework */, 75 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 76 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 77 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 78 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 79 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 80 | ); 81 | name = Flutter; 82 | sourceTree = ""; 83 | }; 84 | 97C146E51CF9000F007C117D = { 85 | isa = PBXGroup; 86 | children = ( 87 | 9740EEB11CF90186004384FC /* Flutter */, 88 | 97C146F01CF9000F007C117D /* Runner */, 89 | 97C146EF1CF9000F007C117D /* Products */, 90 | CF3B75C9A7D2FA2A4C99F110 /* Frameworks */, 91 | ); 92 | sourceTree = ""; 93 | }; 94 | 97C146EF1CF9000F007C117D /* Products */ = { 95 | isa = PBXGroup; 96 | children = ( 97 | 97C146EE1CF9000F007C117D /* Runner.app */, 98 | ); 99 | name = Products; 100 | sourceTree = ""; 101 | }; 102 | 97C146F01CF9000F007C117D /* Runner */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 106 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 107 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 108 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 109 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 110 | 97C147021CF9000F007C117D /* Info.plist */, 111 | 97C146F11CF9000F007C117D /* Supporting Files */, 112 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 113 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 114 | ); 115 | path = Runner; 116 | sourceTree = ""; 117 | }; 118 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 97C146F21CF9000F007C117D /* main.m */, 122 | ); 123 | name = "Supporting Files"; 124 | sourceTree = ""; 125 | }; 126 | /* End PBXGroup section */ 127 | 128 | /* Begin PBXNativeTarget section */ 129 | 97C146ED1CF9000F007C117D /* Runner */ = { 130 | isa = PBXNativeTarget; 131 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 132 | buildPhases = ( 133 | 9740EEB61CF901F6004384FC /* Run Script */, 134 | 97C146EA1CF9000F007C117D /* Sources */, 135 | 97C146EB1CF9000F007C117D /* Frameworks */, 136 | 97C146EC1CF9000F007C117D /* Resources */, 137 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 138 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 139 | ); 140 | buildRules = ( 141 | ); 142 | dependencies = ( 143 | ); 144 | name = Runner; 145 | productName = Runner; 146 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 147 | productType = "com.apple.product-type.application"; 148 | }; 149 | /* End PBXNativeTarget section */ 150 | 151 | /* Begin PBXProject section */ 152 | 97C146E61CF9000F007C117D /* Project object */ = { 153 | isa = PBXProject; 154 | attributes = { 155 | LastUpgradeCheck = 0910; 156 | ORGANIZATIONNAME = "The Chromium Authors"; 157 | TargetAttributes = { 158 | 97C146ED1CF9000F007C117D = { 159 | CreatedOnToolsVersion = 7.3.1; 160 | }; 161 | }; 162 | }; 163 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 164 | compatibilityVersion = "Xcode 3.2"; 165 | developmentRegion = English; 166 | hasScannedForEncodings = 0; 167 | knownRegions = ( 168 | en, 169 | Base, 170 | ); 171 | mainGroup = 97C146E51CF9000F007C117D; 172 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 173 | projectDirPath = ""; 174 | projectRoot = ""; 175 | targets = ( 176 | 97C146ED1CF9000F007C117D /* Runner */, 177 | ); 178 | }; 179 | /* End PBXProject section */ 180 | 181 | /* Begin PBXResourcesBuildPhase section */ 182 | 97C146EC1CF9000F007C117D /* Resources */ = { 183 | isa = PBXResourcesBuildPhase; 184 | buildActionMask = 2147483647; 185 | files = ( 186 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 187 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 188 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 189 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 190 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 191 | ); 192 | runOnlyForDeploymentPostprocessing = 0; 193 | }; 194 | /* End PBXResourcesBuildPhase section */ 195 | 196 | /* Begin PBXShellScriptBuildPhase section */ 197 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 198 | isa = PBXShellScriptBuildPhase; 199 | buildActionMask = 2147483647; 200 | files = ( 201 | ); 202 | inputPaths = ( 203 | ); 204 | name = "Thin Binary"; 205 | outputPaths = ( 206 | ); 207 | runOnlyForDeploymentPostprocessing = 0; 208 | shellPath = /bin/sh; 209 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 210 | }; 211 | 9740EEB61CF901F6004384FC /* Run Script */ = { 212 | isa = PBXShellScriptBuildPhase; 213 | buildActionMask = 2147483647; 214 | files = ( 215 | ); 216 | inputPaths = ( 217 | ); 218 | name = "Run Script"; 219 | outputPaths = ( 220 | ); 221 | runOnlyForDeploymentPostprocessing = 0; 222 | shellPath = /bin/sh; 223 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 224 | }; 225 | /* End PBXShellScriptBuildPhase section */ 226 | 227 | /* Begin PBXSourcesBuildPhase section */ 228 | 97C146EA1CF9000F007C117D /* Sources */ = { 229 | isa = PBXSourcesBuildPhase; 230 | buildActionMask = 2147483647; 231 | files = ( 232 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 233 | 97C146F31CF9000F007C117D /* main.m in Sources */, 234 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 235 | ); 236 | runOnlyForDeploymentPostprocessing = 0; 237 | }; 238 | /* End PBXSourcesBuildPhase section */ 239 | 240 | /* Begin PBXVariantGroup section */ 241 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 242 | isa = PBXVariantGroup; 243 | children = ( 244 | 97C146FB1CF9000F007C117D /* Base */, 245 | ); 246 | name = Main.storyboard; 247 | sourceTree = ""; 248 | }; 249 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 250 | isa = PBXVariantGroup; 251 | children = ( 252 | 97C147001CF9000F007C117D /* Base */, 253 | ); 254 | name = LaunchScreen.storyboard; 255 | sourceTree = ""; 256 | }; 257 | /* End PBXVariantGroup section */ 258 | 259 | /* Begin XCBuildConfiguration section */ 260 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 261 | isa = XCBuildConfiguration; 262 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 263 | buildSettings = { 264 | ALWAYS_SEARCH_USER_PATHS = NO; 265 | CLANG_ANALYZER_NONNULL = YES; 266 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 267 | CLANG_CXX_LIBRARY = "libc++"; 268 | CLANG_ENABLE_MODULES = YES; 269 | CLANG_ENABLE_OBJC_ARC = YES; 270 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 271 | CLANG_WARN_BOOL_CONVERSION = YES; 272 | CLANG_WARN_COMMA = YES; 273 | CLANG_WARN_CONSTANT_CONVERSION = YES; 274 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 275 | CLANG_WARN_EMPTY_BODY = YES; 276 | CLANG_WARN_ENUM_CONVERSION = YES; 277 | CLANG_WARN_INFINITE_RECURSION = YES; 278 | CLANG_WARN_INT_CONVERSION = YES; 279 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 280 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 281 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 282 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 283 | CLANG_WARN_STRICT_PROTOTYPES = YES; 284 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 285 | CLANG_WARN_UNREACHABLE_CODE = YES; 286 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 287 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 288 | COPY_PHASE_STRIP = NO; 289 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 290 | ENABLE_NS_ASSERTIONS = NO; 291 | ENABLE_STRICT_OBJC_MSGSEND = YES; 292 | GCC_C_LANGUAGE_STANDARD = gnu99; 293 | GCC_NO_COMMON_BLOCKS = YES; 294 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 295 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 296 | GCC_WARN_UNDECLARED_SELECTOR = YES; 297 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 298 | GCC_WARN_UNUSED_FUNCTION = YES; 299 | GCC_WARN_UNUSED_VARIABLE = YES; 300 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 301 | MTL_ENABLE_DEBUG_INFO = NO; 302 | SDKROOT = iphoneos; 303 | TARGETED_DEVICE_FAMILY = "1,2"; 304 | VALIDATE_PRODUCT = YES; 305 | }; 306 | name = Profile; 307 | }; 308 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 309 | isa = XCBuildConfiguration; 310 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 311 | buildSettings = { 312 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 313 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 314 | DEVELOPMENT_TEAM = S8QB4VV633; 315 | ENABLE_BITCODE = NO; 316 | FRAMEWORK_SEARCH_PATHS = ( 317 | "$(inherited)", 318 | "$(PROJECT_DIR)/Flutter", 319 | ); 320 | INFOPLIST_FILE = Runner/Info.plist; 321 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 322 | LIBRARY_SEARCH_PATHS = ( 323 | "$(inherited)", 324 | "$(PROJECT_DIR)/Flutter", 325 | ); 326 | PRODUCT_BUNDLE_IDENTIFIER = com.example.myapp; 327 | PRODUCT_NAME = "$(TARGET_NAME)"; 328 | VERSIONING_SYSTEM = "apple-generic"; 329 | }; 330 | name = Profile; 331 | }; 332 | 97C147031CF9000F007C117D /* Debug */ = { 333 | isa = XCBuildConfiguration; 334 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 335 | buildSettings = { 336 | ALWAYS_SEARCH_USER_PATHS = NO; 337 | CLANG_ANALYZER_NONNULL = YES; 338 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 339 | CLANG_CXX_LIBRARY = "libc++"; 340 | CLANG_ENABLE_MODULES = YES; 341 | CLANG_ENABLE_OBJC_ARC = YES; 342 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 343 | CLANG_WARN_BOOL_CONVERSION = YES; 344 | CLANG_WARN_COMMA = YES; 345 | CLANG_WARN_CONSTANT_CONVERSION = YES; 346 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 347 | CLANG_WARN_EMPTY_BODY = YES; 348 | CLANG_WARN_ENUM_CONVERSION = YES; 349 | CLANG_WARN_INFINITE_RECURSION = YES; 350 | CLANG_WARN_INT_CONVERSION = YES; 351 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 352 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 353 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 354 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 355 | CLANG_WARN_STRICT_PROTOTYPES = YES; 356 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 357 | CLANG_WARN_UNREACHABLE_CODE = YES; 358 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 359 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 360 | COPY_PHASE_STRIP = NO; 361 | DEBUG_INFORMATION_FORMAT = dwarf; 362 | ENABLE_STRICT_OBJC_MSGSEND = YES; 363 | ENABLE_TESTABILITY = YES; 364 | GCC_C_LANGUAGE_STANDARD = gnu99; 365 | GCC_DYNAMIC_NO_PIC = NO; 366 | GCC_NO_COMMON_BLOCKS = YES; 367 | GCC_OPTIMIZATION_LEVEL = 0; 368 | GCC_PREPROCESSOR_DEFINITIONS = ( 369 | "DEBUG=1", 370 | "$(inherited)", 371 | ); 372 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 373 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 374 | GCC_WARN_UNDECLARED_SELECTOR = YES; 375 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 376 | GCC_WARN_UNUSED_FUNCTION = YES; 377 | GCC_WARN_UNUSED_VARIABLE = YES; 378 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 379 | MTL_ENABLE_DEBUG_INFO = YES; 380 | ONLY_ACTIVE_ARCH = YES; 381 | SDKROOT = iphoneos; 382 | TARGETED_DEVICE_FAMILY = "1,2"; 383 | }; 384 | name = Debug; 385 | }; 386 | 97C147041CF9000F007C117D /* Release */ = { 387 | isa = XCBuildConfiguration; 388 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 389 | buildSettings = { 390 | ALWAYS_SEARCH_USER_PATHS = NO; 391 | CLANG_ANALYZER_NONNULL = YES; 392 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 393 | CLANG_CXX_LIBRARY = "libc++"; 394 | CLANG_ENABLE_MODULES = YES; 395 | CLANG_ENABLE_OBJC_ARC = YES; 396 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 397 | CLANG_WARN_BOOL_CONVERSION = YES; 398 | CLANG_WARN_COMMA = YES; 399 | CLANG_WARN_CONSTANT_CONVERSION = YES; 400 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 401 | CLANG_WARN_EMPTY_BODY = YES; 402 | CLANG_WARN_ENUM_CONVERSION = YES; 403 | CLANG_WARN_INFINITE_RECURSION = YES; 404 | CLANG_WARN_INT_CONVERSION = YES; 405 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 406 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 407 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 408 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 409 | CLANG_WARN_STRICT_PROTOTYPES = YES; 410 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 411 | CLANG_WARN_UNREACHABLE_CODE = YES; 412 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 413 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 414 | COPY_PHASE_STRIP = NO; 415 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 416 | ENABLE_NS_ASSERTIONS = NO; 417 | ENABLE_STRICT_OBJC_MSGSEND = YES; 418 | GCC_C_LANGUAGE_STANDARD = gnu99; 419 | GCC_NO_COMMON_BLOCKS = YES; 420 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 421 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 422 | GCC_WARN_UNDECLARED_SELECTOR = YES; 423 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 424 | GCC_WARN_UNUSED_FUNCTION = YES; 425 | GCC_WARN_UNUSED_VARIABLE = YES; 426 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 427 | MTL_ENABLE_DEBUG_INFO = NO; 428 | SDKROOT = iphoneos; 429 | TARGETED_DEVICE_FAMILY = "1,2"; 430 | VALIDATE_PRODUCT = YES; 431 | }; 432 | name = Release; 433 | }; 434 | 97C147061CF9000F007C117D /* Debug */ = { 435 | isa = XCBuildConfiguration; 436 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 437 | buildSettings = { 438 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 439 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 440 | ENABLE_BITCODE = NO; 441 | FRAMEWORK_SEARCH_PATHS = ( 442 | "$(inherited)", 443 | "$(PROJECT_DIR)/Flutter", 444 | ); 445 | INFOPLIST_FILE = Runner/Info.plist; 446 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 447 | LIBRARY_SEARCH_PATHS = ( 448 | "$(inherited)", 449 | "$(PROJECT_DIR)/Flutter", 450 | ); 451 | PRODUCT_BUNDLE_IDENTIFIER = com.example.myapp; 452 | PRODUCT_NAME = "$(TARGET_NAME)"; 453 | VERSIONING_SYSTEM = "apple-generic"; 454 | }; 455 | name = Debug; 456 | }; 457 | 97C147071CF9000F007C117D /* Release */ = { 458 | isa = XCBuildConfiguration; 459 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 460 | buildSettings = { 461 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 462 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 463 | ENABLE_BITCODE = NO; 464 | FRAMEWORK_SEARCH_PATHS = ( 465 | "$(inherited)", 466 | "$(PROJECT_DIR)/Flutter", 467 | ); 468 | INFOPLIST_FILE = Runner/Info.plist; 469 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 470 | LIBRARY_SEARCH_PATHS = ( 471 | "$(inherited)", 472 | "$(PROJECT_DIR)/Flutter", 473 | ); 474 | PRODUCT_BUNDLE_IDENTIFIER = com.example.myapp; 475 | PRODUCT_NAME = "$(TARGET_NAME)"; 476 | VERSIONING_SYSTEM = "apple-generic"; 477 | }; 478 | name = Release; 479 | }; 480 | /* End XCBuildConfiguration section */ 481 | 482 | /* Begin XCConfigurationList section */ 483 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 484 | isa = XCConfigurationList; 485 | buildConfigurations = ( 486 | 97C147031CF9000F007C117D /* Debug */, 487 | 97C147041CF9000F007C117D /* Release */, 488 | 249021D3217E4FDB00AE95B9 /* Profile */, 489 | ); 490 | defaultConfigurationIsVisible = 0; 491 | defaultConfigurationName = Release; 492 | }; 493 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 494 | isa = XCConfigurationList; 495 | buildConfigurations = ( 496 | 97C147061CF9000F007C117D /* Debug */, 497 | 97C147071CF9000F007C117D /* Release */, 498 | 249021D4217E4FDB00AE95B9 /* Profile */, 499 | ); 500 | defaultConfigurationIsVisible = 0; 501 | defaultConfigurationName = Release; 502 | }; 503 | /* End XCConfigurationList section */ 504 | }; 505 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 506 | } 507 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 31 | 32 | 33 | 34 | 40 | 41 | 42 | 43 | 44 | 45 | 56 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 75 | 77 | 83 | 84 | 85 | 86 | 88 | 89 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "GeneratedPluginRegistrant.h" 3 | 4 | @implementation AppDelegate 5 | 6 | - (BOOL)application:(UIApplication *)application 7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 8 | [GeneratedPluginRegistrant registerWithRegistry:self]; 9 | // Override point for customization after application launch. 10 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 11 | } 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alessandrokonrad/BitView/d617f12cfeb1fe96746854d9206e1416c2947728/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/GeneratedPluginRegistrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | #ifndef GeneratedPluginRegistrant_h 6 | #define GeneratedPluginRegistrant_h 7 | 8 | #import 9 | 10 | @interface GeneratedPluginRegistrant : NSObject 11 | + (void)registerWithRegistry:(NSObject*)registry; 12 | @end 13 | 14 | #endif /* GeneratedPluginRegistrant_h */ 15 | -------------------------------------------------------------------------------- /ios/Runner/GeneratedPluginRegistrant.m: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | #import "GeneratedPluginRegistrant.h" 6 | #import 7 | #import 8 | 9 | @implementation GeneratedPluginRegistrant 10 | 11 | + (void)registerWithRegistry:(NSObject*)registry { 12 | [FluttertoastPlugin registerWithRegistrar:[registry registrarForPlugin:@"FluttertoastPlugin"]]; 13 | [FLTSharedPreferencesPlugin registerWithRegistrar:[registry registrarForPlugin:@"FLTSharedPreferencesPlugin"]]; 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | myapp 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ios/Runner/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char* argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'dart:convert'; 3 | import 'package:shared_preferences/shared_preferences.dart'; 4 | import './views/exchange_select.dart'; 5 | import './views/wallet_information.dart'; 6 | import 'package:liquid_pull_to_refresh/liquid_pull_to_refresh.dart'; 7 | import './utility/fetch_exchange_data.dart'; 8 | import 'package:page_transition/page_transition.dart'; 9 | 10 | void main() => runApp(MaterialApp( 11 | title: "BitView", 12 | home: CryptoPortfolio(), 13 | theme: ThemeData( 14 | backgroundColor: Color.fromRGBO(64, 75, 96, 1), 15 | appBarTheme: AppBarTheme(color: Color.fromRGBO(64, 75, 96, .9))))); 16 | 17 | class CryptoPortfolio extends StatefulWidget { 18 | @override 19 | State createState() { 20 | return CryptoPortfolioState(); 21 | } 22 | } 23 | 24 | class CryptoPortfolioState extends State { 25 | var exchangesList; 26 | double totalValue; 27 | bool _isLoadingInitial = true; 28 | bool _isLoading; 29 | var fiatListDrop = [ 30 | PopupMenuItem( 31 | child: Text("USD \$"), 32 | value: "USD", 33 | ), 34 | PopupMenuItem( 35 | child: Text("EUR €"), 36 | value: "EUR", 37 | ), 38 | PopupMenuItem( 39 | child: Text("GBP £"), 40 | value: "GBP", 41 | ) 42 | ]; 43 | String _fiatCurrencySymbol = '€'; 44 | String _fiatCurrency = 'EUR'; 45 | 46 | final GlobalKey _scaffoldState = GlobalKey(); 47 | 48 | _deleteInfo(exchange, index) { 49 | _scaffoldState.currentState.showSnackBar(SnackBar( 50 | content: Text('Removed ${exchange['name']}'), 51 | action: SnackBarAction( 52 | label: "Undo", 53 | onPressed: () { 54 | setState(() { 55 | this.exchangesList.insert(index, exchange); 56 | this.totalValue += double.parse(exchange['data']['value']); 57 | }); 58 | _updateStorage(); 59 | }, 60 | ), 61 | )); 62 | } 63 | 64 | _getFiatCurrency(fiat) async { 65 | setState(() { 66 | this._isLoadingInitial = true; 67 | }); 68 | var fiatSymbol; 69 | switch (fiat) { 70 | case 'USD': 71 | fiatSymbol = "\$"; 72 | break; 73 | case 'EUR': 74 | fiatSymbol = "€"; 75 | break; 76 | case 'GBP': 77 | fiatSymbol = "£"; 78 | break; 79 | } 80 | SharedPreferences prefs = await SharedPreferences.getInstance(); 81 | 82 | prefs.setString('fiatCurrency', fiat); 83 | prefs.setString('fiatCurrencySymbol', fiatSymbol); 84 | 85 | this._loadExchangesList(); 86 | } 87 | 88 | _handleError() { 89 | _scaffoldState.currentState.showSnackBar(SnackBar( 90 | content: Text( 91 | 'Check network or keys!', 92 | ), 93 | action: SnackBarAction( 94 | label: 'Retry', 95 | onPressed: () { 96 | _loadExchangesList(); 97 | }, 98 | ), 99 | )); 100 | } 101 | 102 | _loadExchangesList() async { 103 | setState(() { 104 | _isLoading = true; 105 | }); 106 | 107 | SharedPreferences prefs = await SharedPreferences.getInstance(); 108 | 109 | String exchangesString = prefs.getString('exchangesList') ?? '[]'; 110 | 111 | setState(() { 112 | this._fiatCurrency = prefs.getString('fiatCurrency') ?? 'EUR'; 113 | this._fiatCurrencySymbol = prefs.getString('fiatCurrencySymbol') ?? '€'; 114 | }); 115 | this.exchangesList = json.decode(exchangesString); 116 | 117 | print(this._fiatCurrency); 118 | /* displays totalValue and then updates its value */ 119 | 120 | double _total = 0; 121 | 122 | for (var i = 0; i < this.exchangesList.length; i++) { 123 | var exchange = this.exchangesList[i]; 124 | _fetchExchange(Function fetcher, fiat) async { 125 | var data = await fetcher(exchange, fiat); 126 | if (data != null && data is! String) { 127 | exchange['data'] = data; 128 | _total += double.parse(data['value']); 129 | } else 130 | _handleError(); 131 | } 132 | 133 | switch (exchange['name']) { 134 | case 'Coinbase': 135 | await _fetchExchange(fetchCoinbase, this._fiatCurrency); 136 | break; 137 | case 'Coinbase Pro': 138 | await _fetchExchange(fetchCoinbasePro, this._fiatCurrency); 139 | break; 140 | case 'Bittrex': 141 | await _fetchExchange(fetchBittrex, this._fiatCurrency); 142 | break; 143 | case 'Binance': 144 | await _fetchExchange(fetchBinance, this._fiatCurrency); 145 | break; 146 | case 'Mercatox': 147 | await _fetchExchange(fetchMercatox, this._fiatCurrency); 148 | break; 149 | case 'HitBTC': 150 | await _fetchExchange(fetchHitBtc, this._fiatCurrency); 151 | break; 152 | } 153 | } 154 | 155 | setState(() { 156 | _isLoadingInitial = false; 157 | _isLoading = false; 158 | this.exchangesList = this.exchangesList; 159 | this.totalValue = _total; 160 | }); 161 | exchangesString = json.encode(this.exchangesList); 162 | prefs.setString('exchangesList', exchangesString); 163 | } 164 | 165 | _updateStorage() async { 166 | SharedPreferences prefs = await SharedPreferences.getInstance(); 167 | var exchangesString = json.encode(this.exchangesList); 168 | prefs.setString('exchangesList', exchangesString); 169 | } 170 | 171 | @override 172 | void initState() { 173 | super.initState(); 174 | WidgetsBinding.instance.addPostFrameCallback((_) => _loadExchangesList()); 175 | } 176 | 177 | @override 178 | Widget build(BuildContext context) { 179 | return Scaffold( 180 | backgroundColor: Theme.of(context).backgroundColor, 181 | key: _scaffoldState, 182 | appBar: AppBar( 183 | centerTitle: true, 184 | title: Text("BitView"), 185 | actions: [ 186 | PopupMenuButton( 187 | itemBuilder: (context) => fiatListDrop, 188 | onSelected: (value) { 189 | this._getFiatCurrency(value); 190 | }, 191 | icon: Icon(Icons.attach_money), 192 | ) 193 | ], 194 | ), 195 | floatingActionButton: Container( 196 | width: 90, 197 | height: 90, 198 | padding: EdgeInsets.only(bottom: 20, right: 20), 199 | child: FloatingActionButton( 200 | child: Icon(Icons.add), 201 | onPressed: () { 202 | Navigator.of(context) 203 | .push(MaterialPageRoute( 204 | builder: (context) => ExchangeSelect())) 205 | .then((val) => _loadExchangesList()); 206 | }, 207 | )), 208 | body: _isLoadingInitial 209 | ? Center(child: CircularProgressIndicator()) 210 | : this.exchangesList.length < 1 211 | ? Center( 212 | child: Text( 213 | 'No exchanges added', 214 | style: TextStyle( 215 | color: Colors.white, 216 | fontSize: 15, 217 | ), 218 | )) 219 | : LiquidPullToRefresh( 220 | height: 100.0, 221 | showChildOpacityTransition: false, 222 | springAnimationDurationInMilliseconds: 500, 223 | onRefresh: () { 224 | return _loadExchangesList(); 225 | }, 226 | child: CustomScrollView( 227 | slivers: [ 228 | SliverAppBar( 229 | expandedHeight: 100, 230 | backgroundColor: Colors.transparent, 231 | flexibleSpace: Container( 232 | child: Center( 233 | child: Text( 234 | this.totalValue.toStringAsFixed(2) + 235 | ' ' + 236 | this._fiatCurrencySymbol, 237 | style: TextStyle( 238 | fontSize: 30, 239 | color: Colors.white, 240 | fontWeight: FontWeight.bold))), 241 | ), 242 | ), 243 | SliverList( 244 | delegate: SliverChildBuilderDelegate((context, i) { 245 | var exchange = this.exchangesList[i]; 246 | return _createBalanceCard(exchange, i); 247 | }, childCount: this.exchangesList.length), 248 | ) 249 | ], 250 | ))); 251 | } 252 | 253 | _createBalanceCard(exchange, index) { 254 | final makeListTile = ListTile( 255 | contentPadding: EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0), 256 | leading: Container( 257 | padding: EdgeInsets.only(right: 12.0), 258 | decoration: new BoxDecoration( 259 | border: new Border( 260 | right: new BorderSide(width: 1.0, color: Colors.white24))), 261 | child: Image.asset( 262 | exchange['icon'], 263 | height: 40, 264 | width: 40, 265 | ), 266 | ), 267 | title: Text( 268 | exchange['name'], 269 | style: TextStyle( 270 | color: Colors.white, fontWeight: FontWeight.bold, fontSize: 17), 271 | ), 272 | subtitle: Row( 273 | mainAxisAlignment: MainAxisAlignment.start, 274 | children: [ 275 | Icon( 276 | Icons.account_balance_wallet, 277 | color: Colors.yellowAccent, 278 | size: 15, 279 | ), 280 | exchange['data'] != null && exchange['data']['value'] != null 281 | ? Text( 282 | " Amount: ${exchange['data']['value']} " + 283 | this._fiatCurrencySymbol, 284 | style: TextStyle(color: Colors.white)) 285 | : Container( 286 | margin: EdgeInsets.only(left: 10), 287 | child: CircularProgressIndicator(), 288 | height: 10, 289 | width: 10, 290 | ) 291 | ], 292 | ), 293 | trailing: 294 | Icon(Icons.keyboard_arrow_right, color: Colors.white, size: 30.0)); 295 | 296 | var makeCard; 297 | 298 | makeCard = Dismissible( 299 | key: Key(exchange['name']), 300 | onDismissed: (direction) { 301 | if (direction == DismissDirection.endToStart) { 302 | _deleteInfo(exchange, index); 303 | setState(() { 304 | this.exchangesList.remove(exchange); 305 | _updateStorage(); 306 | if (this.exchangesList.length >= 1) 307 | this.totalValue -= double.parse(exchange['data']['value']); 308 | else 309 | this.totalValue = 0; 310 | }); 311 | } 312 | }, 313 | direction: DismissDirection.endToStart, 314 | background: Container( 315 | padding: EdgeInsets.only(right: 20), 316 | alignment: AlignmentDirectional.centerEnd, 317 | child: Icon( 318 | Icons.delete, 319 | color: Colors.white, 320 | size: 30, 321 | ), 322 | ), 323 | child: Card( 324 | elevation: 10, 325 | color: Colors.transparent, 326 | margin: new EdgeInsets.symmetric(horizontal: 10.0, vertical: 6.0), 327 | child: InkWell( 328 | child: Container( 329 | decoration: BoxDecoration( 330 | color: Color.fromRGBO(64, 75, 96, 0.9), 331 | borderRadius: BorderRadius.circular(20)), 332 | child: makeListTile, 333 | ), 334 | onTap: () { 335 | if (exchange['data'] != null && exchange['data']['value'] != null) 336 | Navigator.push( 337 | context, 338 | PageTransition( 339 | type: PageTransitionType.rightToLeft, 340 | child: WalletInformation( 341 | exchange: exchange, 342 | fiatSymbol: this._fiatCurrencySymbol))); 343 | }, 344 | borderRadius: BorderRadius.circular(20), 345 | ), 346 | )); 347 | 348 | return makeCard; 349 | } 350 | } 351 | -------------------------------------------------------------------------------- /lib/utility/fetch_exchange_data.dart: -------------------------------------------------------------------------------- 1 | import "package:pointycastle/pointycastle.dart"; 2 | import "package:pointycastle/macs/hmac.dart"; 3 | import "package:pointycastle/digests/sha512.dart"; 4 | import "dart:typed_data"; 5 | import 'dart:convert'; 6 | import "package:hex/hex.dart"; 7 | import 'package:http/http.dart'; 8 | import 'package:crypto/crypto.dart'; 9 | import 'package:http_auth/http_auth.dart'; 10 | 11 | /* For Binance and Coinbase (HmacSHA256)*/ 12 | 13 | _hmacSha256(String message, String secret) { 14 | var key = utf8.encode(secret); 15 | var msg = utf8.encode(message); 16 | var hmac = new Hmac(sha256, key); 17 | var signature = hmac.convert(msg).toString(); 18 | 19 | return signature; 20 | } 21 | 22 | /* For Coinbase Pro (HmacSHA256 with base64 endode/decode)*/ 23 | 24 | _hmacSha256Base64(String message, String secret) { 25 | var base64 = new Base64Codec(); 26 | var key = base64.decode(secret); 27 | var msg = utf8.encode(message); 28 | var hmac = new Hmac(sha256, key); 29 | var signature = hmac.convert(msg); 30 | 31 | return base64.encode(signature.bytes); 32 | } 33 | 34 | /* For Bittrex (HmacSHA512)*/ 35 | 36 | _hmacSha512(String message, String secret) { 37 | Uint8List hmacSHA512(Uint8List data, Uint8List key) { 38 | final _tmp = new HMac(new SHA512Digest(), 128)..init(new KeyParameter(key)); 39 | return _tmp.process(data); 40 | } 41 | 42 | Uint8List msg = utf8.encode(message); 43 | Uint8List key = utf8.encode(secret); 44 | var digest = hmacSHA512(msg, key); 45 | var signature = HEX.encode(digest); 46 | 47 | return signature; 48 | } 49 | 50 | class Binance { 51 | String _apiKey; 52 | String _secret; 53 | String _base = 'https://api.binance.com'; 54 | 55 | Binance(String apiKey, String secret) { 56 | this._apiKey = apiKey; 57 | this._secret = secret; 58 | } 59 | 60 | _response(request) async { 61 | try { 62 | var response; 63 | String timestamp = 64 | "timestamp=" + new DateTime.now().millisecondsSinceEpoch.toString(); 65 | String query = request['query'] + '&' + timestamp; 66 | String signature = _hmacSha256(query, this._secret); 67 | var url = 'https://api.binance.com' + 68 | request['endPoint'] + 69 | "?" + 70 | query + 71 | '&signature=' + 72 | signature; 73 | 74 | if (request['method'] == 'GET') { 75 | response = await get(url, headers: {'X-MBX-APIKEY': this._apiKey}); 76 | } else { 77 | response = await post(url, headers: {'X-MBX-APIKEY': this._apiKey}); 78 | } 79 | return response; 80 | } on Exception { 81 | return null; 82 | } 83 | } 84 | 85 | getBalance() async { 86 | var request = {'endPoint': '/api/v3/account', 'query': '', 'method': 'GET'}; 87 | var response = await _response(request); 88 | 89 | if (response != null && response.statusCode == 200) { 90 | var result = json.decode(response.body)['balances']; 91 | var balance = []; 92 | for (var res in result) { 93 | if (double.parse(res["free"]) > 0) { 94 | balance.add(res); 95 | } 96 | } 97 | 98 | return balance; 99 | } 100 | return null; 101 | 102 | /* return type: [{asset:asset, free:free, locked:locked}] 103 | just returns those assets where balance > 0 */ 104 | } 105 | } 106 | 107 | class Coinbase { 108 | String _apiKey; 109 | String _secret; 110 | String _base = 'https://api.coinbase.com'; 111 | 112 | Coinbase(String apiKey, String secret) { 113 | this._apiKey = apiKey; 114 | this._secret = secret; 115 | } 116 | 117 | _response(request) async { 118 | try { 119 | var timestamp = await get('https://api.coinbase.com/v2/time') 120 | .then((res) => json.decode(res.body)) 121 | .then((res) => res['data']['epoch']); 122 | String query = 123 | timestamp.toString() + request['method'] + request['endPoint']; 124 | String signature = _hmacSha256(query, this._secret); 125 | var url = _base + request['endPoint']; 126 | 127 | var response = await get(url, headers: { 128 | 'CB-ACCESS-KEY': this._apiKey, 129 | 'CB-ACCESS-SIGN': signature, 130 | 'CB-ACCESS-TIMESTAMP': timestamp.toString() 131 | }); 132 | 133 | return response; 134 | } on Exception { 135 | return null; 136 | } 137 | } 138 | 139 | getBalance() async { 140 | var request = {'method': 'GET', 'endPoint': '/v2/accounts', 'body': ''}; 141 | var response = await this._response(request); 142 | 143 | //print(response.body); 144 | if (response != null && response.statusCode == 200) { 145 | var result = json.decode(response.body)['data']; 146 | //print(result); 147 | var balance = []; 148 | for (var res in result) { 149 | if (double.parse(res['balance']['amount']) > 0) { 150 | balance.add(res['balance']); 151 | } 152 | } 153 | return balance; 154 | } 155 | return null; 156 | 157 | /* return type: [{amount:amount, currency:currency}] 158 | just returns those assets where balance > 0 */ 159 | } 160 | } 161 | 162 | class CoinbasePro { 163 | String _apiKey; 164 | String _secret; 165 | String _passPhrase; 166 | String _base = 'https://api.pro.coinbase.com'; 167 | 168 | CoinbasePro(String apiKey, String secret, String passPhrase) { 169 | this._apiKey = apiKey; 170 | this._secret = secret; 171 | this._passPhrase = passPhrase; 172 | } 173 | 174 | _response(request) async { 175 | try { 176 | var timestamp = await get('https://api.coinbase.com/v2/time') 177 | .then((res) => json.decode(res.body)) 178 | .then((res) => res['data']['epoch']); 179 | String query = timestamp.toString() + 180 | request['method'] + 181 | request['endPoint'] + 182 | request['body']; 183 | String signature = _hmacSha256Base64(query, this._secret); 184 | var url = _base + request['endPoint']; 185 | 186 | var response = await get(url, headers: { 187 | 'CB-ACCESS-KEY': this._apiKey, 188 | 'CB-ACCESS-SIGN': signature, 189 | 'CB-ACCESS-TIMESTAMP': timestamp.toString(), 190 | 'CB-ACCESS-PASSPHRASE': this._passPhrase 191 | }); 192 | return response; 193 | } on Exception { 194 | return null; 195 | } 196 | } 197 | 198 | getBalance() async { 199 | var request = {'method': 'GET', 'endPoint': '/accounts', 'body': ''}; 200 | var response = await this._response(request); 201 | 202 | if (response != null && response.statusCode == 200) { 203 | var result = json.decode(response.body); 204 | //print(result); 205 | var balance = []; 206 | for (var res in result) { 207 | if (double.parse(res['balance']) > 0) { 208 | balance.add(res); 209 | } 210 | } 211 | return balance; 212 | } 213 | return null; 214 | 215 | /* return type: [{id:id, currency:currency, balance:balance, 216 | available:available, hold:hold, profile_id:profile_id}] 217 | just returns those assets where balance > 0 */ 218 | } 219 | } 220 | 221 | class HitBtc { 222 | String _apiKey; 223 | String _secret; 224 | String _base = 'https://api.hitbtc.com'; 225 | 226 | HitBtc(String apiKey, String secret) { 227 | this._apiKey = apiKey; 228 | this._secret = secret; 229 | } 230 | 231 | _response(request) async { 232 | try { 233 | var client = BasicAuthClient(this._apiKey, this._secret); 234 | var response = await client.get(this._base + request); 235 | 236 | return response; 237 | } on Exception { 238 | return null; 239 | } 240 | } 241 | 242 | getBalance() async { 243 | var request = '/api/2/account/balance'; 244 | var response = await this._response(request); 245 | 246 | //print(response.body); 247 | if (response != null && response.statusCode == 200) { 248 | var result = json.decode(response.body); 249 | // print(result); 250 | var balance = []; 251 | for (var res in result) { 252 | if (double.parse(res['available']) > 0) { 253 | balance.add(res); 254 | } 255 | } 256 | return balance; 257 | } 258 | return null; 259 | 260 | /* return type: [{currency:currency, available:available, 261 | reserved:reserved}] 262 | just returns those assets where balance > 0 */ 263 | } 264 | } 265 | 266 | class Bittrex { 267 | String _apiKey; 268 | String _secret; 269 | String _base = 'https://api.bittrex.com/api/v1.1'; 270 | 271 | Bittrex(String apiKey, String secret) { 272 | this._apiKey = apiKey; 273 | this._secret = secret; 274 | } 275 | 276 | _response(request) async { 277 | try { 278 | String timestamp = 279 | "nonce=" + new DateTime.now().millisecondsSinceEpoch.toString(); 280 | String url = 281 | _base + request + '?' + 'apikey=$_apiKey' + '&' + 'nonce=$timestamp'; 282 | String signature = _hmacSha512(url, this._secret); 283 | 284 | var response = await get(url, headers: { 285 | 'apisign': signature, 286 | }); 287 | 288 | return response; 289 | } on Exception { 290 | return null; 291 | } 292 | } 293 | 294 | getBalance() async { 295 | var request = '/account/getbalances'; 296 | var response = await this._response(request); 297 | 298 | //print(response.body); 299 | if (response != null && response.statusCode == 200) { 300 | if (json.decode(response.body)['success'] == false) return null; 301 | var result = json.decode(response.body)['result']; 302 | // print(result); 303 | var balance = []; 304 | for (var res in result) { 305 | if (res['Balance'] > 0) { 306 | balance.add(res); 307 | } 308 | } 309 | return balance; 310 | } 311 | return null; 312 | 313 | /* return type: [{Currency:currency, Balance:balance, 314 | Available:available, Pending:pending, 315 | CryptoAddress:cryptoaddress, Request:request, 316 | Uuid:uuid}] 317 | just returns those assets where balance > 0 */ 318 | } 319 | } 320 | 321 | /* fetches balances and formats them */ 322 | 323 | fetchBinance(exchange, fiat) async { 324 | final APIKEY = exchange['api_key']; 325 | final SECRET = exchange['secret']; 326 | 327 | final binance = new Binance(APIKEY, SECRET); 328 | var balances = await binance.getBalance(); 329 | if (balances == null) { 330 | return null; 331 | } 332 | 333 | var wallets = []; 334 | 335 | for (var balance in balances) { 336 | wallets.add({ 337 | 'currency': balance['asset'], 338 | 'amount': balance['free'], 339 | }); 340 | } 341 | 342 | var data = {'balances': wallets, 'value': 0}; 343 | data = await _calculateAmount(data, fiat); 344 | 345 | return data; 346 | } 347 | 348 | fetchCoinbase(exchange, fiat) async { 349 | final APIKEY = exchange['api_key']; 350 | final SECRET = exchange['secret']; 351 | 352 | final coinbase = new Coinbase(APIKEY, SECRET); 353 | var balances = await coinbase.getBalance(); 354 | if (balances == null) { 355 | return null; 356 | } 357 | 358 | var wallets = []; 359 | 360 | for (var balance in balances) { 361 | wallets.add({ 362 | 'currency': balance['currency'], 363 | 'amount': balance['amount'], 364 | }); 365 | } 366 | 367 | var data = {'balances': wallets, 'value': 0}; 368 | 369 | data = await _calculateAmount(data, fiat); 370 | print(data); 371 | 372 | return data; 373 | } 374 | 375 | fetchCoinbasePro(exchange, fiat) async { 376 | final APIKEY = exchange['api_key']; 377 | final SECRET = exchange['secret']; 378 | final PASSPHRASE = exchange['pass_phrase']; 379 | 380 | final coinbasePro = new CoinbasePro(APIKEY, SECRET, PASSPHRASE); 381 | var balances = await coinbasePro.getBalance(); 382 | if (balances == null) { 383 | return null; 384 | } 385 | 386 | var wallets = []; 387 | 388 | for (var balance in balances) { 389 | wallets.add({ 390 | 'currency': balance['currency'], 391 | 'amount': balance['balance'], 392 | }); 393 | } 394 | 395 | var data = {'balances': wallets, 'value': 0}; 396 | 397 | data = await _calculateAmount(data, fiat); 398 | 399 | return data; 400 | } 401 | 402 | fetchBittrex(exchange, fiat) async { 403 | final APIKEY = exchange['api_key']; 404 | final SECRET = exchange['secret']; 405 | 406 | final bittrex = new Bittrex(APIKEY, SECRET); 407 | var balances = await bittrex.getBalance(); 408 | if (balances == null) { 409 | return null; 410 | } 411 | 412 | var wallets = []; 413 | 414 | for (var balance in balances) { 415 | //print(balance['Balance']); 416 | wallets.add({ 417 | 'currency': balance['Currency'], 418 | 'amount': balance['Balance'] 419 | .toStringAsFixed(9), //represents amount with 9 digits 420 | }); 421 | } 422 | 423 | var data = {'balances': wallets, 'value': 0}; 424 | 425 | data = await _calculateAmount(data, fiat); 426 | 427 | return data; 428 | } 429 | 430 | fetchHitBtc(exchange, fiat) async { 431 | final APIKEY = exchange['api_key']; 432 | final SECRET = exchange['secret']; 433 | 434 | final hitBtc = new HitBtc(APIKEY, SECRET); 435 | var balances = await hitBtc.getBalance(); 436 | if (balances == null) { 437 | return null; 438 | } 439 | 440 | print(balances); 441 | 442 | var wallets = []; 443 | 444 | for (var balance in balances) { 445 | //print(balance['Balance']); 446 | wallets.add({ 447 | 'currency': balance['currency'], 448 | 'amount': balance['available'], 449 | }); 450 | } 451 | 452 | var data = {'balances': wallets, 'value': 0}; 453 | 454 | data = await _calculateAmount(data, fiat); 455 | 456 | return data; 457 | } 458 | 459 | fetchMercatox(exchange, fiat) async { 460 | var balances = exchange['data']['balances']; 461 | var wallets = []; 462 | 463 | try { 464 | for (var balance in balances) { 465 | if (balance['currency'] == '' || balance['amount'] == '') return null; 466 | 467 | //print(balance['Balance']); 468 | wallets.add({ 469 | 'currency': balance['currency'], 470 | 'amount': balance['amount'], 471 | }); 472 | } 473 | 474 | var data = {'balances': wallets, 'value': 0}; 475 | 476 | data = await _calculateAmount(data, fiat); 477 | 478 | return data; 479 | } on Exception { 480 | return null; 481 | } 482 | } 483 | 484 | /*calculates value of of all currencies in wallet in EUR */ 485 | 486 | _calculateAmount(data, fiat) async { 487 | var coingecko = await get('https://api.coingecko.com/api/v3/coins/list') 488 | .then((res) => json.decode(res.body)); 489 | var id; 490 | //var result = []; 491 | double result = 0; 492 | var wallets = data['balances']; 493 | 494 | try { 495 | for (var wallet in wallets) { 496 | var currency = wallet['currency']; 497 | var amount = double.parse(wallet['amount']); 498 | 499 | double currencyPrice = 0; 500 | 501 | double eur; 502 | 503 | var icon; 504 | if (currency == 'EUR' || currency == 'USD' || currency == 'GBP') { 505 | if (currency == fiat) { 506 | eur = amount; 507 | wallet['value'] = eur.toStringAsFixed(2); 508 | } else { 509 | var exchangeRate = await get( 510 | 'https://api.exchangeratesapi.io/latest?base=$currency&symbols=$fiat') 511 | .then((res) => json.decode(res.body)['rates'][fiat]); 512 | eur = amount * exchangeRate; 513 | wallet['value'] = eur.toStringAsFixed(2); 514 | } 515 | 516 | icon = _fetchIcons(currency); 517 | } else { 518 | for (int i = 0; i < coingecko.length; i++) { 519 | if (currency == coingecko[i]['symbol'].toUpperCase()) { 520 | id = coingecko[i]['id']; 521 | break; 522 | } 523 | } 524 | 525 | var response = await get( 526 | 'https://api.coingecko.com/api/v3/coins/markets?vs_currency=${fiat.toLowerCase()}&ids=$id') 527 | .then((res) => json.decode(res.body)); 528 | 529 | currencyPrice = double.parse(response[0]['current_price'].toString()); 530 | 531 | eur = currencyPrice * amount; 532 | wallet['value'] = eur.toStringAsFixed(2); 533 | icon = response[0]['image']; 534 | } 535 | result += eur; 536 | print(result); 537 | print(icon); 538 | wallet['icon'] = icon; 539 | } 540 | 541 | data['value'] = result.toStringAsFixed(2); 542 | 543 | return data; 544 | } on Exception { 545 | return null; 546 | } 547 | } 548 | 549 | _fetchIcons(id) { 550 | if (id == 'EUR') 551 | return 'http://cdn.onlinewebfonts.com/svg/img_408170.png'; 552 | else if (id == 'GBP') 553 | return 'http://cdn.onlinewebfonts.com/svg/img_221173.png'; 554 | else if (id == 'USD') { 555 | return 'http://cdn.onlinewebfonts.com/svg/img_455423.png'; 556 | } 557 | } 558 | -------------------------------------------------------------------------------- /lib/views/exchange_register_manually.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'dart:convert'; 3 | import 'package:shared_preferences/shared_preferences.dart'; 4 | 5 | class ExchangeRegisterManually extends StatefulWidget { 6 | ExchangeRegisterManually({Key key, this.exchange}) : super(key: key); 7 | final exchange; 8 | 9 | @override 10 | State createState() { 11 | return ExchangeRegisterManuallyState(this.exchange); 12 | } 13 | } 14 | 15 | class ExchangeRegisterManuallyState extends State { 16 | var _exchange; 17 | final formKey = GlobalKey(); 18 | final _currency = TextEditingController(); 19 | final _amount = TextEditingController(); 20 | var _currencyList = []; 21 | 22 | ExchangeRegisterManuallyState(exchange) { 23 | this._exchange = exchange; 24 | } 25 | 26 | _setExchangesList() async { 27 | SharedPreferences prefs = await SharedPreferences.getInstance(); 28 | var exchangesList = prefs.getString('exchangesList') ?? '[]'; 29 | 30 | var exchangesJson = json.decode(exchangesList); 31 | exchangesJson.add({ 32 | 'name': 'Mercatox', 33 | 'icon': 'assets/mercatox.png', 34 | 'api_key': null, 35 | 'secret': null, 36 | 'data': {'balances': _currencyList} 37 | }); 38 | exchangesList = json.encode(exchangesJson); 39 | prefs.setString('exchangesList', exchangesList); 40 | } 41 | 42 | @override 43 | Widget build(BuildContext context) { 44 | return Scaffold( 45 | backgroundColor: Theme.of(context).backgroundColor, 46 | appBar: AppBar( 47 | title: Text(_exchange['name']), 48 | ), 49 | body: Column( 50 | children: [ 51 | Expanded( 52 | child: ListView.builder( 53 | itemCount: _currencyList.length + 1, 54 | itemBuilder: (context, i) { 55 | return Container( 56 | padding: EdgeInsets.only(bottom: 15, top: 10), 57 | child: _inputListTile(i), 58 | ); 59 | }), 60 | ), 61 | RaisedButton( 62 | color: Theme.of(context).accentColor, 63 | child: Text( 64 | "Add", 65 | style: TextStyle(color: Colors.white), 66 | ), 67 | onPressed: () { 68 | if (_currencyList.length > 0) { 69 | print(_currencyList); 70 | _setExchangesList(); 71 | 72 | Navigator.pop(context); 73 | Navigator.pop(context); 74 | } 75 | }, 76 | ) 77 | ], 78 | )); 79 | } 80 | 81 | @override 82 | void dispose() { 83 | // Clean up the controller when the Widget is disposed 84 | _currency.dispose(); 85 | _amount.dispose(); 86 | super.dispose(); 87 | } 88 | 89 | _inputListTile(index) { 90 | if (_currencyList.length > index) 91 | return Center( 92 | child: Icon( 93 | Icons.check, 94 | color: Colors.white, 95 | ), 96 | ); 97 | 98 | return Row( 99 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 100 | crossAxisAlignment: CrossAxisAlignment.center, 101 | children: [ 102 | Container( 103 | width: 100, 104 | height: 50, 105 | child: TextField( 106 | decoration: InputDecoration( 107 | labelText: 'Currency', 108 | labelStyle: TextStyle(color: Colors.white), 109 | enabledBorder: UnderlineInputBorder( 110 | borderSide: BorderSide(color: Colors.white)), 111 | ), 112 | style: TextStyle(color: Colors.white), 113 | controller: _currency, 114 | autofocus: true, 115 | ), 116 | ), 117 | Container( 118 | width: 100, 119 | height: 50, 120 | child: TextFormField( 121 | style: TextStyle(color: Colors.white), 122 | decoration: InputDecoration( 123 | fillColor: Colors.white, 124 | labelText: 'Amount', 125 | labelStyle: TextStyle(color: Colors.white), 126 | enabledBorder: UnderlineInputBorder( 127 | borderSide: BorderSide(color: Colors.white)), 128 | ), 129 | controller: _amount, 130 | ), 131 | ), 132 | ButtonTheme( 133 | minWidth: 20, 134 | height: 30, 135 | child: RaisedButton( 136 | color: Theme.of(context).accentColor, 137 | onPressed: () { 138 | setState(() { 139 | _currencyList.add({ 140 | 'currency': _currency.text, 141 | 'amount': _amount.text, 142 | }); 143 | }); 144 | 145 | _currency.clear(); 146 | _amount.clear(); 147 | }, 148 | child: Text( 149 | '+', 150 | style: TextStyle(color: Colors.white), 151 | ), 152 | ), 153 | ) 154 | ], 155 | ); 156 | } 157 | } 158 | -------------------------------------------------------------------------------- /lib/views/exchange_registering.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'dart:convert'; 3 | import 'package:shared_preferences/shared_preferences.dart'; 4 | 5 | class ExchangeRegister extends StatefulWidget { 6 | ExchangeRegister({Key key, this.exchange}) : super(key: key); 7 | final exchange; 8 | 9 | @override 10 | State createState() { 11 | return ExchangeRegisterState(this.exchange); 12 | } 13 | } 14 | 15 | class ExchangeRegisterState extends State { 16 | var _exchange; 17 | final formKey = GlobalKey(); 18 | String _apiKey, _secret, _passPhrase; 19 | 20 | ExchangeRegisterState(exchange) { 21 | this._exchange = exchange; 22 | } 23 | 24 | _setExchangesList() async { 25 | SharedPreferences prefs = await SharedPreferences.getInstance(); 26 | var exchangesList = prefs.getString('exchangesList') ?? '[]'; 27 | 28 | var exchangesJson = json.decode(exchangesList); 29 | exchangesJson.add(this._exchange); 30 | exchangesList = json.encode(exchangesJson); 31 | prefs.setString('exchangesList', exchangesList); 32 | } 33 | 34 | @override 35 | Widget build(BuildContext context) { 36 | return Scaffold( 37 | backgroundColor: Theme.of(context).backgroundColor, 38 | appBar: AppBar( 39 | title: Text(_exchange['name']), 40 | ), 41 | body: Center( 42 | child: Padding( 43 | padding: EdgeInsets.all(30.0), 44 | child: Form( 45 | key: formKey, 46 | child: Column( 47 | mainAxisSize: MainAxisSize.min, 48 | children: [ 49 | TextFormField( 50 | decoration: InputDecoration( 51 | labelText: 'Api Key', 52 | labelStyle: TextStyle(color: Colors.white), 53 | enabledBorder: UnderlineInputBorder( 54 | borderSide: BorderSide(color: Colors.white)), 55 | ), 56 | style: TextStyle(color: Colors.white), 57 | onSaved: (input) => _apiKey = input, 58 | autofocus: true, 59 | ), 60 | Padding( 61 | padding: EdgeInsets.only(top: 10.0), 62 | ), 63 | TextFormField( 64 | style: TextStyle(color: Colors.white), 65 | decoration: InputDecoration( 66 | labelText: 'Secret', 67 | labelStyle: TextStyle(color: Colors.white), 68 | enabledBorder: UnderlineInputBorder( 69 | borderSide: BorderSide(color: Colors.white)), 70 | ), 71 | onSaved: (input) => _secret = input, 72 | ), 73 | this._exchange['name'] == 'Coinbase Pro' 74 | ? Padding( 75 | padding: EdgeInsets.only(top: 10.0), 76 | child: TextFormField( 77 | decoration: InputDecoration( 78 | labelText: 'Passphrase', 79 | labelStyle: TextStyle(color: Colors.white), 80 | enabledBorder: UnderlineInputBorder( 81 | borderSide: BorderSide(color: Colors.white)), 82 | ), 83 | style: TextStyle(color: Colors.white), 84 | onSaved: (input) => _passPhrase = input, 85 | )) 86 | : Padding( 87 | padding: EdgeInsets.all(0), 88 | ), 89 | Row( 90 | mainAxisAlignment: MainAxisAlignment.center, 91 | children: [ 92 | Padding( 93 | padding: const EdgeInsets.only(top: 30.0), 94 | child: RaisedButton( 95 | color: Theme.of(context).accentColor, 96 | onPressed: () { 97 | if (formKey.currentState.validate()) { 98 | formKey.currentState.save(); 99 | this._exchange['api_key'] = _apiKey; 100 | this._exchange['secret'] = _secret; 101 | if (this._exchange['name'] == 'Coinbase Pro') 102 | this._exchange['pass_phrase'] = _passPhrase; 103 | 104 | _setExchangesList(); 105 | 106 | Navigator.pop(context); 107 | Navigator.pop(context); 108 | } 109 | }, 110 | child: Text( 111 | 'Add', 112 | style: TextStyle(color: Colors.white), 113 | ), 114 | ), 115 | ) 116 | ], 117 | ) 118 | ], 119 | ), 120 | ), 121 | ), 122 | )); 123 | } 124 | } 125 | -------------------------------------------------------------------------------- /lib/views/exchange_select.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import './exchange_registering.dart'; 3 | import './exchange_register_manually.dart'; 4 | import 'package:shared_preferences/shared_preferences.dart'; 5 | import 'dart:convert'; 6 | 7 | class ExchangeSelect extends StatelessWidget { 8 | final _exchangesList = [ 9 | { 10 | 'name': 'Coinbase', 11 | 'icon': 'assets/coinbase.png', 12 | 'api_key': null, 13 | 'secret': null, 14 | 'data': null 15 | }, 16 | { 17 | 'name': 'Coinbase Pro', 18 | 'icon': 'assets/coinbase_pro.jpg', 19 | 'api_key': null, 20 | 'secret': null, 21 | 'pass_phrase': null, 22 | 'data': null 23 | }, 24 | { 25 | 'name': 'Bittrex', 26 | 'icon': 'assets/bittrex.jpg', 27 | 'api_key': null, 28 | 'secret': null, 29 | 'data': null 30 | }, 31 | { 32 | 'name': 'Binance', 33 | 'icon': 'assets/binance.png', 34 | 'api_key': null, 35 | 'secret': null, 36 | 'data': null 37 | }, 38 | {'name': 'Mercatox', 'icon': 'assets/mercatox.png', 'data': null}, 39 | { 40 | 'name': 'HitBTC', 41 | 'icon': 'assets/hitbtc.png', 42 | 'api_key': null, 43 | 'secret': null, 44 | 'data': null 45 | } 46 | ]; 47 | 48 | _getExchangesList(exchange) async { 49 | SharedPreferences prefs = await SharedPreferences.getInstance(); 50 | 51 | String exchangesString = prefs.getString('exchangesList') ?? '[]'; 52 | if (exchangesString == '[]') return true; 53 | 54 | var storedExchanges = json.decode(exchangesString); 55 | for (int i = 0; i < storedExchanges.length; i++) { 56 | if (exchange['name'] == storedExchanges[i]['name']) { 57 | return false; 58 | } 59 | } 60 | return true; 61 | } 62 | 63 | @override 64 | Widget build(BuildContext context) { 65 | return Scaffold( 66 | backgroundColor: Theme.of(context).backgroundColor, 67 | appBar: AppBar( 68 | title: Text("Select Exchange"), 69 | ), 70 | body: ListView.builder( 71 | itemCount: _exchangesList.length, 72 | itemBuilder: (context, i) { 73 | var exchange = _exchangesList[i]; 74 | 75 | return InkWell( 76 | borderRadius: BorderRadius.circular(5), 77 | onTap: () async { 78 | var flag = await _getExchangesList(exchange); 79 | if (flag) 80 | Navigator.push(context, MaterialPageRoute(builder: (context) { 81 | if (exchange['name'] == 'Mercatox') 82 | return ExchangeRegisterManually(exchange: exchange); 83 | return ExchangeRegister(exchange: exchange); 84 | })); 85 | }, 86 | child: Container( 87 | child: Padding( 88 | padding: const EdgeInsets.all(16.0), 89 | child: Row( 90 | children: [ 91 | Image.asset(exchange['icon'], width: 50, height: 50), 92 | Padding( 93 | padding: const EdgeInsets.all(10.0), 94 | ), 95 | Text( 96 | exchange['name'], 97 | style: TextStyle(fontSize: 22.0, color: Colors.white), 98 | ) 99 | ], 100 | )), 101 | ), 102 | ); 103 | }, 104 | ), 105 | ); 106 | } 107 | } 108 | -------------------------------------------------------------------------------- /lib/views/wallet_information.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class WalletInformation extends StatelessWidget { 4 | const WalletInformation({Key key, this.exchange, this.fiatSymbol}) 5 | : super(key: key); 6 | 7 | final exchange; 8 | final fiatSymbol; 9 | 10 | @override 11 | Widget build(BuildContext context) { 12 | return Scaffold( 13 | body: CustomScrollView( 14 | slivers: [ 15 | SliverAppBar( 16 | forceElevated: true, 17 | elevation: 4, 18 | backgroundColor: Theme.of(context).backgroundColor, 19 | expandedHeight: 230, 20 | flexibleSpace: Container( 21 | child: Center( 22 | child: Column( 23 | children: [ 24 | Padding( 25 | padding: EdgeInsets.only(top: 60), 26 | ), 27 | Image.asset( 28 | exchange['icon'], 29 | width: 50, 30 | height: 50, 31 | ), 32 | Padding( 33 | padding: EdgeInsets.only(top: 30), 34 | ), 35 | Text(exchange['data']['value'] + ' ' + fiatSymbol, 36 | style: TextStyle( 37 | fontSize: 30, 38 | color: Colors.white, 39 | fontWeight: FontWeight.bold)), 40 | Padding( 41 | padding: EdgeInsets.all(25), 42 | child: Divider( 43 | color: Colors.white, 44 | )) 45 | ], 46 | )), 47 | ), 48 | ), 49 | SliverPadding( 50 | padding: EdgeInsets.all(20), 51 | ), 52 | SliverList( 53 | delegate: SliverChildBuilderDelegate((context, i) { 54 | var exchangeBalances = exchange['data']['balances'][i]; 55 | return Container( 56 | padding: EdgeInsets.only(bottom: 30, left: 45, right: 45), 57 | child: Row( 58 | crossAxisAlignment: CrossAxisAlignment.center, 59 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 60 | children: [ 61 | Image.network( 62 | exchangeBalances['icon'], 63 | width: 30, 64 | height: 30, 65 | ), 66 | Padding( 67 | padding: EdgeInsets.only(right: 10), 68 | ), 69 | Text( 70 | exchangeBalances['currency'], 71 | style: TextStyle( 72 | color: Colors.black, fontWeight: FontWeight.bold), 73 | ), 74 | Padding( 75 | padding: EdgeInsets.only(right: 5), 76 | ), 77 | Text( 78 | exchangeBalances['amount'], 79 | style: TextStyle( 80 | color: Colors.black, fontWeight: FontWeight.bold), 81 | ), 82 | Padding( 83 | padding: EdgeInsets.only(right: 5), 84 | ), 85 | Text(exchangeBalances['value'] + ' ' + fiatSymbol, 86 | style: TextStyle( 87 | color: Colors.black, fontWeight: FontWeight.bold)) 88 | ], 89 | )); 90 | }, childCount: exchange['data']['balances'].length), 91 | ) 92 | ], 93 | )); 94 | } 95 | } 96 | -------------------------------------------------------------------------------- /myapp.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://www.dartlang.org/tools/pub/glossary#lockfile 3 | packages: 4 | archive: 5 | dependency: transitive 6 | description: 7 | name: archive 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.0.8" 11 | args: 12 | dependency: transitive 13 | description: 14 | name: args 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.5.1" 18 | async: 19 | dependency: transitive 20 | description: 21 | name: async 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.0.8" 25 | boolean_selector: 26 | dependency: transitive 27 | description: 28 | name: boolean_selector 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.0.4" 32 | charcode: 33 | dependency: transitive 34 | description: 35 | name: charcode 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.2" 39 | collection: 40 | dependency: transitive 41 | description: 42 | name: collection 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.14.11" 46 | convert: 47 | dependency: transitive 48 | description: 49 | name: convert 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "2.1.1" 53 | crypto: 54 | dependency: "direct main" 55 | description: 56 | name: crypto 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "2.0.6" 60 | cupertino_icons: 61 | dependency: "direct main" 62 | description: 63 | name: cupertino_icons 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "0.1.2" 67 | dart_config: 68 | dependency: transitive 69 | description: 70 | path: "." 71 | ref: HEAD 72 | resolved-ref: a7ed88a4793e094a4d5d5c2d88a89e55510accde 73 | url: "https://github.com/MarkOSullivan94/dart_config.git" 74 | source: git 75 | version: "0.5.0" 76 | english_words: 77 | dependency: "direct main" 78 | description: 79 | name: english_words 80 | url: "https://pub.dartlang.org" 81 | source: hosted 82 | version: "3.1.5" 83 | flutter: 84 | dependency: "direct main" 85 | description: flutter 86 | source: sdk 87 | version: "0.0.0" 88 | flutter_launcher_icons: 89 | dependency: "direct dev" 90 | description: 91 | name: flutter_launcher_icons 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "0.7.0" 95 | flutter_test: 96 | dependency: "direct dev" 97 | description: flutter 98 | source: sdk 99 | version: "0.0.0" 100 | fluttertoast: 101 | dependency: "direct main" 102 | description: 103 | name: fluttertoast 104 | url: "https://pub.dartlang.org" 105 | source: hosted 106 | version: "3.0.3" 107 | hex: 108 | dependency: "direct main" 109 | description: 110 | name: hex 111 | url: "https://pub.dartlang.org" 112 | source: hosted 113 | version: "0.1.2" 114 | http: 115 | dependency: "direct main" 116 | description: 117 | name: http 118 | url: "https://pub.dartlang.org" 119 | source: hosted 120 | version: "0.12.0+2" 121 | http_auth: 122 | dependency: "direct main" 123 | description: 124 | name: http_auth 125 | url: "https://pub.dartlang.org" 126 | source: hosted 127 | version: "0.2.5" 128 | http_parser: 129 | dependency: transitive 130 | description: 131 | name: http_parser 132 | url: "https://pub.dartlang.org" 133 | source: hosted 134 | version: "3.1.3" 135 | image: 136 | dependency: transitive 137 | description: 138 | name: image 139 | url: "https://pub.dartlang.org" 140 | source: hosted 141 | version: "2.0.7" 142 | liquid_pull_to_refresh: 143 | dependency: "direct main" 144 | description: 145 | name: liquid_pull_to_refresh 146 | url: "https://pub.dartlang.org" 147 | source: hosted 148 | version: "1.1.0" 149 | matcher: 150 | dependency: transitive 151 | description: 152 | name: matcher 153 | url: "https://pub.dartlang.org" 154 | source: hosted 155 | version: "0.12.3+1" 156 | meta: 157 | dependency: transitive 158 | description: 159 | name: meta 160 | url: "https://pub.dartlang.org" 161 | source: hosted 162 | version: "1.1.6" 163 | page_transition: 164 | dependency: "direct main" 165 | description: 166 | name: page_transition 167 | url: "https://pub.dartlang.org" 168 | source: hosted 169 | version: "1.0.9" 170 | path: 171 | dependency: transitive 172 | description: 173 | name: path 174 | url: "https://pub.dartlang.org" 175 | source: hosted 176 | version: "1.6.2" 177 | pedantic: 178 | dependency: transitive 179 | description: 180 | name: pedantic 181 | url: "https://pub.dartlang.org" 182 | source: hosted 183 | version: "1.4.0" 184 | petitparser: 185 | dependency: transitive 186 | description: 187 | name: petitparser 188 | url: "https://pub.dartlang.org" 189 | source: hosted 190 | version: "2.1.1" 191 | pointycastle: 192 | dependency: "direct main" 193 | description: 194 | name: pointycastle 195 | url: "https://pub.dartlang.org" 196 | source: hosted 197 | version: "1.0.1" 198 | quiver: 199 | dependency: transitive 200 | description: 201 | name: quiver 202 | url: "https://pub.dartlang.org" 203 | source: hosted 204 | version: "2.0.1" 205 | shared_preferences: 206 | dependency: "direct main" 207 | description: 208 | name: shared_preferences 209 | url: "https://pub.dartlang.org" 210 | source: hosted 211 | version: "0.5.2" 212 | sky_engine: 213 | dependency: transitive 214 | description: flutter 215 | source: sdk 216 | version: "0.0.99" 217 | source_span: 218 | dependency: transitive 219 | description: 220 | name: source_span 221 | url: "https://pub.dartlang.org" 222 | source: hosted 223 | version: "1.5.4" 224 | stack_trace: 225 | dependency: transitive 226 | description: 227 | name: stack_trace 228 | url: "https://pub.dartlang.org" 229 | source: hosted 230 | version: "1.9.3" 231 | stream_channel: 232 | dependency: transitive 233 | description: 234 | name: stream_channel 235 | url: "https://pub.dartlang.org" 236 | source: hosted 237 | version: "1.6.8" 238 | string_scanner: 239 | dependency: transitive 240 | description: 241 | name: string_scanner 242 | url: "https://pub.dartlang.org" 243 | source: hosted 244 | version: "1.0.4" 245 | term_glyph: 246 | dependency: transitive 247 | description: 248 | name: term_glyph 249 | url: "https://pub.dartlang.org" 250 | source: hosted 251 | version: "1.1.0" 252 | test_api: 253 | dependency: transitive 254 | description: 255 | name: test_api 256 | url: "https://pub.dartlang.org" 257 | source: hosted 258 | version: "0.2.2" 259 | typed_data: 260 | dependency: transitive 261 | description: 262 | name: typed_data 263 | url: "https://pub.dartlang.org" 264 | source: hosted 265 | version: "1.1.6" 266 | vector_math: 267 | dependency: transitive 268 | description: 269 | name: vector_math 270 | url: "https://pub.dartlang.org" 271 | source: hosted 272 | version: "2.0.8" 273 | xml: 274 | dependency: transitive 275 | description: 276 | name: xml 277 | url: "https://pub.dartlang.org" 278 | source: hosted 279 | version: "3.3.1" 280 | yaml: 281 | dependency: transitive 282 | description: 283 | name: yaml 284 | url: "https://pub.dartlang.org" 285 | source: hosted 286 | version: "2.1.15" 287 | sdks: 288 | dart: ">=2.1.0 <3.0.0" 289 | flutter: ">=0.1.4 <2.0.0" 290 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: BitView 2 | description: Crypto asset allocation 3 | author: Alessandro Konrad 4 | email: alessandro.konrad@live.de 5 | 6 | # The following defines the version and build number for your application. 7 | # A version number is three numbers separated by dots, like 1.2.43 8 | # followed by an optional build number separated by a +. 9 | # Both the version and the builder number may be overridden in flutter 10 | # build by specifying --build-name and --build-number, respectively. 11 | # In Android, build-name is used as versionName while build-number used as versionCode. 12 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 13 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 14 | # Read more about iOS versioning at 15 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 16 | version: 1.1.0+5 17 | 18 | environment: 19 | sdk: ">=2.1.0 <3.0.0" 20 | 21 | dependencies: 22 | flutter: 23 | sdk: flutter 24 | english_words: ^3.1.0 25 | shared_preferences: ^0.5.1 26 | fluttertoast: ^3.0.3 27 | liquid_pull_to_refresh: ^1.1.0 28 | http: ^0.12.0+2 29 | pointycastle: ^1.0.1 30 | crypto: ^2.0.6 31 | page_transition: ^1.0.9 32 | hex: ^0.1.2 33 | http_auth: ^0.2.5 34 | 35 | # The following adds the Cupertino Icons font to your application. 36 | # Use with the CupertinoIcons class for iOS style icons. 37 | cupertino_icons: ^0.1.2 38 | 39 | dev_dependencies: 40 | flutter_launcher_icons: ^0.7.0 41 | flutter_test: 42 | sdk: flutter 43 | 44 | # For information on the generic Dart part of this file, see the 45 | # following page: https://www.dartlang.org/tools/pub/pubspec 46 | 47 | # The following section is specific to Flutter. 48 | flutter: 49 | # The following line ensures that the Material Icons font is 50 | # included with your application, so that you can use the icons in 51 | # the material Icons class. 52 | uses-material-design: true 53 | 54 | assets: 55 | - assets/coinbase.png 56 | - assets/coinbase_pro.jpg 57 | - assets/binance.png 58 | - assets/bittrex.jpg 59 | - assets/mercatox.png 60 | - assets/hitbtc.png 61 | 62 | flutter_icons: 63 | android: ic_app 64 | ios: true 65 | image_path: assets/app.png 66 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | //import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import '../lib/utility/fetch_exchange_data.dart'; 12 | 13 | void main() { 14 | test('Testing HmacSha512 for Bittrex', () async { 15 | // var exchange = { 16 | // 'name': 'HitBTC', 17 | // 'icon': 'assets/bittrex.jpg', 18 | // 'api_key': '', 19 | // 'secret': '', 20 | // 'data': null 21 | // }; 22 | 23 | // var balances = await fetchHitBtc(exchange); 24 | // print(balances); 25 | print("hi".toLowerCase(); 26 | }); 27 | } 28 | --------------------------------------------------------------------------------