├── .gitignore ├── .metadata ├── .vscode └── launch.json ├── README.md ├── analysis_options.yaml ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── data_app │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── assets ├── home.json ├── sim-card.svg ├── sim.svg ├── splash.json └── touch.json ├── images ├── demo.gif └── lib.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 ├── app_widget.dart ├── core │ ├── colors.dart │ └── strings.dart ├── main.dart └── presentation │ ├── pages │ ├── data_details_page.dart │ ├── home_page.dart │ └── index_page.dart │ └── widgets │ ├── bar_painter.dart │ ├── big_arc_painter.dart │ ├── data_appbar.dart │ ├── data_bar_chart.dart │ ├── data_filter.dart │ ├── data_header.dart │ ├── data_statistics.dart │ ├── data_title.dart │ ├── fade_animations.dart │ ├── gear_painter.dart │ ├── home_appbar.dart │ ├── home_datapack.dart │ ├── home_header.dart │ ├── nav_item_builder.dart │ ├── sim_card_widget.dart │ ├── sub_arc_painter.dart │ └── white_painter.dart ├── pubspec.lock ├── pubspec.yaml └── test └── widget_test.dart /.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 | # Exceptions to above rules. 44 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 45 | -------------------------------------------------------------------------------- /.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: 840c9205b344a59e48a5926ee2d791cc5640924c 8 | channel: unknown 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "name": "data_app", 9 | "request": "launch", 10 | "type": "dart" 11 | } 12 | ] 13 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | [![support](https://img.shields.io/badge/plateform-flutter%7Candroid%20studio-9cf?style=for-the-badge&logo=appveyor)](https://github.com/Shadow60539/data_app) ![GitHub forks](https://img.shields.io/github/forks/Shadow60539/data_app?style=for-the-badge) ![GitHub Repo stars](https://img.shields.io/github/stars/Shadow60539/data_app?style=for-the-badge) 3 | 4 | # Introduction 5 | 6 | > “data_app” 7 | is a small, simple and beautiful app that displays data management in minimalistic desgin. 8 | 9 | Before we start, you can take a look at the app: 10 | 11 | ![Output sample](images/demo.gif) 12 | 13 | ## Features 14 | 15 | - [x] UI is conmpleted. 16 | - [ ] Integrate device specific data. 17 | 18 | 19 | ## How To Use 20 | 21 | To clone and run this application, you'll need [Git](https://git-scm.com) and [Flutter](https://flutter.dev/docs/get-started/install) installed on your computer. From your command line: 22 | 23 | ```bash 24 | # Clone this repository 25 | $ git clone https://github.com/Shadow60539/data_app.git 26 | 27 | # Go into the repository 28 | $ cd data_app.git 29 | 30 | # Install dependencies 31 | $ flutter packages get 32 | 33 | # Run the app 34 | $ flutter run 35 | ``` 36 | 37 | 38 | ### Packages 39 | 40 | 41 | Some very good packages are used in the project, not a big list. 42 | 43 | 44 | Below are the information about these packages. 45 | 46 | 47 | package | explain 48 | ---|--- 49 | [flutter_neumorphic](https://pub.flutter-io.cn/packages/flutter_neumorphic) | Neumorphic Soft Widget 50 | [font_awesome_flutter](https://pub.flutter-io.cn/packages/font_awesome_flutter) | Awesome icons 51 | [flutter_svg](https://pub.flutter-io.cn/packages/flutter_svg) | Support svg files 52 | [lottie](https://pub.flutter-io.cn/packages/lottie) | Lottie files animations 53 | [google_fonts](https://pub.flutter-io.cn/packages/google_fonts) | Google fonts 54 | [lint](https://pub.flutter-io.cn/packages/lint) | Rules handler for Dart 55 | 56 | ### Directory Structure 57 | 58 | The project directory structure is as follows: 59 | 60 | ``` 61 | ├── android 62 | ├── asset 63 | ├── build 64 | ├── images 65 | ├── ios 66 | ├── lib 67 | ├── pubspec.lock 68 | ├── pubspec.yaml 69 | 70 | ``` 71 | 72 | 73 | Let me explain the other directories besides **lib**: 74 | 75 | directory | explain 76 | ---|--- 77 | images | readme images files 78 | asset | images and lottie files 79 | 80 | Then the lib directory 81 | 82 | 83 | ![lib](images/lib.png) 84 | 85 | 86 | 87 | directory | explain 88 | ---|--- 89 | core | Global Classes 90 | presentation | UI 91 | 92 | -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:lint/analysis_options.yaml 2 | 3 | analyzer: 4 | errors: 5 | missing_required_param: error 6 | missing_return: error 7 | must_be_immutable: error -------------------------------------------------------------------------------- /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 28 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | lintOptions { 36 | disable 'InvalidPackage' 37 | } 38 | 39 | defaultConfig { 40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 41 | applicationId "com.example.data_app" 42 | minSdkVersion 26 43 | targetSdkVersion 28 44 | versionCode flutterVersionCode.toInteger() 45 | versionName flutterVersionName 46 | } 47 | 48 | buildTypes { 49 | release { 50 | // TODO: Add your own signing config for the release build. 51 | // Signing with the debug keys for now, so `flutter run --release` works. 52 | signingConfig signingConfigs.debug 53 | } 54 | } 55 | } 56 | 57 | flutter { 58 | source '../..' 59 | } 60 | 61 | dependencies { 62 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 63 | } 64 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 12 | 16 | 23 | 27 | 31 | 36 | 40 | 41 | 42 | 43 | 44 | 45 | 47 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/data_app/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.data_app 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /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/Shadow60539/data_app/17bd92dd5c96687c476a1223ff02d40973343b81/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shadow60539/data_app/17bd92dd5c96687c476a1223ff02d40973343b81/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shadow60539/data_app/17bd92dd5c96687c476a1223ff02d40973343b81/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shadow60539/data_app/17bd92dd5c96687c476a1223ff02d40973343b81/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shadow60539/data_app/17bd92dd5c96687c476a1223ff02d40973343b81/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /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:3.5.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.enableR8=true 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /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-5.6.2-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 | -------------------------------------------------------------------------------- /assets/home.json: -------------------------------------------------------------------------------- 1 | {"v":"5.5.7","meta":{"g":"LottieFiles AE 0.1.20","a":"","k":"","d":"","tc":"#FFFFFF"},"fr":30,"ip":0,"op":30,"w":177,"h":177,"nm":"output area","ddd":0,"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":3,"ty":4,"nm":"default","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[960,540,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[10.255,0],[0,0],[3.498,-3.507],[-0.007,-4.97],[0,0],[0,0],[-0.002,1.224],[0,0],[0,0],[-0.373,0],[-0.491,-0.4],[0,0],[0,0],[1.217,0]],"o":[[0,0],[-0.005,-10.273],[0,0],[-4.952,0.019],[-3.51,3.519],[0,0],[0,0],[-1.228,-0.002],[0,0],[0,0],[0.504,-0.431],[0.363,0],[0,0],[0,0],[-0.012,1.21],[0,0]],"v":[[26.617,64.5],[26.617,37.711],[8.011,19.096],[-8.805,19.096],[-21.906,24.562],[-27.339,37.725],[-27.339,64.5],[-52.907,64.5],[-55.129,62.277],[-55.129,-12.923],[-1.351,-63.978],[0.071,-64.5],[1.449,-64.013],[55.255,-12.259],[55.255,62.306],[53.033,64.5]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tr","p":{"a":0,"k":[1,1.75],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 2","np":1,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[4.647,-4.214],[0,0],[-2.284,-2.485],[-2.494,2.206],[0,0],[0,0],[-6.75,-0.009],[-0.005,0],[0,0],[0,0],[-4.753,0.006],[-0.005,0],[0,0],[-0.002,-4.752],[0,-0.005],[0,0],[0,0],[-0.002,6.749],[0,0.006],[0,0],[-2.259,2.517],[2.505,2.262],[0,0],[0,0]],"o":[[-4.647,-4.214],[0,0],[-2.485,2.283],[2.253,2.452],[0,0],[0,0],[-0.008,6.749],[0.005,0],[0,0],[0,0],[-0.006,-4.752],[0.005,0],[0,0],[4.753,-0.002],[0,0.005],[0,0],[0,0],[6.75,0.002],[0,-0.006],[0,0],[2.715,2.456],[2.262,-2.504],[0,0],[0,0],[0,0]],"v":[[8.598,-72.313],[-7.785,-72.313],[-74.031,-9.423],[-74.396,-0.791],[-65.847,-0.348],[-64.793,-1.348],[-64.793,64.291],[-52.586,76.526],[-52.571,76.526],[-17.003,76.526],[-17.003,39.737],[-8.409,31.122],[-8.393,31.122],[8.343,31.122],[16.953,39.722],[16.953,39.737],[16.953,76.526],[53.365,76.526],[65.591,64.31],[65.591,64.291],[65.591,-0.546],[74.417,-0.793],[73.978,-9.422],[73.976,-9.423],[8.598,-72.31]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":1,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"mm","mm":5,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[0.20000000298,0.20000000298,0.20000000298,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false}],"ip":0,"op":150,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"circle","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[1004,592.5,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"a","pt":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[-42.75,-122.5],[-104,-65],[-102.5,16],[-96.125,20.625],[-64.625,19.875],[-64.875,-14.75],[-57.125,-24.5],[-29.5,-24.875],[-21.75,-17],[-20.625,18.625],[11.75,19.125],[17.875,13.75],[17.625,-67.5]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,-48.894],[48.894,0],[0,48.894],[-48.894,0]],"o":[[0,48.894],[-48.894,0],[0,-48.894],[48.894,0]],"v":[[88.531,0],[0,88.531],[-88.531,0],[0,-88.531]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.8627450980392157,0.6588235294117647,0.6509803921568628,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667],"y":[0.917,0.917]},"o":{"x":[0.333,0.333],"y":[0,0]},"t":0,"s":[0,0]},{"i":{"x":[0.667,0.667],"y":[0.98,0.98]},"o":{"x":[0.333,0.333],"y":[-0.277,-0.277]},"t":6,"s":[120,120]},{"i":{"x":[0.667,0.667],"y":[0.886,0.886]},"o":{"x":[0.333,0.333],"y":[-0.033,-0.033]},"t":11,"s":[90,90]},{"i":{"x":[0.667,0.667],"y":[1,1]},"o":{"x":[0.333,0.333],"y":[-0.257,-0.257]},"t":15,"s":[105,105]},{"t":18,"s":[100,100]}],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":150,"st":0,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"nm":"main","refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[88.5,88.5,0],"ix":2},"a":{"a":0,"k":[960,540,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":1920,"h":1080,"ip":0,"op":150,"st":0,"bm":0}],"markers":[]} -------------------------------------------------------------------------------- /assets/sim-card.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/sim.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/touch.json: -------------------------------------------------------------------------------- 1 | {"v":"5.5.2","fr":30,"ip":0,"op":39,"w":800,"h":600,"nm":"TAP 2","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 1","sr":1,"ks":{"o":{"a":0,"k":70,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[240.006,45.834,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[0,0,100]},{"t":9,"s":[100,100,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[155.504,155.504],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.8431372549019608,0.47058823529411764,0.4549019607843137,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":4,"s":[70]},{"t":15,"s":[0]}],"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[240.006,45.834],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":450,"st":0,"bm":0}],"markers":[]} -------------------------------------------------------------------------------- /images/demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shadow60539/data_app/17bd92dd5c96687c476a1223ff02d40973343b81/images/demo.gif -------------------------------------------------------------------------------- /images/lib.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shadow60539/data_app/17bd92dd5c96687c476a1223ff02d40973343b81/images/lib.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 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 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 = 8.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 | FRAMEWORK_SEARCH_PATHS = ( 293 | "$(inherited)", 294 | "$(PROJECT_DIR)/Flutter", 295 | ); 296 | INFOPLIST_FILE = Runner/Info.plist; 297 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 298 | LIBRARY_SEARCH_PATHS = ( 299 | "$(inherited)", 300 | "$(PROJECT_DIR)/Flutter", 301 | ); 302 | PRODUCT_BUNDLE_IDENTIFIER = com.example.dataApp; 303 | PRODUCT_NAME = "$(TARGET_NAME)"; 304 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 305 | SWIFT_VERSION = 5.0; 306 | VERSIONING_SYSTEM = "apple-generic"; 307 | }; 308 | name = Profile; 309 | }; 310 | 97C147031CF9000F007C117D /* Debug */ = { 311 | isa = XCBuildConfiguration; 312 | buildSettings = { 313 | ALWAYS_SEARCH_USER_PATHS = NO; 314 | CLANG_ANALYZER_NONNULL = YES; 315 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 316 | CLANG_CXX_LIBRARY = "libc++"; 317 | CLANG_ENABLE_MODULES = YES; 318 | CLANG_ENABLE_OBJC_ARC = YES; 319 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 320 | CLANG_WARN_BOOL_CONVERSION = YES; 321 | CLANG_WARN_COMMA = YES; 322 | CLANG_WARN_CONSTANT_CONVERSION = YES; 323 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 324 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 325 | CLANG_WARN_EMPTY_BODY = YES; 326 | CLANG_WARN_ENUM_CONVERSION = YES; 327 | CLANG_WARN_INFINITE_RECURSION = YES; 328 | CLANG_WARN_INT_CONVERSION = YES; 329 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 330 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 331 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 332 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 333 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 334 | CLANG_WARN_STRICT_PROTOTYPES = YES; 335 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 336 | CLANG_WARN_UNREACHABLE_CODE = YES; 337 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 338 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 339 | COPY_PHASE_STRIP = NO; 340 | DEBUG_INFORMATION_FORMAT = dwarf; 341 | ENABLE_STRICT_OBJC_MSGSEND = YES; 342 | ENABLE_TESTABILITY = YES; 343 | GCC_C_LANGUAGE_STANDARD = gnu99; 344 | GCC_DYNAMIC_NO_PIC = NO; 345 | GCC_NO_COMMON_BLOCKS = YES; 346 | GCC_OPTIMIZATION_LEVEL = 0; 347 | GCC_PREPROCESSOR_DEFINITIONS = ( 348 | "DEBUG=1", 349 | "$(inherited)", 350 | ); 351 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 352 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 353 | GCC_WARN_UNDECLARED_SELECTOR = YES; 354 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 355 | GCC_WARN_UNUSED_FUNCTION = YES; 356 | GCC_WARN_UNUSED_VARIABLE = YES; 357 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 358 | MTL_ENABLE_DEBUG_INFO = YES; 359 | ONLY_ACTIVE_ARCH = YES; 360 | SDKROOT = iphoneos; 361 | TARGETED_DEVICE_FAMILY = "1,2"; 362 | }; 363 | name = Debug; 364 | }; 365 | 97C147041CF9000F007C117D /* Release */ = { 366 | isa = XCBuildConfiguration; 367 | buildSettings = { 368 | ALWAYS_SEARCH_USER_PATHS = NO; 369 | CLANG_ANALYZER_NONNULL = YES; 370 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 371 | CLANG_CXX_LIBRARY = "libc++"; 372 | CLANG_ENABLE_MODULES = YES; 373 | CLANG_ENABLE_OBJC_ARC = YES; 374 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 375 | CLANG_WARN_BOOL_CONVERSION = YES; 376 | CLANG_WARN_COMMA = YES; 377 | CLANG_WARN_CONSTANT_CONVERSION = YES; 378 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 379 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 380 | CLANG_WARN_EMPTY_BODY = YES; 381 | CLANG_WARN_ENUM_CONVERSION = YES; 382 | CLANG_WARN_INFINITE_RECURSION = YES; 383 | CLANG_WARN_INT_CONVERSION = YES; 384 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 385 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 386 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 387 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 388 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 389 | CLANG_WARN_STRICT_PROTOTYPES = YES; 390 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 391 | CLANG_WARN_UNREACHABLE_CODE = YES; 392 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 393 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 394 | COPY_PHASE_STRIP = NO; 395 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 396 | ENABLE_NS_ASSERTIONS = NO; 397 | ENABLE_STRICT_OBJC_MSGSEND = YES; 398 | GCC_C_LANGUAGE_STANDARD = gnu99; 399 | GCC_NO_COMMON_BLOCKS = YES; 400 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 401 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 402 | GCC_WARN_UNDECLARED_SELECTOR = YES; 403 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 404 | GCC_WARN_UNUSED_FUNCTION = YES; 405 | GCC_WARN_UNUSED_VARIABLE = YES; 406 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 407 | MTL_ENABLE_DEBUG_INFO = NO; 408 | SDKROOT = iphoneos; 409 | SUPPORTED_PLATFORMS = iphoneos; 410 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 411 | TARGETED_DEVICE_FAMILY = "1,2"; 412 | VALIDATE_PRODUCT = YES; 413 | }; 414 | name = Release; 415 | }; 416 | 97C147061CF9000F007C117D /* Debug */ = { 417 | isa = XCBuildConfiguration; 418 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 419 | buildSettings = { 420 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 421 | CLANG_ENABLE_MODULES = YES; 422 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 423 | ENABLE_BITCODE = NO; 424 | FRAMEWORK_SEARCH_PATHS = ( 425 | "$(inherited)", 426 | "$(PROJECT_DIR)/Flutter", 427 | ); 428 | INFOPLIST_FILE = Runner/Info.plist; 429 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 430 | LIBRARY_SEARCH_PATHS = ( 431 | "$(inherited)", 432 | "$(PROJECT_DIR)/Flutter", 433 | ); 434 | PRODUCT_BUNDLE_IDENTIFIER = com.example.dataApp; 435 | PRODUCT_NAME = "$(TARGET_NAME)"; 436 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 437 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 438 | SWIFT_VERSION = 5.0; 439 | VERSIONING_SYSTEM = "apple-generic"; 440 | }; 441 | name = Debug; 442 | }; 443 | 97C147071CF9000F007C117D /* Release */ = { 444 | isa = XCBuildConfiguration; 445 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 446 | buildSettings = { 447 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 448 | CLANG_ENABLE_MODULES = YES; 449 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 450 | ENABLE_BITCODE = NO; 451 | FRAMEWORK_SEARCH_PATHS = ( 452 | "$(inherited)", 453 | "$(PROJECT_DIR)/Flutter", 454 | ); 455 | INFOPLIST_FILE = Runner/Info.plist; 456 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 457 | LIBRARY_SEARCH_PATHS = ( 458 | "$(inherited)", 459 | "$(PROJECT_DIR)/Flutter", 460 | ); 461 | PRODUCT_BUNDLE_IDENTIFIER = com.example.dataApp; 462 | PRODUCT_NAME = "$(TARGET_NAME)"; 463 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 464 | SWIFT_VERSION = 5.0; 465 | VERSIONING_SYSTEM = "apple-generic"; 466 | }; 467 | name = Release; 468 | }; 469 | /* End XCBuildConfiguration section */ 470 | 471 | /* Begin XCConfigurationList section */ 472 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 473 | isa = XCConfigurationList; 474 | buildConfigurations = ( 475 | 97C147031CF9000F007C117D /* Debug */, 476 | 97C147041CF9000F007C117D /* Release */, 477 | 249021D3217E4FDB00AE95B9 /* Profile */, 478 | ); 479 | defaultConfigurationIsVisible = 0; 480 | defaultConfigurationName = Release; 481 | }; 482 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 483 | isa = XCConfigurationList; 484 | buildConfigurations = ( 485 | 97C147061CF9000F007C117D /* Debug */, 486 | 97C147071CF9000F007C117D /* Release */, 487 | 249021D4217E4FDB00AE95B9 /* Profile */, 488 | ); 489 | defaultConfigurationIsVisible = 0; 490 | defaultConfigurationName = Release; 491 | }; 492 | /* End XCConfigurationList section */ 493 | }; 494 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 495 | } 496 | -------------------------------------------------------------------------------- /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/Shadow60539/data_app/17bd92dd5c96687c476a1223ff02d40973343b81/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/Shadow60539/data_app/17bd92dd5c96687c476a1223ff02d40973343b81/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/Shadow60539/data_app/17bd92dd5c96687c476a1223ff02d40973343b81/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/Shadow60539/data_app/17bd92dd5c96687c476a1223ff02d40973343b81/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/Shadow60539/data_app/17bd92dd5c96687c476a1223ff02d40973343b81/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/Shadow60539/data_app/17bd92dd5c96687c476a1223ff02d40973343b81/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/Shadow60539/data_app/17bd92dd5c96687c476a1223ff02d40973343b81/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/Shadow60539/data_app/17bd92dd5c96687c476a1223ff02d40973343b81/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/Shadow60539/data_app/17bd92dd5c96687c476a1223ff02d40973343b81/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/Shadow60539/data_app/17bd92dd5c96687c476a1223ff02d40973343b81/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/Shadow60539/data_app/17bd92dd5c96687c476a1223ff02d40973343b81/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/Shadow60539/data_app/17bd92dd5c96687c476a1223ff02d40973343b81/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/Shadow60539/data_app/17bd92dd5c96687c476a1223ff02d40973343b81/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/Shadow60539/data_app/17bd92dd5c96687c476a1223ff02d40973343b81/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/Shadow60539/data_app/17bd92dd5c96687c476a1223ff02d40973343b81/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/Shadow60539/data_app/17bd92dd5c96687c476a1223ff02d40973343b81/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shadow60539/data_app/17bd92dd5c96687c476a1223ff02d40973343b81/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shadow60539/data_app/17bd92dd5c96687c476a1223ff02d40973343b81/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 | data_app 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/app_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:data_app/core/colors.dart'; 2 | import 'package:data_app/presentation/pages/index_page.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter/services.dart'; 5 | import 'package:google_fonts/google_fonts.dart'; 6 | 7 | class MyApp extends StatelessWidget { 8 | @override 9 | Widget build(BuildContext context) { 10 | SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle( 11 | statusBarColor: kSwatch2, systemNavigationBarColor: kSwatch2)); 12 | return MaterialApp( 13 | debugShowCheckedModeBanner: false, 14 | theme: 15 | ThemeData.light().copyWith(textTheme: GoogleFonts.latoTextTheme()), 16 | home: IndexPage()); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/core/colors.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | const kSwatch1 = Color(0xffd77874); 4 | const kSwatch2 = Color(0xffFEEDEE); 5 | const kSwatch3 = Color(0xffdca8a6); 6 | const kSwatch4 = Color(0xffc03631); 7 | const kSwatch5 = Color(0xff7F424A); 8 | -------------------------------------------------------------------------------- /lib/core/strings.dart: -------------------------------------------------------------------------------- 1 | const kAnimationDuration = Duration(milliseconds: 1400); 2 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import 'app_widget.dart'; 4 | 5 | Future main() async { 6 | WidgetsFlutterBinding.ensureInitialized(); 7 | 8 | ///----------------For Jio---------------- 9 | 10 | /* final SmsSender sender = SmsSender(); 11 | const String address = '199'; 12 | final SmsMessage message = SmsMessage(address, 'BAL'); 13 | sender.sendSms(message); 14 | final SmsReceiver receiver = SmsReceiver(); 15 | receiver.onSmsReceived.listen((SmsMessage msg) { 16 | final String totalGB = msg.body.split(':')[3].split('GB')[1].split('of').last; 17 | final String remainingGB = msg.body.split(':')[3].split('GB')[0]; 18 | print('${remainingGB}GB/${totalGB}GB'); 19 | }); 20 | */ 21 | runApp(MyApp()); 22 | } 23 | -------------------------------------------------------------------------------- /lib/presentation/pages/data_details_page.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | 3 | import 'package:data_app/core/colors.dart'; 4 | import 'package:data_app/presentation/widgets/data_appbar.dart'; 5 | import 'package:data_app/presentation/widgets/data_bar_chart.dart'; 6 | import 'package:data_app/presentation/widgets/data_filter.dart'; 7 | import 'package:data_app/presentation/widgets/data_header.dart'; 8 | import 'package:data_app/presentation/widgets/data_statistics.dart'; 9 | import 'package:data_app/presentation/widgets/data_title.dart'; 10 | import 'package:flutter/material.dart'; 11 | import 'package:flutter_neumorphic/flutter_neumorphic.dart'; 12 | 13 | class DataDetailsPage extends StatefulWidget { 14 | final AnimationController arcController; 15 | final AnimationController dialController; 16 | final AnimationController startController; 17 | final AnimationController endController; 18 | 19 | const DataDetailsPage( 20 | {Key key, 21 | this.arcController, 22 | this.dialController, 23 | this.startController, 24 | this.endController}) 25 | : super(key: key); 26 | @override 27 | _DataDetailsPageState createState() => 28 | // ignore: no_logic_in_create_state 29 | _DataDetailsPageState(startController, endController); 30 | } 31 | 32 | class _DataDetailsPageState extends State 33 | with SingleTickerProviderStateMixin { 34 | _DataDetailsPageState(this._startController, this._endController); 35 | AnimationController _barController; 36 | final AnimationController _startController; 37 | final AnimationController _endController; 38 | 39 | final List _chartValues = 40 | List.generate(7, (index) => Random().nextDouble() * 70); 41 | 42 | final ValueNotifier _indexNotifier = ValueNotifier(2); 43 | 44 | @override 45 | void initState() { 46 | _barController = AnimationController( 47 | vsync: this, 48 | duration: const Duration(milliseconds: 400), 49 | lowerBound: 0.5) 50 | ..forward(); 51 | super.initState(); 52 | } 53 | 54 | @override 55 | Widget build(BuildContext context) { 56 | return Scaffold( 57 | backgroundColor: kSwatch2, 58 | body: AnimatedBuilder( 59 | animation: Listenable.merge([_startController, _endController]), 60 | builder: (context, child) { 61 | return SingleChildScrollView( 62 | padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 20), 63 | child: Column( 64 | children: [ 65 | DataAppBar( 66 | startController: _startController, 67 | endController: _endController), 68 | const SizedBox( 69 | height: 20, 70 | ), 71 | DataTitle( 72 | startController: _startController, 73 | endController: _endController), 74 | const SizedBox( 75 | height: 12, 76 | ), 77 | DataHeader( 78 | startController: _startController, 79 | endController: _endController), 80 | const SizedBox( 81 | height: 40, 82 | ), 83 | DataPieChart( 84 | startController: _startController, 85 | endController: _endController, 86 | arcController: widget.arcController, 87 | dialController: widget.dialController, 88 | ), 89 | const SizedBox( 90 | height: 30, 91 | ), 92 | DataFilterWidget( 93 | startController: _startController, 94 | endController: _endController), 95 | const SizedBox( 96 | height: 10, 97 | ), 98 | DataStatistics( 99 | indexNotifier: _indexNotifier, 100 | barController: _barController, 101 | arcController: widget.arcController, 102 | chartValues: _chartValues, 103 | ), 104 | ], 105 | ), 106 | ); 107 | }, 108 | )); 109 | } 110 | } 111 | -------------------------------------------------------------------------------- /lib/presentation/pages/home_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:data_app/core/colors.dart'; 2 | import 'package:data_app/presentation/widgets/fade_animations.dart'; 3 | import 'package:data_app/presentation/widgets/home_appbar.dart'; 4 | import 'package:data_app/presentation/widgets/home_datapack.dart'; 5 | import 'package:data_app/presentation/widgets/home_header.dart'; 6 | import 'package:data_app/presentation/widgets/sim_card_widget.dart'; 7 | import 'package:flutter/material.dart'; 8 | import 'package:flutter/scheduler.dart'; 9 | import 'package:flutter_neumorphic/flutter_neumorphic.dart'; 10 | 11 | class HomePage extends StatefulWidget { 12 | const HomePage({Key key, this.startController, this.endController}) 13 | : super(key: key); 14 | final AnimationController startController; 15 | final AnimationController endController; 16 | 17 | @override 18 | _HomePageState createState() => 19 | // ignore: no_logic_in_create_state 20 | _HomePageState(startController, endController); 21 | } 22 | 23 | class _HomePageState extends State { 24 | _HomePageState(this._startController, this._endController); 25 | final AnimationController _startController; 26 | final AnimationController _endController; 27 | final GlobalKey _key = GlobalKey(); 28 | final List _simLists = 29 | List.generate(2, (index) => const SIMCardWidget()); 30 | final List _animationList = []; 31 | 32 | @override 33 | void initState() { 34 | _addSIMCardsToList(); 35 | super.initState(); 36 | } 37 | 38 | void _addSIMCardsToList() { 39 | Future.delayed(const Duration(milliseconds: 700)).whenComplete(() { 40 | SchedulerBinding.instance.addPostFrameCallback((timeStamp) { 41 | Future f = Future(() {}); 42 | _simLists.forEach((element) { 43 | f = f.then( 44 | (value) => Future.delayed(const Duration(milliseconds: 100), () { 45 | _animationList.add(element); 46 | _key.currentState.insertItem(_animationList.length - 1); 47 | })); 48 | }); 49 | }); 50 | }); 51 | } 52 | 53 | @override 54 | Widget build(BuildContext context) { 55 | return Scaffold( 56 | backgroundColor: kSwatch2, 57 | body: AnimatedBuilder( 58 | animation: Listenable.merge([_startController, _endController]), 59 | builder: (context, child) { 60 | return SingleChildScrollView( 61 | physics: const BouncingScrollPhysics(), 62 | padding: const EdgeInsets.symmetric(horizontal: 20) 63 | .copyWith(top: 20, bottom: 50), 64 | child: Column( 65 | children: [ 66 | HomeAppBar( 67 | startController: _startController, 68 | endController: _endController), 69 | const SizedBox( 70 | height: 20, 71 | ), 72 | HomeHeader( 73 | startController: _startController, 74 | endController: _endController), 75 | const SizedBox( 76 | height: 40, 77 | ), 78 | HomeDataPack( 79 | startController: _startController, 80 | endController: _endController), 81 | const SizedBox( 82 | height: 50, 83 | ), 84 | FadeFromUpAnimation( 85 | begin: 0.4, 86 | end: 0.7, 87 | startController: _startController, 88 | endController: _endController, 89 | child: const Align( 90 | alignment: Alignment.centerLeft, 91 | child: Text( 92 | 'SIM card managers', 93 | style: TextStyle( 94 | color: kSwatch5, fontWeight: FontWeight.bold), 95 | ), 96 | ), 97 | ), 98 | const SizedBox( 99 | height: 10, 100 | ), 101 | FadeFromUpAnimation( 102 | begin: 0.5, 103 | end: 0.8, 104 | drop: 0.01, 105 | // up: 0.02, 106 | startController: _startController, 107 | endController: _endController, 108 | child: AnimatedList( 109 | physics: const ClampingScrollPhysics(), 110 | shrinkWrap: true, 111 | key: _key, 112 | initialItemCount: _animationList.length, 113 | itemBuilder: (context, index, animation) => 114 | FadeTransition( 115 | opacity: animation, 116 | child: SlideTransition( 117 | position: Tween( 118 | begin: Offset(0, 0.1), end: Offset.zero) 119 | .animate(animation), 120 | child: const SIMCardWidget(), 121 | ), 122 | )), 123 | ) 124 | ], 125 | ), 126 | ); 127 | }, 128 | )); 129 | } 130 | } 131 | -------------------------------------------------------------------------------- /lib/presentation/pages/index_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:data_app/core/colors.dart'; 2 | import 'package:data_app/core/strings.dart'; 3 | import 'package:data_app/presentation/pages/data_details_page.dart'; 4 | import 'package:data_app/presentation/pages/home_page.dart'; 5 | import 'package:data_app/presentation/widgets/nav_item_builder.dart'; 6 | import 'package:flutter/cupertino.dart'; 7 | import 'package:flutter/material.dart'; 8 | import 'package:flutter_neumorphic/flutter_neumorphic.dart'; 9 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 10 | import 'package:lottie/lottie.dart'; 11 | 12 | class IndexPage extends StatefulWidget { 13 | @override 14 | _IndexPageState createState() => _IndexPageState(); 15 | } 16 | 17 | class _IndexPageState extends State with TickerProviderStateMixin { 18 | final ValueNotifier _indexNotifier = ValueNotifier(0); 19 | AnimationController _homeStartController; 20 | AnimationController _homeEndController; 21 | AnimationController _dataStartController; 22 | AnimationController _dataEndController; 23 | AnimationController _arcController; 24 | AnimationController _dialController; 25 | 26 | @override 27 | void initState() { 28 | _initializeAnimationControllers(); 29 | super.initState(); 30 | } 31 | 32 | @override 33 | void dispose() { 34 | _disposeAnimationControllers(); 35 | super.dispose(); 36 | } 37 | 38 | void _initializeAnimationControllers() { 39 | _arcController = AnimationController( 40 | vsync: this, duration: kAnimationDuration, lowerBound: 0.1); 41 | _homeStartController = AnimationController( 42 | vsync: this, 43 | duration: kAnimationDuration, 44 | )..forward(); 45 | _homeEndController = AnimationController( 46 | vsync: this, 47 | duration: kAnimationDuration, 48 | ); 49 | _dataStartController = AnimationController( 50 | vsync: this, 51 | duration: kAnimationDuration, 52 | ); 53 | _dataEndController = AnimationController( 54 | vsync: this, 55 | duration: kAnimationDuration, 56 | ); 57 | _dialController = AnimationController( 58 | vsync: this, duration: const Duration(seconds: 2), lowerBound: 0.1); 59 | } 60 | 61 | void _disposeAnimationControllers() { 62 | _arcController.dispose(); 63 | _homeStartController.dispose(); 64 | _homeEndController.dispose(); 65 | _dataStartController.dispose(); 66 | _dataEndController.dispose(); 67 | _dialController.dispose(); 68 | } 69 | 70 | void navigateToHome() { 71 | _homeEndController.forward(); 72 | Future.delayed(const Duration(milliseconds: 850)).whenComplete(() { 73 | _dataStartController.forward(); 74 | _indexNotifier.value = 1; 75 | _homeEndController.reset(); 76 | _arcController.forward(); 77 | Future.delayed(const Duration(milliseconds: 850)).whenComplete(() { 78 | _dialController.forward(); 79 | }); 80 | _homeStartController.reset(); 81 | }); 82 | } 83 | 84 | void navigateToDataDetailsPage() { 85 | _arcController.reverse(); 86 | _dialController.reverse(); 87 | _dataEndController.forward(); 88 | Future.delayed(const Duration(milliseconds: 850)).whenComplete(() { 89 | _homeEndController.reset(); 90 | _homeStartController.forward(); 91 | 92 | _indexNotifier.value = 0; 93 | _dataEndController.reset(); 94 | _dataStartController.reset(); 95 | }); 96 | } 97 | 98 | @override 99 | Widget build(BuildContext context) { 100 | return SafeArea( 101 | child: AnimatedBuilder( 102 | animation: Listenable.merge([ 103 | _homeStartController, 104 | _homeEndController, 105 | _dataStartController, 106 | _dataEndController, 107 | _indexNotifier 108 | ]), 109 | builder: (BuildContext context, Widget child) => Scaffold( 110 | body: IndexedStack( 111 | index: _indexNotifier.value, 112 | children: [ 113 | HomePage( 114 | endController: _homeEndController, 115 | startController: _homeStartController, 116 | ), 117 | DataDetailsPage( 118 | arcController: _arcController, 119 | dialController: _dialController, 120 | startController: _dataStartController, 121 | endController: _dataEndController, 122 | ) 123 | ], 124 | ), 125 | bottomNavigationBar: Neumorphic( 126 | style: const NeumorphicStyle(color: kSwatch2), 127 | child: SizedBox( 128 | height: 90, 129 | width: double.maxFinite, 130 | child: Row( 131 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 132 | children: [ 133 | NavigationBarItem( 134 | isAnimating: _dataEndController.isAnimating, 135 | onPressed: navigateToDataDetailsPage, 136 | depth: _indexNotifier.value == 0 137 | ? -10 * _homeStartController.value 138 | : 4 * _dataStartController.value, 139 | child: Lottie.asset( 140 | 'assets/home.json', 141 | repeat: false, 142 | height: _indexNotifier.value == 1 ? 16 : 20, 143 | width: _indexNotifier.value == 1 ? 16 : 20, 144 | ), 145 | ), 146 | NavigationBarItem( 147 | isAnimating: _homeEndController.isAnimating, 148 | onPressed: navigateToHome, 149 | depth: _indexNotifier.value == 1 150 | ? -10 * _dataStartController.value 151 | : 4 * _homeStartController.value, 152 | child: Icon( 153 | FontAwesomeIcons.signal, 154 | color: _indexNotifier.value == 0 ? kSwatch3 : kSwatch5, 155 | size: _indexNotifier.value == 0 ? 16 : 20, 156 | ), 157 | ), 158 | const NavigationBarItem( 159 | isAnimating: false, 160 | onPressed: null, 161 | depth: 4, 162 | child: Icon( 163 | FontAwesomeIcons.userAlt, 164 | color: kSwatch3, 165 | size: 16, 166 | ), 167 | ), 168 | const NavigationBarItem( 169 | isAnimating: false, 170 | onPressed: null, 171 | depth: 4, 172 | child: Icon( 173 | FontAwesomeIcons.cog, 174 | color: kSwatch3, 175 | size: 16, 176 | ), 177 | ), 178 | ], 179 | ), 180 | ), 181 | ), 182 | ), 183 | ), 184 | ); 185 | } 186 | } 187 | -------------------------------------------------------------------------------- /lib/presentation/widgets/bar_painter.dart: -------------------------------------------------------------------------------- 1 | import 'package:data_app/core/colors.dart'; 2 | import 'package:flutter/cupertino.dart'; 3 | import 'package:flutter/material.dart'; 4 | 5 | class ChartPainter extends CustomPainter { 6 | final double value; 7 | final double end; 8 | final bool isSelected; 9 | 10 | Paint b1Paint = Paint() 11 | ..style = PaintingStyle.stroke 12 | ..color = kSwatch1 13 | ..strokeCap = StrokeCap.round; 14 | 15 | ChartPainter({this.isSelected, this.end, this.value}); 16 | 17 | final Path path = Path(); 18 | 19 | @override 20 | void paint(Canvas canvas, Size size) { 21 | if (!isSelected) { 22 | b1Paint.strokeWidth = 10; 23 | 24 | path.moveTo(10, 110); 25 | path.lineTo(10, 110 - end * value); 26 | } else { 27 | b1Paint.strokeWidth = 15; 28 | path.moveTo(25, 110); 29 | path.lineTo(25, 110 - end * value); 30 | } 31 | canvas.drawPath(path, b1Paint); 32 | canvas.drawShadow(path.shift(const Offset(5, -10)), Colors.black, 20.0, true); 33 | } 34 | 35 | @override 36 | bool shouldRepaint(CustomPainter oldDelegate) => true; 37 | } 38 | -------------------------------------------------------------------------------- /lib/presentation/widgets/big_arc_painter.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | 3 | import 'package:data_app/core/colors.dart'; 4 | import 'package:flutter/material.dart'; 5 | 6 | class BigArcPainter extends CustomPainter { 7 | final double value; 8 | 9 | BigArcPainter(this.value); 10 | @override 11 | void paint(Canvas canvas, Size size) { 12 | const Gradient outerGradient = SweepGradient( 13 | center: Alignment.topCenter, 14 | colors: [ 15 | Color(0xffDD767B), 16 | Color(0xffE8969B), 17 | ], 18 | stops: [ 19 | 0.3, 20 | 0.4, 21 | ], 22 | ); 23 | const Gradient innerGradient = SweepGradient( 24 | colors: [kSwatch5, Colors.white], 25 | stops: [ 26 | 0.3, 27 | 0.4, 28 | ], 29 | ); 30 | 31 | final Rect _outerCircle = Rect.fromCenter( 32 | center: Offset(size.width * 0.5, size.height * 0.5), 33 | width: size.width + 2, 34 | height: size.height + 2); 35 | final Rect _innerCircle = Rect.fromCenter( 36 | center: Offset(size.width * 0.5, size.height * 0.5), 37 | width: size.width, 38 | height: size.height); 39 | 40 | canvas.drawArc( 41 | _outerCircle, 42 | -pi / 2, 43 | -1.25 * pi / value, 44 | true, 45 | Paint() 46 | ..color = kSwatch4 47 | ..shader = innerGradient.createShader(_outerCircle)); 48 | canvas.drawArc( 49 | _innerCircle, 50 | -pi / 2, 51 | -1.25 * pi / value, 52 | true, 53 | Paint() 54 | ..color = kSwatch3 55 | ..shader = outerGradient.createShader(_innerCircle)); 56 | } 57 | 58 | @override 59 | bool shouldRepaint(BigArcPainter oldDelegate) => true; 60 | 61 | @override 62 | bool shouldRebuildSemantics(BigArcPainter oldDelegate) => false; 63 | } 64 | -------------------------------------------------------------------------------- /lib/presentation/widgets/data_appbar.dart: -------------------------------------------------------------------------------- 1 | import 'package:data_app/core/colors.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_neumorphic/flutter_neumorphic.dart'; 4 | 5 | import 'fade_animations.dart'; 6 | 7 | class DataAppBar extends StatelessWidget { 8 | const DataAppBar({ 9 | Key key, 10 | @required AnimationController startController, 11 | @required AnimationController endController, 12 | }) : _startController = startController, 13 | _endController = endController, 14 | super(key: key); 15 | 16 | final AnimationController _startController; 17 | final AnimationController _endController; 18 | 19 | @override 20 | Widget build(BuildContext context) { 21 | return FadeFromUpAnimation( 22 | begin: 0.0, 23 | end: 0.3, 24 | startController: _startController, 25 | endController: _endController, 26 | child: Row( 27 | children: [ 28 | const Text( 29 | 'Data details', 30 | style: TextStyle( 31 | color: kSwatch5, fontWeight: FontWeight.bold, fontSize: 16), 32 | ), 33 | const Spacer(), 34 | LimitedBox( 35 | maxHeight: 25, 36 | maxWidth: 25, 37 | child: GridView.count( 38 | crossAxisCount: 2, 39 | children: List.generate( 40 | 4, 41 | (index) => Padding( 42 | padding: const EdgeInsets.all(2.5), 43 | child: Neumorphic( 44 | boxShape: const NeumorphicBoxShape.circle(), 45 | style: const NeumorphicStyle( 46 | color: kSwatch3, shape: NeumorphicShape.convex), 47 | ), 48 | )), 49 | ), 50 | ) 51 | ], 52 | ), 53 | ); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /lib/presentation/widgets/data_bar_chart.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | 3 | import 'package:data_app/core/colors.dart'; 4 | import 'package:data_app/presentation/widgets/sub_arc_painter.dart'; 5 | import 'package:data_app/presentation/widgets/white_painter.dart'; 6 | import 'package:flutter/material.dart'; 7 | import 'package:flutter_neumorphic/flutter_neumorphic.dart'; 8 | import 'package:lottie/lottie.dart'; 9 | 10 | import 'fade_animations.dart'; 11 | import 'big_arc_painter.dart'; 12 | import 'gear_painter.dart'; 13 | 14 | class DataPieChart extends StatelessWidget { 15 | const DataPieChart({ 16 | Key key, 17 | @required AnimationController startController, 18 | @required AnimationController endController, 19 | @required AnimationController dialController, 20 | @required AnimationController arcController, 21 | }) : _startController = startController, 22 | _endController = endController, 23 | _dialController = dialController, 24 | _arcController = arcController, 25 | super(key: key); 26 | 27 | final AnimationController _startController; 28 | final AnimationController _endController; 29 | final AnimationController _dialController; 30 | final AnimationController _arcController; 31 | 32 | @override 33 | Widget build(BuildContext context) { 34 | return FadeFromUpAnimation( 35 | begin: 0.3, 36 | end: 0.6, 37 | drop: 0.04, 38 | up: 0.02, 39 | startController: _startController, 40 | endController: _endController, 41 | child: Neumorphic( 42 | boxShape: const NeumorphicBoxShape.circle(), 43 | style: NeumorphicStyle( 44 | color: kSwatch2, 45 | depth: Neumorphic.MAX_DEPTH, 46 | lightSource: LightSource.topLeft, 47 | shadowLightColor: Colors.white, 48 | shadowDarkColor: kSwatch5.withOpacity(0.7), 49 | shape: NeumorphicShape.concave), 50 | child: AspectRatio( 51 | aspectRatio: 1.25, 52 | child: SizedBox( 53 | height: MediaQuery.of(context).size.width, 54 | width: MediaQuery.of(context).size.width, 55 | child: Stack( 56 | alignment: Alignment.center, 57 | children: [ 58 | AnimatedBuilder( 59 | animation: _dialController, 60 | builder: (context, child) { 61 | return FadeTransition( 62 | opacity: CurvedAnimation( 63 | parent: _arcController, 64 | curve: const Interval(0.0, 0.45)), 65 | child: ScaleTransition( 66 | scale: CurvedAnimation( 67 | parent: _arcController, 68 | curve: const Interval(0.0, 0.2)), 69 | child: RotationTransition( 70 | turns: CurvedAnimation( 71 | parent: _dialController, 72 | curve: Curves.fastLinearToSlowEaseIn), 73 | child: child, 74 | ), 75 | ), 76 | ); 77 | }, 78 | child: CustomPaint( 79 | size: const Size.fromRadius(105), 80 | isComplex: true, 81 | painter: GearPainter(), 82 | ), 83 | ), 84 | AnimatedBuilder( 85 | animation: _arcController, 86 | builder: (BuildContext context, Widget child) { 87 | return FadeTransition( 88 | opacity: CurvedAnimation( 89 | parent: _arcController, 90 | curve: const Interval(0.0, 0.45)), 91 | child: ScaleTransition( 92 | scale: CurvedAnimation( 93 | parent: _arcController, 94 | curve: const Interval(0.0, 0.3)), 95 | child: CustomPaint( 96 | size: const Size.fromRadius(130), 97 | painter: BigArcPainter(CurvedAnimation( 98 | parent: _arcController, 99 | curve: Curves.easeInOutBack) 100 | .value), 101 | ), 102 | ), 103 | ); 104 | }, 105 | ), 106 | Positioned( 107 | bottom: 45, 108 | right: 96, 109 | height: 50, 110 | width: 75, 111 | child: Visibility( 112 | visible: _arcController.value > 0.9, 113 | child: Transform.rotate( 114 | angle: 1.25 * pi, 115 | child: Lottie.asset('assets/splash.json', 116 | frameRate: FrameRate.max, repeat: false), 117 | ), 118 | ), 119 | ), 120 | AnimatedBuilder( 121 | animation: _arcController, 122 | builder: (BuildContext context, Widget child) { 123 | return FadeTransition( 124 | opacity: CurvedAnimation( 125 | parent: _arcController, 126 | curve: const Interval(0.0, 0.45)), 127 | child: ScaleTransition( 128 | scale: CurvedAnimation( 129 | parent: _arcController, 130 | curve: const Interval(0.0, 0.4)), 131 | child: CustomPaint( 132 | size: const Size.fromRadius(120), 133 | painter: WhitePainter( 134 | radius: 120, animationController: _arcController), 135 | ), 136 | ), 137 | ); 138 | }, 139 | ), 140 | Neumorphic( 141 | boxShape: const NeumorphicBoxShape.circle(), 142 | style: const NeumorphicStyle( 143 | color: kSwatch2, shape: NeumorphicShape.concave), 144 | // margin: const EdgeInsets.all(20), 145 | child: CustomPaint( 146 | size: const Size.fromRadius(45), 147 | painter: SubArcPainter(), 148 | ), 149 | ), 150 | Neumorphic( 151 | boxShape: const NeumorphicBoxShape.circle(), 152 | style: const NeumorphicStyle( 153 | shadowDarkColor: Colors.white12, 154 | color: kSwatch2, 155 | shape: NeumorphicShape.concave), 156 | // margin: const EdgeInsets.all(20), 157 | child: CustomPaint( 158 | size: const Size.fromRadius(38), 159 | painter: SubArcPainter(), 160 | ), 161 | ), 162 | Column( 163 | mainAxisAlignment: MainAxisAlignment.center, 164 | children: [ 165 | Text( 166 | '6.59', 167 | style: TextStyle( 168 | color: kSwatch4, 169 | fontSize: 18, 170 | fontWeight: FontWeight.bold), 171 | ), 172 | const SizedBox( 173 | height: 4, 174 | ), 175 | Text( 176 | '/ 10Gb', 177 | style: TextStyle( 178 | color: kSwatch1, 179 | fontSize: 12, 180 | fontWeight: FontWeight.normal), 181 | ), 182 | ], 183 | ) 184 | ], 185 | ), 186 | ), 187 | ), 188 | ), 189 | ); 190 | } 191 | } 192 | -------------------------------------------------------------------------------- /lib/presentation/widgets/data_filter.dart: -------------------------------------------------------------------------------- 1 | import 'package:data_app/core/colors.dart'; 2 | import 'package:flutter_neumorphic/flutter_neumorphic.dart'; 3 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 4 | 5 | import 'fade_animations.dart'; 6 | 7 | class DataFilterWidget extends StatelessWidget { 8 | const DataFilterWidget({ 9 | Key key, 10 | @required AnimationController startController, 11 | @required AnimationController endController, 12 | }) : _startController = startController, 13 | _endController = endController, 14 | super(key: key); 15 | 16 | final AnimationController _startController; 17 | final AnimationController _endController; 18 | 19 | @override 20 | Widget build(BuildContext context) { 21 | return FadeFromUpAnimation( 22 | begin: 0.4, 23 | end: 1.0, 24 | startController: _startController, 25 | endController: _endController, 26 | child: Row( 27 | children: [ 28 | const Text( 29 | '3.41GB USED', 30 | style: TextStyle( 31 | color: kSwatch5, fontWeight: FontWeight.bold, fontSize: 16), 32 | ), 33 | const Spacer(), 34 | Neumorphic( 35 | boxShape: NeumorphicBoxShape.roundRect(BorderRadius.circular(8)), 36 | style: const NeumorphicStyle( 37 | color: kSwatch2, shape: NeumorphicShape.concave), 38 | child: SizedBox( 39 | height: 30, 40 | width: 90, 41 | child: Row( 42 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 43 | children: [ 44 | const Text( 45 | 'Feb 1-7', 46 | style: TextStyle( 47 | fontSize: 12, 48 | fontWeight: FontWeight.bold, 49 | color: kSwatch4), 50 | ), 51 | const Icon( 52 | FontAwesomeIcons.caretDown, 53 | color: kSwatch1, 54 | size: 18, 55 | ) 56 | ], 57 | ), 58 | ), 59 | ) 60 | ], 61 | ), 62 | ); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /lib/presentation/widgets/data_header.dart: -------------------------------------------------------------------------------- 1 | 2 | import 'package:data_app/core/colors.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter_neumorphic/flutter_neumorphic.dart'; 5 | 6 | import 'fade_animations.dart'; 7 | 8 | class DataHeader extends StatelessWidget { 9 | const DataHeader({ 10 | Key key, 11 | @required AnimationController startController, 12 | @required AnimationController endController, 13 | }) : _startController = startController, 14 | _endController = endController, 15 | super(key: key); 16 | 17 | final AnimationController _startController; 18 | final AnimationController _endController; 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | return FadeFromUpAnimation( 23 | begin: 0.2, 24 | end: 0.5, 25 | startController: _startController, 26 | endController: _endController, 27 | child: Row( 28 | mainAxisAlignment: MainAxisAlignment.center, 29 | children: [ 30 | const Text('DATAQT14A', 31 | style: TextStyle( 32 | color: kSwatch3, fontSize: 14, fontWeight: FontWeight.bold)), 33 | Neumorphic( 34 | margin: const EdgeInsets.symmetric(horizontal: 10), 35 | boxShape: const NeumorphicBoxShape.circle(), 36 | style: const NeumorphicStyle( 37 | color: kSwatch3, shape: NeumorphicShape.concave), 38 | child: const SizedBox( 39 | height: 5, 40 | width: 5, 41 | ), 42 | ), 43 | const Text('25/30 days', 44 | style: TextStyle( 45 | color: kSwatch3, fontSize: 14, fontWeight: FontWeight.bold)), 46 | ], 47 | ), 48 | ); 49 | } 50 | } -------------------------------------------------------------------------------- /lib/presentation/widgets/data_statistics.dart: -------------------------------------------------------------------------------- 1 | import 'package:data_app/core/colors.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_neumorphic/flutter_neumorphic.dart'; 4 | 5 | import 'bar_painter.dart'; 6 | 7 | class DataStatistics extends StatelessWidget { 8 | const DataStatistics({ 9 | Key key, 10 | @required ValueNotifier indexNotifier, 11 | @required AnimationController barController, 12 | @required AnimationController arcController, 13 | @required List chartValues, 14 | }) : _indexNotifier = indexNotifier, 15 | _barController = barController, 16 | _chartValues = chartValues, 17 | _arcController = arcController, 18 | super(key: key); 19 | 20 | final ValueNotifier _indexNotifier; 21 | final AnimationController _barController; 22 | final AnimationController _arcController; 23 | final List _chartValues; 24 | 25 | @override 26 | Widget build(BuildContext context) { 27 | return ValueListenableBuilder( 28 | valueListenable: _indexNotifier, 29 | builder: (BuildContext context, dynamic selectedIndex, Widget child) { 30 | return Row( 31 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 32 | children: List.generate(7, (index) { 33 | return InkWell( 34 | onTap: () { 35 | _barController.reverse(); 36 | Future.delayed(const Duration(milliseconds: 400)) 37 | .whenComplete(() { 38 | _indexNotifier.value = index; 39 | _barController.forward(); 40 | }); 41 | }, 42 | child: AnimatedBuilder( 43 | animation: Listenable.merge([_arcController, _barController]), 44 | builder: (BuildContext context, Widget child) { 45 | return Neumorphic( 46 | boxShape: NeumorphicBoxShape.roundRect( 47 | BorderRadius.circular(5)), 48 | style: NeumorphicStyle( 49 | disableDepth: selectedIndex != index, 50 | shadowDarkColorEmboss: kSwatch2, 51 | color: kSwatch2), 52 | child: SizedBox( 53 | height: selectedIndex != index 54 | ? 150 55 | : 150 * 56 | CurvedAnimation( 57 | parent: _barController, 58 | curve: Curves.ease) 59 | .value, 60 | width: selectedIndex == index ? 50 : 20, 61 | child: CustomPaint( 62 | size: const Size.fromHeight(150), 63 | painter: ChartPainter( 64 | end: _chartValues[index], 65 | isSelected: selectedIndex == index, 66 | value: _arcController.value, 67 | ), 68 | child: Padding( 69 | padding: const EdgeInsets.symmetric(vertical: 10), 70 | child: Column( 71 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 72 | children: [ 73 | Text( 74 | selectedIndex == index 75 | ? '${(_chartValues[index] * 5).toInt()}Mb' 76 | : '', 77 | style: const TextStyle( 78 | fontSize: 11, 79 | color: kSwatch1, 80 | fontWeight: FontWeight.bold), 81 | ), 82 | Text( 83 | '2/${index + 1}', 84 | style: const TextStyle( 85 | fontSize: 11, 86 | color: kSwatch1, 87 | fontWeight: FontWeight.bold), 88 | ), 89 | ], 90 | ), 91 | ), 92 | ), 93 | ), 94 | ); 95 | }, 96 | ), 97 | ); 98 | })); 99 | }, 100 | ); 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /lib/presentation/widgets/data_title.dart: -------------------------------------------------------------------------------- 1 | import 'package:data_app/core/colors.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | import 'fade_animations.dart'; 5 | 6 | class DataTitle extends StatelessWidget { 7 | const DataTitle({ 8 | Key key, 9 | @required AnimationController startController, 10 | @required AnimationController endController, 11 | }) : _startController = startController, 12 | _endController = endController, 13 | super(key: key); 14 | 15 | final AnimationController _startController; 16 | final AnimationController _endController; 17 | 18 | @override 19 | Widget build(BuildContext context) { 20 | return FadeFromUpAnimation( 21 | begin: 0.1, 22 | end: 0.4, 23 | startController: _startController, 24 | endController: _endController, 25 | child: const Center( 26 | child: Text('Data usage', 27 | style: TextStyle( 28 | color: kSwatch5, 29 | shadows: [ 30 | Shadow(color: kSwatch3, blurRadius: 3, offset: Offset(2, 2)) 31 | ], 32 | fontSize: 30, 33 | fontWeight: FontWeight.normal, 34 | letterSpacing: 0.2))), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /lib/presentation/widgets/fade_animations.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | const kCurve = Curves.easeInCubic; 4 | 5 | class FadeFromUpAnimation extends StatefulWidget { 6 | final Widget child; 7 | final double begin, end; 8 | final double drop; 9 | final double up; 10 | final AnimationController startController; 11 | final AnimationController endController; 12 | 13 | const FadeFromUpAnimation( 14 | {this.child, 15 | this.begin, 16 | this.end, 17 | this.drop = 0.3, 18 | this.up = 0.3, 19 | this.startController, 20 | this.endController}); 21 | @override 22 | _FadeFromUpAnimationState createState() => _FadeFromUpAnimationState(); 23 | } 24 | 25 | class _FadeFromUpAnimationState extends State 26 | with SingleTickerProviderStateMixin { 27 | Animation _animation; 28 | 29 | @override 30 | void initState() { 31 | super.initState(); 32 | } 33 | 34 | @override 35 | Widget build(BuildContext context) { 36 | if (widget.endController.status == AnimationStatus.forward) { 37 | _animation = 38 | Tween(begin: Offset.zero, end: Offset(0, -widget.up)).animate( 39 | CurvedAnimation( 40 | parent: widget.endController, 41 | curve: Interval(widget.begin, widget.end, curve: kCurve)), 42 | ); 43 | } else { 44 | _animation = 45 | Tween(begin: Offset(0, widget.drop), end: Offset.zero) 46 | .animate( 47 | CurvedAnimation( 48 | parent: widget.startController, 49 | curve: Interval(widget.begin, widget.end, curve: kCurve)), 50 | ); 51 | } 52 | 53 | AnimationController _currentController() { 54 | switch (widget.endController.status == AnimationStatus.forward) { 55 | case true: 56 | return widget.endController; 57 | 58 | break; 59 | default: 60 | return widget.startController; 61 | } 62 | } 63 | 64 | return SlideTransition( 65 | position: _animation, 66 | child: Opacity( 67 | opacity: Tween(begin: 0.0, end: 1.0) 68 | .animate(CurvedAnimation( 69 | parent: widget.startController, 70 | curve: Curves.easeOut)) 71 | .value, 72 | child: widget.child, 73 | )); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /lib/presentation/widgets/gear_painter.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | import 'dart:ui'; 3 | 4 | import 'package:flutter/material.dart'; 5 | 6 | class GearPainter extends CustomPainter { 7 | final double tickLength = 20.0; 8 | final double tickWidth = 10.0; 9 | 10 | @override 11 | void paint(Canvas canvas, Size size) { 12 | final Paint tickPaint = Paint() 13 | ..strokeCap = StrokeCap.butt 14 | ..color = const Color(0xffF5D4D6); 15 | double tickMarkLength; 16 | final double angle = pi / 15; 17 | final radius = size.width / 2; 18 | canvas.save(); 19 | 20 | canvas.translate(radius, radius); 21 | for (var i = 0; i < 60; i++) { 22 | tickMarkLength = tickLength; 23 | tickPaint.strokeWidth = tickWidth; 24 | canvas.drawPoints( 25 | PointMode.polygon, 26 | [Offset(0.0, -radius), Offset(0, -radius + tickMarkLength)], 27 | tickPaint); 28 | 29 | canvas.rotate(angle); 30 | } 31 | 32 | canvas.restore(); 33 | } 34 | 35 | @override 36 | bool shouldRepaint(CustomPainter oldDelegate) { 37 | return false; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /lib/presentation/widgets/home_appbar.dart: -------------------------------------------------------------------------------- 1 | import 'package:data_app/core/colors.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_neumorphic/flutter_neumorphic.dart'; 4 | 5 | import 'fade_animations.dart'; 6 | 7 | class HomeAppBar extends StatelessWidget { 8 | const HomeAppBar({ 9 | Key key, 10 | @required AnimationController startController, 11 | @required AnimationController endController, 12 | }) : _startController = startController, 13 | _endController = endController, 14 | super(key: key); 15 | 16 | final AnimationController _startController; 17 | final AnimationController _endController; 18 | 19 | @override 20 | Widget build(BuildContext context) { 21 | return FadeFromUpAnimation( 22 | begin: 0.0, 23 | end: 0.3, 24 | // up: 0.8, 25 | startController: _startController, 26 | endController: _endController, 27 | child: Row( 28 | children: [ 29 | Column( 30 | crossAxisAlignment: CrossAxisAlignment.start, 31 | children: [ 32 | const Text( 33 | 'Welcome back,', 34 | style: TextStyle(color: kSwatch5), 35 | ), 36 | const SizedBox( 37 | height: 6, 38 | ), 39 | const Text( 40 | 'Sanjeev', 41 | style: TextStyle( 42 | color: kSwatch5, fontWeight: FontWeight.bold, fontSize: 16), 43 | ) 44 | ], 45 | ), 46 | const Spacer(), 47 | Neumorphic( 48 | boxShape: const NeumorphicBoxShape.circle(), 49 | padding: const EdgeInsets.all(10), 50 | style: const NeumorphicStyle( 51 | color: kSwatch2, shape: NeumorphicShape.concave), 52 | child: const CircleAvatar( 53 | radius: 15, 54 | backgroundColor: Colors.white, 55 | backgroundImage: NetworkImage( 56 | 'https://media-exp1.licdn.com/dms/image/C5603AQHQGhYWooaJsA/profile-displayphoto-shrink_800_800/0/1596544415173?e=1617235200&v=beta&t=yd_U_N_mYyMFktB1VZfIN66XBcfa_TwyKy-mv6jfmfA'), 57 | ), 58 | ) 59 | ], 60 | ), 61 | ); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /lib/presentation/widgets/home_datapack.dart: -------------------------------------------------------------------------------- 1 | import 'package:data_app/core/colors.dart'; 2 | import 'package:flutter_neumorphic/flutter_neumorphic.dart'; 3 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 4 | import 'package:flutter/material.dart'; 5 | 6 | import 'fade_animations.dart'; 7 | 8 | class HomeDataPack extends StatelessWidget { 9 | const HomeDataPack({ 10 | Key key, 11 | @required AnimationController startController, 12 | @required AnimationController endController, 13 | }) : _startController = startController, 14 | _endController = endController, 15 | super(key: key); 16 | 17 | final AnimationController _startController; 18 | final AnimationController _endController; 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | return FadeFromUpAnimation( 23 | begin: 0.3, 24 | end: 0.6, 25 | startController: _startController, 26 | endController: _endController, 27 | child: Row( 28 | children: [ 29 | Expanded( 30 | child: Padding( 31 | padding: const EdgeInsets.only(right: 10), 32 | child: Neumorphic( 33 | style: NeumorphicStyle( 34 | color: kSwatch1, shape: NeumorphicShape.convex), 35 | boxShape: 36 | NeumorphicBoxShape.roundRect(BorderRadius.circular(15)), 37 | child: SizedBox( 38 | height: 70, 39 | child: Row( 40 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 41 | children: [ 42 | Column( 43 | mainAxisAlignment: MainAxisAlignment.center, 44 | children: [ 45 | const Text( 46 | 'TOP UP', 47 | style: TextStyle( 48 | fontSize: 12, 49 | color: Colors.white, 50 | fontWeight: FontWeight.bold), 51 | ), 52 | const SizedBox( 53 | height: 8, 54 | ), 55 | const Text( 56 | '20% OFF', 57 | style: TextStyle( 58 | fontSize: 10, 59 | color: Colors.white70, 60 | fontWeight: FontWeight.bold), 61 | ), 62 | ], 63 | ), 64 | Neumorphic( 65 | boxShape: NeumorphicBoxShape.roundRect( 66 | BorderRadius.circular(10)), 67 | style: NeumorphicStyle( 68 | depth: -10, 69 | color: kSwatch1, 70 | shape: NeumorphicShape.concave), 71 | child: SizedBox( 72 | height: 35, 73 | width: 35, 74 | child: Icon( 75 | FontAwesomeIcons.arrowUp, 76 | color: Colors.white, 77 | size: 14, 78 | ), 79 | ), 80 | ) 81 | ], 82 | ), 83 | ), 84 | ), 85 | ), 86 | ), 87 | Expanded( 88 | child: Padding( 89 | padding: const EdgeInsets.only(right: 10), 90 | child: Neumorphic( 91 | style: NeumorphicStyle(color: kSwatch2), 92 | boxShape: 93 | NeumorphicBoxShape.roundRect(BorderRadius.circular(15)), 94 | child: SizedBox( 95 | height: 70, 96 | child: Row( 97 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 98 | children: [ 99 | Column( 100 | crossAxisAlignment: CrossAxisAlignment.start, 101 | mainAxisAlignment: MainAxisAlignment.center, 102 | children: [ 103 | const Text( 104 | 'PACKAGE', 105 | style: TextStyle( 106 | fontSize: 12, 107 | color: kSwatch4, 108 | fontWeight: FontWeight.bold), 109 | ), 110 | const SizedBox( 111 | height: 8, 112 | ), 113 | const Text( 114 | '+2 NEW', 115 | style: TextStyle( 116 | fontSize: 10, 117 | color: kSwatch1, 118 | fontWeight: FontWeight.bold), 119 | ), 120 | ], 121 | ), 122 | Neumorphic( 123 | boxShape: NeumorphicBoxShape.roundRect( 124 | BorderRadius.circular(10)), 125 | style: NeumorphicStyle( 126 | depth: -10, 127 | color: kSwatch2, 128 | shape: NeumorphicShape.concave), 129 | child: SizedBox( 130 | height: 35, 131 | width: 35, 132 | child: Icon( 133 | FontAwesomeIcons.archive, 134 | color: kSwatch1, 135 | size: 14, 136 | ), 137 | ), 138 | ) 139 | ], 140 | ), 141 | ), 142 | ), 143 | ), 144 | ), 145 | ], 146 | ), 147 | ); 148 | } 149 | } 150 | -------------------------------------------------------------------------------- /lib/presentation/widgets/home_header.dart: -------------------------------------------------------------------------------- 1 | 2 | import 'package:data_app/core/colors.dart'; 3 | import 'package:flutter/material.dart'; 4 | 5 | import 'fade_animations.dart'; 6 | 7 | class HomeHeader extends StatelessWidget { 8 | const HomeHeader({ 9 | Key key, 10 | @required AnimationController startController, 11 | @required AnimationController endController, 12 | }) : _startController = startController, _endController = endController, super(key: key); 13 | 14 | final AnimationController _startController; 15 | final AnimationController _endController; 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | return Column( 20 | children: [ 21 | FadeFromUpAnimation( 22 | begin: 0.1, 23 | end: 0.4, 24 | startController: _startController, 25 | endController: _endController, 26 | child: const Center( 27 | child: Text( 28 | 'Main balance', 29 | style: TextStyle( 30 | color: kSwatch1, 31 | fontWeight: FontWeight.bold, 32 | fontSize: 16), 33 | )), 34 | ), 35 | const SizedBox( 36 | height: 20, 37 | ), 38 | FadeFromUpAnimation( 39 | begin: 0.2, 40 | end: 0.5, 41 | startController: _startController, 42 | endController: _endController, 43 | child: const Center( 44 | child: Text( 45 | '\$120.56', 46 | style: TextStyle( 47 | color: kSwatch5, 48 | shadows: [ 49 | Shadow( 50 | color: kSwatch3, 51 | blurRadius: 2, 52 | offset: Offset(3, 3)) 53 | ], 54 | fontSize: 50, 55 | fontWeight: FontWeight.bold, 56 | letterSpacing: 5), 57 | ), 58 | ), 59 | ), 60 | ], 61 | ); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /lib/presentation/widgets/nav_item_builder.dart: -------------------------------------------------------------------------------- 1 | import 'package:data_app/core/colors.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_neumorphic/flutter_neumorphic.dart'; 4 | import 'package:lottie/lottie.dart'; 5 | 6 | class NavigationBarItem extends StatelessWidget { 7 | const NavigationBarItem({ 8 | Key key, 9 | @required Widget child, 10 | @required VoidCallback onPressed, 11 | @required double depth, 12 | @required bool isAnimating, 13 | }) : _onPressed = onPressed, 14 | _child = child, 15 | _depth = depth, 16 | _isAnimating = isAnimating, 17 | super(key: key); 18 | 19 | final VoidCallback _onPressed; 20 | final Widget _child; 21 | final double _depth; 22 | final bool _isAnimating; 23 | 24 | @override 25 | Widget build(BuildContext context) { 26 | return InkWell( 27 | onTap: _onPressed, 28 | child: Stack( 29 | alignment: Alignment.center, 30 | children: [ 31 | Neumorphic( 32 | style: NeumorphicStyle( 33 | color: kSwatch2, 34 | depth: _depth, 35 | shape: NeumorphicShape.convex, 36 | ), 37 | boxShape: NeumorphicBoxShape.roundRect(BorderRadius.circular(10)), 38 | padding: const EdgeInsets.all(15), 39 | child: _child, 40 | ), 41 | Lottie.asset( 42 | 'assets/touch.json', 43 | animate: _isAnimating, 44 | repeat: false, 45 | height: 100, 46 | width: 100, 47 | ) 48 | ], 49 | ), 50 | ); 51 | } 52 | } -------------------------------------------------------------------------------- /lib/presentation/widgets/sim_card_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:data_app/core/colors.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_neumorphic/flutter_neumorphic.dart'; 4 | import 'package:flutter_svg/flutter_svg.dart'; 5 | 6 | class SIMCardWidget extends StatelessWidget { 7 | const SIMCardWidget({ 8 | Key key, 9 | }) : super(key: key); 10 | 11 | @override 12 | Widget build(BuildContext context) { 13 | return Padding( 14 | padding: const EdgeInsets.only(top: 10), 15 | child: Neumorphic( 16 | margin: const EdgeInsets.all(8), 17 | style: const NeumorphicStyle(color: kSwatch2), 18 | boxShape: NeumorphicBoxShape.roundRect(BorderRadius.circular(10)), 19 | child: SizedBox( 20 | height: 120, 21 | width: double.maxFinite, 22 | child: Padding( 23 | padding: const EdgeInsets.symmetric(horizontal: 20), 24 | child: Row( 25 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 26 | children: [ 27 | Padding( 28 | padding: const EdgeInsets.symmetric(vertical: 20), 29 | child: Column( 30 | crossAxisAlignment: CrossAxisAlignment.start, 31 | mainAxisAlignment: MainAxisAlignment.center, 32 | children: [ 33 | const Text( 34 | 'SIM1 • Verizon', 35 | style: TextStyle( 36 | color: kSwatch4, fontWeight: FontWeight.bold), 37 | ), 38 | const SizedBox( 39 | height: 8, 40 | ), 41 | const Text( 42 | '5G/4G', 43 | style: TextStyle( 44 | fontSize: 12, 45 | color: kSwatch1, 46 | fontWeight: FontWeight.normal), 47 | ), 48 | const Spacer(), 49 | const Text( 50 | '7.56/10Gb', 51 | style: TextStyle( 52 | fontSize: 16, 53 | color: kSwatch4, 54 | fontWeight: FontWeight.bold), 55 | ), 56 | ], 57 | ), 58 | ), 59 | DecoratedBox( 60 | decoration: BoxDecoration(boxShadow: [ 61 | BoxShadow( 62 | color: Colors.black12, 63 | blurRadius: 20, 64 | offset: Offset(5, 5), 65 | spreadRadius: 0.5) 66 | ]), 67 | child: Stack( 68 | alignment: Alignment.center, 69 | children: [ 70 | SvgPicture.asset( 71 | 'assets/sim.svg', 72 | height: 57, 73 | color: kSwatch3, 74 | ), 75 | SvgPicture.asset( 76 | 'assets/sim-card.svg', 77 | height: 60, 78 | color: kSwatch1, 79 | ), 80 | ], 81 | ), 82 | ) 83 | ], 84 | ), 85 | ), 86 | ), 87 | ), 88 | ); 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /lib/presentation/widgets/sub_arc_painter.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | 3 | import 'package:data_app/core/colors.dart'; 4 | import 'package:flutter/material.dart'; 5 | 6 | class SubArcPainter extends CustomPainter { 7 | @override 8 | void paint(Canvas canvas, Size size) { 9 | final Rect _circle = Rect.fromCenter( 10 | center: Offset(size.width * 0.5, size.height * 0.5), 11 | width: size.width, 12 | height: size.height); 13 | 14 | canvas.drawArc( 15 | _circle, -pi / 2, -1.25 * pi, true, Paint()..color = kSwatch2); 16 | } 17 | 18 | @override 19 | bool shouldRepaint(SubArcPainter oldDelegate) => false; 20 | 21 | @override 22 | bool shouldRebuildSemantics(SubArcPainter oldDelegate) => false; 23 | } 24 | -------------------------------------------------------------------------------- /lib/presentation/widgets/white_painter.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | 3 | import 'package:data_app/core/colors.dart'; 4 | import 'package:flutter/material.dart'; 5 | 6 | class WhitePainter extends CustomPainter { 7 | final double radius; 8 | final AnimationController animationController; 9 | 10 | WhitePainter({this.animationController, this.radius}); 11 | @override 12 | void paint(Canvas canvas, Size size) { 13 | final Rect _circle = Rect.fromCenter( 14 | center: Offset(size.width * 0.5, size.height * 0.5), 15 | width: radius, 16 | height: radius); 17 | 18 | canvas.drawArc( 19 | _circle, -pi / 2, -1.25 * pi/ animationController.value, true, Paint()..color = kSwatch2); 20 | } 21 | 22 | @override 23 | bool shouldRepaint(WhitePainter oldDelegate) => false; 24 | 25 | @override 26 | bool shouldRebuildSemantics(WhitePainter oldDelegate) => false; 27 | } 28 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | archive: 5 | dependency: transitive 6 | description: 7 | name: archive 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.0.13" 11 | args: 12 | dependency: transitive 13 | description: 14 | name: args 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.6.0" 18 | async: 19 | dependency: transitive 20 | description: 21 | name: async 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.4.2" 25 | boolean_selector: 26 | dependency: transitive 27 | description: 28 | name: boolean_selector 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "2.0.0" 32 | characters: 33 | dependency: transitive 34 | description: 35 | name: characters 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.0.0" 39 | charcode: 40 | dependency: transitive 41 | description: 42 | name: charcode 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.1.3" 46 | clock: 47 | dependency: transitive 48 | description: 49 | name: clock 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "1.0.1" 53 | collection: 54 | dependency: transitive 55 | description: 56 | name: collection 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "1.14.13" 60 | convert: 61 | dependency: transitive 62 | description: 63 | name: convert 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "2.1.1" 67 | crypto: 68 | dependency: transitive 69 | description: 70 | name: crypto 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "2.1.5" 74 | cupertino_icons: 75 | dependency: "direct main" 76 | description: 77 | name: cupertino_icons 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "0.1.3" 81 | fake_async: 82 | dependency: transitive 83 | description: 84 | name: fake_async 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "1.1.0" 88 | ffi: 89 | dependency: transitive 90 | description: 91 | name: ffi 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "0.1.3" 95 | file: 96 | dependency: transitive 97 | description: 98 | name: file 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "5.2.1" 102 | flutter: 103 | dependency: "direct main" 104 | description: flutter 105 | source: sdk 106 | version: "0.0.0" 107 | flutter_neumorphic: 108 | dependency: "direct main" 109 | description: 110 | name: flutter_neumorphic 111 | url: "https://pub.dartlang.org" 112 | source: hosted 113 | version: "1.0.8+3" 114 | flutter_svg: 115 | dependency: "direct main" 116 | description: 117 | name: flutter_svg 118 | url: "https://pub.dartlang.org" 119 | source: hosted 120 | version: "0.19.1" 121 | flutter_test: 122 | dependency: "direct dev" 123 | description: flutter 124 | source: sdk 125 | version: "0.0.0" 126 | font_awesome_flutter: 127 | dependency: "direct main" 128 | description: 129 | name: font_awesome_flutter 130 | url: "https://pub.dartlang.org" 131 | source: hosted 132 | version: "8.11.0" 133 | google_fonts: 134 | dependency: "direct main" 135 | description: 136 | name: google_fonts 137 | url: "https://pub.dartlang.org" 138 | source: hosted 139 | version: "1.1.2" 140 | http: 141 | dependency: transitive 142 | description: 143 | name: http 144 | url: "https://pub.dartlang.org" 145 | source: hosted 146 | version: "0.12.2" 147 | http_parser: 148 | dependency: transitive 149 | description: 150 | name: http_parser 151 | url: "https://pub.dartlang.org" 152 | source: hosted 153 | version: "3.1.4" 154 | intl: 155 | dependency: transitive 156 | description: 157 | name: intl 158 | url: "https://pub.dartlang.org" 159 | source: hosted 160 | version: "0.16.1" 161 | lint: 162 | dependency: "direct main" 163 | description: 164 | name: lint 165 | url: "https://pub.dartlang.org" 166 | source: hosted 167 | version: "1.3.0" 168 | logging: 169 | dependency: transitive 170 | description: 171 | name: logging 172 | url: "https://pub.dartlang.org" 173 | source: hosted 174 | version: "0.11.4" 175 | lottie: 176 | dependency: "direct main" 177 | description: 178 | name: lottie 179 | url: "https://pub.dartlang.org" 180 | source: hosted 181 | version: "0.7.0+1" 182 | matcher: 183 | dependency: transitive 184 | description: 185 | name: matcher 186 | url: "https://pub.dartlang.org" 187 | source: hosted 188 | version: "0.12.8" 189 | meta: 190 | dependency: transitive 191 | description: 192 | name: meta 193 | url: "https://pub.dartlang.org" 194 | source: hosted 195 | version: "1.1.8" 196 | path: 197 | dependency: transitive 198 | description: 199 | name: path 200 | url: "https://pub.dartlang.org" 201 | source: hosted 202 | version: "1.7.0" 203 | path_drawing: 204 | dependency: transitive 205 | description: 206 | name: path_drawing 207 | url: "https://pub.dartlang.org" 208 | source: hosted 209 | version: "0.4.1+1" 210 | path_parsing: 211 | dependency: transitive 212 | description: 213 | name: path_parsing 214 | url: "https://pub.dartlang.org" 215 | source: hosted 216 | version: "0.1.4" 217 | path_provider: 218 | dependency: transitive 219 | description: 220 | name: path_provider 221 | url: "https://pub.dartlang.org" 222 | source: hosted 223 | version: "1.6.27" 224 | path_provider_linux: 225 | dependency: transitive 226 | description: 227 | name: path_provider_linux 228 | url: "https://pub.dartlang.org" 229 | source: hosted 230 | version: "0.0.1+2" 231 | path_provider_macos: 232 | dependency: transitive 233 | description: 234 | name: path_provider_macos 235 | url: "https://pub.dartlang.org" 236 | source: hosted 237 | version: "0.0.4+8" 238 | path_provider_platform_interface: 239 | dependency: transitive 240 | description: 241 | name: path_provider_platform_interface 242 | url: "https://pub.dartlang.org" 243 | source: hosted 244 | version: "1.0.4" 245 | path_provider_windows: 246 | dependency: transitive 247 | description: 248 | name: path_provider_windows 249 | url: "https://pub.dartlang.org" 250 | source: hosted 251 | version: "0.0.4+3" 252 | pedantic: 253 | dependency: transitive 254 | description: 255 | name: pedantic 256 | url: "https://pub.dartlang.org" 257 | source: hosted 258 | version: "1.9.0" 259 | petitparser: 260 | dependency: transitive 261 | description: 262 | name: petitparser 263 | url: "https://pub.dartlang.org" 264 | source: hosted 265 | version: "3.0.4" 266 | platform: 267 | dependency: transitive 268 | description: 269 | name: platform 270 | url: "https://pub.dartlang.org" 271 | source: hosted 272 | version: "2.2.1" 273 | plugin_platform_interface: 274 | dependency: transitive 275 | description: 276 | name: plugin_platform_interface 277 | url: "https://pub.dartlang.org" 278 | source: hosted 279 | version: "1.0.3" 280 | process: 281 | dependency: transitive 282 | description: 283 | name: process 284 | url: "https://pub.dartlang.org" 285 | source: hosted 286 | version: "3.0.13" 287 | sky_engine: 288 | dependency: transitive 289 | description: flutter 290 | source: sdk 291 | version: "0.0.99" 292 | source_span: 293 | dependency: transitive 294 | description: 295 | name: source_span 296 | url: "https://pub.dartlang.org" 297 | source: hosted 298 | version: "1.7.0" 299 | stack_trace: 300 | dependency: transitive 301 | description: 302 | name: stack_trace 303 | url: "https://pub.dartlang.org" 304 | source: hosted 305 | version: "1.9.5" 306 | stream_channel: 307 | dependency: transitive 308 | description: 309 | name: stream_channel 310 | url: "https://pub.dartlang.org" 311 | source: hosted 312 | version: "2.0.0" 313 | string_scanner: 314 | dependency: transitive 315 | description: 316 | name: string_scanner 317 | url: "https://pub.dartlang.org" 318 | source: hosted 319 | version: "1.0.5" 320 | term_glyph: 321 | dependency: transitive 322 | description: 323 | name: term_glyph 324 | url: "https://pub.dartlang.org" 325 | source: hosted 326 | version: "1.1.0" 327 | test_api: 328 | dependency: transitive 329 | description: 330 | name: test_api 331 | url: "https://pub.dartlang.org" 332 | source: hosted 333 | version: "0.2.17" 334 | typed_data: 335 | dependency: transitive 336 | description: 337 | name: typed_data 338 | url: "https://pub.dartlang.org" 339 | source: hosted 340 | version: "1.2.0" 341 | vector_math: 342 | dependency: transitive 343 | description: 344 | name: vector_math 345 | url: "https://pub.dartlang.org" 346 | source: hosted 347 | version: "2.0.8" 348 | win32: 349 | dependency: transitive 350 | description: 351 | name: win32 352 | url: "https://pub.dartlang.org" 353 | source: hosted 354 | version: "1.7.4+1" 355 | xdg_directories: 356 | dependency: transitive 357 | description: 358 | name: xdg_directories 359 | url: "https://pub.dartlang.org" 360 | source: hosted 361 | version: "0.1.0" 362 | xml: 363 | dependency: transitive 364 | description: 365 | name: xml 366 | url: "https://pub.dartlang.org" 367 | source: hosted 368 | version: "4.5.1" 369 | sdks: 370 | dart: ">=2.9.0-16.0.dev <3.0.0" 371 | flutter: ">=1.18.0-6.0.pre <2.0.0" 372 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: data_app 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 | cupertino_icons: ^0.1.3 27 | flutter_neumorphic: ^1.0.8 28 | flutter_svg: null 29 | font_awesome_flutter: ^8.11.0 30 | google_fonts: ^1.1.2 31 | lint: null 32 | lottie: ^0.7.0+1 33 | 34 | dev_dependencies: 35 | flutter_test: 36 | sdk: flutter 37 | 38 | # For information on the generic Dart part of this file, see the 39 | # following page: https://dart.dev/tools/pub/pubspec 40 | # The following section is specific to Flutter. 41 | flutter: 42 | 43 | # The following line ensures that the Material Icons font is 44 | # included with your application, so that you can use the icons in 45 | # the material Icons class. 46 | uses-material-design: true 47 | # To add assets to your application, add an assets section, like this: 48 | assets: 49 | - assets/ 50 | # An image asset can refer to one or more resolution-specific "variants", see 51 | # https://flutter.dev/assets-and-images/#resolution-aware. 52 | # For details regarding adding assets from package dependencies, see 53 | # https://flutter.dev/assets-and-images/#from-packages 54 | # To add custom fonts to your application, add a fonts section here, 55 | # in this "flutter" section. Each entry in this list should have a 56 | # "family" key with the font family name, and a "fonts" key with a 57 | # list giving the asset and other descriptors for the font. For 58 | # example: 59 | # fonts: 60 | # - family: Schyler 61 | # fonts: 62 | # - asset: fonts/Schyler-Regular.ttf 63 | # - asset: fonts/Schyler-Italic.ttf 64 | # style: italic 65 | # - family: Trajan Pro 66 | # fonts: 67 | # - asset: fonts/TrajanPro.ttf 68 | # - asset: fonts/TrajanPro_Bold.ttf 69 | # weight: 700 70 | # 71 | # For details regarding fonts from package dependencies, 72 | # see https://flutter.dev/custom-fonts/#from-packages 73 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:data_app/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | --------------------------------------------------------------------------------