├── .gitignore ├── .metadata ├── README.md ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── oyy │ │ │ └── oyysubwayflutter │ │ │ ├── MainActivity.java │ │ │ └── wxapi │ │ │ └── WXEntryActivity.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 ├── images ├── more_img.png ├── sub_way_img.png ├── touxiang.png └── xianlu.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 ├── config.dart ├── index │ ├── home.dart │ └── indexPage.dart ├── main.dart ├── me │ └── mine.dart ├── notice │ ├── notice.dart │ ├── notice_item_detail.dart │ └── notice_items.dart └── site │ └── site.dart ├── pubspec.lock ├── pubspec.yaml ├── screenshots ├── detail.jpg ├── index.jpg ├── mine.jpg ├── notice.jpg └── wx_share.gif └── test └── widget_test.dart /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .dart_tool/ 3 | 4 | .packages 5 | .pub/ 6 | 7 | build/ 8 | 9 | .flutter-plugins 10 | -------------------------------------------------------------------------------- /.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: c7ea3ca377e909469c68f2ab878a5bc53d3cf66b 8 | channel: beta 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # oyy_subway_flutter 2 | 3 | 用一些基础的组件,仿深圳地铁app整了一个界面架子。 4 | 阅读该app代码,你将学会以下一些东西。 5 | 6 | ## 使用到的flutter packages 7 | 8 | flutter_webview_plugin: "^0.1.6" ——>相当于webview的一个package。 9 | 10 | 用法:参考该项目 notice_item_detail.dart 页面 11 | 12 | ##version——1.0.1 增加了微信分享 13 | 14 | 使用到的flutter packages:
15 |
16 | flutter_wechat: "^0.1.5" 17 | 18 |
19 | 效果图(动态图太大了,12M的gif(mp4转)
20 | 有没有好用打的MP4转gif在线生成工具,求推荐) 21 |
22 | 23 | ![image](https://github.com/niyige/oyy_subway_flutter/blob/master/screenshots/wx_share.gif)
24 | 25 | 26 | 27 | ##version——1.0.0 28 | 29 | ## 使用到的组件 30 | bottomNavigationBar:首页底部栏
31 | DefaultTabController:切卡栏
32 | Container: 可以设置边距,背景,还有边线
33 | row:横向布局,可以设置内部布局的排列方式
34 | column:纵向布局,可以设置内部布局的排列方式
35 | Expanded:可延伸布局,填充满剩余的空间
36 | Stack:设置可重叠效果的组件,查看mine.dart
37 | 还有icon,text,SingleChildScrollView,还有加载本地图片等等。。。。。
38 | 39 | 40 | ## 下面是效果图 41 | 首页:
42 | ![image](https://github.com/niyige/oyy_subway_flutter/blob/master/screenshots/index.jpg)
43 | 公告页面:
44 | ![image](https://github.com/niyige/oyy_subway_flutter/blob/master/screenshots/notice.jpg)
45 | 公告详情(加载了一个web页面):
46 | ![image](https://github.com/niyige/oyy_subway_flutter/blob/master/screenshots/detail.jpg)
47 | 我的 页面:
48 | ![image](https://github.com/niyige/oyy_subway_flutter/blob/master/screenshots/mine.jpg)
49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /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 "com.oyy.oyysubwayflutter" 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 | implementation 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+' 53 | } 54 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 21 | 25 | 32 | 36 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/oyy/oyysubwayflutter/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.oyy.oyysubwayflutter; 2 | 3 | import android.os.Bundle; 4 | import io.flutter.app.FlutterActivity; 5 | import io.flutter.plugins.GeneratedPluginRegistrant; 6 | 7 | public class MainActivity extends FlutterActivity { 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | GeneratedPluginRegistrant.registerWith(this); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/oyy/oyysubwayflutter/wxapi/WXEntryActivity.java: -------------------------------------------------------------------------------- 1 | package com.oyy.oyysubwayflutter.wxapi; 2 | 3 | import android.content.Intent; 4 | import android.os.Bundle; 5 | 6 | import com.tencent.mm.opensdk.modelbase.BaseReq; 7 | import com.tencent.mm.opensdk.modelbase.BaseResp; 8 | import com.tencent.mm.opensdk.modelmsg.SendAuth; 9 | import com.tencent.mm.opensdk.openapi.IWXAPI; 10 | import com.tencent.mm.opensdk.openapi.IWXAPIEventHandler; 11 | import com.tencent.mm.opensdk.openapi.WXAPIFactory; 12 | 13 | import io.flutter.app.FlutterActivity; 14 | 15 | public class WXEntryActivity extends FlutterActivity implements IWXAPIEventHandler { 16 | 17 | private IWXAPI api; 18 | 19 | @Override 20 | protected void onCreate(Bundle savedInstanceState) { 21 | super.onCreate(savedInstanceState); 22 | api = WXAPIFactory.createWXAPI(this, "wx7e2d791ff79cdbd9", false); 23 | onNewIntent(getIntent()); 24 | finish(); 25 | } 26 | 27 | @Override 28 | public void onReq(BaseReq baseReq) { 29 | 30 | } 31 | 32 | @Override 33 | public void onResp(BaseResp baseResp) { 34 | sendBroadcastToWechat(baseResp); 35 | } 36 | 37 | private void sendBroadcastToWechat(BaseResp baseResp) { 38 | Intent intent = new Intent(); 39 | intent.setAction("sendResp"); 40 | if (baseResp instanceof SendAuth.Resp) { 41 | SendAuth.Resp resp = (SendAuth.Resp) (baseResp); 42 | intent.putExtra("code", resp.errCode == 0 ? resp.code : "-1"); 43 | intent.putExtra("type", "SendAuthResp"); 44 | sendBroadcast(intent); 45 | } else { 46 | intent.setAction("sendResp"); 47 | intent.putExtra("code", baseResp.errCode + ""); 48 | intent.putExtra("type", "ShareResp"); 49 | sendBroadcast(intent); 50 | } 51 | } 52 | 53 | protected void onNewIntent(Intent intent) { 54 | api.handleIntent(intent, this); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /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/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/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/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/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 | -------------------------------------------------------------------------------- /images/more_img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/images/more_img.png -------------------------------------------------------------------------------- /images/sub_way_img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/images/sub_way_img.png -------------------------------------------------------------------------------- /images/touxiang.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/images/touxiang.png -------------------------------------------------------------------------------- /images/xianlu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/images/xianlu.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 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/app.flx 37 | /Flutter/app.zip 38 | /Flutter/flutter_assets/ 39 | /Flutter/App.framework 40 | /Flutter/Flutter.framework 41 | /Flutter/Generated.xcconfig 42 | /ServiceDefinitions.json 43 | 44 | Pods/ 45 | .symlinks/ 46 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 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 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 373 | CURRENT_PROJECT_VERSION = 1; 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 = com.oyy.oyySubwayFlutter; 386 | PRODUCT_NAME = "$(TARGET_NAME)"; 387 | VERSIONING_SYSTEM = "apple-generic"; 388 | }; 389 | name = Debug; 390 | }; 391 | 97C147071CF9000F007C117D /* Release */ = { 392 | isa = XCBuildConfiguration; 393 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 394 | buildSettings = { 395 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 396 | CURRENT_PROJECT_VERSION = 1; 397 | ENABLE_BITCODE = NO; 398 | FRAMEWORK_SEARCH_PATHS = ( 399 | "$(inherited)", 400 | "$(PROJECT_DIR)/Flutter", 401 | ); 402 | INFOPLIST_FILE = Runner/Info.plist; 403 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 404 | LIBRARY_SEARCH_PATHS = ( 405 | "$(inherited)", 406 | "$(PROJECT_DIR)/Flutter", 407 | ); 408 | PRODUCT_BUNDLE_IDENTIFIER = com.oyy.oyySubwayFlutter; 409 | PRODUCT_NAME = "$(TARGET_NAME)"; 410 | VERSIONING_SYSTEM = "apple-generic"; 411 | }; 412 | name = Release; 413 | }; 414 | /* End XCBuildConfiguration section */ 415 | 416 | /* Begin XCConfigurationList section */ 417 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 418 | isa = XCConfigurationList; 419 | buildConfigurations = ( 420 | 97C147031CF9000F007C117D /* Debug */, 421 | 97C147041CF9000F007C117D /* Release */, 422 | ); 423 | defaultConfigurationIsVisible = 0; 424 | defaultConfigurationName = Release; 425 | }; 426 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 427 | isa = XCConfigurationList; 428 | buildConfigurations = ( 429 | 97C147061CF9000F007C117D /* Debug */, 430 | 97C147071CF9000F007C117D /* Release */, 431 | ); 432 | defaultConfigurationIsVisible = 0; 433 | defaultConfigurationName = Release; 434 | }; 435 | /* End XCConfigurationList section */ 436 | }; 437 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 438 | } 439 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 31 | 32 | 33 | 34 | 40 | 41 | 42 | 43 | 44 | 45 | 56 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 75 | 77 | 83 | 84 | 85 | 86 | 88 | 89 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "GeneratedPluginRegistrant.h" 3 | 4 | @implementation AppDelegate 5 | 6 | - (BOOL)application:(UIApplication *)application 7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 8 | [GeneratedPluginRegistrant registerWithRegistry:self]; 9 | // Override point for customization after application launch. 10 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 11 | } 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/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/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/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/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/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/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/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/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/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/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/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/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/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/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/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/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/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/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/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/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/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/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/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/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/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/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/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/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/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/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/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 | oyy_subway_flutter 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 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ios/Runner/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char* argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /lib/config.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class Config { 4 | static ThemeData themeData = new ThemeData(primarySwatch: Colors.green); 5 | static Color searchBackgroundColor = Colors.white; 6 | } 7 | -------------------------------------------------------------------------------- /lib/index/home.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import '../me/mine.dart'; 3 | import 'indexPage.dart'; 4 | import '../notice/notice.dart'; 5 | import '../site/site.dart'; 6 | import 'package:flutter_wechat/flutter_wechat.dart'; 7 | 8 | //项目首页 9 | class Home extends StatefulWidget { 10 | @override 11 | State createState() { 12 | return new _HomePageState(); 13 | } 14 | } 15 | 16 | class _HomePageState extends State { 17 | int _currentIndex = 0; //当前页的下标 18 | 19 | List _pages; //底部item页面集合 20 | 21 | List _item; 22 | 23 | StatefulWidget _currentPage; 24 | 25 | @override 26 | void initState() { 27 | super.initState(); 28 | 29 | _item = [ 30 | new BottomNavigationBarItem( 31 | icon: new Icon(Icons.directions_railway), title: new Text("出行")), 32 | new BottomNavigationBarItem( 33 | icon: new Icon(Icons.departure_board), title: new Text("站点")), 34 | new BottomNavigationBarItem( 35 | icon: new Icon(Icons.notifications_active), title: new Text("公告")), 36 | new BottomNavigationBarItem( 37 | icon: new Icon(Icons.perm_identity), title: new Text("我的")), 38 | ]; 39 | 40 | _pages = [ 41 | new IndexPage(), 42 | new SitePage(), 43 | new Notice(), 44 | new Mine(), 45 | ]; 46 | 47 | _currentPage = _pages[_currentIndex]; 48 | 49 | // 微信注册需要在你需要的地方注册,最好是app首页 50 | FlutterWechat.registerWechat("wx7e2d791ff79cdbd9"); 51 | } 52 | 53 | @override 54 | Widget build(BuildContext context) { 55 | final BottomNavigationBar bottomNavigationBar = new BottomNavigationBar( 56 | items: _item, 57 | currentIndex: _currentIndex, 58 | fixedColor: Colors.green, 59 | type: BottomNavigationBarType.fixed, 60 | onTap: (int index) { 61 | setState(() { 62 | _currentIndex = index; 63 | _currentPage = _pages[_currentIndex]; 64 | }); 65 | }, 66 | ); 67 | 68 | return new MaterialApp( 69 | home: new Scaffold( 70 | body: new Center( 71 | child: _currentPage, 72 | ), 73 | bottomNavigationBar: bottomNavigationBar, 74 | ), 75 | ); 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /lib/index/indexPage.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import '../config.dart'; 3 | 4 | class IndexPage extends StatefulWidget { 5 | @override 6 | State createState() { 7 | return new IndexPageState(); 8 | } 9 | } 10 | 11 | class IndexPageState extends State { 12 | //搜索框 13 | Widget _barSearch() { 14 | return new Container( 15 | child: new Row( 16 | crossAxisAlignment: CrossAxisAlignment.center, 17 | children: [ 18 | new Container( 19 | child: Image.asset('images/sub_way_img.png'), 20 | width: 25.0, 21 | height: 25.0, 22 | ), 23 | new Expanded( 24 | child: new Container( 25 | padding: EdgeInsets.only( 26 | left: 5.0, top: 5.0, bottom: 5.0, right: 5.0), 27 | margin: EdgeInsets.only(left: 10.0, right: 15.0), 28 | child: new Row( 29 | children: [ 30 | new Container( 31 | margin: EdgeInsets.only(right: 5.0), 32 | child: new Icon( 33 | Icons.search, 34 | size: 18.0, 35 | color: Colors.grey, 36 | ), 37 | ), 38 | new Text("搜索站点", 39 | style: new TextStyle( 40 | fontSize: 15.0, color: Colors.grey)), 41 | // new Container( 42 | // child: new FlatButton( 43 | // onPressed: () {}, 44 | // child: new Icon(Icons.settings_overscan, size: 15.0), 45 | // ), 46 | // width: 40.0, 47 | // height: 18.0, 48 | // ), 49 | ], 50 | ), 51 | decoration: new BoxDecoration( 52 | borderRadius: 53 | const BorderRadius.all(const Radius.circular(4.0)), 54 | color: Config.searchBackgroundColor))), 55 | new Text("+"), 56 | ], 57 | ), 58 | ); 59 | } 60 | 61 | @override 62 | Widget build(BuildContext context) { 63 | return new MaterialApp( 64 | theme: Config.themeData, 65 | home: new Scaffold( 66 | appBar: new AppBar( 67 | title: _barSearch(), 68 | ), 69 | body: new Container( 70 | child: new Center( 71 | child: new Image( 72 | image: new AssetImage('images/xianlu.png')), 73 | ), 74 | ), 75 | floatingActionButton: new FloatingActionButton( 76 | child: Image.asset('images/sub_way_img.png'), 77 | onPressed: null, 78 | tooltip: '乘车码', 79 | 80 | ), 81 | ), 82 | ); 83 | } 84 | } 85 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'index/home.dart'; 3 | 4 | void main() => runApp(new MyApp()); 5 | 6 | class MyApp extends StatelessWidget { 7 | // This widget is the root of your application. 8 | @override 9 | Widget build(BuildContext context) { 10 | return new MaterialApp( 11 | title: '仿-深圳地铁', 12 | home: new Home(), 13 | ); 14 | } 15 | } 16 | 17 | -------------------------------------------------------------------------------- /lib/me/mine.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class Mine extends StatefulWidget { 4 | @override 5 | State createState() { 6 | return new MinePageState(); 7 | } 8 | } 9 | 10 | class MinePageState extends State { 11 | Widget _header() { 12 | return new Container( 13 | child: new Column( 14 | children: [ 15 | new Container( 16 | padding: EdgeInsets.only( 17 | top: 60.0, left: 20.0, bottom: 10.0, right: 20.0), 18 | child: new Row( 19 | children: [ 20 | new CircleAvatar( 21 | child: Image.asset('images/touxiang.png'), 22 | radius: 40.0, 23 | ), 24 | new Expanded( 25 | child: new Container( 26 | margin: EdgeInsets.only(left: 15.0), 27 | child: new Column( 28 | crossAxisAlignment: CrossAxisAlignment.start, 29 | children: [ 30 | new Text("150****1111"), 31 | new Text("青铜会员"), 32 | ], 33 | ), 34 | ), 35 | ), 36 | new Container( 37 | decoration: new BoxDecoration( 38 | color: Colors.white, 39 | borderRadius: 40 | const BorderRadius.all(const Radius.circular(4.0)), 41 | ), 42 | padding: EdgeInsets.only( 43 | left: 10.0, top: 5.0, right: 10.0, bottom: 5.0), 44 | child: new Row( 45 | children: [ 46 | new Icon( 47 | Icons.assignment, 48 | size: 18.0, 49 | color: Colors.green, 50 | ), 51 | new Container( 52 | margin: EdgeInsets.only(left: 5.0), 53 | child: new Text("签到", 54 | style: new TextStyle( 55 | fontSize: 12.0, color: Colors.green)), 56 | ), 57 | ], 58 | ), 59 | ) 60 | ], 61 | ), 62 | decoration: new BoxDecoration(color: Colors.green), 63 | ), 64 | new Container( 65 | decoration: new BoxDecoration(color: Colors.green), 66 | padding: EdgeInsets.only(top: 30.0, bottom: 10.0), 67 | child: new Row( 68 | children: [ 69 | new Expanded( 70 | child: new Column( 71 | children: [ 72 | new Text( 73 | '10', 74 | style: 75 | new TextStyle(color: Colors.white, fontSize: 15.0), 76 | ), 77 | new Container( 78 | margin: EdgeInsets.only(top: 5.0), 79 | child: new Text('积分', 80 | style: new TextStyle( 81 | color: Colors.white, fontSize: 12.0)), 82 | ) 83 | ], 84 | )), 85 | new Expanded( 86 | child: new Column( 87 | children: [ 88 | new Text( 89 | '234.4', 90 | style: 91 | new TextStyle(color: Colors.white, fontSize: 15.0), 92 | ), 93 | new Container( 94 | margin: EdgeInsets.only(top: 5.0), 95 | child: new Text('里程(km)', 96 | style: new TextStyle( 97 | color: Colors.white, fontSize: 12.0)), 98 | ) 99 | ], 100 | )) 101 | ], 102 | )), 103 | ], 104 | ), 105 | ); 106 | } 107 | 108 | //内容 109 | Widget _contentView() { 110 | return new Container( 111 | child: new Stack( 112 | children: [ 113 | new Align( 114 | child: new Opacity( 115 | opacity: 1.0, 116 | child: new Container( 117 | height: 80.0, 118 | color: Colors.green, 119 | )), 120 | ), 121 | new Align( 122 | child: new Container( 123 | margin: EdgeInsets.only(top: 30.0, left: 10.0, right: 10.0), 124 | decoration: new BoxDecoration( 125 | color: Colors.white, 126 | borderRadius: 127 | const BorderRadius.all(const Radius.circular(6.0))), 128 | child: new Container( 129 | child: new Column( 130 | children: [ 131 | new Container( 132 | margin: EdgeInsets.only(left: 4.0, right: 4.0), 133 | padding: EdgeInsets.only(left: 15.0, right: 12.0), 134 | height: 60.0, 135 | child: new Container( 136 | child: new Row( 137 | children: [ 138 | new Container( 139 | child: new Icon(Icons.access_time, size: 20.0), 140 | margin: const EdgeInsets.only(right: 12.0), 141 | ), 142 | new Expanded( 143 | child: new Text("我的收藏", 144 | style: new TextStyle( 145 | color: Colors.grey, fontSize: 14.0))), 146 | new Container( 147 | child: new Icon( 148 | Icons.chevron_right, 149 | color: Colors.grey, 150 | )) 151 | ], 152 | ), 153 | decoration: new BoxDecoration( 154 | border: new BorderDirectional( 155 | bottom: 156 | new BorderSide(color: Colors.black12))), 157 | )), 158 | new Container( 159 | margin: EdgeInsets.only(left: 4.0, right: 4.0), 160 | padding: EdgeInsets.only(left: 15.0, right: 12.0), 161 | height: 60.0, 162 | child: new Container( 163 | child: new Row( 164 | children: [ 165 | new Container( 166 | child: new Icon(Icons.access_time, size: 20.0), 167 | margin: const EdgeInsets.only(right: 12.0), 168 | ), 169 | new Expanded( 170 | child: new Text("我的收藏", 171 | style: new TextStyle( 172 | color: Colors.grey, fontSize: 14.0))), 173 | new Container( 174 | child: new Icon( 175 | Icons.chevron_right, 176 | color: Colors.grey, 177 | )) 178 | ], 179 | ), 180 | decoration: new BoxDecoration( 181 | border: new BorderDirectional( 182 | bottom: 183 | new BorderSide(color: Colors.black12))), 184 | )), 185 | new Container( 186 | margin: EdgeInsets.only(left: 4.0, right: 4.0), 187 | padding: EdgeInsets.only(left: 15.0, right: 12.0), 188 | height: 60.0, 189 | child: new Container( 190 | child: new Row( 191 | children: [ 192 | new Container( 193 | child: new Icon(Icons.access_time, size: 20.0), 194 | margin: const EdgeInsets.only(right: 12.0), 195 | ), 196 | new Expanded( 197 | child: new Text("我的收藏", 198 | style: new TextStyle( 199 | color: Colors.grey, fontSize: 14.0))), 200 | new Container( 201 | child: new Icon( 202 | Icons.chevron_right, 203 | color: Colors.grey, 204 | )) 205 | ], 206 | ), 207 | decoration: new BoxDecoration( 208 | border: new BorderDirectional( 209 | bottom: 210 | new BorderSide(color: Colors.black12))), 211 | )), 212 | new Container( 213 | margin: EdgeInsets.only(left: 4.0, right: 4.0), 214 | padding: EdgeInsets.only(left: 15.0, right: 12.0), 215 | height: 60.0, 216 | child: new Container( 217 | child: new Row( 218 | children: [ 219 | new Container( 220 | child: new Icon(Icons.access_time, size: 20.0), 221 | margin: const EdgeInsets.only(right: 12.0), 222 | ), 223 | new Expanded( 224 | child: new Text("我的收藏", 225 | style: new TextStyle( 226 | color: Colors.grey, fontSize: 14.0))), 227 | new Container( 228 | child: new Icon( 229 | Icons.chevron_right, 230 | color: Colors.grey, 231 | )) 232 | ], 233 | ), 234 | decoration: new BoxDecoration( 235 | border: new BorderDirectional( 236 | bottom: 237 | new BorderSide(color: Colors.black12))), 238 | )), 239 | new Container( 240 | margin: EdgeInsets.only(left: 4.0, right: 4.0), 241 | padding: EdgeInsets.only(left: 15.0, right: 12.0), 242 | height: 60.0, 243 | child: new Container( 244 | child: new Row( 245 | children: [ 246 | new Container( 247 | child: new Icon(Icons.access_time, size: 20.0), 248 | margin: const EdgeInsets.only(right: 12.0), 249 | ), 250 | new Expanded( 251 | child: new Text("我的收藏", 252 | style: new TextStyle( 253 | color: Colors.grey, fontSize: 14.0))), 254 | new Container( 255 | child: new Icon( 256 | Icons.chevron_right, 257 | color: Colors.grey, 258 | )) 259 | ], 260 | ), 261 | decoration: new BoxDecoration( 262 | border: new BorderDirectional( 263 | bottom: 264 | new BorderSide(color: Colors.black12))), 265 | )), 266 | new Container( 267 | margin: EdgeInsets.only(left: 4.0, right: 4.0), 268 | padding: EdgeInsets.only(left: 15.0, right: 12.0), 269 | height: 60.0, 270 | child: new Container( 271 | child: new Row( 272 | children: [ 273 | new Container( 274 | child: new Icon(Icons.access_time, size: 20.0), 275 | margin: const EdgeInsets.only(right: 12.0), 276 | ), 277 | new Expanded( 278 | child: new Text("我的收藏", 279 | style: new TextStyle( 280 | color: Colors.grey, fontSize: 14.0))), 281 | new Container( 282 | child: new Icon( 283 | Icons.chevron_right, 284 | color: Colors.grey, 285 | )) 286 | ], 287 | ), 288 | decoration: new BoxDecoration( 289 | border: new BorderDirectional( 290 | bottom: 291 | new BorderSide(color: Colors.black12))), 292 | )), 293 | new Container( 294 | margin: EdgeInsets.only(left: 4.0, right: 4.0), 295 | padding: EdgeInsets.only(left: 15.0, right: 12.0), 296 | height: 60.0, 297 | child: new Container( 298 | child: new Row( 299 | children: [ 300 | new Container( 301 | child: new Icon(Icons.access_time, size: 20.0), 302 | margin: const EdgeInsets.only(right: 12.0), 303 | ), 304 | new Expanded( 305 | child: new Text("我的收藏", 306 | style: new TextStyle( 307 | color: Colors.grey, fontSize: 14.0))), 308 | new Container( 309 | child: new Icon( 310 | Icons.chevron_right, 311 | color: Colors.grey, 312 | )) 313 | ], 314 | ), 315 | decoration: new BoxDecoration( 316 | border: new BorderDirectional( 317 | // bottom: 318 | // new BorderSide(color: Colors.black12) 319 | ) 320 | ), 321 | )), 322 | ], 323 | ), 324 | ), 325 | ), 326 | ) 327 | ], 328 | ), 329 | ); 330 | } 331 | 332 | @override 333 | Widget build(BuildContext context) { 334 | return new MaterialApp( 335 | home: new Scaffold( 336 | body: new SingleChildScrollView( 337 | child: new Container( 338 | margin: EdgeInsets.only(bottom: 15.0), 339 | child: new Column( 340 | children: [ 341 | _header(), 342 | _contentView(), 343 | ], 344 | ), 345 | ), 346 | )), 347 | ); 348 | } 349 | } 350 | -------------------------------------------------------------------------------- /lib/notice/notice.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'notice_items.dart'; 3 | 4 | //公告相关 5 | class Notice extends StatefulWidget { 6 | @override 7 | State createState() { 8 | return new NoticePageState(); 9 | } 10 | } 11 | 12 | class NoticePageState extends State { 13 | @override 14 | Widget build(BuildContext context) { 15 | return new DefaultTabController( 16 | length: 4, 17 | child: new Scaffold( 18 | appBar: new AppBar( 19 | backgroundColor: Colors.green, 20 | title: new TabBar( 21 | labelColor: Colors.yellow, 22 | unselectedLabelColor: Colors.white, 23 | indicatorColor: Colors.white, 24 | tabs: [ 25 | new Tab(text: "运营公告",), 26 | new Tab(text: "运营新闻"), 27 | new Tab(text: "运营政策"), 28 | new Tab(text: "安全知识"), 29 | ]), 30 | ), 31 | body: new TabBarView(children: [ 32 | new NoticeItems(), 33 | new NoticeItems(), 34 | new NoticeItems(), 35 | new NoticeItems(), 36 | ]), 37 | )); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /lib/notice/notice_item_detail.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:oyy_subway_flutter/config.dart'; 3 | import 'package:flutter_webview_plugin/flutter_webview_plugin.dart'; 4 | import 'package:flutter_wechat/flutter_wechat.dart'; 5 | 6 | class NoticeItemDetail extends StatefulWidget { 7 | @override 8 | State createState() { 9 | return new NoticeItemDetailState(); 10 | } 11 | } 12 | 13 | class NoticeItemDetailState extends State { 14 | @override 15 | Widget build(BuildContext context) { 16 | Widget _titleLayout() { 17 | return new Row( 18 | crossAxisAlignment: CrossAxisAlignment.center, 19 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 20 | children: [ 21 | new FlatButton( 22 | padding: EdgeInsets.only(right: 40.0), 23 | onPressed: () { 24 | Navigator.of(context).pop(); 25 | }, 26 | child: new Icon( 27 | Icons.arrow_back, 28 | color: Colors.white, 29 | )), 30 | new Expanded( 31 | child: Container( 32 | child: new Text("公告详情"), 33 | )), 34 | new Container( 35 | child: new Text("分享", style: new TextStyle(fontSize: 15.0)), 36 | ) 37 | ], 38 | ); 39 | } 40 | 41 | return new MaterialApp( 42 | theme: Config.themeData, 43 | home: new WebviewScaffold( 44 | appBar: new AppBar( 45 | leading: new IconButton( 46 | padding: EdgeInsets.all(2.0), 47 | icon: new Icon(Icons.arrow_back, color: Colors.white), 48 | onPressed: () { 49 | Navigator.of(context).pop(); 50 | }, 51 | ), 52 | centerTitle: true, 53 | title: new Text("我是标题"), 54 | actions: [ 55 | new Container( 56 | margin: EdgeInsets.only(right: 15.0), 57 | child: new Column( 58 | mainAxisAlignment: MainAxisAlignment.center, 59 | children: [ 60 | new Container( 61 | // child: new Text("分享"), 62 | child: new FlatButton( 63 | onPressed: () { 64 | FlutterWechat.shareText( 65 | text: "test", 66 | type: 0, 67 | ); //文字分享 type 0 聊天页面 1 朋友圈 68 | }, 69 | child: new Text("分享"))), 70 | ], 71 | ), 72 | ) 73 | ], 74 | ), 75 | url: 'https://www.baidu.com/', 76 | withZoom: true, 77 | withLocalStorage: true, 78 | ), 79 | ); 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /lib/notice/notice_items.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'notice_item_detail.dart'; 3 | 4 | class NoticeItems extends StatefulWidget { 5 | @override 6 | State createState() { 7 | return new NoticeItemsPageState(); 8 | } 9 | } 10 | 11 | class NoticeItemsPageState extends State { 12 | var _item = []; 13 | 14 | @override 15 | void initState() { 16 | super.initState(); 17 | _item = [ 18 | "凑行数", 19 | "凑行数", 20 | "凑行数", 21 | "凑行数", 22 | "凑行数", 23 | "凑行数", 24 | "凑行数", 25 | "凑行数", 26 | ]; 27 | } 28 | 29 | 30 | @override 31 | Widget build(BuildContext context) { 32 | 33 | return new Center( 34 | child: new ListView.builder( 35 | padding: EdgeInsets.only(left: 5.0, top: 10.0, bottom: 10.0), 36 | itemBuilder: (context, i) { 37 | if(i > _item.length) { 38 | return null; 39 | } 40 | return new FlatButton( 41 | onPressed: (){ 42 | Navigator.of(context).push(new MaterialPageRoute( 43 | builder: (context) { 44 | return new NoticeItemDetail(); 45 | } 46 | )); 47 | }, 48 | child: new Container( 49 | margin: EdgeInsets.only(top: 10.0), 50 | child: new Column( 51 | children: [ 52 | new Row( 53 | children: [ 54 | new Container( 55 | child: Image.asset('images/sub_way_img.png'), 56 | width: 45.0, 57 | height: 45.0, 58 | ), 59 | new Container( 60 | margin: EdgeInsets.only(left: 15.0, right: 15.0), 61 | child: new Column( 62 | children: [ 63 | new Text("票价计费规则", 64 | style: new TextStyle( 65 | fontSize: 15.0, color: Colors.black)), 66 | new Container( 67 | margin: EdgeInsets.only(top: 5.0), 68 | child: new Text("2018-05-30 17:20", 69 | style: new TextStyle( 70 | fontSize: 12.0, color: Colors.grey)), 71 | ) 72 | ], 73 | crossAxisAlignment: CrossAxisAlignment.start, 74 | ), 75 | ) 76 | ], 77 | crossAxisAlignment: CrossAxisAlignment.start, 78 | ), 79 | new Divider(), 80 | ], 81 | ) 82 | )); 83 | })); 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /lib/site/site.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class SitePage extends StatefulWidget { 4 | @override 5 | State createState() { 6 | return new SitePageState(); 7 | } 8 | } 9 | 10 | class SitePageState extends State { 11 | @override 12 | Widget build(BuildContext context) { 13 | return new Container( 14 | child: new Center( 15 | child: new Text('暂无站点', 16 | style: new TextStyle(fontSize: 15.0, color: Colors.green)), 17 | ), 18 | ); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /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 | flutter_webview_plugin: 85 | dependency: "direct dev" 86 | description: 87 | name: flutter_webview_plugin 88 | url: "https://pub.dartlang.org" 89 | source: hosted 90 | version: "0.1.6" 91 | flutter_wechat: 92 | dependency: "direct dev" 93 | description: 94 | name: flutter_wechat 95 | url: "https://pub.dartlang.org" 96 | source: hosted 97 | version: "0.1.5" 98 | front_end: 99 | dependency: transitive 100 | description: 101 | name: front_end 102 | url: "https://pub.dartlang.org" 103 | source: hosted 104 | version: "0.1.0-alpha.12" 105 | glob: 106 | dependency: transitive 107 | description: 108 | name: glob 109 | url: "https://pub.dartlang.org" 110 | source: hosted 111 | version: "1.1.5" 112 | html: 113 | dependency: transitive 114 | description: 115 | name: html 116 | url: "https://pub.dartlang.org" 117 | source: hosted 118 | version: "0.13.3" 119 | http: 120 | dependency: transitive 121 | description: 122 | name: http 123 | url: "https://pub.dartlang.org" 124 | source: hosted 125 | version: "0.11.3+16" 126 | http_multi_server: 127 | dependency: transitive 128 | description: 129 | name: http_multi_server 130 | url: "https://pub.dartlang.org" 131 | source: hosted 132 | version: "2.0.4" 133 | http_parser: 134 | dependency: transitive 135 | description: 136 | name: http_parser 137 | url: "https://pub.dartlang.org" 138 | source: hosted 139 | version: "3.1.2" 140 | io: 141 | dependency: transitive 142 | description: 143 | name: io 144 | url: "https://pub.dartlang.org" 145 | source: hosted 146 | version: "0.3.2+1" 147 | js: 148 | dependency: transitive 149 | description: 150 | name: js 151 | url: "https://pub.dartlang.org" 152 | source: hosted 153 | version: "0.6.1" 154 | kernel: 155 | dependency: transitive 156 | description: 157 | name: kernel 158 | url: "https://pub.dartlang.org" 159 | source: hosted 160 | version: "0.3.0-alpha.12" 161 | logging: 162 | dependency: transitive 163 | description: 164 | name: logging 165 | url: "https://pub.dartlang.org" 166 | source: hosted 167 | version: "0.11.3+1" 168 | matcher: 169 | dependency: transitive 170 | description: 171 | name: matcher 172 | url: "https://pub.dartlang.org" 173 | source: hosted 174 | version: "0.12.2+1" 175 | meta: 176 | dependency: transitive 177 | description: 178 | name: meta 179 | url: "https://pub.dartlang.org" 180 | source: hosted 181 | version: "1.1.5" 182 | mime: 183 | dependency: transitive 184 | description: 185 | name: mime 186 | url: "https://pub.dartlang.org" 187 | source: hosted 188 | version: "0.9.6" 189 | multi_server_socket: 190 | dependency: transitive 191 | description: 192 | name: multi_server_socket 193 | url: "https://pub.dartlang.org" 194 | source: hosted 195 | version: "1.0.1" 196 | node_preamble: 197 | dependency: transitive 198 | description: 199 | name: node_preamble 200 | url: "https://pub.dartlang.org" 201 | source: hosted 202 | version: "1.4.1" 203 | package_config: 204 | dependency: transitive 205 | description: 206 | name: package_config 207 | url: "https://pub.dartlang.org" 208 | source: hosted 209 | version: "1.0.3" 210 | package_resolver: 211 | dependency: transitive 212 | description: 213 | name: package_resolver 214 | url: "https://pub.dartlang.org" 215 | source: hosted 216 | version: "1.0.2" 217 | path: 218 | dependency: transitive 219 | description: 220 | name: path 221 | url: "https://pub.dartlang.org" 222 | source: hosted 223 | version: "1.5.1" 224 | plugin: 225 | dependency: transitive 226 | description: 227 | name: plugin 228 | url: "https://pub.dartlang.org" 229 | source: hosted 230 | version: "0.2.0+2" 231 | pool: 232 | dependency: transitive 233 | description: 234 | name: pool 235 | url: "https://pub.dartlang.org" 236 | source: hosted 237 | version: "1.3.4" 238 | pub_semver: 239 | dependency: transitive 240 | description: 241 | name: pub_semver 242 | url: "https://pub.dartlang.org" 243 | source: hosted 244 | version: "1.4.1" 245 | quiver: 246 | dependency: transitive 247 | description: 248 | name: quiver 249 | url: "https://pub.dartlang.org" 250 | source: hosted 251 | version: "0.29.0+1" 252 | shelf: 253 | dependency: transitive 254 | description: 255 | name: shelf 256 | url: "https://pub.dartlang.org" 257 | source: hosted 258 | version: "0.7.3" 259 | shelf_packages_handler: 260 | dependency: transitive 261 | description: 262 | name: shelf_packages_handler 263 | url: "https://pub.dartlang.org" 264 | source: hosted 265 | version: "1.0.3" 266 | shelf_static: 267 | dependency: transitive 268 | description: 269 | name: shelf_static 270 | url: "https://pub.dartlang.org" 271 | source: hosted 272 | version: "0.2.7" 273 | shelf_web_socket: 274 | dependency: transitive 275 | description: 276 | name: shelf_web_socket 277 | url: "https://pub.dartlang.org" 278 | source: hosted 279 | version: "0.2.2" 280 | sky_engine: 281 | dependency: transitive 282 | description: flutter 283 | source: sdk 284 | version: "0.0.99" 285 | source_map_stack_trace: 286 | dependency: transitive 287 | description: 288 | name: source_map_stack_trace 289 | url: "https://pub.dartlang.org" 290 | source: hosted 291 | version: "1.1.4" 292 | source_maps: 293 | dependency: transitive 294 | description: 295 | name: source_maps 296 | url: "https://pub.dartlang.org" 297 | source: hosted 298 | version: "0.10.5" 299 | source_span: 300 | dependency: transitive 301 | description: 302 | name: source_span 303 | url: "https://pub.dartlang.org" 304 | source: hosted 305 | version: "1.4.0" 306 | stack_trace: 307 | dependency: transitive 308 | description: 309 | name: stack_trace 310 | url: "https://pub.dartlang.org" 311 | source: hosted 312 | version: "1.9.2" 313 | stream_channel: 314 | dependency: transitive 315 | description: 316 | name: stream_channel 317 | url: "https://pub.dartlang.org" 318 | source: hosted 319 | version: "1.6.6" 320 | string_scanner: 321 | dependency: transitive 322 | description: 323 | name: string_scanner 324 | url: "https://pub.dartlang.org" 325 | source: hosted 326 | version: "1.0.2" 327 | term_glyph: 328 | dependency: transitive 329 | description: 330 | name: term_glyph 331 | url: "https://pub.dartlang.org" 332 | source: hosted 333 | version: "1.0.0" 334 | test: 335 | dependency: transitive 336 | description: 337 | name: test 338 | url: "https://pub.dartlang.org" 339 | source: hosted 340 | version: "0.12.37" 341 | typed_data: 342 | dependency: transitive 343 | description: 344 | name: typed_data 345 | url: "https://pub.dartlang.org" 346 | source: hosted 347 | version: "1.1.5" 348 | utf: 349 | dependency: transitive 350 | description: 351 | name: utf 352 | url: "https://pub.dartlang.org" 353 | source: hosted 354 | version: "0.9.0+4" 355 | vector_math: 356 | dependency: transitive 357 | description: 358 | name: vector_math 359 | url: "https://pub.dartlang.org" 360 | source: hosted 361 | version: "2.0.6" 362 | watcher: 363 | dependency: transitive 364 | description: 365 | name: watcher 366 | url: "https://pub.dartlang.org" 367 | source: hosted 368 | version: "0.9.7+7" 369 | web_socket_channel: 370 | dependency: transitive 371 | description: 372 | name: web_socket_channel 373 | url: "https://pub.dartlang.org" 374 | source: hosted 375 | version: "1.0.7" 376 | yaml: 377 | dependency: transitive 378 | description: 379 | name: yaml 380 | url: "https://pub.dartlang.org" 381 | source: hosted 382 | version: "2.1.13" 383 | sdks: 384 | dart: ">=2.0.0-dev.52.0 <=2.0.0-dev.58.0.flutter-f981f09760" 385 | flutter: ">=0.1.4 <2.0.0" 386 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: oyy_subway_flutter 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.2 11 | 12 | dev_dependencies: 13 | flutter_test: 14 | sdk: flutter 15 | flutter_webview_plugin: "^0.1.6" 16 | flutter_wechat: "^0.1.5" 17 | 18 | 19 | 20 | 21 | # For information on the generic Dart part of this file, see the 22 | # following page: https://www.dartlang.org/tools/pub/pubspec 23 | 24 | # The following section is specific to Flutter. 25 | flutter: 26 | 27 | # The following line ensures that the Material Icons font is 28 | # included with your application, so that you can use the icons in 29 | # the material Icons class. 30 | uses-material-design: true 31 | 32 | # To add assets to your application, add an assets section, like this: 33 | assets: 34 | - images/more_img.png 35 | - images/sub_way_img.png 36 | - images/xianlu.png 37 | - images/touxiang.png 38 | 39 | # An image asset can refer to one or more resolution-specific "variants", see 40 | # https://flutter.io/assets-and-images/#resolution-aware. 41 | 42 | # For details regarding adding assets from package dependencies, see 43 | # https://flutter.io/assets-and-images/#from-packages 44 | 45 | # To add custom fonts to your application, add a fonts section here, 46 | # in this "flutter" section. Each entry in this list should have a 47 | # "family" key with the font family name, and a "fonts" key with a 48 | # list giving the asset and other descriptors for the font. For 49 | # example: 50 | # fonts: 51 | # - family: Schyler 52 | # fonts: 53 | # - asset: fonts/Schyler-Regular.ttf 54 | # - asset: fonts/Schyler-Italic.ttf 55 | # style: italic 56 | # - family: Trajan Pro 57 | # fonts: 58 | # - asset: fonts/TrajanPro.ttf 59 | # - asset: fonts/TrajanPro_Bold.ttf 60 | # weight: 700 61 | # 62 | # For details regarding fonts from package dependencies, 63 | # see https://flutter.io/custom-fonts/#from-packages 64 | -------------------------------------------------------------------------------- /screenshots/detail.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/screenshots/detail.jpg -------------------------------------------------------------------------------- /screenshots/index.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/screenshots/index.jpg -------------------------------------------------------------------------------- /screenshots/mine.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/screenshots/mine.jpg -------------------------------------------------------------------------------- /screenshots/notice.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/screenshots/notice.jpg -------------------------------------------------------------------------------- /screenshots/wx_share.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/niyige/oyy_subway_flutter/29bc9906da999f5414ca572e1b39b51b833dafae/screenshots/wx_share.gif -------------------------------------------------------------------------------- /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:oyy_subway_flutter/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 | --------------------------------------------------------------------------------