├── .gitignore
├── .metadata
├── README.md
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── binance
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-v21
│ │ │ └── launch_background.xml
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── launcher_icon.png
│ │ │ ├── mipmap-mdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── launcher_icon.png
│ │ │ ├── mipmap-xhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── launcher_icon.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── launcher_icon.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── launcher_icon.png
│ │ │ ├── values-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── images
└── icon_app.png
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
├── lib
├── main.dart
└── src
│ ├── app.dart
│ ├── data
│ └── type_coin.dart
│ ├── models
│ ├── candle.dart
│ └── change.dart
│ └── pages
│ ├── home
│ ├── home_page.dart
│ └── widgets
│ │ └── carousel.dart
│ ├── market
│ ├── market_page.dart
│ └── pages
│ │ └── favourite_page.dart
│ ├── navigation
│ └── navigation.dart
│ └── options
│ ├── options_page.dart
│ └── widgets
│ ├── drawer_layout.dart
│ └── line_chart.dart
├── pubspec.lock
├── pubspec.yaml
├── screenshots
├── c86c9ec1d2961bc842871.jpg
├── c882ca2f86784f2616694.jpg
├── daa6b20bfe5c37026e4d3.jpg
└── f1e6874bcb1c02425b0d2.jpg
├── test
└── widget_test.dart
└── web
├── favicon.png
├── icons
├── Icon-192.png
└── Icon-512.png
├── index.html
└── manifest.json
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | **/ios/Flutter/.last_build_id
26 | .dart_tool/
27 | .flutter-plugins
28 | .flutter-plugins-dependencies
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | /build/
33 |
34 | # Web related
35 | lib/generated_plugin_registrant.dart
36 |
37 | # Symbolication related
38 | app.*.symbols
39 |
40 | # Obfuscation related
41 | app.*.map.json
42 |
43 | # Android Studio will place build artifacts here
44 | /android/app/debug
45 | /android/app/profile
46 | /android/app/release
47 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: 8f89f6505b941329a864fef1527243a72800bf4d
8 | channel: beta
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## Binance Application :office: :chart:
2 |
3 | ### Description:
4 |
5 | - Application clone from Binance JEX real app. Just have UI/UX, you can clone this repository and customize it.
6 |
7 | ### How I can run it?
8 |
9 | - :rocket: run ***flutter pub get*** on terminal in project
10 | - :rocket: run this app on **Android** or **IOS**.
11 |
12 | ### Screenshots
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 30
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | defaultConfig {
36 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
37 | applicationId "com.wanted.binance"
38 | minSdkVersion 21
39 | targetSdkVersion 30
40 | versionCode flutterVersionCode.toInteger()
41 | versionName flutterVersionName
42 | }
43 |
44 | buildTypes {
45 | release {
46 | signingConfig signingConfigs.debug
47 | }
48 | }
49 | }
50 |
51 | flutter {
52 | source '../..'
53 | }
54 |
55 | dependencies {
56 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
57 | }
58 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
8 |
9 |
16 |
20 |
24 |
29 |
33 |
34 |
35 |
36 |
37 |
38 |
40 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/binance/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.wanted.binance
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/launcher_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/android/app/src/main/res/mipmap-hdpi/launcher_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/launcher_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/android/app/src/main/res/mipmap-mdpi/launcher_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.3.50'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:4.1.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | jcenter()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/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-6.7-all.zip
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/images/icon_app.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/images/icon_app.png
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/app.flx
22 | Flutter/app.zip
23 | Flutter/flutter_assets/
24 | Flutter/flutter_export_environment.sh
25 | ServiceDefinitions.json
26 | Runner/GeneratedPluginRegistrant.*
27 |
28 | # Exceptions to above rules.
29 | !default.mode1v3
30 | !default.mode2v3
31 | !default.pbxuser
32 | !default.perspectivev3
33 |
--------------------------------------------------------------------------------
/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/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 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
16 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXCopyFilesBuildPhase section */
19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
20 | isa = PBXCopyFilesBuildPhase;
21 | buildActionMask = 2147483647;
22 | dstPath = "";
23 | dstSubfolderSpec = 10;
24 | files = (
25 | );
26 | name = "Embed Frameworks";
27 | runOnlyForDeploymentPostprocessing = 0;
28 | };
29 | /* End PBXCopyFilesBuildPhase section */
30 |
31 | /* Begin PBXFileReference section */
32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
45 | /* End PBXFileReference section */
46 |
47 | /* Begin PBXFrameworksBuildPhase section */
48 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
49 | isa = PBXFrameworksBuildPhase;
50 | buildActionMask = 2147483647;
51 | files = (
52 | );
53 | runOnlyForDeploymentPostprocessing = 0;
54 | };
55 | /* End PBXFrameworksBuildPhase section */
56 |
57 | /* Begin PBXGroup section */
58 | 9740EEB11CF90186004384FC /* Flutter */ = {
59 | isa = PBXGroup;
60 | children = (
61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
65 | );
66 | name = Flutter;
67 | sourceTree = "";
68 | };
69 | 97C146E51CF9000F007C117D = {
70 | isa = PBXGroup;
71 | children = (
72 | 9740EEB11CF90186004384FC /* Flutter */,
73 | 97C146F01CF9000F007C117D /* Runner */,
74 | 97C146EF1CF9000F007C117D /* Products */,
75 | );
76 | sourceTree = "";
77 | };
78 | 97C146EF1CF9000F007C117D /* Products */ = {
79 | isa = PBXGroup;
80 | children = (
81 | 97C146EE1CF9000F007C117D /* Runner.app */,
82 | );
83 | name = Products;
84 | sourceTree = "";
85 | };
86 | 97C146F01CF9000F007C117D /* Runner */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
92 | 97C147021CF9000F007C117D /* Info.plist */,
93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
97 | );
98 | path = Runner;
99 | sourceTree = "";
100 | };
101 | /* End PBXGroup section */
102 |
103 | /* Begin PBXNativeTarget section */
104 | 97C146ED1CF9000F007C117D /* Runner */ = {
105 | isa = PBXNativeTarget;
106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
107 | buildPhases = (
108 | 9740EEB61CF901F6004384FC /* Run Script */,
109 | 97C146EA1CF9000F007C117D /* Sources */,
110 | 97C146EB1CF9000F007C117D /* Frameworks */,
111 | 97C146EC1CF9000F007C117D /* Resources */,
112 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
114 | );
115 | buildRules = (
116 | );
117 | dependencies = (
118 | );
119 | name = Runner;
120 | productName = Runner;
121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
122 | productType = "com.apple.product-type.application";
123 | };
124 | /* End PBXNativeTarget section */
125 |
126 | /* Begin PBXProject section */
127 | 97C146E61CF9000F007C117D /* Project object */ = {
128 | isa = PBXProject;
129 | attributes = {
130 | LastUpgradeCheck = 1020;
131 | ORGANIZATIONNAME = "";
132 | TargetAttributes = {
133 | 97C146ED1CF9000F007C117D = {
134 | CreatedOnToolsVersion = 7.3.1;
135 | LastSwiftMigration = 1100;
136 | };
137 | };
138 | };
139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
140 | compatibilityVersion = "Xcode 9.3";
141 | developmentRegion = en;
142 | hasScannedForEncodings = 0;
143 | knownRegions = (
144 | en,
145 | Base,
146 | );
147 | mainGroup = 97C146E51CF9000F007C117D;
148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
149 | projectDirPath = "";
150 | projectRoot = "";
151 | targets = (
152 | 97C146ED1CF9000F007C117D /* Runner */,
153 | );
154 | };
155 | /* End PBXProject section */
156 |
157 | /* Begin PBXResourcesBuildPhase section */
158 | 97C146EC1CF9000F007C117D /* Resources */ = {
159 | isa = PBXResourcesBuildPhase;
160 | buildActionMask = 2147483647;
161 | files = (
162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
166 | );
167 | runOnlyForDeploymentPostprocessing = 0;
168 | };
169 | /* End PBXResourcesBuildPhase section */
170 |
171 | /* Begin PBXShellScriptBuildPhase section */
172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
173 | isa = PBXShellScriptBuildPhase;
174 | buildActionMask = 2147483647;
175 | files = (
176 | );
177 | inputPaths = (
178 | );
179 | name = "Thin Binary";
180 | outputPaths = (
181 | );
182 | runOnlyForDeploymentPostprocessing = 0;
183 | shellPath = /bin/sh;
184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
185 | };
186 | 9740EEB61CF901F6004384FC /* Run Script */ = {
187 | isa = PBXShellScriptBuildPhase;
188 | buildActionMask = 2147483647;
189 | files = (
190 | );
191 | inputPaths = (
192 | );
193 | name = "Run Script";
194 | outputPaths = (
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | shellPath = /bin/sh;
198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
199 | };
200 | /* End PBXShellScriptBuildPhase section */
201 |
202 | /* Begin PBXSourcesBuildPhase section */
203 | 97C146EA1CF9000F007C117D /* Sources */ = {
204 | isa = PBXSourcesBuildPhase;
205 | buildActionMask = 2147483647;
206 | files = (
207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
209 | );
210 | runOnlyForDeploymentPostprocessing = 0;
211 | };
212 | /* End PBXSourcesBuildPhase section */
213 |
214 | /* Begin PBXVariantGroup section */
215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
216 | isa = PBXVariantGroup;
217 | children = (
218 | 97C146FB1CF9000F007C117D /* Base */,
219 | );
220 | name = Main.storyboard;
221 | sourceTree = "";
222 | };
223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
224 | isa = PBXVariantGroup;
225 | children = (
226 | 97C147001CF9000F007C117D /* Base */,
227 | );
228 | name = LaunchScreen.storyboard;
229 | sourceTree = "";
230 | };
231 | /* End PBXVariantGroup section */
232 |
233 | /* Begin XCBuildConfiguration section */
234 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
235 | isa = XCBuildConfiguration;
236 | buildSettings = {
237 | ALWAYS_SEARCH_USER_PATHS = NO;
238 | CLANG_ANALYZER_NONNULL = YES;
239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
240 | CLANG_CXX_LIBRARY = "libc++";
241 | CLANG_ENABLE_MODULES = YES;
242 | CLANG_ENABLE_OBJC_ARC = YES;
243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
244 | CLANG_WARN_BOOL_CONVERSION = YES;
245 | CLANG_WARN_COMMA = YES;
246 | CLANG_WARN_CONSTANT_CONVERSION = YES;
247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
249 | CLANG_WARN_EMPTY_BODY = YES;
250 | CLANG_WARN_ENUM_CONVERSION = YES;
251 | CLANG_WARN_INFINITE_RECURSION = YES;
252 | CLANG_WARN_INT_CONVERSION = YES;
253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
258 | CLANG_WARN_STRICT_PROTOTYPES = YES;
259 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
260 | CLANG_WARN_UNREACHABLE_CODE = YES;
261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
263 | COPY_PHASE_STRIP = NO;
264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
265 | ENABLE_NS_ASSERTIONS = NO;
266 | ENABLE_STRICT_OBJC_MSGSEND = YES;
267 | GCC_C_LANGUAGE_STANDARD = gnu99;
268 | GCC_NO_COMMON_BLOCKS = YES;
269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
271 | GCC_WARN_UNDECLARED_SELECTOR = YES;
272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
273 | GCC_WARN_UNUSED_FUNCTION = YES;
274 | GCC_WARN_UNUSED_VARIABLE = YES;
275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
276 | MTL_ENABLE_DEBUG_INFO = NO;
277 | SDKROOT = iphoneos;
278 | SUPPORTED_PLATFORMS = iphoneos;
279 | TARGETED_DEVICE_FAMILY = "1,2";
280 | VALIDATE_PRODUCT = YES;
281 | };
282 | name = Profile;
283 | };
284 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
285 | isa = XCBuildConfiguration;
286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
287 | buildSettings = {
288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
289 | CLANG_ENABLE_MODULES = YES;
290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
291 | ENABLE_BITCODE = NO;
292 | INFOPLIST_FILE = Runner/Info.plist;
293 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
294 | PRODUCT_BUNDLE_IDENTIFIER = com.wanted.binance;
295 | PRODUCT_NAME = "$(TARGET_NAME)";
296 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
297 | SWIFT_VERSION = 5.0;
298 | VERSIONING_SYSTEM = "apple-generic";
299 | };
300 | name = Profile;
301 | };
302 | 97C147031CF9000F007C117D /* Debug */ = {
303 | isa = XCBuildConfiguration;
304 | buildSettings = {
305 | ALWAYS_SEARCH_USER_PATHS = NO;
306 | CLANG_ANALYZER_NONNULL = YES;
307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
308 | CLANG_CXX_LIBRARY = "libc++";
309 | CLANG_ENABLE_MODULES = YES;
310 | CLANG_ENABLE_OBJC_ARC = YES;
311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
312 | CLANG_WARN_BOOL_CONVERSION = YES;
313 | CLANG_WARN_COMMA = YES;
314 | CLANG_WARN_CONSTANT_CONVERSION = YES;
315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
317 | CLANG_WARN_EMPTY_BODY = YES;
318 | CLANG_WARN_ENUM_CONVERSION = YES;
319 | CLANG_WARN_INFINITE_RECURSION = YES;
320 | CLANG_WARN_INT_CONVERSION = YES;
321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
326 | CLANG_WARN_STRICT_PROTOTYPES = YES;
327 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
328 | CLANG_WARN_UNREACHABLE_CODE = YES;
329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
331 | COPY_PHASE_STRIP = NO;
332 | DEBUG_INFORMATION_FORMAT = dwarf;
333 | ENABLE_STRICT_OBJC_MSGSEND = YES;
334 | ENABLE_TESTABILITY = YES;
335 | GCC_C_LANGUAGE_STANDARD = gnu99;
336 | GCC_DYNAMIC_NO_PIC = NO;
337 | GCC_NO_COMMON_BLOCKS = YES;
338 | GCC_OPTIMIZATION_LEVEL = 0;
339 | GCC_PREPROCESSOR_DEFINITIONS = (
340 | "DEBUG=1",
341 | "$(inherited)",
342 | );
343 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
344 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
345 | GCC_WARN_UNDECLARED_SELECTOR = YES;
346 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
347 | GCC_WARN_UNUSED_FUNCTION = YES;
348 | GCC_WARN_UNUSED_VARIABLE = YES;
349 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
350 | MTL_ENABLE_DEBUG_INFO = YES;
351 | ONLY_ACTIVE_ARCH = YES;
352 | SDKROOT = iphoneos;
353 | TARGETED_DEVICE_FAMILY = "1,2";
354 | };
355 | name = Debug;
356 | };
357 | 97C147041CF9000F007C117D /* Release */ = {
358 | isa = XCBuildConfiguration;
359 | buildSettings = {
360 | ALWAYS_SEARCH_USER_PATHS = NO;
361 | CLANG_ANALYZER_NONNULL = YES;
362 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
363 | CLANG_CXX_LIBRARY = "libc++";
364 | CLANG_ENABLE_MODULES = YES;
365 | CLANG_ENABLE_OBJC_ARC = YES;
366 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
367 | CLANG_WARN_BOOL_CONVERSION = YES;
368 | CLANG_WARN_COMMA = YES;
369 | CLANG_WARN_CONSTANT_CONVERSION = YES;
370 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
371 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
372 | CLANG_WARN_EMPTY_BODY = YES;
373 | CLANG_WARN_ENUM_CONVERSION = YES;
374 | CLANG_WARN_INFINITE_RECURSION = YES;
375 | CLANG_WARN_INT_CONVERSION = YES;
376 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
377 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
378 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
379 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
380 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
381 | CLANG_WARN_STRICT_PROTOTYPES = YES;
382 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
383 | CLANG_WARN_UNREACHABLE_CODE = YES;
384 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
385 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
386 | COPY_PHASE_STRIP = NO;
387 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
388 | ENABLE_NS_ASSERTIONS = NO;
389 | ENABLE_STRICT_OBJC_MSGSEND = YES;
390 | GCC_C_LANGUAGE_STANDARD = gnu99;
391 | GCC_NO_COMMON_BLOCKS = YES;
392 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
393 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
394 | GCC_WARN_UNDECLARED_SELECTOR = YES;
395 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
396 | GCC_WARN_UNUSED_FUNCTION = YES;
397 | GCC_WARN_UNUSED_VARIABLE = YES;
398 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
399 | MTL_ENABLE_DEBUG_INFO = NO;
400 | SDKROOT = iphoneos;
401 | SUPPORTED_PLATFORMS = iphoneos;
402 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
403 | TARGETED_DEVICE_FAMILY = "1,2";
404 | VALIDATE_PRODUCT = YES;
405 | };
406 | name = Release;
407 | };
408 | 97C147061CF9000F007C117D /* Debug */ = {
409 | isa = XCBuildConfiguration;
410 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
411 | buildSettings = {
412 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
413 | CLANG_ENABLE_MODULES = YES;
414 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
415 | ENABLE_BITCODE = NO;
416 | INFOPLIST_FILE = Runner/Info.plist;
417 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
418 | PRODUCT_BUNDLE_IDENTIFIER = com.wanted.binance;
419 | PRODUCT_NAME = "$(TARGET_NAME)";
420 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
421 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
422 | SWIFT_VERSION = 5.0;
423 | VERSIONING_SYSTEM = "apple-generic";
424 | };
425 | name = Debug;
426 | };
427 | 97C147071CF9000F007C117D /* Release */ = {
428 | isa = XCBuildConfiguration;
429 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
430 | buildSettings = {
431 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
432 | CLANG_ENABLE_MODULES = YES;
433 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
434 | ENABLE_BITCODE = NO;
435 | INFOPLIST_FILE = Runner/Info.plist;
436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
437 | PRODUCT_BUNDLE_IDENTIFIER = com.wanted.binance;
438 | PRODUCT_NAME = "$(TARGET_NAME)";
439 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
440 | SWIFT_VERSION = 5.0;
441 | VERSIONING_SYSTEM = "apple-generic";
442 | };
443 | name = Release;
444 | };
445 | /* End XCBuildConfiguration section */
446 |
447 | /* Begin XCConfigurationList section */
448 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
449 | isa = XCConfigurationList;
450 | buildConfigurations = (
451 | 97C147031CF9000F007C117D /* Debug */,
452 | 97C147041CF9000F007C117D /* Release */,
453 | 249021D3217E4FDB00AE95B9 /* Profile */,
454 | );
455 | defaultConfigurationIsVisible = 0;
456 | defaultConfigurationName = Release;
457 | };
458 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
459 | isa = XCConfigurationList;
460 | buildConfigurations = (
461 | 97C147061CF9000F007C117D /* Debug */,
462 | 97C147071CF9000F007C117D /* Release */,
463 | 249021D4217E4FDB00AE95B9 /* Profile */,
464 | );
465 | defaultConfigurationIsVisible = 0;
466 | defaultConfigurationName = Release;
467 | };
468 | /* End XCConfigurationList section */
469 | };
470 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
471 | }
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/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/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/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/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/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/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/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/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/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/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/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/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/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/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/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/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/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/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/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/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/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/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/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/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/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/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/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/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/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/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | binance
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations≈ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:binance/src/app.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:get/get.dart';
4 |
5 | void main() {
6 | runApp(
7 | GetMaterialApp(
8 | title: 'Binance JEX',
9 | debugShowCheckedModeBanner: false,
10 | initialRoute: '/root',
11 | defaultTransition: Transition.native,
12 | locale: Locale('vi', 'VN'),
13 | getPages: [
14 | GetPage(name: '/root', page: () => App()),
15 | ],
16 | ),
17 | );
18 | }
19 |
--------------------------------------------------------------------------------
/lib/src/app.dart:
--------------------------------------------------------------------------------
1 | import 'package:binance/src/pages/navigation/navigation.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter/services.dart';
4 |
5 | class App extends StatefulWidget {
6 | @override
7 | State createState() => _AppState();
8 | }
9 |
10 | class _AppState extends State with WidgetsBindingObserver {
11 | @override
12 | void initState() {
13 | SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
14 | statusBarColor: Colors.transparent,
15 | ));
16 | WidgetsBinding.instance.addObserver(this);
17 | SystemChrome.setPreferredOrientations([
18 | DeviceOrientation.portraitDown,
19 | DeviceOrientation.portraitUp,
20 | ]);
21 | super.initState();
22 | }
23 |
24 | @override
25 | Widget build(BuildContext context) {
26 | return Navigation();
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/lib/src/data/type_coin.dart:
--------------------------------------------------------------------------------
1 | List btcs = [
2 | 'BTC0120CALL',
3 | 'BTC0120PUT',
4 | 'BTC0106CALL',
5 | 'BTC0106PUT',
6 | 'BTC0106CALLW',
7 | 'BTC0106PUTW',
8 | 'BTC0106CALLD',
9 | 'BTC0106PUTD',
10 | ];
11 |
12 | List eths = [
13 | 'ETH0120CALL',
14 | 'BTC0120PUT',
15 | 'BTC0106CALL',
16 | 'BTC0106PUT',
17 | 'BTC0106CALLW',
18 | 'BTC0106PUTW',
19 | 'BTC0106CALLD',
20 | 'BTC0106PUTD',
21 | ];
22 |
--------------------------------------------------------------------------------
/lib/src/models/candle.dart:
--------------------------------------------------------------------------------
1 | class Candle {
2 | final double open;
3 | final double high;
4 | final double low;
5 | final double close;
6 | final double volumeto;
7 |
8 | Candle({this.open, this.high, this.low, this.close, this.volumeto});
9 | }
10 |
--------------------------------------------------------------------------------
/lib/src/models/change.dart:
--------------------------------------------------------------------------------
1 | class Change {
2 | final String title;
3 | final double value;
4 | final double percent;
5 | final bool increase;
6 |
7 | Change({this.title, this.value, this.percent, this.increase});
8 | }
9 |
10 | List changes = [
11 | Change(title: 'BTC0106CALLD', value: 15.8096, percent: 71.88, increase: true),
12 | Change(title: 'BTC0106CALLD', value: 15.8096, percent: 71.88, increase: true),
13 | Change(title: 'BTC0106CALLD', value: 15.8096, percent: 71.88, increase: true),
14 | Change(title: 'BTC0106CALLD', value: 15.8096, percent: 71.88, increase: true),
15 | Change(title: 'BTC0106CALLD', value: 15.8096, percent: 71.88, increase: true),
16 | Change(title: 'BTC0106CALLD', value: 15.8096, percent: 71.88, increase: true),
17 | ];
18 |
--------------------------------------------------------------------------------
/lib/src/pages/home/home_page.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'dart:convert';
3 | import 'dart:ui';
4 | import 'package:binance/src/models/change.dart';
5 | import 'package:carousel_slider/carousel_slider.dart';
6 | import 'package:flutter/material.dart';
7 | import 'package:flutter_icons/flutter_icons.dart';
8 | import 'package:font_awesome_flutter/font_awesome_flutter.dart';
9 | import 'package:http/http.dart' as http;
10 |
11 | class HomePage extends StatefulWidget {
12 | @override
13 | State createState() => _HomePageState();
14 | }
15 |
16 | class _HomePageState extends State {
17 | ScrollController _controller = new ScrollController();
18 | StreamController _postsController;
19 | Timer timer;
20 | String _api = ''; // Find a API can get Binance Data
21 | String _option = 'Change';
22 | bool _showAppBar = true;
23 |
24 | var _current = 0;
25 | List imgList = [
26 | 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTq_5VpdtZ8TDPpG1B5E9TAcbCgz1l10joxMw&usqp=CAU',
27 | 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQksGYjFxzY0ClfferWS3_FA83Sjyd8yhPgCw&usqp=CAU',
28 | 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTJO51rTdGAi2z2z8MkQuhRuLV0RFuAFM42Rw&usqp=CAU',
29 | 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSvy2tSrJ7nPZetcBk9l9zq6bh6okbtR8jJJw&usqp=CAU',
30 | 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT2qyzS6LPb0UaeBjiK_HruTOduID7FSMf1Cg&usqp=CAU',
31 | ];
32 |
33 | List _notices = [
34 | 'Subcribe Binance JEX Youtube Channel...',
35 | 'Subcribe Binance JEX Facebook Channel...',
36 | 'Subcribe Binance JEX Twitter Channel...',
37 | 'Subcribe Binance JEX Instagram Channel...',
38 | 'Subcribe Binance JEX Gapo Channel...',
39 | ];
40 |
41 | List map(List list, Function handler) {
42 | List result = [];
43 | for (var i = 0; i < list.length; i++) {
44 | result.add(handler(i, list[i]));
45 | }
46 | return result;
47 | }
48 |
49 | void changePostion(int i) {
50 | setState(() {
51 | if (_current == 4 && i == 1) {
52 | _current = 0;
53 | } else if (_current == 0 && i == -1) {
54 | _current = 4;
55 | } else {
56 | _current += i;
57 | }
58 | });
59 | }
60 |
61 | Future fetchPost() async {
62 | final response = await http.get(Uri.parse(_api));
63 |
64 | if (response.statusCode == 200) {
65 | return json.decode(response.body);
66 | } else {
67 | throw Exception('Failed to load post');
68 | }
69 | }
70 |
71 | loadPosts() async {
72 | fetchPost().then((res) async {
73 | _postsController.add(res);
74 | print(res['RAW']['PRICE']);
75 | print('I\'m here');
76 | return res;
77 | });
78 | }
79 |
80 | Future _handleRefresh() async {
81 | fetchPost().then((res) async {
82 | _postsController.add(res);
83 |
84 | return null;
85 | });
86 | }
87 |
88 | startTimer() {
89 | timer = Timer.periodic(Duration(milliseconds: 200), (t) {
90 | setState(() {
91 | _handleRefresh();
92 | });
93 | });
94 | }
95 |
96 | @override
97 | void initState() {
98 | _postsController = new StreamController();
99 | loadPosts();
100 | startTimer();
101 | super.initState();
102 | }
103 |
104 | @override
105 | void dispose() {
106 | super.dispose();
107 | timer.cancel();
108 | }
109 |
110 | @override
111 | Widget build(BuildContext context) {
112 | final _size = MediaQuery.of(context).size;
113 | return Scaffold(
114 | extendBodyBehindAppBar: true,
115 | appBar: _showAppBar
116 | ? AppBar(
117 | elevation: .0,
118 | backgroundColor: Colors.transparent,
119 | title: RichText(
120 | text: TextSpan(
121 | children: [
122 | TextSpan(
123 | text: 'BINANCE ',
124 | style: TextStyle(
125 | fontSize: _size.width / 18.0,
126 | color: Colors.black,
127 | fontWeight: FontWeight.bold,
128 | ),
129 | ),
130 | TextSpan(
131 | text: 'JEX',
132 | style: TextStyle(
133 | fontSize: _size.width / 18.0,
134 | color: Colors.black,
135 | fontWeight: FontWeight.w600,
136 | ),
137 | ),
138 | ],
139 | ),
140 | ),
141 | actions: [
142 | Container(
143 | padding: EdgeInsets.all(10.0),
144 | decoration: BoxDecoration(
145 | color: Colors.black,
146 | shape: BoxShape.circle,
147 | ),
148 | child: Icon(
149 | FontAwesomeIcons.user,
150 | color: Colors.white,
151 | size: _size.width / 22.5,
152 | ),
153 | ),
154 | SizedBox(
155 | width: 6.0,
156 | ),
157 | ],
158 | )
159 | : null,
160 | body: Container(
161 | child: NotificationListener(
162 | onNotification: (t) {
163 | if (_controller.position.pixels > _size.height * .025) {
164 | setState(() {
165 | _showAppBar = false;
166 | });
167 | } else {
168 | setState(() {
169 | _showAppBar = true;
170 | });
171 | }
172 | return true;
173 | },
174 | child: SingleChildScrollView(
175 | controller: _controller,
176 | child: Stack(
177 | children: [
178 | Column(
179 | children: [
180 | Container(
181 | height: _size.height * .175,
182 | color: Color(0xFFFFD500),
183 | ),
184 | Container(
185 | color: Color(0xFF1e1e1e),
186 | child: Column(
187 | crossAxisAlignment: CrossAxisAlignment.start,
188 | children: [
189 | Container(
190 | height: _size.height * .12,
191 | ),
192 | Container(
193 | padding: EdgeInsets.fromLTRB(4.0, 12.0, 6.0, 14.0),
194 | decoration: BoxDecoration(
195 | border: Border.symmetric(
196 | horizontal: BorderSide(
197 | color: Colors.grey.shade300,
198 | width: .4,
199 | ),
200 | ),
201 | ),
202 | child: Row(
203 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
204 | crossAxisAlignment: CrossAxisAlignment.center,
205 | children: [
206 | Row(
207 | mainAxisAlignment: MainAxisAlignment.start,
208 | children: [
209 | SizedBox(
210 | width: 6.0,
211 | ),
212 | Icon(
213 | FontAwesomeIcons.bullhorn,
214 | color: Colors.grey.shade400,
215 | size: _size.width / 24.0,
216 | ),
217 | SizedBox(width: 8.0),
218 | Padding(
219 | padding: EdgeInsets.only(top: 2.5),
220 | child: Text(
221 | _notices[_current],
222 | style: TextStyle(
223 | color: Colors.grey.shade400,
224 | fontSize: _size.width / 30.0,
225 | fontWeight: FontWeight.w500,
226 | ),
227 | ),
228 | ),
229 | ],
230 | ),
231 | Text(
232 | '12-13',
233 | style: TextStyle(
234 | color: Colors.grey.shade200,
235 | fontSize: _size.width / 28.8,
236 | fontWeight: FontWeight.w500,
237 | ),
238 | ),
239 | ],
240 | ),
241 | ),
242 | Container(
243 | child: Column(
244 | crossAxisAlignment: CrossAxisAlignment.start,
245 | children: [
246 | SizedBox(
247 | height: 20.0,
248 | ),
249 | StreamBuilder(
250 | stream: _postsController.stream,
251 | builder: (context, AsyncSnapshot snapshot) {
252 | if (!snapshot.hasData) {
253 | return Padding(
254 | padding: EdgeInsets.only(left: 16.0),
255 | child: Row(
256 | children: [
257 | _buildNoticeCoins(
258 | context,
259 | 'BTCUSDT',
260 | '+4.56%',
261 | 34.3017,
262 | Color(0xFF00FF80),
263 | ),
264 | _buildNoticeCoins(
265 | context,
266 | 'ETHUSDT',
267 | '+ 4.56%',
268 | 1107.2242,
269 | Color(0xFFFFF3232),
270 | ),
271 | _buildNoticeCoins(
272 | context,
273 | 'EOSUSDT',
274 | '+4.56%',
275 | 3.0216,
276 | Color(0xFF00FF80),
277 | ),
278 | ],
279 | ),
280 | );
281 | }
282 |
283 | return Padding(
284 | padding: EdgeInsets.only(left: 16.0),
285 | child: Row(
286 | children: [
287 | _buildNoticeCoins(
288 | context,
289 | 'BTCUSDT',
290 | '+4.56%',
291 | double.parse(snapshot.data['RAW']
292 | ['PRICE']
293 | .toString()),
294 | Color(0xFF00FF80),
295 | ),
296 | _buildNoticeCoins(
297 | context,
298 | 'ETHUSDT',
299 | '+ 4.56%',
300 | double.parse(snapshot.data['RAW']
301 | ['PRICE']
302 | .toString()),
303 | Color(0xFFFFF3232),
304 | ),
305 | _buildNoticeCoins(
306 | context,
307 | 'EOSUSDT',
308 | '+4.56%',
309 | double.parse(snapshot.data['RAW']
310 | ['PRICE']
311 | .toString()),
312 | Color(0xFF00FF80),
313 | ),
314 | ],
315 | ),
316 | );
317 | },
318 | ),
319 | SizedBox(
320 | height: 18.0,
321 | ),
322 | Container(
323 | padding: EdgeInsets.symmetric(vertical: 20.0),
324 | margin:
325 | EdgeInsets.symmetric(horizontal: 12.5),
326 | decoration: BoxDecoration(
327 | color: Colors.white10,
328 | borderRadius: BorderRadius.circular(8.0),
329 | ),
330 | child: Row(
331 | crossAxisAlignment:
332 | CrossAxisAlignment.center,
333 | mainAxisAlignment: MainAxisAlignment.center,
334 | children: [
335 | SizedBox(
336 | width: 12.0,
337 | ),
338 | _buildQuickAccess(
339 | context,
340 | 'Futures Guide',
341 | Feather.alert_octagon,
342 | ),
343 | _buildQuickAccess(
344 | context,
345 | 'Insurance',
346 | Feather.shield,
347 | ),
348 | _buildQuickAccess(
349 | context,
350 | 'Option\' Guide',
351 | Feather.book_open,
352 | ),
353 | _buildQuickAccess(
354 | context,
355 | 'Chat',
356 | Feather.headphones,
357 | ),
358 | ],
359 | ),
360 | ),
361 | SizedBox(
362 | height: 12.0,
363 | ),
364 | Padding(
365 | padding:
366 | EdgeInsets.symmetric(horizontal: 14.0),
367 | child: Text(
368 | 'Hot Options',
369 | style: TextStyle(
370 | color: Colors.grey.shade50,
371 | fontSize: _size.width / 21.5,
372 | fontWeight: FontWeight.w400,
373 | ),
374 | ),
375 | ),
376 | SizedBox(
377 | height: 12.0,
378 | ),
379 | Container(
380 | child: Row(
381 | mainAxisAlignment: MainAxisAlignment.start,
382 | children: [
383 | SizedBox(width: 14.0),
384 | _buildOptionsItem(context, 'Change'),
385 | SizedBox(width: 10.0),
386 | _buildOptionsItem(context, 'Valume'),
387 | SizedBox(width: 10.0),
388 | _buildOptionsItem(context, 'Leverage'),
389 | ],
390 | ),
391 | ),
392 | SizedBox(
393 | height: 12.0,
394 | ),
395 | ...changes.map((item) {
396 | return _buildChangeLine(
397 | context,
398 | item.title,
399 | item.value,
400 | item.percent,
401 | item.increase,
402 | );
403 | }).toList(),
404 | SizedBox(
405 | height: 24.0,
406 | ),
407 | ],
408 | ),
409 | ),
410 | ],
411 | ),
412 | ),
413 | ],
414 | ),
415 | Positioned(
416 | top: _size.height * .1,
417 | left: 0.0,
418 | child: Container(
419 | margin: EdgeInsets.only(left: 8.0, right: 12.0),
420 | height: _size.height * .18,
421 | width: _size.width,
422 | child: _buildCarouselImage(context),
423 | ),
424 | ),
425 | ],
426 | ),
427 | ),
428 | ),
429 | ),
430 | );
431 | }
432 |
433 | Widget _buildNoticeCoins(
434 | context,
435 | title,
436 | percent,
437 | double value,
438 | color,
439 | ) {
440 | final _size = MediaQuery.of(context).size;
441 | return Expanded(
442 | child: Column(
443 | crossAxisAlignment: CrossAxisAlignment.start,
444 | mainAxisAlignment: MainAxisAlignment.start,
445 | children: [
446 | Row(
447 | children: [
448 | Text(
449 | title,
450 | style: TextStyle(
451 | color: Colors.grey.shade50,
452 | fontSize: _size.width / 28.8,
453 | fontWeight: FontWeight.w500,
454 | ),
455 | ),
456 | SizedBox(
457 | width: 4.0,
458 | ),
459 | Text(
460 | percent,
461 | style: TextStyle(
462 | color: color,
463 | fontSize: _size.width / 28.8,
464 | fontWeight: FontWeight.w400,
465 | ),
466 | ),
467 | ],
468 | ),
469 | SizedBox(
470 | height: 2.5,
471 | ),
472 | Text(
473 | '$value',
474 | style: TextStyle(
475 | color: color,
476 | fontSize: _size.width / 22.0,
477 | fontWeight: FontWeight.w400,
478 | ),
479 | ),
480 | SizedBox(
481 | height: 2.5,
482 | ),
483 | Text(
484 | '≈ \$${value.round()}',
485 | style: TextStyle(
486 | color: color,
487 | fontSize: _size.width / 24.0,
488 | fontWeight: FontWeight.w400,
489 | ),
490 | ),
491 | ],
492 | ),
493 | );
494 | }
495 |
496 | Widget _buildQuickAccess(context, title, icon) {
497 | final _size = MediaQuery.of(context).size;
498 | return Expanded(
499 | child: Column(
500 | crossAxisAlignment: CrossAxisAlignment.center,
501 | mainAxisAlignment: MainAxisAlignment.start,
502 | children: [
503 | Icon(
504 | icon,
505 | size: _size.width / 16.8,
506 | color: Color(0xFFFFEA00),
507 | ),
508 | SizedBox(
509 | height: 6.0,
510 | ),
511 | Text(
512 | title,
513 | style: TextStyle(
514 | color: Colors.grey.shade300,
515 | fontSize: _size.width / 32.5,
516 | fontWeight: FontWeight.w400,
517 | ),
518 | ),
519 | ],
520 | ),
521 | );
522 | }
523 |
524 | Widget _buildOptionsItem(context, title) {
525 | final _size = MediaQuery.of(context).size;
526 | return GestureDetector(
527 | onTap: () {
528 | setState(() {
529 | _option = title;
530 | });
531 | },
532 | child: Text(
533 | title,
534 | style: TextStyle(
535 | color: _option == title ? Colors.grey.shade50 : Colors.grey.shade400,
536 | fontSize: _option == title ? _size.width / 26.0 : _size.width / 30.0,
537 | fontWeight: FontWeight.w400,
538 | ),
539 | ),
540 | );
541 | }
542 |
543 | Widget _buildChangeLine(context, title, value, percent, increase) {
544 | final _size = MediaQuery.of(context).size;
545 | return Container(
546 | padding: EdgeInsets.all(12.0),
547 | decoration: BoxDecoration(
548 | border: Border(
549 | bottom: BorderSide(
550 | color: Colors.grey,
551 | width: .25,
552 | ),
553 | ),
554 | ),
555 | child: Row(
556 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
557 | children: [
558 | Text(
559 | title,
560 | style: TextStyle(
561 | color: Colors.white,
562 | fontSize: _size.width / 24.0,
563 | fontWeight: FontWeight.w600,
564 | ),
565 | ),
566 | Text(
567 | value.toString(),
568 | style: TextStyle(
569 | color: Colors.grey.shade50,
570 | fontSize: _size.width / 24.5,
571 | fontWeight: FontWeight.w600,
572 | ),
573 | ),
574 | Container(
575 | padding: EdgeInsets.fromLTRB(12.0, 12.0, 6.0, 12.0),
576 | decoration: BoxDecoration(
577 | color: Color(0xFF00FF80).withOpacity(.08),
578 | borderRadius: BorderRadius.circular(4.0),
579 | ),
580 | alignment: Alignment.centerRight,
581 | child: Text(
582 | '+$percent%',
583 | style: TextStyle(
584 | color: Color(0xFF00FF80),
585 | fontSize: _size.width / 24.5,
586 | fontWeight: FontWeight.w600,
587 | ),
588 | ),
589 | ),
590 | ],
591 | ),
592 | );
593 | }
594 |
595 | Widget _buildCarouselImage(context) {
596 | final _size = MediaQuery.of(context).size;
597 | return CarouselSlider(
598 | options: CarouselOptions(
599 | height: _size.height * .165,
600 | aspectRatio: 1.5,
601 | viewportFraction: 1,
602 | initialPage: 0,
603 | enableInfiniteScroll: true,
604 | reverse: false,
605 | autoPlay: true,
606 | autoPlayInterval: Duration(seconds: 5),
607 | autoPlayAnimationDuration: Duration(milliseconds: 1000),
608 | autoPlayCurve: Curves.fastOutSlowIn,
609 | enlargeCenterPage: true,
610 | scrollDirection: Axis.horizontal,
611 | onPageChanged: (index, reason) {
612 | setState(() {
613 | _current = index;
614 | });
615 | },
616 | ),
617 | items: imgList.map((imgUrl) {
618 | return Builder(
619 | builder: (BuildContext context) {
620 | return Row(
621 | children: [
622 | Container(
623 | height: _size.height * .16,
624 | width: _size.width * .7,
625 | decoration: BoxDecoration(
626 | borderRadius: BorderRadius.circular(8.0),
627 | image: DecorationImage(
628 | image: NetworkImage(imgList[_current]),
629 | fit: BoxFit.cover,
630 | ),
631 | ),
632 | ),
633 | SizedBox(
634 | width: 8.0,
635 | ),
636 | Container(
637 | height: _size.height * .165,
638 | width: _size.width * .275,
639 | decoration: BoxDecoration(
640 | borderRadius: BorderRadius.circular(8.0),
641 | image: DecorationImage(
642 | image: _current == 4
643 | ? NetworkImage(imgList[0])
644 | : NetworkImage(imgList[_current + 1]),
645 | fit: BoxFit.cover,
646 | ),
647 | ),
648 | ),
649 | ],
650 | );
651 | },
652 | );
653 | }).toList(),
654 | );
655 | }
656 | }
657 |
--------------------------------------------------------------------------------
/lib/src/pages/home/widgets/carousel.dart:
--------------------------------------------------------------------------------
1 | import 'package:carousel_slider/carousel_slider.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class CarouselImage extends StatefulWidget {
5 | @override
6 | State createState() => _CarouselImageState();
7 | }
8 |
9 | class _CarouselImageState extends State {
10 | var _current = 0;
11 | List imgList = [
12 | 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTq_5VpdtZ8TDPpG1B5E9TAcbCgz1l10joxMw&usqp=CAU',
13 | 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQksGYjFxzY0ClfferWS3_FA83Sjyd8yhPgCw&usqp=CAU',
14 | 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTJO51rTdGAi2z2z8MkQuhRuLV0RFuAFM42Rw&usqp=CAU',
15 | 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSvy2tSrJ7nPZetcBk9l9zq6bh6okbtR8jJJw&usqp=CAU',
16 | 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT2qyzS6LPb0UaeBjiK_HruTOduID7FSMf1Cg&usqp=CAU',
17 | ];
18 |
19 | List map(List list, Function handler) {
20 | List result = [];
21 | for (var i = 0; i < list.length; i++) {
22 | result.add(handler(i, list[i]));
23 | }
24 | return result;
25 | }
26 |
27 | void changePostion(int i) {
28 | setState(() {
29 | if (_current == 4 && i == 1) {
30 | _current = 0;
31 | } else if (_current == 0 && i == -1) {
32 | _current = 4;
33 | } else {
34 | _current += i;
35 | }
36 | });
37 | }
38 |
39 | @override
40 | Widget build(BuildContext context) {
41 | Size _size = MediaQuery.of(context).size;
42 | return Container(
43 | child: CarouselSlider(
44 | options: CarouselOptions(
45 | height: _size.height * .165,
46 | aspectRatio: 1.5,
47 | viewportFraction: 1,
48 | initialPage: 0,
49 | enableInfiniteScroll: true,
50 | reverse: false,
51 | autoPlay: true,
52 | autoPlayInterval: Duration(seconds: 10),
53 | autoPlayAnimationDuration: Duration(milliseconds: 1000),
54 | autoPlayCurve: Curves.fastOutSlowIn,
55 | enlargeCenterPage: true,
56 | scrollDirection: Axis.horizontal,
57 | onPageChanged: (index, reason) {
58 | setState(() {
59 | _current = index;
60 | });
61 | },
62 | ),
63 | items: imgList.map((imgUrl) {
64 | return Builder(
65 | builder: (BuildContext context) {
66 | return Row(
67 | children: [
68 | Container(
69 | height: _size.height * .16,
70 | width: _size.width * .7,
71 | decoration: BoxDecoration(
72 | borderRadius: BorderRadius.circular(8.0),
73 | image: DecorationImage(
74 | image: NetworkImage(imgList[_current]),
75 | fit: BoxFit.cover,
76 | ),
77 | ),
78 | ),
79 | SizedBox(
80 | width: 8.0,
81 | ),
82 | Container(
83 | height: _size.height * .165,
84 | width: _size.width * .275,
85 | decoration: BoxDecoration(
86 | borderRadius: BorderRadius.circular(8.0),
87 | image: DecorationImage(
88 | image: _current == 4
89 | ? NetworkImage(imgList[0])
90 | : NetworkImage(imgList[_current + 1]),
91 | fit: BoxFit.cover,
92 | ),
93 | ),
94 | ),
95 | ],
96 | );
97 | },
98 | );
99 | }).toList(),
100 | ),
101 | );
102 | }
103 | }
104 |
--------------------------------------------------------------------------------
/lib/src/pages/market/market_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:binance/src/pages/market/pages/favourite_page.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_icons/flutter_icons.dart';
4 | import 'package:font_awesome_flutter/font_awesome_flutter.dart';
5 |
6 | class MarketPage extends StatefulWidget {
7 | @override
8 | State createState() => _MarketPageState();
9 | }
10 |
11 | class _MarketPageState extends State
12 | with SingleTickerProviderStateMixin {
13 | TabController _tabController;
14 |
15 | var _pages = [
16 | FavouritePage(),
17 | FavouritePage(),
18 | FavouritePage(),
19 | FavouritePage(),
20 | FavouritePage(),
21 | ];
22 |
23 | @override
24 | void initState() {
25 | super.initState();
26 | _tabController = new TabController(
27 | vsync: this,
28 | length: 5,
29 | initialIndex: 0,
30 | );
31 | }
32 |
33 | @override
34 | Widget build(BuildContext context) {
35 | final _size = MediaQuery.of(context).size;
36 | return Scaffold(
37 | appBar: AppBar(
38 | centerTitle: false,
39 | brightness: Brightness.dark,
40 | elevation: .0,
41 | backgroundColor: Color(0xFF1e1e1e).withOpacity(.98),
42 | title: Text(
43 | 'Market',
44 | style: TextStyle(
45 | fontSize: _size.width / 16.0,
46 | color: Colors.grey.shade100,
47 | fontWeight: FontWeight.w600,
48 | ),
49 | ),
50 | actions: [
51 | IconButton(
52 | onPressed: () => null,
53 | icon: Icon(
54 | Feather.search,
55 | color: Colors.grey.shade100,
56 | size: _size.width / 16.0,
57 | ),
58 | ),
59 | SizedBox(
60 | width: 4.0,
61 | ),
62 | ],
63 | bottom: TabBar(
64 | isScrollable: true,
65 | controller: _tabController,
66 | labelColor: Color(0xFFFFD500),
67 | indicatorColor: Color(0xFFFFD500),
68 | unselectedLabelColor: Colors.grey,
69 | indicatorSize: TabBarIndicatorSize.tab,
70 | indicatorWeight: 1.75,
71 | indicatorPadding: EdgeInsets.symmetric(horizontal: 28.0),
72 | labelStyle: TextStyle(
73 | fontWeight: FontWeight.w500,
74 | fontSize: _size.width / 28.0,
75 | ),
76 | unselectedLabelStyle: TextStyle(
77 | fontWeight: FontWeight.w500,
78 | fontSize: _size.width / 28.0,
79 | ),
80 | tabs: [
81 | Container(
82 | width: _size.width * .2,
83 | child: Tab(
84 | text: 'Favourites',
85 | ),
86 | ),
87 | Container(
88 | width: _size.width * .15,
89 | child: Tab(
90 | text: 'Cross',
91 | ),
92 | ),
93 | Container(
94 | width: _size.width * .15,
95 | child: Tab(
96 | text: 'Isolated',
97 | ),
98 | ),
99 | Container(
100 | width: _size.width * .15,
101 | child: Tab(
102 | text: 'Options',
103 | ),
104 | ),
105 | Container(
106 | width: _size.width * .15,
107 | child: Tab(
108 | text: 'BTC',
109 | ),
110 | ),
111 | ],
112 | ),
113 | ),
114 | body: Container(
115 | color: Color(0xFF141414),
116 | child: Column(
117 | children: [
118 | SizedBox(
119 | height: 2.5,
120 | ),
121 | _buildTopBar(context),
122 | Expanded(
123 | child: TabBarView(
124 | controller: _tabController,
125 | children: _pages.map((Widget tab) {
126 | return tab;
127 | }).toList(),
128 | ),
129 | ),
130 | ],
131 | ),
132 | ),
133 | );
134 | }
135 |
136 | Widget _buildTopBar(context) {
137 | final _size = MediaQuery.of(context).size;
138 | return Container(
139 | padding: EdgeInsets.fromLTRB(6.0, 8.0, 6.0, 8.0),
140 | child: Row(
141 | children: [
142 | Expanded(
143 | flex: 2,
144 | child: Text(
145 | 'Pairs',
146 | style: TextStyle(
147 | fontSize: _size.width / 26.0,
148 | color: Colors.grey.shade400,
149 | ),
150 | ),
151 | ),
152 | Expanded(
153 | flex: 1,
154 | child: Row(
155 | mainAxisAlignment: MainAxisAlignment.center,
156 | children: [
157 | Text(
158 | 'Last Price',
159 | style: TextStyle(
160 | fontSize: _size.width / 30.0,
161 | color: Colors.grey.shade400,
162 | fontWeight: FontWeight.w400,
163 | ),
164 | ),
165 | SizedBox(
166 | width: 4.0,
167 | ),
168 | Icon(
169 | FontAwesomeIcons.sort,
170 | color: Colors.grey.shade400,
171 | size: _size.width / 26.0,
172 | ),
173 | ],
174 | ),
175 | ),
176 | Expanded(
177 | flex: 1,
178 | child: Row(
179 | mainAxisAlignment: MainAxisAlignment.end,
180 | children: [
181 | Text(
182 | 'Change',
183 | style: TextStyle(
184 | fontSize: _size.width / 30.0,
185 | color: Colors.grey.shade400,
186 | fontWeight: FontWeight.w400,
187 | ),
188 | ),
189 | SizedBox(
190 | width: 4.0,
191 | ),
192 | Icon(
193 | FontAwesomeIcons.sort,
194 | color: Colors.grey.shade400,
195 | size: _size.width / 26.0,
196 | ),
197 | ],
198 | ),
199 | ),
200 | ],
201 | ),
202 | );
203 | }
204 | }
205 |
--------------------------------------------------------------------------------
/lib/src/pages/market/pages/favourite_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class FavouritePage extends StatefulWidget {
4 | @override
5 | State createState() => _FavouritePageState();
6 | }
7 |
8 | class _FavouritePageState extends State {
9 | @override
10 | Widget build(BuildContext context) {
11 | return Container(
12 | child: ListView.builder(
13 | itemCount: 10,
14 | itemBuilder: (context, index) {
15 | return _buildFavouriteCard(context);
16 | },
17 | ),
18 | );
19 | }
20 |
21 | Widget _buildFavouriteCard(context) {
22 | final _size = MediaQuery.of(context).size;
23 | return Container(
24 | padding: EdgeInsets.fromLTRB(6.0, 8.0, 6.0, 8.0),
25 | child: Row(
26 | children: [
27 | Expanded(
28 | flex: 2,
29 | child: Column(
30 | crossAxisAlignment: CrossAxisAlignment.start,
31 | children: [
32 | RichText(
33 | text: TextSpan(
34 | children: [
35 | TextSpan(
36 | text: 'JEX/',
37 | style: TextStyle(
38 | fontSize: _size.width / 26.0,
39 | color: Colors.white,
40 | fontWeight: FontWeight.bold,
41 | ),
42 | ),
43 | TextSpan(
44 | text: 'BTC',
45 | style: TextStyle(
46 | fontSize: _size.width / 28.0,
47 | color: Colors.grey.shade200,
48 | fontWeight: FontWeight.w400,
49 | ),
50 | ),
51 | ],
52 | ),
53 | ),
54 | SizedBox(
55 | height: 2.5,
56 | ),
57 | Text(
58 | 'Volume: 72.837',
59 | style: TextStyle(
60 | fontSize: _size.width / 28.0,
61 | color: Colors.grey.shade400,
62 | ),
63 | ),
64 | ],
65 | ),
66 | ),
67 | Expanded(
68 | flex: 1,
69 | child: Row(
70 | mainAxisAlignment: MainAxisAlignment.center,
71 | children: [
72 | Text(
73 | '0.000000031',
74 | style: TextStyle(
75 | fontSize: _size.width / 28.0,
76 | color: Colors.grey.shade300,
77 | fontWeight: FontWeight.w400,
78 | ),
79 | ),
80 | ],
81 | ),
82 | ),
83 | Expanded(
84 | flex: 1,
85 | child: Row(
86 | mainAxisAlignment: MainAxisAlignment.end,
87 | children: [
88 | Container(
89 | padding: EdgeInsets.fromLTRB(16.0, 12.0, 8.0, 12.0),
90 | decoration: BoxDecoration(
91 | color: Color(0xFF00FF80).withOpacity(.15),
92 | borderRadius: BorderRadius.circular(4.0),
93 | ),
94 | child: Text(
95 | '+3.33%',
96 | style: TextStyle(
97 | fontSize: _size.width / 30.0,
98 | color: Color(0xFF00FF80),
99 | fontWeight: FontWeight.w400,
100 | ),
101 | ),
102 | ),
103 | ],
104 | ),
105 | ),
106 | ],
107 | ),
108 | );
109 | }
110 | }
111 |
--------------------------------------------------------------------------------
/lib/src/pages/navigation/navigation.dart:
--------------------------------------------------------------------------------
1 | import 'package:binance/src/pages/home/home_page.dart';
2 | import 'package:binance/src/pages/market/market_page.dart';
3 | import 'package:binance/src/pages/options/options_page.dart';
4 | import 'package:flutter/material.dart';
5 | import 'package:flutter_icons/flutter_icons.dart';
6 |
7 | class Navigation extends StatefulWidget {
8 | @override
9 | State createState() => _NavigationState();
10 | }
11 |
12 | class _NavigationState extends State {
13 | int currentPage = 0;
14 | var _pages = [
15 | HomePage(),
16 | MarketPage(),
17 | OptionsPage(),
18 | OptionsPage(),
19 | OptionsPage(),
20 | ];
21 |
22 | @override
23 | Widget build(BuildContext context) {
24 | final Size _size = MediaQuery.of(context).size;
25 | return Scaffold(
26 | extendBody: true,
27 | body: Scaffold(
28 | bottomNavigationBar: BottomNavigationBar(
29 | elevation: .0,
30 | backgroundColor: Color(0xFF1e1e1e).withOpacity(.98),
31 | currentIndex: currentPage,
32 | onTap: (i) {
33 | setState(() {
34 | currentPage = i;
35 | });
36 | },
37 | type: BottomNavigationBarType.fixed,
38 | iconSize: _size.width / 15.0,
39 | showSelectedLabels: false,
40 | showUnselectedLabels: false,
41 | selectedItemColor: Color(0xFFFFD500),
42 | unselectedItemColor: Colors.grey.shade400,
43 | items: [
44 | BottomNavigationBarItem(
45 | icon: Icon(Feather.home), title: Text("Dashboard")),
46 | BottomNavigationBarItem(
47 | icon: Icon(Feather.bar_chart_2), title: Text("Activity")),
48 | BottomNavigationBarItem(
49 | icon: Icon(Feather.trending_down), title: Text("Trend")),
50 | BottomNavigationBarItem(
51 | icon: Icon(Feather.trending_up), title: Text("Trend")),
52 | BottomNavigationBarItem(
53 | icon: Icon(Feather.activity), title: Text("Coins")),
54 | ],
55 | ),
56 | body: _pages[currentPage],
57 | ),
58 | );
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/lib/src/pages/options/options_page.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'dart:convert';
3 | import 'dart:ui';
4 | import 'package:binance/src/pages/options/widgets/drawer_layout.dart';
5 | import 'package:flutter/material.dart';
6 | import 'package:flutter_icons/flutter_icons.dart';
7 | import 'package:font_awesome_flutter/font_awesome_flutter.dart';
8 | import 'package:http/http.dart' as http;
9 |
10 | class OptionsPage extends StatefulWidget {
11 | @override
12 | State createState() => _OptionsPageState();
13 | }
14 |
15 | class _OptionsPageState extends State
16 | with SingleTickerProviderStateMixin {
17 | TabController _tabController;
18 | final _scaffoldKey = GlobalKey();
19 | StreamController _postsController;
20 | Timer timer;
21 | String _api =
22 | 'https://min-api.cryptocompare.com/data/generateAvg?fsym=BTC&tsym=USD&e=Kraken&api_key=5b5a7685ff31b6033f79ffc43c778605d47ca3a84a7d690ec510149ccb0e7f50';
23 |
24 | String _action = 'Buy';
25 | double _valueCustom = 9.9902;
26 |
27 | List sampleData = List.generate(
28 | 10,
29 | (int index) => {
30 | "open": 100.0,
31 | "high": 500.0,
32 | "low": 50.0,
33 | "close": 100,
34 | "volumeto": 5000.0,
35 | },
36 | );
37 |
38 | Future fetchPost() async {
39 | final response = await http.get(Uri.parse(_api));
40 |
41 | if (response.statusCode == 200) {
42 | return json.decode(response.body);
43 | } else {
44 | throw Exception('Failed to load post');
45 | }
46 | }
47 |
48 | loadPosts() async {
49 | fetchPost().then((res) async {
50 | _postsController.add(res);
51 | return res;
52 | });
53 | }
54 |
55 | Future _handleRefresh() async {
56 | fetchPost().then((res) async {
57 | _postsController.add(res);
58 | setState(() {
59 | sampleData.add(
60 | {
61 | "open": double.parse(res['RAW']['PRICE'].toString()),
62 | "high": double.parse(res['RAW']['PRICE'].toString()),
63 | "low": double.parse(res['RAW']['PRICE'].toString()),
64 | "close": double.parse(res['RAW']['PRICE'].toString()),
65 | "volumeto": double.parse(res['RAW']['PRICE'].toString()),
66 | },
67 | );
68 | sampleData.removeAt(0);
69 | print(sampleData);
70 | });
71 | return null;
72 | });
73 | }
74 |
75 | startTimer() {
76 | timer = Timer.periodic(Duration(milliseconds: 200), (t) {
77 | setState(() {
78 | _handleRefresh();
79 | });
80 | });
81 | }
82 |
83 | var _pages = [
84 | Container(),
85 | Container(),
86 | Container(),
87 | Container(),
88 | ];
89 |
90 | @override
91 | void initState() {
92 | _postsController = new StreamController();
93 | loadPosts();
94 | startTimer();
95 | super.initState();
96 | _tabController = new TabController(
97 | vsync: this,
98 | length: 4,
99 | initialIndex: 0,
100 | );
101 | }
102 |
103 | @override
104 | void dispose() {
105 | timer.cancel();
106 | super.dispose();
107 | }
108 |
109 | @override
110 | Widget build(BuildContext context) {
111 | final _size = MediaQuery.of(context).size;
112 | return Scaffold(
113 | key: _scaffoldKey,
114 | drawer: Container(
115 | width: _size.width * .7,
116 | child: Drawer(
117 | child: DrawerLayout(),
118 | ),
119 | ),
120 | appBar: AppBar(
121 | centerTitle: false,
122 | brightness: Brightness.dark,
123 | elevation: .0,
124 | backgroundColor: Color(0xFF1e1e1e).withOpacity(.98),
125 | leading: IconButton(
126 | onPressed: () => _scaffoldKey.currentState.openDrawer(),
127 | icon: Icon(
128 | Feather.align_left,
129 | color: Colors.grey.shade100,
130 | size: _size.width / 15.0,
131 | ),
132 | ),
133 | title: Text(
134 | 'ETH0107CALLW',
135 | style: TextStyle(
136 | fontSize: _size.width / 18.0,
137 | color: Colors.grey.shade100,
138 | fontWeight: FontWeight.w600,
139 | ),
140 | ),
141 | actions: [
142 | IconButton(
143 | onPressed: () => null,
144 | icon: Icon(
145 | Feather.bar_chart_2,
146 | color: Colors.grey.shade50,
147 | size: _size.width / 15.0,
148 | ),
149 | ),
150 | SizedBox(
151 | width: 4.0,
152 | ),
153 | ],
154 | bottom: TabBar(
155 | isScrollable: true,
156 | controller: _tabController,
157 | labelColor: Color(0xFFFFD500),
158 | indicatorColor: Color(0xFFFFD500),
159 | unselectedLabelColor: Colors.grey,
160 | indicatorSize: TabBarIndicatorSize.tab,
161 | indicatorWeight: 1.75,
162 | indicatorPadding: EdgeInsets.symmetric(horizontal: 28.0),
163 | labelStyle: TextStyle(
164 | fontWeight: FontWeight.w500,
165 | fontSize: _size.width / 28.0,
166 | ),
167 | unselectedLabelStyle: TextStyle(
168 | fontWeight: FontWeight.w500,
169 | fontSize: _size.width / 28.0,
170 | ),
171 | tabs: [
172 | Container(
173 | width: _size.width * .15,
174 | child: Tab(
175 | text: 'Trade',
176 | ),
177 | ),
178 | Container(
179 | width: _size.width * .15,
180 | child: Tab(
181 | text: 'Short',
182 | ),
183 | ),
184 | Container(
185 | width: _size.width * .15,
186 | child: Tab(
187 | text: 'Position',
188 | ),
189 | ),
190 | Container(
191 | width: _size.width * .15,
192 | child: Tab(
193 | text: 'History',
194 | ),
195 | ),
196 | ],
197 | ),
198 | ),
199 | body: Container(
200 | color: Color(0xFF141414),
201 | child: SingleChildScrollView(
202 | child: Column(
203 | crossAxisAlignment: CrossAxisAlignment.start,
204 | children: [
205 | SizedBox(
206 | height: 4.0,
207 | ),
208 | _buildTopBar(context),
209 | _buildValueOfTopBar(context),
210 | // Container(
211 | // height: _size.height * .2,
212 | // margin: EdgeInsets.symmetric(vertical: 12.0),
213 | // padding: EdgeInsets.symmetric(horizontal: 20.0),
214 | // child: OHLCVGraph(
215 | // data: sampleData,
216 | // enableGridLines: true,
217 | // volumeProp: .001,
218 | // fallbackHeight: 200.0,
219 | // gridLineAmount: 6,
220 | // lineWidth: .8,
221 | // ),
222 | // ),
223 | Container(
224 | padding: EdgeInsets.only(
225 | left: 12.0,
226 | right: 6.0,
227 | bottom: 24.0,
228 | top: 12.0,
229 | ),
230 | child: Row(
231 | children: [
232 | _buildLeftColumn(context),
233 | SizedBox(width: 16.0),
234 | _buildRightColumn(context),
235 | ],
236 | ),
237 | ),
238 |
239 | Container(
240 | height: 10.0,
241 | color: Color(0xFF1e1e1e),
242 | ),
243 |
244 | // Build Active Orders
245 | Container(
246 | height: _size.height * .4,
247 | width: _size.width,
248 | child: Column(
249 | crossAxisAlignment: CrossAxisAlignment.start,
250 | mainAxisAlignment: MainAxisAlignment.start,
251 | children: [
252 | SizedBox(
253 | height: 8.0,
254 | ),
255 | Padding(
256 | padding: EdgeInsets.symmetric(
257 | horizontal: 14.0, vertical: 16.0),
258 | child: Text(
259 | 'Active Orders',
260 | style: TextStyle(
261 | fontSize: _size.width / 20.0,
262 | color: Colors.white,
263 | fontWeight: FontWeight.w400,
264 | ),
265 | ),
266 | ),
267 | Divider(
268 | color: Colors.grey.shade700,
269 | thickness: .35,
270 | height: .35,
271 | ),
272 | Expanded(
273 | child: Container(
274 | child: Center(
275 | child: Row(
276 | mainAxisAlignment: MainAxisAlignment.center,
277 | children: [
278 | Icon(
279 | Feather.file,
280 | color: Colors.grey.shade400,
281 | size: _size.width / 16.8,
282 | ),
283 | SizedBox(
284 | width: 8.0,
285 | ),
286 | Padding(
287 | padding: EdgeInsets.only(top: 4.0),
288 | child: Text(
289 | 'No order',
290 | style: TextStyle(
291 | color: Colors.grey.shade200,
292 | fontSize: _size.width / 20.5,
293 | fontWeight: FontWeight.w400,
294 | ),
295 | ),
296 | ),
297 | ],
298 | ),
299 | ),
300 | ),
301 | ),
302 | ],
303 | ),
304 | ),
305 | ],
306 | ),
307 | ),
308 | ),
309 | );
310 | }
311 |
312 | Widget _buildTopBar(context) {
313 | final _size = MediaQuery.of(context).size;
314 | return Container(
315 | padding: EdgeInsets.fromLTRB(12.0, 8.0, 6.0, 8.0),
316 | child: Row(
317 | children: [
318 | Expanded(
319 | flex: 4,
320 | child: Text(
321 | 'Strike Price',
322 | style: TextStyle(
323 | fontSize: _size.width / 30.0,
324 | color: Colors.grey,
325 | ),
326 | ),
327 | ),
328 | Expanded(
329 | flex: 4,
330 | child: Row(
331 | mainAxisAlignment: MainAxisAlignment.center,
332 | children: [
333 | Text(
334 | 'Spot Price',
335 | style: TextStyle(
336 | fontSize: _size.width / 30.0,
337 | color: Colors.grey.shade400,
338 | fontWeight: FontWeight.w400,
339 | ),
340 | ),
341 | ],
342 | ),
343 | ),
344 | Expanded(
345 | flex: 3,
346 | child: Row(
347 | mainAxisAlignment: MainAxisAlignment.start,
348 | children: [
349 | Text(
350 | 'Before Enpiry',
351 | style: TextStyle(
352 | fontSize: _size.width / 30.0,
353 | color: Colors.grey.shade400,
354 | fontWeight: FontWeight.w400,
355 | ),
356 | ),
357 | SizedBox(
358 | width: 4.0,
359 | ),
360 | Icon(
361 | FontAwesomeIcons.sortDown,
362 | color: Colors.grey.shade400,
363 | size: _size.width / 26.0,
364 | ),
365 | ],
366 | ),
367 | ),
368 | ],
369 | ),
370 | );
371 | }
372 |
373 | Widget _buildValueOfTopBar(context) {
374 | final _size = MediaQuery.of(context).size;
375 | return Container(
376 | padding: EdgeInsets.fromLTRB(12.0, 2.0, 6.0, 8.0),
377 | child: Row(
378 | children: [
379 | Expanded(
380 | flex: 4,
381 | child: Text(
382 | '750.04',
383 | style: TextStyle(
384 | fontSize: _size.width / 26.0,
385 | color: Colors.white,
386 | fontWeight: FontWeight.bold,
387 | ),
388 | ),
389 | ),
390 | Expanded(
391 | flex: 4,
392 | child: Row(
393 | mainAxisAlignment: MainAxisAlignment.center,
394 | children: [
395 | Text(
396 | '1112.24',
397 | style: TextStyle(
398 | fontSize: _size.width / 26.0,
399 | color: Colors.white,
400 | fontWeight: FontWeight.bold,
401 | ),
402 | ),
403 | ],
404 | ),
405 | ),
406 | Expanded(
407 | flex: 3,
408 | child: Row(
409 | mainAxisAlignment: MainAxisAlignment.start,
410 | children: [
411 | Text(
412 | '1 Day',
413 | style: TextStyle(
414 | fontSize: _size.width / 26.0,
415 | color: Colors.white,
416 | fontWeight: FontWeight.bold,
417 | ),
418 | ),
419 | ],
420 | ),
421 | ),
422 | ],
423 | ),
424 | );
425 | }
426 |
427 | Widget _buildLeftColumn(context) {
428 | final _size = MediaQuery.of(context).size;
429 | return Expanded(
430 | child: Column(
431 | crossAxisAlignment: CrossAxisAlignment.start,
432 | mainAxisAlignment: MainAxisAlignment.start,
433 | children: [
434 | Container(
435 | child: Row(
436 | children: [
437 | _buildAction(context, 'Buy', true),
438 | _buildAction(context, 'Sell', false),
439 | ],
440 | ),
441 | ),
442 | SizedBox(
443 | height: 12.0,
444 | ),
445 | Container(
446 | padding: EdgeInsets.fromLTRB(6.0, 8.0, 4.0, 8.0),
447 | decoration: BoxDecoration(
448 | border: Border.all(
449 | color: Colors.grey.shade600,
450 | width: .5,
451 | ),
452 | borderRadius: BorderRadius.circular(4.0),
453 | ),
454 | child: Row(
455 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
456 | children: [
457 | Text(
458 | 'Custom',
459 | style: TextStyle(
460 | fontSize: _size.width / 32.0,
461 | color: Colors.grey.shade400,
462 | fontWeight: FontWeight.w300,
463 | ),
464 | ),
465 | Padding(
466 | padding: EdgeInsets.only(
467 | bottom: 6.0,
468 | ),
469 | child: Icon(
470 | FontAwesomeIcons.sortDown,
471 | color: Colors.grey.shade400,
472 | size: _size.width / 26.0,
473 | ),
474 | ),
475 | ],
476 | ),
477 | ),
478 | SizedBox(
479 | height: 12.0,
480 | ),
481 | _buildCustomValue(context),
482 | SizedBox(
483 | height: 12.0,
484 | ),
485 | Container(
486 | padding: EdgeInsets.fromLTRB(.0, 8.0, 4.0, 8.0),
487 | child: Row(
488 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
489 | children: [
490 | Text(
491 | 'Available',
492 | style: TextStyle(
493 | fontSize: _size.width / 32.0,
494 | color: Colors.grey.shade400,
495 | fontWeight: FontWeight.w300,
496 | ),
497 | ),
498 | Text(
499 | '0.00USDT',
500 | style: TextStyle(
501 | fontSize: _size.width / 32.0,
502 | color: Colors.grey.shade400,
503 | fontWeight: FontWeight.w400,
504 | ),
505 | ),
506 | ],
507 | ),
508 | ),
509 | SizedBox(
510 | height: 4.0,
511 | ),
512 | _buildCustomValue(context),
513 | SizedBox(
514 | height: 12.0,
515 | ),
516 | Row(
517 | children: [
518 | _buildPercentCard(context, '25%'),
519 | SizedBox(width: 4.0),
520 | _buildPercentCard(context, '50%'),
521 | SizedBox(width: 4.0),
522 | _buildPercentCard(context, '75%'),
523 | SizedBox(width: 4.0),
524 | _buildPercentCard(context, '100%'),
525 | ],
526 | ),
527 | SizedBox(
528 | height: 12.0,
529 | ),
530 | Container(
531 | padding: EdgeInsets.symmetric(vertical: 12.0),
532 | decoration: BoxDecoration(
533 | borderRadius: BorderRadius.circular(4.0),
534 | color: Color(0xFF32C17A),
535 | ),
536 | alignment: Alignment.center,
537 | child: Text(
538 | _action,
539 | style: TextStyle(
540 | color: Colors.white,
541 | fontWeight: FontWeight.w400,
542 | fontSize: _size.width / 24.0,
543 | ),
544 | ),
545 | ),
546 | ],
547 | ));
548 | }
549 |
550 | Widget _buildAction(context, title, left) {
551 | final _size = MediaQuery.of(context).size;
552 | return Expanded(
553 | child: GestureDetector(
554 | onTap: () {
555 | setState(() {
556 | _action = title;
557 | });
558 | },
559 | child: Container(
560 | padding: EdgeInsets.symmetric(vertical: 12.0),
561 | decoration: BoxDecoration(
562 | color: _action == title ? Colors.amber : Colors.white10,
563 | borderRadius: BorderRadius.horizontal(
564 | left: Radius.circular(
565 | left ? 2.5 : .0,
566 | ),
567 | right: Radius.circular(
568 | left ? .0 : 2.5,
569 | ),
570 | ),
571 | ),
572 | alignment: Alignment.center,
573 | child: Text(
574 | title,
575 | style: TextStyle(
576 | fontSize: _size.width / 28.0,
577 | color: Colors.white,
578 | fontWeight: FontWeight.w600,
579 | ),
580 | ),
581 | ),
582 | ),
583 | );
584 | }
585 |
586 | Widget _buildCustomValue(context) {
587 | final _size = MediaQuery.of(context).size;
588 | return Container(
589 | child: Row(
590 | children: [
591 | Expanded(
592 | flex: 1,
593 | child: GestureDetector(
594 | onTap: () {
595 | setState(() {
596 | _valueCustom -= .1;
597 | });
598 | },
599 | child: Container(
600 | height: 36.0,
601 | decoration: BoxDecoration(
602 | color: Colors.white24,
603 | borderRadius: BorderRadius.horizontal(
604 | left: Radius.circular(
605 | 6.0,
606 | ),
607 | ),
608 | border: Border.all(
609 | color: Colors.white24,
610 | width: .4,
611 | ),
612 | ),
613 | child: Icon(
614 | Feather.minus,
615 | color: Colors.grey.shade200,
616 | size: _size.width / 20.0,
617 | ),
618 | ),
619 | ),
620 | ),
621 | Expanded(
622 | flex: 2,
623 | child: Container(
624 | height: 36.0,
625 | decoration: BoxDecoration(
626 | border: Border.symmetric(
627 | horizontal: BorderSide(
628 | color: Colors.grey.shade400,
629 | width: .25,
630 | ),
631 | ),
632 | ),
633 | alignment: Alignment.center,
634 | child: Text(
635 | '${_valueCustom.toStringAsFixed(4)}',
636 | style: TextStyle(
637 | color: Colors.grey.shade400,
638 | fontWeight: FontWeight.w300,
639 | fontSize: _size.width / 30.0,
640 | ),
641 | ),
642 | ),
643 | ),
644 | Expanded(
645 | flex: 1,
646 | child: GestureDetector(
647 | onTap: () {
648 | setState(() {
649 | _valueCustom += .1;
650 | });
651 | },
652 | child: Container(
653 | height: 36.0,
654 | decoration: BoxDecoration(
655 | color: Colors.white24,
656 | borderRadius: BorderRadius.horizontal(
657 | right: Radius.circular(
658 | 6.0,
659 | ),
660 | ),
661 | border: Border.all(
662 | color: Colors.white24,
663 | width: .4,
664 | ),
665 | ),
666 | child: Icon(
667 | Feather.plus,
668 | color: Colors.grey.shade200,
669 | size: _size.width / 20.0,
670 | ),
671 | ),
672 | ),
673 | ),
674 | ],
675 | ),
676 | );
677 | }
678 |
679 | Widget _buildPercentCard(context, title) {
680 | final _size = MediaQuery.of(context).size;
681 | return Expanded(
682 | child: Container(
683 | padding: EdgeInsets.symmetric(vertical: 8.0),
684 | decoration: BoxDecoration(
685 | border: Border.all(
686 | color: Colors.white38,
687 | width: .4,
688 | ),
689 | ),
690 | alignment: Alignment.center,
691 | child: Text(
692 | title,
693 | style: TextStyle(
694 | color: Colors.white70,
695 | fontSize: _size.width / 40.0,
696 | fontWeight: FontWeight.w300,
697 | ),
698 | ),
699 | ),
700 | );
701 | }
702 |
703 | Widget _buildRightColumn(context) {
704 | final _size = MediaQuery.of(context).size;
705 | return Expanded(
706 | child: Column(
707 | crossAxisAlignment: CrossAxisAlignment.start,
708 | children: [
709 | Container(
710 | padding: EdgeInsets.only(bottom: 8.0),
711 | child: Row(
712 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
713 | children: [
714 | Text(
715 | 'Price',
716 | style: TextStyle(
717 | fontSize: _size.width / 28.8,
718 | color: Colors.grey.shade300,
719 | fontWeight: FontWeight.w400,
720 | ),
721 | ),
722 | Text(
723 | 'Amount',
724 | style: TextStyle(
725 | fontSize: _size.width / 28.8,
726 | color: Colors.grey.shade400,
727 | fontWeight: FontWeight.w400,
728 | ),
729 | ),
730 | ],
731 | ),
732 | ),
733 | _buildValuePriceLine(context, '10.1682', '312', Color(0xFFFF3232)),
734 | _buildValuePriceLine(context, '9.4289', '1112', Color(0xFFFF3232)),
735 | _buildValuePriceLine(context, '3.3152', '122', Color(0xFFFF3232)),
736 | _buildValuePriceLine(context, '7.1482', '512', Color(0xFFFF3232)),
737 | _buildValuePriceLine(context, '11.282', '212', Color(0xFFFF3232)),
738 | Container(
739 | padding: EdgeInsets.only(bottom: 16.0, top: 20.0),
740 | alignment: Alignment.center,
741 | child: Text(
742 | '9.5129 ≈ \$9.51',
743 | style: TextStyle(
744 | fontSize: _size.width / 28.5,
745 | color: Colors.grey.shade100,
746 | fontWeight: FontWeight.w500,
747 | ),
748 | ),
749 | ),
750 | _buildValuePriceLine(context, '10.1682', '312', Color(0xFF00FF80)),
751 | _buildValuePriceLine(context, '9.4289', '1112', Color(0xFF00FF80)),
752 | _buildValuePriceLine(context, '3.3152', '122', Color(0xFF00FF80)),
753 | _buildValuePriceLine(context, '7.1482', '512', Color(0xFF00FF80)),
754 | _buildValuePriceLine(context, '11.282', '212', Color(0xFF00FF80)),
755 | ],
756 | ),
757 | );
758 | }
759 |
760 | Widget _buildValuePriceLine(context, price, amount, color) {
761 | final _size = MediaQuery.of(context).size;
762 | return Padding(
763 | padding: EdgeInsets.only(bottom: 8.0),
764 | child: Row(
765 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
766 | children: [
767 | Text(
768 | price,
769 | style: TextStyle(
770 | fontSize: _size.width / 30.0,
771 | color: color,
772 | fontWeight: FontWeight.w500,
773 | ),
774 | ),
775 | Text(
776 | amount,
777 | style: TextStyle(
778 | fontSize: _size.width / 30.0,
779 | color: Colors.grey.shade200,
780 | fontWeight: FontWeight.w400,
781 | ),
782 | ),
783 | ],
784 | ),
785 | );
786 | }
787 | }
788 |
--------------------------------------------------------------------------------
/lib/src/pages/options/widgets/drawer_layout.dart:
--------------------------------------------------------------------------------
1 | import 'package:binance/src/data/type_coin.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class DrawerLayout extends StatefulWidget {
5 | @override
6 | State createState() => _DrawerLayoutState();
7 | }
8 |
9 | class _DrawerLayoutState extends State
10 | with SingleTickerProviderStateMixin {
11 | TabController _tabController;
12 |
13 | List _listData = [];
14 |
15 | @override
16 | void initState() {
17 | super.initState();
18 | _listData.addAll(btcs);
19 | _tabController = new TabController(
20 | vsync: this,
21 | length: 5,
22 | initialIndex: 0,
23 | );
24 | }
25 |
26 | @override
27 | Widget build(BuildContext context) {
28 | final _size = MediaQuery.of(context).size;
29 | return Container(
30 | color: Color(0xFF1e1e1e),
31 | child: ListView(
32 | children: [
33 | SizedBox(
34 | height: _size.height / 30.0,
35 | ),
36 | Padding(
37 | padding: EdgeInsets.only(left: 12.0),
38 | child: Text(
39 | 'Options',
40 | style: TextStyle(
41 | color: Colors.grey.shade50,
42 | fontSize: _size.width / 24.0,
43 | fontWeight: FontWeight.w400,
44 | ),
45 | ),
46 | ),
47 | SizedBox(height: 4.0),
48 | Container(
49 | child: TabBar(
50 | onTap: (index) {
51 | setState(() {
52 | _listData.clear();
53 | if (index % 2 == 0) {
54 | _listData.addAll(btcs);
55 | } else {
56 | _listData.addAll(eths);
57 | }
58 | });
59 | },
60 | isScrollable: true,
61 | controller: _tabController,
62 | labelColor: Color(0xFFFFD500),
63 | indicatorColor: Color(0xFFFFD500),
64 | unselectedLabelColor: Colors.grey,
65 | indicatorSize: TabBarIndicatorSize.tab,
66 | indicatorWeight: 1.75,
67 | indicatorPadding: EdgeInsets.symmetric(horizontal: 28.0),
68 | labelStyle: TextStyle(
69 | fontWeight: FontWeight.w500,
70 | fontSize: _size.width / 28.0,
71 | ),
72 | unselectedLabelStyle: TextStyle(
73 | fontWeight: FontWeight.w500,
74 | fontSize: _size.width / 28.0,
75 | ),
76 | tabs: [
77 | Container(
78 | width: _size.width * .1,
79 | child: Tab(
80 | text: 'BTC',
81 | ),
82 | ),
83 | Container(
84 | width: _size.width * .1,
85 | child: Tab(
86 | text: 'ETH',
87 | ),
88 | ),
89 | Container(
90 | width: _size.width * .1,
91 | child: Tab(
92 | text: 'EOS',
93 | ),
94 | ),
95 | Container(
96 | width: _size.width * .1,
97 | child: Tab(
98 | text: 'CTC',
99 | ),
100 | ),
101 | Container(
102 | width: _size.width * .1,
103 | child: Tab(
104 | text: 'BNB',
105 | ),
106 | ),
107 | ],
108 | ),
109 | ),
110 | SizedBox(height: 12.0),
111 | ..._listData
112 | .map(
113 | (item) => Padding(
114 | padding: EdgeInsets.only(left: 12.0, bottom: 16.0),
115 | child: Row(
116 | children: [
117 | Text(
118 | item,
119 | style: TextStyle(
120 | color: Colors.white,
121 | fontSize: _size.width / 23.5,
122 | fontWeight: FontWeight.w400,
123 | ),
124 | ),
125 | ],
126 | ),
127 | ),
128 | )
129 | .toList(),
130 | ],
131 | ),
132 | );
133 | }
134 | }
135 |
--------------------------------------------------------------------------------
/lib/src/pages/options/widgets/line_chart.dart:
--------------------------------------------------------------------------------
1 | import 'package:fl_chart/fl_chart.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:intl/intl.dart';
4 |
5 | class LineChartSample2 extends StatefulWidget {
6 | @override
7 | _LineChartSample2State createState() => _LineChartSample2State();
8 | }
9 |
10 | class _LineChartSample2State extends State {
11 | DateFormat format = new DateFormat('dd/MM');
12 | List gradientColors = [
13 | const Color(0xff23b6e6),
14 | const Color(0xff02d39a),
15 | ];
16 |
17 | bool showAvg = false;
18 |
19 | @override
20 | Widget build(BuildContext context) {
21 | final _size = MediaQuery.of(context).size;
22 | return Stack(
23 | children: [
24 | AspectRatio(
25 | aspectRatio: 2.4,
26 | child: Container(
27 | decoration: const BoxDecoration(
28 | color: Colors.transparent,
29 | ),
30 | child: Padding(
31 | padding: const EdgeInsets.only(
32 | right: 18.0, left: 12.0, top: 24, bottom: 12),
33 | child: LineChart(
34 | showAvg ? avgData() : mainData(),
35 | ),
36 | ),
37 | ),
38 | ),
39 | SizedBox(
40 | width: 60,
41 | height: 34,
42 | child: FlatButton(
43 | onPressed: () {
44 | setState(() {
45 | showAvg = !showAvg;
46 | });
47 | },
48 | child: Text(
49 | 'avg',
50 | style: TextStyle(
51 | fontSize: _size.width / 30.0,
52 | color:
53 | showAvg ? Colors.white.withOpacity(0.5) : Colors.white),
54 | ),
55 | ),
56 | ),
57 | ],
58 | );
59 | }
60 |
61 | LineChartData mainData() {
62 | return LineChartData(
63 | gridData: FlGridData(
64 | show: true,
65 | drawVerticalLine: true,
66 | getDrawingHorizontalLine: (value) {
67 | return FlLine(
68 | color: Colors.white10,
69 | strokeWidth: .8,
70 | );
71 | },
72 | getDrawingVerticalLine: (value) {
73 | return FlLine(
74 | color: const Color(0xff37434d),
75 | strokeWidth: .8,
76 | );
77 | },
78 | ),
79 | titlesData: FlTitlesData(
80 | show: true,
81 | bottomTitles: SideTitles(
82 | showTitles: true,
83 | reservedSize: 22,
84 | getTextStyles: (value) => const TextStyle(
85 | color: Color(0xff68737d),
86 | fontWeight: FontWeight.bold,
87 | fontSize: 12.0,
88 | ),
89 | getTitles: (value) {
90 | switch (value.toInt()) {
91 | case 2:
92 | return format
93 | .format(DateTime.now().subtract(new Duration(days: 2)));
94 | case 5:
95 | return format
96 | .format(DateTime.now().subtract(new Duration(days: 1)));
97 | case 8:
98 | return format.format(DateTime.now());
99 | default:
100 | return '';
101 | }
102 | },
103 | margin: 8,
104 | ),
105 | leftTitles: SideTitles(
106 | showTitles: true,
107 | getTextStyles: (value) => const TextStyle(
108 | color: Colors.white70,
109 | fontWeight: FontWeight.w300,
110 | fontSize: 12.0,
111 | ),
112 | getTitles: (value) {
113 | switch (value.toInt()) {
114 | case 1:
115 | return '9.112';
116 | case 3:
117 | return '9.115';
118 | case 5:
119 | return '9.118';
120 | }
121 | return '';
122 | },
123 | reservedSize: 28,
124 | margin: 12,
125 | ),
126 | ),
127 | borderData: FlBorderData(
128 | show: false,
129 | border: Border.all(color: const Color(0xff37434d), width: 1)),
130 | minX: 0,
131 | maxX: 11,
132 | minY: 0,
133 | maxY: 6,
134 | lineBarsData: [
135 | LineChartBarData(
136 | spots: [
137 | FlSpot(0, 3),
138 | FlSpot(2.6, 2),
139 | FlSpot(4.9, 5),
140 | FlSpot(6.8, 3.1),
141 | FlSpot(8, 4),
142 | FlSpot(9.5, 3),
143 | FlSpot(11, 4),
144 | ],
145 | isCurved: true,
146 | colors: gradientColors,
147 | barWidth: 2.0,
148 | isStrokeCapRound: true,
149 | dotData: FlDotData(
150 | show: false,
151 | ),
152 | belowBarData: BarAreaData(
153 | show: true,
154 | colors:
155 | gradientColors.map((color) => color.withOpacity(0.3)).toList(),
156 | ),
157 | ),
158 | ],
159 | );
160 | }
161 |
162 | LineChartData avgData() {
163 | return LineChartData(
164 | lineTouchData: LineTouchData(enabled: false),
165 | gridData: FlGridData(
166 | show: true,
167 | drawHorizontalLine: true,
168 | getDrawingVerticalLine: (value) {
169 | return FlLine(
170 | color: const Color(0xff37434d),
171 | strokeWidth: 1,
172 | );
173 | },
174 | getDrawingHorizontalLine: (value) {
175 | return FlLine(
176 | color: const Color(0xff37434d),
177 | strokeWidth: 1,
178 | );
179 | },
180 | ),
181 | titlesData: FlTitlesData(
182 | show: true,
183 | bottomTitles: SideTitles(
184 | showTitles: true,
185 | reservedSize: 22,
186 | getTextStyles: (value) => const TextStyle(
187 | color: Color(0xff68737d),
188 | fontWeight: FontWeight.bold,
189 | fontSize: 16),
190 | getTitles: (value) {
191 | switch (value.toInt()) {
192 | case 2:
193 | return 'MAR';
194 | case 5:
195 | return 'JUN';
196 | case 8:
197 | return 'SEP';
198 | }
199 | return '';
200 | },
201 | margin: 8,
202 | ),
203 | leftTitles: SideTitles(
204 | showTitles: true,
205 | getTextStyles: (value) => const TextStyle(
206 | color: Color(0xff67727d),
207 | fontWeight: FontWeight.bold,
208 | fontSize: 15,
209 | ),
210 | getTitles: (value) {
211 | switch (value.toInt()) {
212 | case 1:
213 | return '10k';
214 | case 3:
215 | return '30k';
216 | case 5:
217 | return '50k';
218 | }
219 | return '';
220 | },
221 | reservedSize: 28,
222 | margin: 12,
223 | ),
224 | ),
225 | borderData: FlBorderData(
226 | show: true,
227 | border: Border.all(color: const Color(0xff37434d), width: 1)),
228 | minX: 0,
229 | maxX: 11,
230 | minY: 0,
231 | maxY: 6,
232 | lineBarsData: [
233 | LineChartBarData(
234 | spots: [
235 | FlSpot(0, 3.44),
236 | FlSpot(2.6, 3.44),
237 | FlSpot(4.9, 3.44),
238 | FlSpot(6.8, 3.44),
239 | FlSpot(8, 3.44),
240 | FlSpot(9.5, 3.44),
241 | FlSpot(11, 3.44),
242 | ],
243 | isCurved: true,
244 | colors: [
245 | ColorTween(begin: gradientColors[0], end: gradientColors[1])
246 | .lerp(0.2),
247 | ColorTween(begin: gradientColors[0], end: gradientColors[1])
248 | .lerp(0.2),
249 | ],
250 | barWidth: 5,
251 | isStrokeCapRound: true,
252 | dotData: FlDotData(
253 | show: false,
254 | ),
255 | belowBarData: BarAreaData(show: true, colors: [
256 | ColorTween(begin: gradientColors[0], end: gradientColors[1])
257 | .lerp(0.2)
258 | .withOpacity(0.1),
259 | ColorTween(begin: gradientColors[0], end: gradientColors[1])
260 | .lerp(0.2)
261 | .withOpacity(0.1),
262 | ]),
263 | ),
264 | ],
265 | );
266 | }
267 | }
268 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | animated_theme_switcher:
5 | dependency: "direct main"
6 | description:
7 | name: animated_theme_switcher
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "2.0.1"
11 | archive:
12 | dependency: transitive
13 | description:
14 | name: archive
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "3.1.2"
18 | args:
19 | dependency: transitive
20 | description:
21 | name: args
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "2.3.0"
25 | async:
26 | dependency: transitive
27 | description:
28 | name: async
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "2.8.1"
32 | boolean_selector:
33 | dependency: transitive
34 | description:
35 | name: boolean_selector
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "2.1.0"
39 | cached_network_image:
40 | dependency: "direct main"
41 | description:
42 | name: cached_network_image
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "3.1.0"
46 | cached_network_image_platform_interface:
47 | dependency: transitive
48 | description:
49 | name: cached_network_image_platform_interface
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "1.0.0"
53 | cached_network_image_web:
54 | dependency: transitive
55 | description:
56 | name: cached_network_image_web
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "1.0.1"
60 | carousel_slider:
61 | dependency: "direct main"
62 | description:
63 | name: carousel_slider
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "4.0.0"
67 | characters:
68 | dependency: transitive
69 | description:
70 | name: characters
71 | url: "https://pub.dartlang.org"
72 | source: hosted
73 | version: "1.1.0"
74 | charcode:
75 | dependency: transitive
76 | description:
77 | name: charcode
78 | url: "https://pub.dartlang.org"
79 | source: hosted
80 | version: "1.3.1"
81 | clock:
82 | dependency: transitive
83 | description:
84 | name: clock
85 | url: "https://pub.dartlang.org"
86 | source: hosted
87 | version: "1.1.0"
88 | collection:
89 | dependency: transitive
90 | description:
91 | name: collection
92 | url: "https://pub.dartlang.org"
93 | source: hosted
94 | version: "1.15.0"
95 | crypto:
96 | dependency: transitive
97 | description:
98 | name: crypto
99 | url: "https://pub.dartlang.org"
100 | source: hosted
101 | version: "3.0.1"
102 | cupertino_icons:
103 | dependency: "direct main"
104 | description:
105 | name: cupertino_icons
106 | url: "https://pub.dartlang.org"
107 | source: hosted
108 | version: "1.0.2"
109 | equatable:
110 | dependency: transitive
111 | description:
112 | name: equatable
113 | url: "https://pub.dartlang.org"
114 | source: hosted
115 | version: "1.2.5"
116 | fake_async:
117 | dependency: transitive
118 | description:
119 | name: fake_async
120 | url: "https://pub.dartlang.org"
121 | source: hosted
122 | version: "1.2.0"
123 | ffi:
124 | dependency: transitive
125 | description:
126 | name: ffi
127 | url: "https://pub.dartlang.org"
128 | source: hosted
129 | version: "1.1.2"
130 | file:
131 | dependency: transitive
132 | description:
133 | name: file
134 | url: "https://pub.dartlang.org"
135 | source: hosted
136 | version: "6.1.2"
137 | fl_chart:
138 | dependency: "direct main"
139 | description:
140 | name: fl_chart
141 | url: "https://pub.dartlang.org"
142 | source: hosted
143 | version: "0.12.2"
144 | flutter:
145 | dependency: "direct main"
146 | description: flutter
147 | source: sdk
148 | version: "0.0.0"
149 | flutter_blurhash:
150 | dependency: transitive
151 | description:
152 | name: flutter_blurhash
153 | url: "https://pub.dartlang.org"
154 | source: hosted
155 | version: "0.6.0"
156 | flutter_cache_manager:
157 | dependency: transitive
158 | description:
159 | name: flutter_cache_manager
160 | url: "https://pub.dartlang.org"
161 | source: hosted
162 | version: "3.1.2"
163 | flutter_driver:
164 | dependency: transitive
165 | description: flutter
166 | source: sdk
167 | version: "0.0.0"
168 | flutter_icons:
169 | dependency: "direct main"
170 | description:
171 | name: flutter_icons
172 | url: "https://pub.dartlang.org"
173 | source: hosted
174 | version: "1.1.0"
175 | flutter_launcher_icons:
176 | dependency: "direct main"
177 | description:
178 | name: flutter_launcher_icons
179 | url: "https://pub.dartlang.org"
180 | source: hosted
181 | version: "0.9.2"
182 | flutter_lints:
183 | dependency: transitive
184 | description:
185 | name: flutter_lints
186 | url: "https://pub.dartlang.org"
187 | source: hosted
188 | version: "1.0.4"
189 | flutter_screenutil:
190 | dependency: "direct main"
191 | description:
192 | name: flutter_screenutil
193 | url: "https://pub.dartlang.org"
194 | source: hosted
195 | version: "5.0.0+2"
196 | flutter_test:
197 | dependency: "direct dev"
198 | description: flutter
199 | source: sdk
200 | version: "0.0.0"
201 | font_awesome_flutter:
202 | dependency: "direct main"
203 | description:
204 | name: font_awesome_flutter
205 | url: "https://pub.dartlang.org"
206 | source: hosted
207 | version: "9.1.0"
208 | fuchsia_remote_debug_protocol:
209 | dependency: transitive
210 | description: flutter
211 | source: sdk
212 | version: "0.0.0"
213 | get:
214 | dependency: "direct main"
215 | description:
216 | name: get
217 | url: "https://pub.dartlang.org"
218 | source: hosted
219 | version: "3.24.0"
220 | http:
221 | dependency: "direct main"
222 | description:
223 | name: http
224 | url: "https://pub.dartlang.org"
225 | source: hosted
226 | version: "0.13.3"
227 | http_parser:
228 | dependency: transitive
229 | description:
230 | name: http_parser
231 | url: "https://pub.dartlang.org"
232 | source: hosted
233 | version: "4.0.0"
234 | image:
235 | dependency: transitive
236 | description:
237 | name: image
238 | url: "https://pub.dartlang.org"
239 | source: hosted
240 | version: "3.0.5"
241 | integration_test:
242 | dependency: "direct dev"
243 | description: flutter
244 | source: sdk
245 | version: "0.0.0"
246 | intl:
247 | dependency: "direct main"
248 | description:
249 | name: intl
250 | url: "https://pub.dartlang.org"
251 | source: hosted
252 | version: "0.17.0"
253 | line_awesome_flutter:
254 | dependency: "direct main"
255 | description:
256 | name: line_awesome_flutter
257 | url: "https://pub.dartlang.org"
258 | source: hosted
259 | version: "2.0.0"
260 | lints:
261 | dependency: transitive
262 | description:
263 | name: lints
264 | url: "https://pub.dartlang.org"
265 | source: hosted
266 | version: "1.0.1"
267 | matcher:
268 | dependency: transitive
269 | description:
270 | name: matcher
271 | url: "https://pub.dartlang.org"
272 | source: hosted
273 | version: "0.12.10"
274 | meta:
275 | dependency: transitive
276 | description:
277 | name: meta
278 | url: "https://pub.dartlang.org"
279 | source: hosted
280 | version: "1.7.0"
281 | nested:
282 | dependency: transitive
283 | description:
284 | name: nested
285 | url: "https://pub.dartlang.org"
286 | source: hosted
287 | version: "1.0.0"
288 | octo_image:
289 | dependency: transitive
290 | description:
291 | name: octo_image
292 | url: "https://pub.dartlang.org"
293 | source: hosted
294 | version: "1.0.0+1"
295 | path:
296 | dependency: transitive
297 | description:
298 | name: path
299 | url: "https://pub.dartlang.org"
300 | source: hosted
301 | version: "1.8.0"
302 | path_drawing:
303 | dependency: transitive
304 | description:
305 | name: path_drawing
306 | url: "https://pub.dartlang.org"
307 | source: hosted
308 | version: "0.4.1+1"
309 | path_parsing:
310 | dependency: transitive
311 | description:
312 | name: path_parsing
313 | url: "https://pub.dartlang.org"
314 | source: hosted
315 | version: "0.1.4"
316 | path_provider:
317 | dependency: transitive
318 | description:
319 | name: path_provider
320 | url: "https://pub.dartlang.org"
321 | source: hosted
322 | version: "2.0.5"
323 | path_provider_linux:
324 | dependency: transitive
325 | description:
326 | name: path_provider_linux
327 | url: "https://pub.dartlang.org"
328 | source: hosted
329 | version: "2.1.0"
330 | path_provider_macos:
331 | dependency: transitive
332 | description:
333 | name: path_provider_macos
334 | url: "https://pub.dartlang.org"
335 | source: hosted
336 | version: "2.0.2"
337 | path_provider_platform_interface:
338 | dependency: transitive
339 | description:
340 | name: path_provider_platform_interface
341 | url: "https://pub.dartlang.org"
342 | source: hosted
343 | version: "2.0.1"
344 | path_provider_windows:
345 | dependency: transitive
346 | description:
347 | name: path_provider_windows
348 | url: "https://pub.dartlang.org"
349 | source: hosted
350 | version: "2.0.3"
351 | pedantic:
352 | dependency: transitive
353 | description:
354 | name: pedantic
355 | url: "https://pub.dartlang.org"
356 | source: hosted
357 | version: "1.11.1"
358 | petitparser:
359 | dependency: transitive
360 | description:
361 | name: petitparser
362 | url: "https://pub.dartlang.org"
363 | source: hosted
364 | version: "4.3.0"
365 | photo_view:
366 | dependency: "direct main"
367 | description:
368 | name: photo_view
369 | url: "https://pub.dartlang.org"
370 | source: hosted
371 | version: "0.12.0"
372 | platform:
373 | dependency: transitive
374 | description:
375 | name: platform
376 | url: "https://pub.dartlang.org"
377 | source: hosted
378 | version: "3.0.0"
379 | plugin_platform_interface:
380 | dependency: transitive
381 | description:
382 | name: plugin_platform_interface
383 | url: "https://pub.dartlang.org"
384 | source: hosted
385 | version: "2.0.1"
386 | process:
387 | dependency: transitive
388 | description:
389 | name: process
390 | url: "https://pub.dartlang.org"
391 | source: hosted
392 | version: "4.2.3"
393 | provider:
394 | dependency: "direct main"
395 | description:
396 | name: provider
397 | url: "https://pub.dartlang.org"
398 | source: hosted
399 | version: "6.0.1"
400 | rxdart:
401 | dependency: transitive
402 | description:
403 | name: rxdart
404 | url: "https://pub.dartlang.org"
405 | source: hosted
406 | version: "0.27.2"
407 | simple_animations:
408 | dependency: "direct main"
409 | description:
410 | name: simple_animations
411 | url: "https://pub.dartlang.org"
412 | source: hosted
413 | version: "4.0.0"
414 | sky_engine:
415 | dependency: transitive
416 | description: flutter
417 | source: sdk
418 | version: "0.0.99"
419 | source_span:
420 | dependency: transitive
421 | description:
422 | name: source_span
423 | url: "https://pub.dartlang.org"
424 | source: hosted
425 | version: "1.8.1"
426 | sqflite:
427 | dependency: transitive
428 | description:
429 | name: sqflite
430 | url: "https://pub.dartlang.org"
431 | source: hosted
432 | version: "2.0.0+4"
433 | sqflite_common:
434 | dependency: transitive
435 | description:
436 | name: sqflite_common
437 | url: "https://pub.dartlang.org"
438 | source: hosted
439 | version: "2.0.1+1"
440 | stack_trace:
441 | dependency: transitive
442 | description:
443 | name: stack_trace
444 | url: "https://pub.dartlang.org"
445 | source: hosted
446 | version: "1.10.0"
447 | stream_channel:
448 | dependency: transitive
449 | description:
450 | name: stream_channel
451 | url: "https://pub.dartlang.org"
452 | source: hosted
453 | version: "2.1.0"
454 | string_scanner:
455 | dependency: transitive
456 | description:
457 | name: string_scanner
458 | url: "https://pub.dartlang.org"
459 | source: hosted
460 | version: "1.1.0"
461 | sync_http:
462 | dependency: transitive
463 | description:
464 | name: sync_http
465 | url: "https://pub.dartlang.org"
466 | source: hosted
467 | version: "0.3.0"
468 | synchronized:
469 | dependency: transitive
470 | description:
471 | name: synchronized
472 | url: "https://pub.dartlang.org"
473 | source: hosted
474 | version: "3.0.0"
475 | term_glyph:
476 | dependency: transitive
477 | description:
478 | name: term_glyph
479 | url: "https://pub.dartlang.org"
480 | source: hosted
481 | version: "1.2.0"
482 | test_api:
483 | dependency: transitive
484 | description:
485 | name: test_api
486 | url: "https://pub.dartlang.org"
487 | source: hosted
488 | version: "0.4.2"
489 | typed_data:
490 | dependency: transitive
491 | description:
492 | name: typed_data
493 | url: "https://pub.dartlang.org"
494 | source: hosted
495 | version: "1.3.0"
496 | uuid:
497 | dependency: transitive
498 | description:
499 | name: uuid
500 | url: "https://pub.dartlang.org"
501 | source: hosted
502 | version: "3.0.4"
503 | vector_math:
504 | dependency: transitive
505 | description:
506 | name: vector_math
507 | url: "https://pub.dartlang.org"
508 | source: hosted
509 | version: "2.1.0"
510 | vm_service:
511 | dependency: transitive
512 | description:
513 | name: vm_service
514 | url: "https://pub.dartlang.org"
515 | source: hosted
516 | version: "7.1.1"
517 | webdriver:
518 | dependency: transitive
519 | description:
520 | name: webdriver
521 | url: "https://pub.dartlang.org"
522 | source: hosted
523 | version: "3.0.0"
524 | win32:
525 | dependency: transitive
526 | description:
527 | name: win32
528 | url: "https://pub.dartlang.org"
529 | source: hosted
530 | version: "2.2.9"
531 | xdg_directories:
532 | dependency: transitive
533 | description:
534 | name: xdg_directories
535 | url: "https://pub.dartlang.org"
536 | source: hosted
537 | version: "0.2.0"
538 | xml:
539 | dependency: transitive
540 | description:
541 | name: xml
542 | url: "https://pub.dartlang.org"
543 | source: hosted
544 | version: "5.3.0"
545 | yaml:
546 | dependency: transitive
547 | description:
548 | name: yaml
549 | url: "https://pub.dartlang.org"
550 | source: hosted
551 | version: "3.1.0"
552 | sdks:
553 | dart: ">=2.14.0 <3.0.0"
554 | flutter: ">=2.5.0"
555 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: binance
2 | description: A new Flutter project.
3 |
4 | # The following line prevents the package from being accidentally published to
5 | # pub.dev using `pub publish`. This is preferred for private packages.
6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev
7 |
8 | # The following defines the version and build number for your application.
9 | # A version number is three numbers separated by dots, like 1.2.43
10 | # followed by an optional build number separated by a +.
11 | # Both the version and the builder number may be overridden in flutter
12 | # build by specifying --build-name and --build-number, respectively.
13 | # In Android, build-name is used as versionName while build-number used as versionCode.
14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
16 | # Read more about iOS versioning at
17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18 | version: 1.0.0+1
19 |
20 | environment:
21 | sdk: ">=2.7.0 <3.0.0"
22 |
23 | dependencies:
24 | flutter:
25 | sdk: flutter
26 |
27 |
28 | # The following adds the Cupertino Icons font to your application.
29 | # Use with the CupertinoIcons class for iOS style icons.
30 | cupertino_icons: ^1.0.1
31 | get: ^3.23.1
32 | animated_theme_switcher: ^2.0.1
33 | provider: ^6.0.1
34 | intl: ^0.17.0
35 | flutter_screenutil: ^5.0.0+2
36 | flutter_icons: ^1.1.0
37 | font_awesome_flutter: ^9.1.0
38 | line_awesome_flutter: ^2.0.0
39 | simple_animations: ^4.0.0
40 | photo_view: ^0.12.0
41 | cached_network_image: ^3.1.0
42 | carousel_slider: ^4.0.0
43 | fl_chart:
44 | http:
45 | flutter_launcher_icons: ^0.9.0
46 |
47 | dev_dependencies:
48 | flutter_test:
49 | sdk: flutter
50 | integration_test:
51 | sdk: flutter
52 |
53 |
54 | flutter_icons:
55 | android: "launcher_icon"
56 | ios: true
57 | image_path: "images/icon_app.png"
58 |
59 | # For information on the generic Dart part of this file, see the
60 | # following page: https://dart.dev/tools/pub/pubspec
61 |
62 | # The following section is specific to Flutter.
63 | flutter:
64 |
65 | # The following line ensures that the Material Icons font is
66 | # included with your application, so that you can use the icons in
67 | # the material Icons class.
68 | uses-material-design: true
69 | assets:
70 | - images/
71 |
72 | # To add assets to your application, add an assets section, like this:
73 | # assets:
74 | # - images/a_dot_burr.jpeg
75 | # - images/a_dot_ham.jpeg
76 |
77 | # An image asset can refer to one or more resolution-specific "variants", see
78 | # https://flutter.dev/assets-and-images/#resolution-aware.
79 |
80 | # For details regarding adding assets from package dependencies, see
81 | # https://flutter.dev/assets-and-images/#from-packages
82 |
83 | # To add custom fonts to your application, add a fonts section here,
84 | # in this "flutter" section. Each entry in this list should have a
85 | # "family" key with the font family name, and a "fonts" key with a
86 | # list giving the asset and other descriptors for the font. For
87 | # example:
88 | # fonts:
89 | # - family: Schyler
90 | # fonts:
91 | # - asset: fonts/Schyler-Regular.ttf
92 | # - asset: fonts/Schyler-Italic.ttf
93 | # style: italic
94 | # - family: Trajan Pro
95 | # fonts:
96 | # - asset: fonts/TrajanPro.ttf
97 | # - asset: fonts/TrajanPro_Bold.ttf
98 | # weight: 700
99 | #
100 | # For details regarding fonts from package dependencies,
101 | # see https://flutter.dev/custom-fonts/#from-packages
102 |
--------------------------------------------------------------------------------
/screenshots/c86c9ec1d2961bc842871.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/screenshots/c86c9ec1d2961bc842871.jpg
--------------------------------------------------------------------------------
/screenshots/c882ca2f86784f2616694.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/screenshots/c882ca2f86784f2616694.jpg
--------------------------------------------------------------------------------
/screenshots/daa6b20bfe5c37026e4d3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/screenshots/daa6b20bfe5c37026e4d3.jpg
--------------------------------------------------------------------------------
/screenshots/f1e6874bcb1c02425b0d2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/screenshots/f1e6874bcb1c02425b0d2.jpg
--------------------------------------------------------------------------------
/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:binance/src/app.dart';
9 | import 'package:flutter/material.dart';
10 | import 'package:flutter_test/flutter_test.dart';
11 |
12 | void main() {
13 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
14 | // Build our app and trigger a frame.
15 | await tester.pumpWidget(App());
16 |
17 | // Verify that our counter starts at 0.
18 | expect(find.text('0'), findsOneWidget);
19 | expect(find.text('1'), findsNothing);
20 |
21 | // Tap the '+' icon and trigger a frame.
22 | await tester.tap(find.byIcon(Icons.add));
23 | await tester.pump();
24 |
25 | // Verify that our counter has incremented.
26 | expect(find.text('0'), findsNothing);
27 | expect(find.text('1'), findsOneWidget);
28 | });
29 | }
30 |
--------------------------------------------------------------------------------
/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/web/favicon.png
--------------------------------------------------------------------------------
/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lambiengcode/flutter_binance_ui/f5c799e24c9592e5e77b8b1110528e4b55babc18/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | binance
30 |
31 |
32 |
33 |
36 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "binance",
3 | "short_name": "binance",
4 | "start_url": ".",
5 | "display": "standalone",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "A new Flutter project.",
9 | "orientation": "portrait-primary",
10 | "prefer_related_applications": false,
11 | "icons": [
12 | {
13 | "src": "icons/Icon-192.png",
14 | "sizes": "192x192",
15 | "type": "image/png"
16 | },
17 | {
18 | "src": "icons/Icon-512.png",
19 | "sizes": "512x512",
20 | "type": "image/png"
21 | }
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------