├── .gitignore ├── .metadata ├── README.md ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── cn │ │ │ └── edu │ │ │ └── jnxy │ │ │ └── assets │ │ │ └── MainActivity.java │ │ └── 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 ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── assets.iml ├── assets_android.iml ├── image ├── 1.png ├── 2.png ├── 3.png ├── 4.png ├── 5.png ├── 6.png ├── 7.png ├── 8.png └── 9.png ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ └── contents.xcworkspacedata └── Runner │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── Icon-App-20x20@1x.png │ │ ├── Icon-App-20x20@2x.png │ │ ├── Icon-App-20x20@3x.png │ │ ├── Icon-App-29x29@1x.png │ │ ├── Icon-App-29x29@2x.png │ │ ├── Icon-App-29x29@3x.png │ │ ├── Icon-App-40x40@1x.png │ │ ├── Icon-App-40x40@2x.png │ │ ├── Icon-App-40x40@3x.png │ │ ├── Icon-App-60x60@2x.png │ │ ├── Icon-App-60x60@3x.png │ │ ├── Icon-App-76x76@1x.png │ │ ├── Icon-App-76x76@2x.png │ │ └── Icon-App-83.5x83.5@2x.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── main.m ├── lib ├── assets │ ├── assets_page.dart │ ├── assets_view_page.dart │ ├── define_task_page.dart │ ├── distribution_page.dart │ ├── home_page.dart │ ├── inventory_page.dart │ ├── statistics_page.dart │ └── task.dart └── main.dart ├── pubspec.lock ├── pubspec.yaml └── test └── widget_test.dart /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .atom/ 3 | .dart_tool/ 4 | .idea 5 | .vscode/ 6 | .packages 7 | .pub/ 8 | build/ 9 | ios/.generated/ 10 | packages 11 | .flutter-plugins 12 | -------------------------------------------------------------------------------- /.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: 5a58b36e36b8d7aace89d3950e6deb307956a6a0 8 | channel: beta 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 资产盘点 APP 2 | 3 | 使用 Flutter 做的一个 APP,使用 HTTP 协议获取后端数据,由于目前开发碰到一难点, 4 | 不会调用摄像头扫条形码,所以 APP 不能投入使用。我们学校正在用微信端网页来做资产盘点。这个 APP 是同款阉割版 APP 5 | 6 | 只能当 Demo 玩玩了 7 | 8 | 另外, APP 有一些动画效果 9 | 10 | ## APP 截图 11 | 12 | ![wei](./image/1.png) 13 | ![wei](./image/2.png) 14 | ![wei](./image/7.png) 15 | ![wei](./image/8.png) 16 | ![wei](./image/9.png) 17 | ![wei](./image/6.png) 18 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | *.class 3 | .gradle 4 | /local.properties 5 | /.idea/workspace.xml 6 | /.idea/libraries 7 | .DS_Store 8 | /build 9 | /captures 10 | GeneratedPluginRegistrant.java 11 | -------------------------------------------------------------------------------- /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 | apply plugin: 'com.android.application' 15 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 16 | 17 | android { 18 | compileSdkVersion 27 19 | 20 | lintOptions { 21 | disable 'InvalidPackage' 22 | } 23 | 24 | defaultConfig { 25 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 26 | applicationId "cn.edu.jnxy.assets" 27 | minSdkVersion 16 28 | targetSdkVersion 27 29 | versionCode 1 30 | versionName "1.0" 31 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 32 | } 33 | 34 | buildTypes { 35 | release { 36 | // TODO: Add your own signing config for the release build. 37 | // Signing with the debug keys for now, so `flutter run --release` works. 38 | signingConfig signingConfigs.debug 39 | } 40 | } 41 | } 42 | 43 | flutter { 44 | source '../..' 45 | } 46 | 47 | dependencies { 48 | testImplementation 'junit:junit:4.12' 49 | androidTestImplementation 'com.android.support.test:runner:1.0.1' 50 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' 51 | } 52 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 8 | 9 | 10 | 15 | 19 | 26 | 30 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /android/app/src/main/java/cn/edu/jnxy/assets/MainActivity.java: -------------------------------------------------------------------------------- 1 | package cn.edu.jnxy.assets; 2 | 3 | import android.os.Bundle; 4 | 5 | import io.flutter.app.FlutterActivity; 6 | import io.flutter.plugins.GeneratedPluginRegistrant; 7 | 8 | public class MainActivity extends FlutterActivity { 9 | @Override 10 | protected void onCreate(Bundle savedInstanceState) { 11 | super.onCreate(savedInstanceState); 12 | GeneratedPluginRegistrant.registerWith(this); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /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/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | google() 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.0.1' 9 | } 10 | } 11 | 12 | allprojects { 13 | repositories { 14 | google() 15 | jcenter() 16 | } 17 | } 18 | 19 | rootProject.buildDir = '../build' 20 | subprojects { 21 | project.buildDir = "${rootProject.buildDir}/${project.name}" 22 | } 23 | subprojects { 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip 7 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # Attempt to set APP_HOME 46 | # Resolve links: $0 may be a link 47 | PRG="$0" 48 | # Need this for relative symlinks. 49 | while [ -h "$PRG" ] ; do 50 | ls=`ls -ld "$PRG"` 51 | link=`expr "$ls" : '.*-> \(.*\)$'` 52 | if expr "$link" : '/.*' > /dev/null; then 53 | PRG="$link" 54 | else 55 | PRG=`dirname "$PRG"`"/$link" 56 | fi 57 | done 58 | SAVED="`pwd`" 59 | cd "`dirname \"$PRG\"`/" >/dev/null 60 | APP_HOME="`pwd -P`" 61 | cd "$SAVED" >/dev/null 62 | 63 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 64 | 65 | # Determine the Java command to use to start the JVM. 66 | if [ -n "$JAVA_HOME" ] ; then 67 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 68 | # IBM's JDK on AIX uses strange locations for the executables 69 | JAVACMD="$JAVA_HOME/jre/sh/java" 70 | else 71 | JAVACMD="$JAVA_HOME/bin/java" 72 | fi 73 | if [ ! -x "$JAVACMD" ] ; then 74 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 75 | 76 | Please set the JAVA_HOME variable in your environment to match the 77 | location of your Java installation." 78 | fi 79 | else 80 | JAVACMD="java" 81 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 82 | 83 | Please set the JAVA_HOME variable in your environment to match the 84 | location of your Java installation." 85 | fi 86 | 87 | # Increase the maximum file descriptors if we can. 88 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 89 | MAX_FD_LIMIT=`ulimit -H -n` 90 | if [ $? -eq 0 ] ; then 91 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 92 | MAX_FD="$MAX_FD_LIMIT" 93 | fi 94 | ulimit -n $MAX_FD 95 | if [ $? -ne 0 ] ; then 96 | warn "Could not set maximum file descriptor limit: $MAX_FD" 97 | fi 98 | else 99 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 100 | fi 101 | fi 102 | 103 | # For Darwin, add options to specify how the application appears in the dock 104 | if $darwin; then 105 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 106 | fi 107 | 108 | # For Cygwin, switch paths to Windows format before running java 109 | if $cygwin ; then 110 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 111 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 112 | JAVACMD=`cygpath --unix "$JAVACMD"` 113 | 114 | # We build the pattern for arguments to be converted via cygpath 115 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 116 | SEP="" 117 | for dir in $ROOTDIRSRAW ; do 118 | ROOTDIRS="$ROOTDIRS$SEP$dir" 119 | SEP="|" 120 | done 121 | OURCYGPATTERN="(^($ROOTDIRS))" 122 | # Add a user-defined pattern to the cygpath arguments 123 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 124 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 125 | fi 126 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 127 | i=0 128 | for arg in "$@" ; do 129 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 130 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 131 | 132 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 133 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 134 | else 135 | eval `echo args$i`="\"$arg\"" 136 | fi 137 | i=$((i+1)) 138 | done 139 | case $i in 140 | (0) set -- ;; 141 | (1) set -- "$args0" ;; 142 | (2) set -- "$args0" "$args1" ;; 143 | (3) set -- "$args0" "$args1" "$args2" ;; 144 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 145 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 146 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 147 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 148 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 149 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 150 | esac 151 | fi 152 | 153 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 154 | function splitJvmOpts() { 155 | JVM_OPTS=("$@") 156 | } 157 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 158 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 159 | 160 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 161 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /assets.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /assets_android.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /image/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/image/1.png -------------------------------------------------------------------------------- /image/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/image/2.png -------------------------------------------------------------------------------- /image/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/image/3.png -------------------------------------------------------------------------------- /image/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/image/4.png -------------------------------------------------------------------------------- /image/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/image/5.png -------------------------------------------------------------------------------- /image/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/image/6.png -------------------------------------------------------------------------------- /image/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/image/7.png -------------------------------------------------------------------------------- /image/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/image/8.png -------------------------------------------------------------------------------- /image/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/image/9.png -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | *.pbxuser 16 | *.mode1v3 17 | *.mode2v3 18 | *.perspectivev3 19 | 20 | !default.pbxuser 21 | !default.mode1v3 22 | !default.mode2v3 23 | !default.perspectivev3 24 | 25 | xcuserdata 26 | 27 | *.moved-aside 28 | 29 | *.pyc 30 | *sync/ 31 | Icon? 32 | .tags* 33 | 34 | /Flutter/app.flx 35 | /Flutter/app.zip 36 | /Flutter/flutter_assets/ 37 | /Flutter/App.framework 38 | /Flutter/Flutter.framework 39 | /Flutter/Generated.xcconfig 40 | /ServiceDefinitions.json 41 | 42 | Pods/ 43 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | UIRequiredDeviceCapabilities 24 | 25 | arm64 26 | 27 | MinimumOSVersion 28 | 8.0 29 | 30 | 31 | -------------------------------------------------------------------------------- /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 | 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */ = {isa = PBXBuildFile; fileRef = 2D5378251FAA1A9400D5DBA9 /* flutter_assets */; }; 12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 13 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 14 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 17 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 18 | 9740EEB51CF90195004384FC /* Generated.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB31CF90195004384FC /* Generated.xcconfig */; }; 19 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 20 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 21 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 22 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 23 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 24 | /* End PBXBuildFile section */ 25 | 26 | /* Begin PBXCopyFilesBuildPhase section */ 27 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 28 | isa = PBXCopyFilesBuildPhase; 29 | buildActionMask = 2147483647; 30 | dstPath = ""; 31 | dstSubfolderSpec = 10; 32 | files = ( 33 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 34 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 35 | ); 36 | name = "Embed Frameworks"; 37 | runOnlyForDeploymentPostprocessing = 0; 38 | }; 39 | /* End PBXCopyFilesBuildPhase section */ 40 | 41 | /* Begin PBXFileReference section */ 42 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 43 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 44 | 2D5378251FAA1A9400D5DBA9 /* flutter_assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = flutter_assets; path = Flutter/flutter_assets; sourceTree = SOURCE_ROOT; }; 45 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 46 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 47 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 48 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 49 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 50 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 51 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 52 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 53 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 55 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 56 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 57 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 58 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 59 | /* End PBXFileReference section */ 60 | 61 | /* Begin PBXFrameworksBuildPhase section */ 62 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 63 | isa = PBXFrameworksBuildPhase; 64 | buildActionMask = 2147483647; 65 | files = ( 66 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 67 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 68 | ); 69 | runOnlyForDeploymentPostprocessing = 0; 70 | }; 71 | /* End PBXFrameworksBuildPhase section */ 72 | 73 | /* Begin PBXGroup section */ 74 | 9740EEB11CF90186004384FC /* Flutter */ = { 75 | isa = PBXGroup; 76 | children = ( 77 | 2D5378251FAA1A9400D5DBA9 /* flutter_assets */, 78 | 3B80C3931E831B6300D905FE /* App.framework */, 79 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 80 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 81 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 82 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 83 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 84 | ); 85 | name = Flutter; 86 | sourceTree = ""; 87 | }; 88 | 97C146E51CF9000F007C117D = { 89 | isa = PBXGroup; 90 | children = ( 91 | 9740EEB11CF90186004384FC /* Flutter */, 92 | 97C146F01CF9000F007C117D /* Runner */, 93 | 97C146EF1CF9000F007C117D /* Products */, 94 | CF3B75C9A7D2FA2A4C99F110 /* Frameworks */, 95 | ); 96 | sourceTree = ""; 97 | }; 98 | 97C146EF1CF9000F007C117D /* Products */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | 97C146EE1CF9000F007C117D /* Runner.app */, 102 | ); 103 | name = Products; 104 | sourceTree = ""; 105 | }; 106 | 97C146F01CF9000F007C117D /* Runner */ = { 107 | isa = PBXGroup; 108 | children = ( 109 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 110 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 111 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 112 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 113 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 114 | 97C147021CF9000F007C117D /* Info.plist */, 115 | 97C146F11CF9000F007C117D /* Supporting Files */, 116 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 117 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 118 | ); 119 | path = Runner; 120 | sourceTree = ""; 121 | }; 122 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 123 | isa = PBXGroup; 124 | children = ( 125 | 97C146F21CF9000F007C117D /* main.m */, 126 | ); 127 | name = "Supporting Files"; 128 | sourceTree = ""; 129 | }; 130 | /* End PBXGroup section */ 131 | 132 | /* Begin PBXNativeTarget section */ 133 | 97C146ED1CF9000F007C117D /* Runner */ = { 134 | isa = PBXNativeTarget; 135 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 136 | buildPhases = ( 137 | 9740EEB61CF901F6004384FC /* Run Script */, 138 | 97C146EA1CF9000F007C117D /* Sources */, 139 | 97C146EB1CF9000F007C117D /* Frameworks */, 140 | 97C146EC1CF9000F007C117D /* Resources */, 141 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 142 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 143 | ); 144 | buildRules = ( 145 | ); 146 | dependencies = ( 147 | ); 148 | name = Runner; 149 | productName = Runner; 150 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 151 | productType = "com.apple.product-type.application"; 152 | }; 153 | /* End PBXNativeTarget section */ 154 | 155 | /* Begin PBXProject section */ 156 | 97C146E61CF9000F007C117D /* Project object */ = { 157 | isa = PBXProject; 158 | attributes = { 159 | LastUpgradeCheck = 0910; 160 | ORGANIZATIONNAME = "The Chromium Authors"; 161 | TargetAttributes = { 162 | 97C146ED1CF9000F007C117D = { 163 | CreatedOnToolsVersion = 7.3.1; 164 | }; 165 | }; 166 | }; 167 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 168 | compatibilityVersion = "Xcode 3.2"; 169 | developmentRegion = English; 170 | hasScannedForEncodings = 0; 171 | knownRegions = ( 172 | en, 173 | Base, 174 | ); 175 | mainGroup = 97C146E51CF9000F007C117D; 176 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 177 | projectDirPath = ""; 178 | projectRoot = ""; 179 | targets = ( 180 | 97C146ED1CF9000F007C117D /* Runner */, 181 | ); 182 | }; 183 | /* End PBXProject section */ 184 | 185 | /* Begin PBXResourcesBuildPhase section */ 186 | 97C146EC1CF9000F007C117D /* Resources */ = { 187 | isa = PBXResourcesBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 191 | 9740EEB51CF90195004384FC /* Generated.xcconfig in Resources */, 192 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 193 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 194 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 195 | 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */, 196 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 197 | ); 198 | runOnlyForDeploymentPostprocessing = 0; 199 | }; 200 | /* End PBXResourcesBuildPhase section */ 201 | 202 | /* Begin PBXShellScriptBuildPhase section */ 203 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 204 | isa = PBXShellScriptBuildPhase; 205 | buildActionMask = 2147483647; 206 | files = ( 207 | ); 208 | inputPaths = ( 209 | ); 210 | name = "Thin Binary"; 211 | outputPaths = ( 212 | ); 213 | runOnlyForDeploymentPostprocessing = 0; 214 | shellPath = /bin/sh; 215 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 216 | }; 217 | 9740EEB61CF901F6004384FC /* Run Script */ = { 218 | isa = PBXShellScriptBuildPhase; 219 | buildActionMask = 2147483647; 220 | files = ( 221 | ); 222 | inputPaths = ( 223 | ); 224 | name = "Run Script"; 225 | outputPaths = ( 226 | ); 227 | runOnlyForDeploymentPostprocessing = 0; 228 | shellPath = /bin/sh; 229 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 230 | }; 231 | /* End PBXShellScriptBuildPhase section */ 232 | 233 | /* Begin PBXSourcesBuildPhase section */ 234 | 97C146EA1CF9000F007C117D /* Sources */ = { 235 | isa = PBXSourcesBuildPhase; 236 | buildActionMask = 2147483647; 237 | files = ( 238 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 239 | 97C146F31CF9000F007C117D /* main.m in Sources */, 240 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 241 | ); 242 | runOnlyForDeploymentPostprocessing = 0; 243 | }; 244 | /* End PBXSourcesBuildPhase section */ 245 | 246 | /* Begin PBXVariantGroup section */ 247 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 248 | isa = PBXVariantGroup; 249 | children = ( 250 | 97C146FB1CF9000F007C117D /* Base */, 251 | ); 252 | name = Main.storyboard; 253 | sourceTree = ""; 254 | }; 255 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 256 | isa = PBXVariantGroup; 257 | children = ( 258 | 97C147001CF9000F007C117D /* Base */, 259 | ); 260 | name = LaunchScreen.storyboard; 261 | sourceTree = ""; 262 | }; 263 | /* End PBXVariantGroup section */ 264 | 265 | /* Begin XCBuildConfiguration section */ 266 | 97C147031CF9000F007C117D /* Debug */ = { 267 | isa = XCBuildConfiguration; 268 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 269 | buildSettings = { 270 | ALWAYS_SEARCH_USER_PATHS = NO; 271 | CLANG_ANALYZER_NONNULL = YES; 272 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 273 | CLANG_CXX_LIBRARY = "libc++"; 274 | CLANG_ENABLE_MODULES = YES; 275 | CLANG_ENABLE_OBJC_ARC = YES; 276 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 277 | CLANG_WARN_BOOL_CONVERSION = YES; 278 | CLANG_WARN_COMMA = YES; 279 | CLANG_WARN_CONSTANT_CONVERSION = YES; 280 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 281 | CLANG_WARN_EMPTY_BODY = YES; 282 | CLANG_WARN_ENUM_CONVERSION = YES; 283 | CLANG_WARN_INFINITE_RECURSION = YES; 284 | CLANG_WARN_INT_CONVERSION = YES; 285 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 286 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 287 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 288 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 289 | CLANG_WARN_STRICT_PROTOTYPES = YES; 290 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 291 | CLANG_WARN_UNREACHABLE_CODE = YES; 292 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 293 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 294 | COPY_PHASE_STRIP = NO; 295 | DEBUG_INFORMATION_FORMAT = dwarf; 296 | ENABLE_STRICT_OBJC_MSGSEND = YES; 297 | ENABLE_TESTABILITY = YES; 298 | GCC_C_LANGUAGE_STANDARD = gnu99; 299 | GCC_DYNAMIC_NO_PIC = NO; 300 | GCC_NO_COMMON_BLOCKS = YES; 301 | GCC_OPTIMIZATION_LEVEL = 0; 302 | GCC_PREPROCESSOR_DEFINITIONS = ( 303 | "DEBUG=1", 304 | "$(inherited)", 305 | ); 306 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 307 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 308 | GCC_WARN_UNDECLARED_SELECTOR = YES; 309 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 310 | GCC_WARN_UNUSED_FUNCTION = YES; 311 | GCC_WARN_UNUSED_VARIABLE = YES; 312 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 313 | MTL_ENABLE_DEBUG_INFO = YES; 314 | ONLY_ACTIVE_ARCH = YES; 315 | SDKROOT = iphoneos; 316 | TARGETED_DEVICE_FAMILY = "1,2"; 317 | }; 318 | name = Debug; 319 | }; 320 | 97C147041CF9000F007C117D /* Release */ = { 321 | isa = XCBuildConfiguration; 322 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 323 | buildSettings = { 324 | ALWAYS_SEARCH_USER_PATHS = NO; 325 | CLANG_ANALYZER_NONNULL = YES; 326 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 327 | CLANG_CXX_LIBRARY = "libc++"; 328 | CLANG_ENABLE_MODULES = YES; 329 | CLANG_ENABLE_OBJC_ARC = YES; 330 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 331 | CLANG_WARN_BOOL_CONVERSION = YES; 332 | CLANG_WARN_COMMA = YES; 333 | CLANG_WARN_CONSTANT_CONVERSION = YES; 334 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 335 | CLANG_WARN_EMPTY_BODY = YES; 336 | CLANG_WARN_ENUM_CONVERSION = YES; 337 | CLANG_WARN_INFINITE_RECURSION = YES; 338 | CLANG_WARN_INT_CONVERSION = YES; 339 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 340 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 341 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 342 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 343 | CLANG_WARN_STRICT_PROTOTYPES = YES; 344 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 345 | CLANG_WARN_UNREACHABLE_CODE = YES; 346 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 347 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 348 | COPY_PHASE_STRIP = NO; 349 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 350 | ENABLE_NS_ASSERTIONS = NO; 351 | ENABLE_STRICT_OBJC_MSGSEND = YES; 352 | GCC_C_LANGUAGE_STANDARD = gnu99; 353 | GCC_NO_COMMON_BLOCKS = YES; 354 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 355 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 356 | GCC_WARN_UNDECLARED_SELECTOR = YES; 357 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 358 | GCC_WARN_UNUSED_FUNCTION = YES; 359 | GCC_WARN_UNUSED_VARIABLE = YES; 360 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 361 | MTL_ENABLE_DEBUG_INFO = NO; 362 | SDKROOT = iphoneos; 363 | TARGETED_DEVICE_FAMILY = "1,2"; 364 | VALIDATE_PRODUCT = YES; 365 | }; 366 | name = Release; 367 | }; 368 | 97C147061CF9000F007C117D /* Debug */ = { 369 | isa = XCBuildConfiguration; 370 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 371 | buildSettings = { 372 | ARCHS = arm64; 373 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 374 | ENABLE_BITCODE = NO; 375 | FRAMEWORK_SEARCH_PATHS = ( 376 | "$(inherited)", 377 | "$(PROJECT_DIR)/Flutter", 378 | ); 379 | INFOPLIST_FILE = Runner/Info.plist; 380 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 381 | LIBRARY_SEARCH_PATHS = ( 382 | "$(inherited)", 383 | "$(PROJECT_DIR)/Flutter", 384 | ); 385 | PRODUCT_BUNDLE_IDENTIFIER = cn.edu.jnxy.assets; 386 | PRODUCT_NAME = "$(TARGET_NAME)"; 387 | }; 388 | name = Debug; 389 | }; 390 | 97C147071CF9000F007C117D /* Release */ = { 391 | isa = XCBuildConfiguration; 392 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 393 | buildSettings = { 394 | ARCHS = arm64; 395 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 396 | ENABLE_BITCODE = NO; 397 | FRAMEWORK_SEARCH_PATHS = ( 398 | "$(inherited)", 399 | "$(PROJECT_DIR)/Flutter", 400 | ); 401 | INFOPLIST_FILE = Runner/Info.plist; 402 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 403 | LIBRARY_SEARCH_PATHS = ( 404 | "$(inherited)", 405 | "$(PROJECT_DIR)/Flutter", 406 | ); 407 | PRODUCT_BUNDLE_IDENTIFIER = cn.edu.jnxy.assets; 408 | PRODUCT_NAME = "$(TARGET_NAME)"; 409 | }; 410 | name = Release; 411 | }; 412 | /* End XCBuildConfiguration section */ 413 | 414 | /* Begin XCConfigurationList section */ 415 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 416 | isa = XCConfigurationList; 417 | buildConfigurations = ( 418 | 97C147031CF9000F007C117D /* Debug */, 419 | 97C147041CF9000F007C117D /* Release */, 420 | ); 421 | defaultConfigurationIsVisible = 0; 422 | defaultConfigurationName = Release; 423 | }; 424 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 425 | isa = XCConfigurationList; 426 | buildConfigurations = ( 427 | 97C147061CF9000F007C117D /* Debug */, 428 | 97C147071CF9000F007C117D /* Release */, 429 | ); 430 | defaultConfigurationIsVisible = 0; 431 | defaultConfigurationName = Release; 432 | }; 433 | /* End XCConfigurationList section */ 434 | }; 435 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 436 | } 437 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 31 | 32 | 33 | 34 | 40 | 41 | 42 | 43 | 44 | 45 | 56 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 75 | 77 | 83 | 84 | 85 | 86 | 88 | 89 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "GeneratedPluginRegistrant.h" 3 | 4 | @implementation AppDelegate 5 | 6 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 7 | [GeneratedPluginRegistrant registerWithRegistry:self]; 8 | // Override point for customization after application launch. 9 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 10 | } 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /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/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/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/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/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/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/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/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/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/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/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/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/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/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/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/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/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/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/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/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/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/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/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/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/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/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/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/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/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/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/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/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xujiyou/assets-inventory/86d5b4cb285e8d22970d8dbec64e83d66e4803af/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 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | assets 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | arm64 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | UIViewControllerBasedStatusBarAppearance 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /ios/Runner/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char * argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /lib/assets/assets_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'task.dart'; 3 | 4 | class AssetsPage extends StatefulWidget { 5 | 6 | final Asset asset; 7 | 8 | AssetsPage(this.asset); 9 | 10 | @override 11 | AssetsPageState createState() => new AssetsPageState(asset); 12 | 13 | } 14 | 15 | class AssetsPageState extends State { 16 | 17 | Asset asset; 18 | 19 | AssetsPageState(this.asset); 20 | 21 | @override 22 | Widget build(BuildContext context) { 23 | return new Scaffold( 24 | appBar: new AppBar( 25 | title: new Text(asset.assetsName), 26 | ), 27 | body: new SingleChildScrollView( 28 | child: new Container( 29 | margin: const EdgeInsets.only(left: 16.0, right: 16.0, top: 20.0, bottom: 20.0), 30 | child: new Column( 31 | children: [ 32 | new Container( 33 | decoration: new BoxDecoration( 34 | border: new BorderDirectional(bottom: new BorderSide(color: Colors.black12)) 35 | ), 36 | padding: const EdgeInsets.only(bottom: 6.0, top: 10.0), 37 | child: new Column( 38 | children: [ 39 | new Container( 40 | child: new Text("审核状态", style: new TextStyle(fontSize: 17.0),), 41 | alignment: Alignment.topLeft, 42 | padding: const EdgeInsets.only(bottom: 4.0), 43 | ), 44 | new Container( 45 | child: new Text(asset.auditStatus, style: new TextStyle(color: Colors.black54),), 46 | alignment: Alignment.topLeft, 47 | ) 48 | ], 49 | ), 50 | ), 51 | new Container( 52 | decoration: new BoxDecoration( 53 | border: new BorderDirectional(bottom: new BorderSide(color: Colors.black12)) 54 | ), 55 | padding: const EdgeInsets.only(bottom: 6.0, top: 10.0), 56 | child: new Column( 57 | children: [ 58 | new Container( 59 | child: new Text("资产编号", style: new TextStyle(fontSize: 17.0),), 60 | alignment: Alignment.topLeft, 61 | padding: const EdgeInsets.only(bottom: 4.0), 62 | ), 63 | new Container( 64 | child: new Text(asset.assetsNumber, style: new TextStyle(color: Colors.black54),), 65 | alignment: Alignment.topLeft, 66 | ) 67 | ], 68 | ), 69 | ), 70 | new Container( 71 | decoration: new BoxDecoration( 72 | border: new BorderDirectional(bottom: new BorderSide(color: Colors.black12)) 73 | ), 74 | padding: const EdgeInsets.only(bottom: 6.0, top: 10.0), 75 | child: new Column( 76 | children: [ 77 | new Container( 78 | child: new Text("总价", style: new TextStyle(fontSize: 17.0),), 79 | alignment: Alignment.topLeft, 80 | padding: const EdgeInsets.only(bottom: 4.0), 81 | ), 82 | new Container( 83 | child: new Text(asset.totalPrice, style: new TextStyle(color: Colors.black54),), 84 | alignment: Alignment.topLeft, 85 | ) 86 | ], 87 | ), 88 | ), 89 | new Container( 90 | decoration: new BoxDecoration( 91 | border: new BorderDirectional(bottom: new BorderSide(color: Colors.black12)) 92 | ), 93 | padding: const EdgeInsets.only(bottom: 6.0, top: 10.0), 94 | child: new Column( 95 | children: [ 96 | new Container( 97 | child: new Text("数量", style: new TextStyle(fontSize: 17.0),), 98 | alignment: Alignment.topLeft, 99 | padding: const EdgeInsets.only(bottom: 4.0), 100 | ), 101 | new Container( 102 | child: new Text(asset.number, style: new TextStyle(color: Colors.black54),), 103 | alignment: Alignment.topLeft, 104 | ) 105 | ], 106 | ), 107 | ), 108 | new Container( 109 | decoration: new BoxDecoration( 110 | border: new BorderDirectional(bottom: new BorderSide(color: Colors.black12)) 111 | ), 112 | padding: const EdgeInsets.only(bottom: 6.0, top: 10.0), 113 | child: new Column( 114 | children: [ 115 | new Container( 116 | child: new Text("使用人", style: new TextStyle(fontSize: 17.0),), 117 | alignment: Alignment.topLeft, 118 | padding: const EdgeInsets.only(bottom: 4.0), 119 | ), 120 | new Container( 121 | child: new Text(asset.username, style: new TextStyle(color: Colors.black54),), 122 | alignment: Alignment.topLeft, 123 | ) 124 | ], 125 | ), 126 | ), 127 | new Container( 128 | decoration: new BoxDecoration( 129 | border: new BorderDirectional(bottom: new BorderSide(color: Colors.black12)) 130 | ), 131 | padding: const EdgeInsets.only(bottom: 6.0, top: 10.0), 132 | child: new Column( 133 | children: [ 134 | new Container( 135 | child: new Text("存放地点", style: new TextStyle(fontSize: 17.0),), 136 | alignment: Alignment.topLeft, 137 | padding: const EdgeInsets.only(bottom: 4.0), 138 | ), 139 | new Container( 140 | child: new Text(asset.db_place, style: new TextStyle(color: Colors.black54),), 141 | alignment: Alignment.topLeft, 142 | ) 143 | ], 144 | ), 145 | ), 146 | new Container( 147 | decoration: new BoxDecoration( 148 | border: new BorderDirectional(bottom: new BorderSide(color: Colors.black12)) 149 | ), 150 | padding: const EdgeInsets.only(bottom: 6.0, top: 10.0), 151 | child: new Column( 152 | children: [ 153 | new Container( 154 | child: new Text("现状", style: new TextStyle(fontSize: 17.0),), 155 | alignment: Alignment.topLeft, 156 | padding: const EdgeInsets.only(bottom: 4.0), 157 | ), 158 | new Container( 159 | child: new Text(asset.currentSituation, style: new TextStyle(color: Colors.black54),), 160 | alignment: Alignment.topLeft, 161 | ) 162 | ], 163 | ), 164 | ), 165 | new Container( 166 | decoration: new BoxDecoration( 167 | border: new BorderDirectional(bottom: new BorderSide(color: Colors.black12)) 168 | ), 169 | padding: const EdgeInsets.only(bottom: 6.0, top: 10.0), 170 | child: new Column( 171 | children: [ 172 | new Container( 173 | child: new Text("购置日期", style: new TextStyle(fontSize: 17.0),), 174 | alignment: Alignment.topLeft, 175 | padding: const EdgeInsets.only(bottom: 4.0), 176 | ), 177 | new Container( 178 | child: new Text(asset.buyDate, style: new TextStyle(color: Colors.black54),), 179 | alignment: Alignment.topLeft, 180 | ) 181 | ], 182 | ), 183 | ), 184 | new Container( 185 | decoration: new BoxDecoration( 186 | border: new BorderDirectional(bottom: new BorderSide(color: Colors.black12)) 187 | ), 188 | padding: const EdgeInsets.only(bottom: 6.0, top: 10.0), 189 | child: new Column( 190 | children: [ 191 | new Container( 192 | child: new Text("入帐日期", style: new TextStyle(fontSize: 17.0),), 193 | alignment: Alignment.topLeft, 194 | padding: const EdgeInsets.only(bottom: 4.0), 195 | ), 196 | new Container( 197 | child: new Text(asset.admissionDate, style: new TextStyle(color: Colors.black54),), 198 | alignment: Alignment.topLeft, 199 | ) 200 | ], 201 | ), 202 | ), 203 | new Container( 204 | decoration: new BoxDecoration( 205 | border: new BorderDirectional(bottom: new BorderSide(color: Colors.black12)) 206 | ), 207 | padding: const EdgeInsets.only(bottom: 6.0, top: 10.0), 208 | child: new Column( 209 | children: [ 210 | new Container( 211 | child: new Text("凭证号", style: new TextStyle(fontSize: 17.0),), 212 | alignment: Alignment.topLeft, 213 | padding: const EdgeInsets.only(bottom: 4.0), 214 | ), 215 | new Container( 216 | child: new Text(asset.evidenceId, style: new TextStyle(color: Colors.black54),), 217 | alignment: Alignment.topLeft, 218 | ) 219 | ], 220 | ), 221 | ), 222 | new Container( 223 | decoration: new BoxDecoration( 224 | border: new BorderDirectional(bottom: new BorderSide(color: Colors.black12)) 225 | ), 226 | padding: const EdgeInsets.only(bottom: 6.0, top: 10.0), 227 | child: new Column( 228 | children: [ 229 | new Container( 230 | child: new Text("型号", style: new TextStyle(fontSize: 17.0),), 231 | alignment: Alignment.topLeft, 232 | padding: const EdgeInsets.only(bottom: 4.0), 233 | ), 234 | new Container( 235 | child: new Text(asset.model, style: new TextStyle(color: Colors.black54),), 236 | alignment: Alignment.topLeft, 237 | ) 238 | ], 239 | ), 240 | ), 241 | new Container( 242 | decoration: new BoxDecoration( 243 | border: new BorderDirectional(bottom: new BorderSide(color: Colors.black12)) 244 | ), 245 | padding: const EdgeInsets.only(bottom: 6.0, top: 10.0), 246 | child: new Column( 247 | children: [ 248 | new Container( 249 | child: new Text("规格", style: new TextStyle(fontSize: 17.0),), 250 | alignment: Alignment.topLeft, 251 | padding: const EdgeInsets.only(bottom: 4.0), 252 | ), 253 | new Container( 254 | child: new Text(asset.spec, style: new TextStyle(color: Colors.black54),), 255 | alignment: Alignment.topLeft, 256 | ) 257 | ], 258 | ), 259 | ), 260 | new Container( 261 | decoration: new BoxDecoration( 262 | border: new BorderDirectional(bottom: new BorderSide(color: Colors.black12)) 263 | ), 264 | padding: const EdgeInsets.only(bottom: 6.0, top: 10.0), 265 | child: new Column( 266 | children: [ 267 | new Container( 268 | child: new Text("审核人", style: new TextStyle(fontSize: 17.0),), 269 | alignment: Alignment.topLeft, 270 | padding: const EdgeInsets.only(bottom: 4.0), 271 | ), 272 | new Container( 273 | child: new Text(asset.auditor, style: new TextStyle(color: Colors.black54),), 274 | alignment: Alignment.topLeft, 275 | ) 276 | ], 277 | ), 278 | ), 279 | new Container( 280 | decoration: new BoxDecoration( 281 | border: new BorderDirectional(bottom: new BorderSide(color: Colors.black12)) 282 | ), 283 | padding: const EdgeInsets.only(bottom: 6.0, top: 10.0), 284 | child: new Column( 285 | children: [ 286 | new Container( 287 | child: new Text("财务审核人", style: new TextStyle(fontSize: 17.0),), 288 | alignment: Alignment.topLeft, 289 | padding: const EdgeInsets.only(bottom: 4.0), 290 | ), 291 | new Container( 292 | child: new Text(asset.financeName, style: new TextStyle(color: Colors.black54),), 293 | alignment: Alignment.topLeft, 294 | ) 295 | ], 296 | ), 297 | ) 298 | ], 299 | ), 300 | ), 301 | ), 302 | ); 303 | } 304 | 305 | } -------------------------------------------------------------------------------- /lib/assets/assets_view_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'task.dart'; 3 | 4 | class AssetsViewPage extends StatefulWidget { 5 | 6 | List assetList; 7 | String title; 8 | 9 | AssetsViewPage(this.title, this.assetList); 10 | 11 | @override 12 | AssetsViewPageState createState() => new AssetsViewPageState(title, assetList); 13 | } 14 | 15 | class AssetsViewPageState extends State { 16 | 17 | List assetList; 18 | String title; 19 | 20 | AssetsViewPageState(this.title, this.assetList); 21 | 22 | Widget showAssets(){ 23 | List widgetList = []; 24 | int i = 0; 25 | for (Asset asset in assetList) { 26 | if (i < 60) { 27 | if (asset.inventoryLocation == null) { 28 | widgetList.add(new Container( 29 | child: new ListTile( 30 | title: new Text(asset.assetsName + " : " + asset.assetsNumber), 31 | subtitle: new Text(asset.username), 32 | trailing: new FlatButton(onPressed: (){}, child: new Text("确定存在", style: new TextStyle(color: Colors.blue),)), 33 | ), 34 | margin: const EdgeInsets.only(left: 16.0, right: 16.0), 35 | decoration: new BoxDecoration( 36 | border: new BorderDirectional(bottom: new BorderSide(color: Colors.black12)) 37 | ), 38 | ) 39 | ); 40 | } else { 41 | widgetList.add(new Container( 42 | child: new ListTile( 43 | title: new Text(asset.assetsName + " : " + asset.assetsNumber, style: new TextStyle(color: Colors.blue),), 44 | subtitle: new Column( 45 | children: [ 46 | new Container( 47 | child: new Text(asset.inventoryDate), 48 | alignment: Alignment.topLeft, 49 | ), 50 | new Container( 51 | child: new Text(asset.inventoryLocation), 52 | alignment: Alignment.topLeft, 53 | ), 54 | ], 55 | ), 56 | ), 57 | margin: const EdgeInsets.only(left: 16.0, right: 16.0), 58 | decoration: new BoxDecoration( 59 | border: new BorderDirectional(bottom: new BorderSide(color: Colors.black12)) 60 | ), 61 | ) 62 | ); 63 | } 64 | } 65 | i++; 66 | } 67 | return new Column( 68 | children: widgetList, 69 | ); 70 | } 71 | 72 | @override 73 | Widget build(BuildContext context) { 74 | return new Scaffold( 75 | appBar: new AppBar( 76 | title: new Text(title), 77 | ), 78 | body: new SingleChildScrollView( 79 | child: showAssets(), 80 | ), 81 | ); 82 | } 83 | 84 | } 85 | -------------------------------------------------------------------------------- /lib/assets/define_task_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'task.dart'; 3 | 4 | class DefineTaskPage extends StatefulWidget { 5 | 6 | final List placeList; 7 | 8 | DefineTaskPage(this.placeList); 9 | 10 | @override 11 | DefineTaskPageState createState() => new DefineTaskPageState(placeList); 12 | 13 | } 14 | 15 | class DefineTaskPageState extends State { 16 | 17 | final List placeList; 18 | 19 | DefineTaskPageState(this.placeList); 20 | 21 | List> showPlaces() { 22 | List> list = []; 23 | for (Place place in placeList) { 24 | list.add(new PopupMenuItem( 25 | value: place.place, 26 | child: new Container( 27 | child: new Row( 28 | children: [ 29 | new Container( 30 | child: new Checkbox(value: place.selected, onChanged: (value){ 31 | setState((){ 32 | place.selected = value; 33 | }); 34 | }), 35 | ), 36 | new Container( 37 | child: new Text(place.place), 38 | ) 39 | ], 40 | ), 41 | ) 42 | )); 43 | } 44 | return list; 45 | } 46 | 47 | @override 48 | Widget build(BuildContext context) { 49 | return new Scaffold( 50 | appBar: new AppBar( 51 | title: new Text("定义盘点任务"), 52 | ), 53 | body: new SingleChildScrollView( 54 | child: new Container( 55 | child: new Column( 56 | children: [ 57 | new Container( 58 | margin: const EdgeInsets.only(left: 16.0, top: 20.0, right: 16.0, bottom: 20.0), 59 | child: new Container( 60 | margin: const EdgeInsets.only(right: 4.0, bottom: 4.0), 61 | child: new Container( 62 | child: new RaisedButton( 63 | onPressed: (){}, 64 | child: new Text("选择地点", style: new TextStyle(color: Colors.blue),), 65 | color: Colors.white, 66 | ), 67 | height: 30.0, 68 | ), 69 | ) 70 | ) 71 | ], 72 | ), 73 | ), 74 | ) 75 | ); 76 | } 77 | 78 | } -------------------------------------------------------------------------------- /lib/assets/distribution_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'dart:convert'; 3 | import 'package:http/http.dart' as http; 4 | import 'dart:async'; 5 | import 'task.dart'; 6 | import 'home_page.dart'; 7 | import 'assets_page.dart'; 8 | 9 | class DistributionPage extends StatefulWidget { 10 | 11 | final List placeList; 12 | 13 | DistributionPage(this.placeList); 14 | 15 | @override 16 | DistributionPageState createState() => new DistributionPageState(placeList); 17 | 18 | } 19 | 20 | class DistributionPageState extends State { 21 | 22 | List placeList; 23 | 24 | DistributionPageState(this.placeList); 25 | 26 | Future> getAssets(String placeName) async { 27 | List list = new List(); 28 | var response = await http.get("http://xszhfw.jnxy.edu.cn:2124/assets/asset/" + placeName); 29 | for (Map map in jsonDecode(response.body)) { 30 | Asset asset = new Asset.fromJson(map); 31 | list.add(asset); 32 | } 33 | return list; 34 | } 35 | 36 | void showAssets(Place place, double begin, double end) { 37 | getAssets(place.place).then((list) => setState((){ 38 | place.assetList = list; 39 | })); 40 | place.animation = new Tween(begin: begin, end: end).animate(place.controller) 41 | ..addListener(() { 42 | setState(() { 43 | }); 44 | }); 45 | place.controller.forward(from: 0.0); 46 | if (place.expend == false) { 47 | place.expend = true; 48 | } else { 49 | place.expend = false; 50 | } 51 | } 52 | 53 | List allAsset(List assetList) { 54 | List widgetList = []; 55 | for (Asset asset in assetList) { 56 | widgetList.add(new FlatButton(onPressed: (){ 57 | Navigator.of(context).push(new MaterialPageRoute( 58 | builder: (context) { 59 | return new AssetsPage(asset); 60 | } 61 | )); 62 | }, 63 | child: new Container( 64 | margin: const EdgeInsets.only(top: 10.0, bottom: 6.0), 65 | child: new Row( 66 | children: [ 67 | new Container( 68 | child: new Icon(Icons.last_page, color: Colors.blue), 69 | ), 70 | new Expanded( 71 | child: new Container( 72 | margin: const EdgeInsets.only(left: 6.0), 73 | child: new Text(asset.assetsName), 74 | ) 75 | ), 76 | new Container( 77 | child: new Icon(Icons.chevron_right, color: Colors.blue,), 78 | ) 79 | ], 80 | ), 81 | ) 82 | )); 83 | } 84 | return widgetList; 85 | } 86 | 87 | List allPlace() { 88 | List widgetList = []; 89 | for (Place place in placeList) { 90 | widgetList.add(new Column( 91 | children: [ 92 | new Container( 93 | decoration: new BoxDecoration( 94 | border: new BorderDirectional(bottom: new BorderSide(color: Colors.black12)) 95 | ), 96 | child: new FlatButton( 97 | onPressed: place.expend == false ? (){showAssets(place, 0.0, 1.0);} : (){showAssets(place, 1.0, 0.0);}, 98 | child: new Container( 99 | margin: const EdgeInsets.only(top: 12.0), 100 | padding: const EdgeInsets.only(bottom: 8.0), 101 | child: new Row( 102 | children: [ 103 | new Container( 104 | child: new Icon(Icons.place, color: Colors.blue), 105 | ), 106 | new Expanded( 107 | child: new Container( 108 | margin: const EdgeInsets.only(left: 6.0), 109 | child: new Text(place.place), 110 | ) 111 | ), 112 | new Container( 113 | child: place.expend == false ? new Icon(Icons.arrow_drop_down, color: Colors.blue,) : 114 | new Icon(Icons.arrow_drop_up, color: Colors.blue,), 115 | ) 116 | ], 117 | ), 118 | ) 119 | ) 120 | ), 121 | new ClipRect( 122 | child: new Align( 123 | alignment: Alignment.topCenter, 124 | heightFactor: place.animation.value, 125 | child: place.assetList == null ? load() : new Container( 126 | margin: const EdgeInsets.only(top: 10.0), 127 | padding: const EdgeInsets.only(left: 16.0, bottom: 10.0), 128 | decoration: new BoxDecoration( 129 | border: new BorderDirectional(bottom: new BorderSide(color: Colors.black12)) 130 | ), 131 | child: new Column( 132 | children: allAsset(place.assetList), 133 | ), 134 | ), 135 | )) 136 | ], 137 | ) 138 | ); 139 | } 140 | return widgetList; 141 | } 142 | 143 | @override 144 | Widget build(BuildContext context) { 145 | return new SingleChildScrollView( 146 | child: new Container( 147 | margin: const EdgeInsets.only(top: 20.0, left: 16.0, right: 16.0, bottom: 36.0), 148 | child: new Column( 149 | children: allPlace(), 150 | ), 151 | ), 152 | ); 153 | } 154 | 155 | } -------------------------------------------------------------------------------- /lib/assets/home_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'dart:convert'; 3 | import 'package:http/http.dart' as http; 4 | import 'dart:async'; 5 | import 'inventory_page.dart'; 6 | import 'task.dart'; 7 | import 'statistics_page.dart'; 8 | import 'distribution_page.dart'; 9 | 10 | class HomePage extends StatefulWidget { 11 | 12 | @override 13 | _HomePageState createState() => new _HomePageState(); 14 | } 15 | 16 | class _HomePageState extends State with TickerProviderStateMixin { 17 | 18 | bool inventoryStart = true; 19 | int statisticsStart = 0; 20 | bool distributionStart = true; 21 | 22 | List taskList = new List(); 23 | Map staMap = new Map(); 24 | List placeList = new List(); 25 | 26 | @override 27 | void initState() { 28 | super.initState(); 29 | getTasks().then((list) => setState((){ 30 | taskList = list; 31 | inventoryStart = false; 32 | })); 33 | getStatistics().then((map) => setState((){ 34 | staMap = map; 35 | statisticsStart++; 36 | })); 37 | getPlaces().then((list) => setState((){ 38 | placeList = list; 39 | statisticsStart++; 40 | distributionStart = false; 41 | })); 42 | } 43 | 44 | @override 45 | dispose() { 46 | for (Task task in taskList) { 47 | task.controller.dispose(); 48 | } 49 | super.dispose(); 50 | } 51 | 52 | Future> getTasks() async { 53 | List list = new List(); 54 | var response = await http.get("http://xszhfw.jnxy.edu.cn:2124/assets/task"); 55 | for (Map map in jsonDecode(response.body)) { 56 | Task task = new Task.formjosn(map); 57 | task.controller = new AnimationController(duration: const Duration(milliseconds: 500), vsync: this); 58 | task.animation = new Tween(begin: 0.0, end: 0.0).animate(task.controller); 59 | task.controller.forward(); 60 | list.add(task); 61 | } 62 | return list; 63 | } 64 | 65 | Future getStatistics() async { 66 | var response = await http.get("http://xszhfw.jnxy.edu.cn:2124/assets/statistics"); 67 | return jsonDecode(response.body); 68 | } 69 | 70 | Future> getPlaces() async { 71 | List list = new List(); 72 | var response = await http.get("http://xszhfw.jnxy.edu.cn:2124/assets/place"); 73 | for (Map map in jsonDecode(response.body)) { 74 | Place place = new Place.fromJson(map); 75 | place.controller = new AnimationController(duration: const Duration(milliseconds: 500), vsync: this); 76 | place.animation = new Tween(begin: 0.0, end: 0.0).animate(place.controller); 77 | place.controller.forward(); 78 | list.add(place); 79 | } 80 | return list; 81 | } 82 | 83 | Widget barSearch() { 84 | return new Container( 85 | child: new Row( 86 | children: [ 87 | new Expanded( 88 | child: new FlatButton.icon( 89 | onPressed: (){ 90 | 91 | }, 92 | icon: new Icon( 93 | Icons.search, 94 | size: 16.0 95 | ), 96 | label: new Text( 97 | "搜索学院资产", 98 | style: new TextStyle(), 99 | ), 100 | ) 101 | ) 102 | ], 103 | ), 104 | decoration: new BoxDecoration( 105 | borderRadius: const BorderRadius.all(const Radius.circular(4.0)), 106 | color: Colors.black12, 107 | ) 108 | ); 109 | } 110 | 111 | @override 112 | Widget build(BuildContext context) { 113 | return new DefaultTabController( 114 | length: 3, 115 | child: new Scaffold( 116 | appBar: new AppBar( 117 | title: barSearch(), 118 | bottom: new TabBar( 119 | labelColor: Colors.blue, 120 | unselectedLabelColor: Colors.black, 121 | tabs: [ 122 | new Tab(text: "资产盘点"), 123 | new Tab(text: "资产分布"), 124 | new Tab(text: "资产统计"), 125 | ], 126 | ), 127 | ), 128 | body: new TabBarView( 129 | children: [ 130 | inventoryStart == true ? 131 | load() 132 | : 133 | new InventoryPage(taskList, placeList), 134 | 135 | distributionStart == true ? 136 | load() 137 | : 138 | new DistributionPage(placeList), 139 | 140 | statisticsStart == 0 ? 141 | load() 142 | : 143 | statisticsStart == 1 ? 144 | load() 145 | : 146 | new StatisticsPage(staMap, placeList), 147 | ] 148 | ), 149 | ), 150 | ); 151 | } 152 | } 153 | 154 | Widget load() { 155 | return new Container( 156 | child: new Container( 157 | child: new Container( 158 | child: new CircularProgressIndicator(), 159 | width: 30.0, 160 | height: 30.0, 161 | alignment: Alignment.center, 162 | ), 163 | width: 50.0, 164 | height: 50.0, 165 | decoration: new BoxDecoration( 166 | color: Colors.white, 167 | borderRadius: const BorderRadius.all(const Radius.circular(25.0)), 168 | //box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2); 169 | boxShadow: [ 170 | new BoxShadow ( 171 | color: const Color(0x0e000000), 172 | offset: new Offset(0.0, 2.0), 173 | blurRadius: 2.0, 174 | spreadRadius: 0.0 175 | ), 176 | new BoxShadow ( 177 | color: const Color(0x0c000000), 178 | offset: new Offset(0.0, 3.0), 179 | blurRadius: 1.0, 180 | spreadRadius: -2.0 181 | ), 182 | new BoxShadow ( 183 | color: const Color(0x15000000), 184 | offset: new Offset(0.0, 1.0), 185 | blurRadius: 5.0, 186 | spreadRadius: 0.0 187 | ), 188 | ], 189 | ), 190 | ), 191 | alignment: Alignment.topCenter, 192 | margin: const EdgeInsets.only(top: 16.0), 193 | ); 194 | } -------------------------------------------------------------------------------- /lib/assets/inventory_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'task.dart'; 3 | import 'assets_view_page.dart'; 4 | import 'define_task_page.dart'; 5 | import 'dart:async'; 6 | 7 | class InventoryPage extends StatefulWidget { 8 | 9 | final List taskList; 10 | final List placeList; 11 | 12 | InventoryPage(this.taskList, this.placeList); 13 | 14 | @override 15 | _InventoryPageState createState() => new _InventoryPageState(taskList, placeList); 16 | } 17 | 18 | class _InventoryPageState extends State{ 19 | 20 | List taskList; 21 | final List placeList; 22 | 23 | _InventoryPageState(this.taskList, this.placeList); 24 | 25 | void changeHeight(Task task, double begin, double end) { 26 | task.animation = new Tween(begin: begin, end: end).animate(task.controller) 27 | ..addListener(() { 28 | setState(() { 29 | }); 30 | }); 31 | task.controller.forward(from: 0.0); 32 | if (task.expend == false) { 33 | task.expend = true; 34 | } else { 35 | task.expend = false; 36 | } 37 | } 38 | 39 | Widget taskCard(Task task) { 40 | 41 | String location = ""; 42 | for (String place in task.define.place) { 43 | location += place + ", "; 44 | } 45 | location = location.substring(0, location.length - 2); 46 | return new Container( 47 | child: new Column( 48 | children: [ 49 | new Container( 50 | child: new Text(task.name, style: new TextStyle(fontSize: 20.0),), 51 | alignment: Alignment.topLeft, 52 | ), 53 | new Container( 54 | child: new Text(task.createDate, style: new TextStyle(color: Colors.black45),), 55 | alignment: Alignment.topLeft, 56 | margin: const EdgeInsets.only(top: 4.0, bottom: 4.0) 57 | ), 58 | new Container( 59 | child: new Row( 60 | children: [ 61 | new Text("任务状态:", style: new TextStyle(color: Colors.black45)), 62 | task.state == "run" ? 63 | new Text("正在进行", style: new TextStyle(color: Colors.lightGreenAccent)) 64 | : 65 | task.no.length == 0 ? 66 | new Text("圆满结束", style: new TextStyle(color: Colors.lightGreenAccent)) 67 | : 68 | new Text("资产丢失!", style: new TextStyle(color: Colors.red)) 69 | ], 70 | ), 71 | ), 72 | new Container( 73 | child: new Row( 74 | children: [ 75 | new Container( 76 | child: new RaisedButton( 77 | onPressed: (){ 78 | Navigator.of(context).push(new MaterialPageRoute( 79 | builder: (context) { 80 | return new AssetsViewPage(task.name + ": 已盘点", task.yes); 81 | } 82 | )); 83 | }, child: new Text("已盘点", style: new TextStyle(color: Colors.blue),), color: new Color(0xFFFFFFFF)), 84 | height: 30.0, 85 | margin: const EdgeInsets.only(right: 8.0), 86 | ), 87 | new Container( 88 | child: new RaisedButton( 89 | onPressed: (){ 90 | Navigator.of(context).push(new MaterialPageRoute( 91 | builder: (context) { 92 | return new AssetsViewPage(task.name + ": 未盘点", task.no); 93 | } 94 | )); 95 | }, child: new Text("未盘点", style: new TextStyle(color: Colors.red)), color: new Color(0xFFFFFFFF)), 96 | height: 30.0, 97 | ), 98 | new Expanded( 99 | child: new Container( 100 | child: new RaisedButton( 101 | onPressed: task.expend == false ? (){changeHeight(task, 0.0, 1.0);} : (){changeHeight(task, 1.0, 0.0);}, 102 | child: new Text("盘点详情", style: new TextStyle(color: Colors.white)), 103 | color: Colors.blue 104 | ), 105 | height: 30.0, 106 | margin: const EdgeInsets.only(left: 30.0), 107 | ), 108 | ) 109 | ], 110 | ), 111 | margin: const EdgeInsets.only(top: 20.0) 112 | ), 113 | new ClipRect( 114 | child: new Align( 115 | alignment: Alignment.topCenter, 116 | heightFactor: task.animation.value, 117 | child: new Container( 118 | margin: const EdgeInsets.only(top: 20.0), 119 | child: new Column( 120 | children: [ 121 | new Row( 122 | children: [ 123 | new Expanded( 124 | child: new Container( 125 | child: new Column( 126 | children: [ 127 | new CircleAvatar( 128 | radius: 24.0, 129 | child: new Text((task.yes.length + task.no.length).toString()), 130 | backgroundColor: Colors.red, 131 | ), 132 | new Container( 133 | child: new Text("任务资产总数", style: new TextStyle(color: Colors.black45)), 134 | margin: const EdgeInsets.only(top: 4.0) 135 | ) 136 | ], 137 | ), 138 | ) 139 | ), 140 | new Expanded( 141 | child: new Container( 142 | child: new Column( 143 | children: [ 144 | new CircleAvatar( 145 | radius: 24.0, 146 | child: new Text(task.yes.length.toString()), 147 | backgroundColor: Colors.blue, 148 | ), 149 | new Container( 150 | child: new Text("盘点数", style: new TextStyle(color: Colors.black45)), 151 | margin: const EdgeInsets.only(top: 4.0) 152 | ) 153 | ], 154 | ), 155 | ) 156 | ), 157 | new Expanded( 158 | child: new Container( 159 | child: new Column( 160 | children: [ 161 | new CircleAvatar( 162 | radius: 24.0, 163 | child: new Text(task.no.length.toString()), 164 | backgroundColor: Colors.black26, 165 | ), 166 | new Container( 167 | child: new Text("未盘点数", style: new TextStyle(color: Colors.black45)), 168 | margin: const EdgeInsets.only(top: 4.0) 169 | ) 170 | ], 171 | ), 172 | ) 173 | ) 174 | ], 175 | ), 176 | task.state == "run" ? 177 | new Container( 178 | margin: const EdgeInsets.only(top: 16.0), 179 | child: new Row( 180 | children: [ 181 | new Text("任务进行时间:", style: new TextStyle(color: Colors.black45)), 182 | new Text(((new DateTime.now().millisecondsSinceEpoch - DateTime.parse(task.createDate).millisecondsSinceEpoch) / 1000 / 60 / 60).toInt().toString() + "小时") 183 | ], 184 | ), 185 | ) 186 | : 187 | new Container( 188 | margin: const EdgeInsets.only(top: 16.0), 189 | child: new Row( 190 | children: [ 191 | new Text("任务结束时间:", style: new TextStyle(color: Colors.black45)), 192 | new Text(task.endDate) 193 | ], 194 | ), 195 | ), 196 | new Container( 197 | margin: const EdgeInsets.only(top: 6.0), 198 | child: new Row( 199 | children: [ 200 | new Text("资产的时间段:", style: new TextStyle(color: Colors.black45)), 201 | new Text(task.define.startDate + "至" + task.define.endDate) 202 | ], 203 | ), 204 | ), 205 | new Container( 206 | margin: const EdgeInsets.only(top: 6.0), 207 | child: new Column( 208 | children: [ 209 | new Container( 210 | child: new Text("资产所在地址:", style: new TextStyle(color: Colors.black45)), 211 | alignment: Alignment.topLeft, 212 | ), 213 | new Container( 214 | child: new Text(location, style: new TextStyle(height: 1.4), textAlign: TextAlign.start), 215 | alignment: Alignment.topLeft, 216 | ), 217 | ], 218 | ), 219 | ), 220 | new Container( 221 | margin: const EdgeInsets.only(top: 10.0, left: 2.0, bottom: 2.0), 222 | child: new Row( 223 | children: [ 224 | new Container( 225 | child: new RaisedButton(onPressed: (){}, child: new Text("结束任务", style: new TextStyle(color: Colors.blue),), color: new Color(0xFFFFFFFF)), 226 | height: 30.0, 227 | ), 228 | new Expanded( 229 | child: new Container( 230 | child: new Icon( 231 | Icons.clear, 232 | ), 233 | alignment: Alignment.bottomRight, 234 | ), 235 | ) 236 | ], 237 | ), 238 | ) 239 | ], 240 | ), 241 | ), 242 | ), 243 | ) 244 | ], 245 | ), 246 | width: 1000.0, 247 | margin: new EdgeInsets.only(left: 16.0, right: 16.0, bottom: 8.0), 248 | padding: new EdgeInsets.only(left: 10.0, right: 10.0, top: 10.0, bottom: 10.0), 249 | decoration: new BoxDecoration( 250 | color: Colors.white, 251 | //box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2); 252 | boxShadow: [ 253 | new BoxShadow ( 254 | color: const Color(0x0e000000), 255 | offset: new Offset(0.0, 2.0), 256 | blurRadius: 2.0, 257 | spreadRadius: 0.0 258 | ), 259 | new BoxShadow ( 260 | color: const Color(0x0c000000), 261 | offset: new Offset(0.0, 3.0), 262 | blurRadius: 1.0, 263 | spreadRadius: -2.0 264 | ), 265 | new BoxShadow ( 266 | color: const Color(0x15000000), 267 | offset: new Offset(0.0, 1.0), 268 | blurRadius: 5.0, 269 | spreadRadius: 0.0 270 | ), 271 | ], 272 | ), 273 | ); 274 | } 275 | 276 | Widget getAllTaskCard() { 277 | List list = []; 278 | for (Task task in taskList) { 279 | list.add(taskCard(task)); 280 | } 281 | return new Column( 282 | children: list, 283 | ); 284 | } 285 | 286 | final GlobalKey _refreshIndicatorKey = 287 | new GlobalKey(); 288 | 289 | @override 290 | Widget build(BuildContext context) { 291 | return new RefreshIndicator( 292 | key: _refreshIndicatorKey, 293 | onRefresh: (){ 294 | print("哈哈"); 295 | setState(() { 296 | 297 | }); 298 | }, 299 | child: new SingleChildScrollView( 300 | physics: const AlwaysScrollableScrollPhysics(), 301 | child: new Column( 302 | children: [ 303 | new Container( 304 | child: new RaisedButton( 305 | onPressed: (){ 306 | Navigator.of(context).push(new MaterialPageRoute( 307 | builder: (context) { 308 | return new DefineTaskPage(placeList); 309 | } 310 | )); 311 | }, 312 | child: new Container( 313 | child: new Text("定义盘点任务", style: new TextStyle(color: Colors.blue)), 314 | padding: const EdgeInsets.only(left: 60.0, right: 60.0), 315 | ), 316 | color: new Color(0xFFFFFFFF), 317 | ), 318 | margin: const EdgeInsets.only(top: 24.0, bottom: 30.0) 319 | ), 320 | getAllTaskCard() 321 | ], 322 | ), 323 | ) 324 | ); 325 | } 326 | } -------------------------------------------------------------------------------- /lib/assets/statistics_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'task.dart'; 3 | 4 | class StatisticsPage extends StatefulWidget { 5 | 6 | Map staMap; 7 | List placeList; 8 | 9 | StatisticsPage(this.staMap, this.placeList); 10 | 11 | @override 12 | StatisticsPageState createState() => new StatisticsPageState(staMap, this.placeList); 13 | 14 | } 15 | 16 | class StatisticsPageState extends State with TickerProviderStateMixin { 17 | 18 | Map staMap; 19 | List placeList; 20 | Animation animation; 21 | AnimationController controller; 22 | bool expend = false; 23 | 24 | StatisticsPageState(this.staMap, this.placeList); 25 | 26 | @override 27 | void initState() { 28 | super.initState(); 29 | controller = new AnimationController(duration: const Duration(milliseconds: 500), vsync: this); 30 | animation = new Tween(begin: 0.0, end: 0.0).animate(controller); 31 | controller.forward(); 32 | } 33 | 34 | void changeHeight(double begin, double end) { 35 | animation = new Tween(begin: begin, end: end).animate(controller) 36 | ..addListener(() { 37 | setState(() { 38 | }); 39 | }); 40 | controller.forward(from: 0.0); 41 | if (expend == false) { 42 | expend = true; 43 | } else { 44 | expend = false; 45 | } 46 | } 47 | 48 | Widget distribution() { 49 | List widgetList = []; 50 | for (Place place in placeList) { 51 | widgetList.add(new Container( 52 | child: new Column( 53 | children: [ 54 | new Container( 55 | child: new Text(place.place, style: new TextStyle(color: Colors.white),), 56 | alignment: Alignment.topLeft, 57 | ), 58 | new Container( 59 | child: new Text("资产数量: " + place.count + ", " + "资产总值: " + place.price + " 元", style: new TextStyle(color: Colors.white70),), 60 | alignment: Alignment.topLeft, 61 | margin: const EdgeInsets.only(top: 4.0, bottom: 10.0), 62 | padding: const EdgeInsets.only(bottom: 4.0), 63 | decoration: new BoxDecoration( 64 | border: new BorderDirectional(bottom: new BorderSide(color: Colors.white10)) 65 | ), 66 | ) 67 | ], 68 | ), 69 | )); 70 | } 71 | return new Column( 72 | children: widgetList, 73 | ); 74 | } 75 | 76 | @override 77 | Widget build(BuildContext context) { 78 | return new SingleChildScrollView( 79 | child: new Column( 80 | children: [ 81 | new Container( 82 | child: new Column( 83 | children: [ 84 | new Row( 85 | children: [ 86 | new Expanded( 87 | child: new Container( 88 | child: new Column( 89 | children: [ 90 | new Container( 91 | child: new Text("信息管理中心", style: new TextStyle(fontSize: 20.0, color: Colors.white),), 92 | alignment: Alignment.topLeft, 93 | margin: const EdgeInsets.only(top: 10.0) 94 | ), 95 | new Container( 96 | child: new Text("资产数量: " + staMap["count"].toString(), style: new TextStyle(color: Colors.white70),), 97 | alignment: Alignment.topLeft, 98 | margin: const EdgeInsets.only(top: 10.0, bottom: 4.0) 99 | ), 100 | new Container( 101 | child: new Text("资产总值: " + staMap["price"].toString(), style: new TextStyle(color: Colors.white70),), 102 | alignment: Alignment.topLeft, 103 | margin: const EdgeInsets.only(bottom: 4.0) 104 | ), 105 | ], 106 | ), 107 | ), 108 | ), 109 | new Expanded( 110 | child: new AspectRatio( 111 | aspectRatio: 4.0 / 1.2, 112 | child: new Container( 113 | foregroundDecoration:new BoxDecoration( 114 | image: new DecorationImage( 115 | image: new NetworkImage("http://www.jnxy.edu.cn/images/logo.png"), 116 | centerSlice: new Rect.fromLTRB(270.0, 180.0, 1360.0, 730.0), 117 | ), 118 | borderRadius: const BorderRadius.all(const Radius.circular(6.0)) 119 | ), 120 | ) 121 | ), 122 | ) 123 | ], 124 | ), 125 | new Container( 126 | child: new RaisedButton( 127 | onPressed: expend == false ? (){changeHeight(0.0, 1.0);} : (){changeHeight(1.0, 0.0);}, 128 | child: new Text("分布统计", style: new TextStyle(color: Colors.white),), color: Colors.blue 129 | ), 130 | height: 30.0, 131 | margin: const EdgeInsets.only(right: 8.0, top: 20.0), 132 | alignment: Alignment.topLeft, 133 | ), 134 | new ClipRect( 135 | child: new Align( 136 | alignment: Alignment.topCenter, 137 | heightFactor: animation.value, 138 | child: new Container( 139 | margin: const EdgeInsets.only(top: 20.0), 140 | child: distribution(), 141 | ), 142 | ) 143 | ) 144 | ], 145 | ), 146 | width: 1000.0, 147 | margin: new EdgeInsets.only(left: 16.0, right: 16.0, bottom: 8.0, top: 24.0), 148 | padding: new EdgeInsets.only(left: 10.0, right: 10.0, top: 10.0, bottom: 10.0), 149 | decoration: new BoxDecoration( 150 | color: Colors.blue, 151 | //box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2); 152 | boxShadow: [ 153 | new BoxShadow ( 154 | color: const Color(0x0e000000), 155 | offset: new Offset(0.0, 2.0), 156 | blurRadius: 2.0, 157 | spreadRadius: 0.0 158 | ), 159 | new BoxShadow ( 160 | color: const Color(0x0c000000), 161 | offset: new Offset(0.0, 3.0), 162 | blurRadius: 1.0, 163 | spreadRadius: -2.0 164 | ), 165 | new BoxShadow ( 166 | color: const Color(0x15000000), 167 | offset: new Offset(0.0, 1.0), 168 | blurRadius: 5.0, 169 | spreadRadius: 0.0 170 | ), 171 | ], 172 | ), 173 | ) 174 | ], 175 | ), 176 | ); 177 | } 178 | 179 | } -------------------------------------------------------------------------------- /lib/assets/task.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class Task { 4 | 5 | Animation animation; 6 | AnimationController controller; 7 | bool expend = false; 8 | 9 | String user; 10 | String name; 11 | String state; 12 | String createDate; 13 | String endDate; 14 | Define define; 15 | List no; 16 | List yes; 17 | 18 | Task(this.user, this.name, this.state, this.createDate, this.endDate, this.define, this.no, this.yes); 19 | 20 | factory Task.formjosn(Map map) { 21 | List noAsset = new List(); 22 | for (Map noMap in map["no"]) { 23 | noAsset.add(new Asset.fromJson(noMap)); 24 | } 25 | List yesAsset = new List(); 26 | for (Map yesMap in map["yes"]) { 27 | yesAsset.add(new Asset.fromJson(yesMap)); 28 | } 29 | return new Task(map["user"], map["name"], map["state"], map["createDate"], map["endDate"], new Define.fromJson(map["define"]), noAsset, yesAsset); 30 | } 31 | 32 | @override 33 | String toString() { 34 | return 'Task{user: $user, name: $name, state: $state, createDate: $createDate, endDate: $endDate, define: $define, no: $no, yes: $yes}'; 35 | } 36 | } 37 | 38 | class Define { 39 | List place; 40 | String startDate; 41 | String endDate; 42 | String name; 43 | String user; 44 | 45 | Define(this.place, this.startDate, this.endDate, this.name, this.user); 46 | 47 | factory Define.fromJson(Map map) { 48 | List placeList = []; 49 | for (dynamic str in map["place"]) { 50 | placeList.add(str.toString()); 51 | } 52 | return new Define(placeList, map["startDate"], map["endDate"], map["name"], map["user"]); 53 | } 54 | 55 | @override 56 | String toString() { 57 | return 'Define{place: $place, startDate: $startDate, endDate: $endDate, name: $name, user: $user}'; 58 | } 59 | } 60 | 61 | class Asset { 62 | 63 | String admissionDate; 64 | String assetsName; 65 | String assetsNumber; 66 | String auditStatus; 67 | String auditor; 68 | String buyDate; 69 | String currentSituation; 70 | String db_place; 71 | String evidenceId; 72 | String financeName; 73 | String model; 74 | String number; 75 | String place; 76 | String spec; 77 | String totalPrice; 78 | String username; 79 | String inventoryDate; 80 | String inventoryLocation; 81 | 82 | Asset(this.admissionDate, this.assetsName, this.assetsNumber, this.auditStatus, this.auditor, this.buyDate, this.currentSituation, this.db_place, this.evidenceId, 83 | this.financeName, this.model, this.number, this.place, this.spec, this.totalPrice, this.username, this.inventoryDate, this.inventoryLocation); 84 | 85 | factory Asset.fromJson(Map map) { 86 | return new Asset(map["admissionDate"], map["assetsName"], map["assetsNumber"], map["auditStatus"], map["auditor"], map["buyDate"], 87 | map["currentSituation"], map["db_place"], map["evidenceId"], map["financeName"], map["model"], map["number"], 88 | map["place"], map["spec"], map["totalPrice"], map["username"], map["inventoryDate"], map["inventoryLocation"]); 89 | } 90 | 91 | @override 92 | String toString() { 93 | return 'Asset{admissionDate: $admissionDate, assetsName: $assetsName, assetsNumber: $assetsNumber, auditStatus: $auditStatus, auditor: $auditor, buyDate: $buyDate, currentSituation: $currentSituation, db_place: $db_place, evidenceId: $evidenceId, financeName: $financeName, model: $model, number: $number, place: $place, spec: $spec, totalPrice: $totalPrice, username: $username, inventoryDate: $inventoryDate, inventoryLocation: $inventoryLocation}'; 94 | } 95 | } 96 | 97 | class Place { 98 | 99 | Animation animation; 100 | AnimationController controller; 101 | bool expend = false; 102 | bool selected = false; 103 | 104 | String depart; 105 | String place; 106 | String count; 107 | String price; 108 | 109 | List assetList; 110 | 111 | Place(this.depart, this.place, this.count, this.price); 112 | 113 | factory Place.fromJson(Map map) { 114 | return new Place(map["depart"], map["place"], map["count"].toString(), map["price"].toString()); 115 | } 116 | } -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'assets/home_page.dart'; 3 | 4 | void main() => runApp(new MyApp()); 5 | 6 | class MyApp extends StatelessWidget { 7 | 8 | @override 9 | Widget build(BuildContext context) { 10 | return new MaterialApp( 11 | title: 'jnxy assets', 12 | theme: new ThemeData( 13 | primaryColor: Colors.grey[100], 14 | primaryColorBrightness: Brightness.light, 15 | ), 16 | home: new HomePage(), 17 | ); 18 | } 19 | } 20 | 21 | 22 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://www.dartlang.org/tools/pub/glossary#lockfile 3 | packages: 4 | analyzer: 5 | dependency: transitive 6 | description: 7 | name: analyzer 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "0.31.2-alpha.2" 11 | args: 12 | dependency: transitive 13 | description: 14 | name: args 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.4.3" 18 | async: 19 | dependency: transitive 20 | description: 21 | name: async 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.0.7" 25 | boolean_selector: 26 | dependency: transitive 27 | description: 28 | name: boolean_selector 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.0.3" 32 | charcode: 33 | dependency: transitive 34 | description: 35 | name: charcode 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.1" 39 | collection: 40 | dependency: transitive 41 | description: 42 | name: collection 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.14.6" 46 | convert: 47 | dependency: transitive 48 | description: 49 | name: convert 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "2.0.1" 53 | crypto: 54 | dependency: transitive 55 | description: 56 | name: crypto 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "2.0.3" 60 | csslib: 61 | dependency: transitive 62 | description: 63 | name: csslib 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "0.14.4" 67 | cupertino_icons: 68 | dependency: "direct main" 69 | description: 70 | name: cupertino_icons 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "0.1.2" 74 | flutter: 75 | dependency: "direct main" 76 | description: flutter 77 | source: sdk 78 | version: "0.0.0" 79 | flutter_test: 80 | dependency: "direct dev" 81 | description: flutter 82 | source: sdk 83 | version: "0.0.0" 84 | front_end: 85 | dependency: transitive 86 | description: 87 | name: front_end 88 | url: "https://pub.dartlang.org" 89 | source: hosted 90 | version: "0.1.0-alpha.12" 91 | glob: 92 | dependency: transitive 93 | description: 94 | name: glob 95 | url: "https://pub.dartlang.org" 96 | source: hosted 97 | version: "1.1.5" 98 | html: 99 | dependency: transitive 100 | description: 101 | name: html 102 | url: "https://pub.dartlang.org" 103 | source: hosted 104 | version: "0.13.3" 105 | http: 106 | dependency: transitive 107 | description: 108 | name: http 109 | url: "https://pub.dartlang.org" 110 | source: hosted 111 | version: "0.11.3+16" 112 | http_multi_server: 113 | dependency: transitive 114 | description: 115 | name: http_multi_server 116 | url: "https://pub.dartlang.org" 117 | source: hosted 118 | version: "2.0.4" 119 | http_parser: 120 | dependency: transitive 121 | description: 122 | name: http_parser 123 | url: "https://pub.dartlang.org" 124 | source: hosted 125 | version: "3.1.2" 126 | io: 127 | dependency: transitive 128 | description: 129 | name: io 130 | url: "https://pub.dartlang.org" 131 | source: hosted 132 | version: "0.3.2+1" 133 | js: 134 | dependency: transitive 135 | description: 136 | name: js 137 | url: "https://pub.dartlang.org" 138 | source: hosted 139 | version: "0.6.1" 140 | kernel: 141 | dependency: transitive 142 | description: 143 | name: kernel 144 | url: "https://pub.dartlang.org" 145 | source: hosted 146 | version: "0.3.0-alpha.12" 147 | logging: 148 | dependency: transitive 149 | description: 150 | name: logging 151 | url: "https://pub.dartlang.org" 152 | source: hosted 153 | version: "0.11.3+1" 154 | matcher: 155 | dependency: transitive 156 | description: 157 | name: matcher 158 | url: "https://pub.dartlang.org" 159 | source: hosted 160 | version: "0.12.2+1" 161 | meta: 162 | dependency: transitive 163 | description: 164 | name: meta 165 | url: "https://pub.dartlang.org" 166 | source: hosted 167 | version: "1.1.5" 168 | mime: 169 | dependency: transitive 170 | description: 171 | name: mime 172 | url: "https://pub.dartlang.org" 173 | source: hosted 174 | version: "0.9.6" 175 | multi_server_socket: 176 | dependency: transitive 177 | description: 178 | name: multi_server_socket 179 | url: "https://pub.dartlang.org" 180 | source: hosted 181 | version: "1.0.1" 182 | node_preamble: 183 | dependency: transitive 184 | description: 185 | name: node_preamble 186 | url: "https://pub.dartlang.org" 187 | source: hosted 188 | version: "1.4.1" 189 | package_config: 190 | dependency: transitive 191 | description: 192 | name: package_config 193 | url: "https://pub.dartlang.org" 194 | source: hosted 195 | version: "1.0.3" 196 | package_resolver: 197 | dependency: transitive 198 | description: 199 | name: package_resolver 200 | url: "https://pub.dartlang.org" 201 | source: hosted 202 | version: "1.0.2" 203 | path: 204 | dependency: transitive 205 | description: 206 | name: path 207 | url: "https://pub.dartlang.org" 208 | source: hosted 209 | version: "1.5.1" 210 | plugin: 211 | dependency: transitive 212 | description: 213 | name: plugin 214 | url: "https://pub.dartlang.org" 215 | source: hosted 216 | version: "0.2.0+2" 217 | pool: 218 | dependency: transitive 219 | description: 220 | name: pool 221 | url: "https://pub.dartlang.org" 222 | source: hosted 223 | version: "1.3.4" 224 | pub_semver: 225 | dependency: transitive 226 | description: 227 | name: pub_semver 228 | url: "https://pub.dartlang.org" 229 | source: hosted 230 | version: "1.4.1" 231 | quiver: 232 | dependency: transitive 233 | description: 234 | name: quiver 235 | url: "https://pub.dartlang.org" 236 | source: hosted 237 | version: "0.29.0+1" 238 | shelf: 239 | dependency: transitive 240 | description: 241 | name: shelf 242 | url: "https://pub.dartlang.org" 243 | source: hosted 244 | version: "0.7.3" 245 | shelf_packages_handler: 246 | dependency: transitive 247 | description: 248 | name: shelf_packages_handler 249 | url: "https://pub.dartlang.org" 250 | source: hosted 251 | version: "1.0.3" 252 | shelf_static: 253 | dependency: transitive 254 | description: 255 | name: shelf_static 256 | url: "https://pub.dartlang.org" 257 | source: hosted 258 | version: "0.2.7" 259 | shelf_web_socket: 260 | dependency: transitive 261 | description: 262 | name: shelf_web_socket 263 | url: "https://pub.dartlang.org" 264 | source: hosted 265 | version: "0.2.2" 266 | sky_engine: 267 | dependency: transitive 268 | description: flutter 269 | source: sdk 270 | version: "0.0.99" 271 | source_map_stack_trace: 272 | dependency: transitive 273 | description: 274 | name: source_map_stack_trace 275 | url: "https://pub.dartlang.org" 276 | source: hosted 277 | version: "1.1.4" 278 | source_maps: 279 | dependency: transitive 280 | description: 281 | name: source_maps 282 | url: "https://pub.dartlang.org" 283 | source: hosted 284 | version: "0.10.5" 285 | source_span: 286 | dependency: transitive 287 | description: 288 | name: source_span 289 | url: "https://pub.dartlang.org" 290 | source: hosted 291 | version: "1.4.0" 292 | stack_trace: 293 | dependency: transitive 294 | description: 295 | name: stack_trace 296 | url: "https://pub.dartlang.org" 297 | source: hosted 298 | version: "1.9.2" 299 | stream_channel: 300 | dependency: transitive 301 | description: 302 | name: stream_channel 303 | url: "https://pub.dartlang.org" 304 | source: hosted 305 | version: "1.6.6" 306 | string_scanner: 307 | dependency: transitive 308 | description: 309 | name: string_scanner 310 | url: "https://pub.dartlang.org" 311 | source: hosted 312 | version: "1.0.2" 313 | term_glyph: 314 | dependency: transitive 315 | description: 316 | name: term_glyph 317 | url: "https://pub.dartlang.org" 318 | source: hosted 319 | version: "1.0.0" 320 | test: 321 | dependency: transitive 322 | description: 323 | name: test 324 | url: "https://pub.dartlang.org" 325 | source: hosted 326 | version: "0.12.37" 327 | typed_data: 328 | dependency: transitive 329 | description: 330 | name: typed_data 331 | url: "https://pub.dartlang.org" 332 | source: hosted 333 | version: "1.1.5" 334 | utf: 335 | dependency: transitive 336 | description: 337 | name: utf 338 | url: "https://pub.dartlang.org" 339 | source: hosted 340 | version: "0.9.0+4" 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.6" 348 | watcher: 349 | dependency: transitive 350 | description: 351 | name: watcher 352 | url: "https://pub.dartlang.org" 353 | source: hosted 354 | version: "0.9.7+7" 355 | web_socket_channel: 356 | dependency: transitive 357 | description: 358 | name: web_socket_channel 359 | url: "https://pub.dartlang.org" 360 | source: hosted 361 | version: "1.0.7" 362 | yaml: 363 | dependency: transitive 364 | description: 365 | name: yaml 366 | url: "https://pub.dartlang.org" 367 | source: hosted 368 | version: "2.1.13" 369 | sdks: 370 | dart: ">=2.0.0-dev.52.0 <=2.0.0-dev.54.0.flutter-46ab040e58" 371 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: assets 2 | description: A new Flutter application. 3 | 4 | dependencies: 5 | flutter: 6 | sdk: flutter 7 | 8 | # The following adds the Cupertino Icons font to your application. 9 | # Use with the CupertinoIcons class for iOS style icons. 10 | cupertino_icons: ^0.1.0 11 | 12 | dev_dependencies: 13 | flutter_test: 14 | sdk: flutter 15 | 16 | 17 | # For information on the generic Dart part of this file, see the 18 | # following page: https://www.dartlang.org/tools/pub/pubspec 19 | 20 | # The following section is specific to Flutter. 21 | flutter: 22 | 23 | # The following line ensures that the Material Icons font is 24 | # included with your application, so that you can use the icons in 25 | # the material Icons class. 26 | uses-material-design: true 27 | 28 | # To add assets to your application, add an assets section, like this: 29 | # assets: 30 | # - images/a_dot_burr.jpeg 31 | # - images/a_dot_ham.jpeg 32 | 33 | # An image asset can refer to one or more resolution-specific "variants", see 34 | # https://flutter.io/assets-and-images/#resolution-aware. 35 | 36 | # For details regarding adding assets from package dependencies, see 37 | # https://flutter.io/assets-and-images/#from-packages 38 | 39 | # To add custom fonts to your application, add a fonts section here, 40 | # in this "flutter" section. Each entry in this list should have a 41 | # "family" key with the font family name, and a "fonts" key with a 42 | # list giving the asset and other descriptors for the font. For 43 | # example: 44 | # fonts: 45 | # - family: Schyler 46 | # fonts: 47 | # - asset: fonts/Schyler-Regular.ttf 48 | # - asset: fonts/Schyler-Italic.ttf 49 | # style: italic 50 | # - family: Trajan Pro 51 | # fonts: 52 | # - asset: fonts/TrajanPro.ttf 53 | # - asset: fonts/TrajanPro_Bold.ttf 54 | # weight: 700 55 | # 56 | # For details regarding fonts from package dependencies, 57 | # see https://flutter.io/custom-fonts/#from-packages 58 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // To perform an interaction with a widget in your test, use the WidgetTester utility that Flutter 3 | // provides. For example, you can send tap and scroll gestures. You can also use WidgetTester to 4 | // find child widgets in the widget tree, read text, and verify that the values of widget properties 5 | // are correct. 6 | 7 | import 'package:flutter/material.dart'; 8 | import 'package:flutter_test/flutter_test.dart'; 9 | 10 | import 'package:assets/main.dart'; 11 | 12 | void main() { 13 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 14 | // Build our app and trigger a frame. 15 | await tester.pumpWidget(new MyApp()); 16 | 17 | // Verify that our counter starts at 0. 18 | expect(find.text('0'), findsOneWidget); 19 | expect(find.text('1'), findsNothing); 20 | 21 | // Tap the '+' icon and trigger a frame. 22 | await tester.tap(find.byIcon(Icons.add)); 23 | await tester.pump(); 24 | 25 | // Verify that our counter has incremented. 26 | expect(find.text('0'), findsNothing); 27 | expect(find.text('1'), findsOneWidget); 28 | }); 29 | } 30 | --------------------------------------------------------------------------------