├── .gitignore
├── .metadata
├── README.md
├── android
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── flutterdriverapplication
│ │ │ │ └── MainActivity.java
│ │ └── res
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── key.properties
└── settings.gradle
├── assets
├── examples
│ ├── app-release.apk
│ ├── example1.jpg
│ ├── example2.jpg
│ ├── example3.jpg
│ ├── example4.jpg
│ ├── example5.jpg
│ ├── example6.jpg
│ ├── example7.jpg
│ └── example8.jpg
└── images
│ ├── arrow.png
│ ├── bank_bg.png
│ ├── bankcard.png
│ ├── big_arrow.png
│ ├── btn_delete_photo.png
│ ├── cancle-waybill.jpg
│ ├── carte.png
│ ├── cashfailure.png
│ ├── close.png
│ ├── collection.png
│ ├── ewm.png
│ ├── f.png
│ ├── finish.png
│ ├── finished.png
│ ├── going.png
│ ├── join.png
│ ├── logo.png
│ ├── messages.png
│ ├── mobile.png
│ ├── oil_card.png
│ ├── password.png
│ ├── phone.png
│ ├── pic.png
│ ├── putforward.png
│ ├── r.png
│ ├── routeLine.png
│ ├── safety.png
│ ├── splash.png
│ ├── trading_account.png
│ ├── transaction-r.png
│ ├── transaction.png
│ ├── transportation.png
│ ├── users.png
│ ├── waitingLoading.png
│ └── z.png
├── ios
├── 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
├── common
│ ├── fullScreenWrapper.dart
│ ├── service_method.dart
│ ├── splash_screen.dart
│ └── util.dart
├── components
│ ├── city_picker.dart
│ ├── date_picker.dart
│ ├── progressDialog.dart
│ ├── search_bar.dart
│ ├── show_modal.dart
│ ├── single_picker.dart
│ └── toast.dart
├── config
│ └── service_url.dart
├── main.dart
├── mode
│ ├── bank_card_add_mode.dart
│ ├── bank_card_mode.dart
│ ├── join_company_list_mode.dart
│ ├── main_truck_list_mode.dart
│ ├── resource_detail_mode.dart
│ ├── resource_list_model.dart
│ ├── search_join_company_list.dart
│ ├── self_info_mode.dart
│ ├── subscribe_line_route_mode.dart
│ ├── trailer_truck_mode.dart
│ ├── waybill_detail_mode.dart
│ └── waybill_list_mode.dart
└── pages
│ ├── add_bank_card_page.dart
│ ├── all_waybill_page.dart
│ ├── bank_card_list_page.dart
│ ├── bank_card_page.dart
│ ├── business_card.dart
│ ├── change_password_page.dart
│ ├── change_phone_page.dart
│ ├── collection_and_delivery_page.dart
│ ├── driver_info_page.dart
│ ├── find_password.dart
│ ├── index_page.dart
│ ├── join_company.dart
│ ├── login_page.dart
│ ├── main_vehicle_page.dart
│ ├── manage_bank_card_page.dart
│ ├── mine_page.dart
│ ├── my_account_page.dart
│ ├── my_collect_recode_page.dart
│ ├── my_oil_card_page.dart
│ ├── raise_cash_page.dart
│ ├── register_page.dart
│ ├── resource_detail_page.dart
│ ├── resource_page.dart
│ ├── search_page.dart
│ ├── security_setting_page.dart
│ ├── subscribe_line_route_page.dart
│ ├── trade_record_detail_page.dart
│ ├── trade_record_page.dart
│ ├── trailer_page.dart
│ ├── waybill_detail_page.dart
│ └── waybill_page.dart
├── pubspec.lock
├── pubspec.yaml
└── test
└── widget_test.dart
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # Visual Studio Code related
19 | .vscode/
20 |
21 | # Flutter/Dart/Pub related
22 | **/doc/api/
23 | .dart_tool/
24 | .flutter-plugins
25 | .packages
26 | .pub-cache/
27 | .pub/
28 | build/
29 |
30 | # Android related
31 | **/android/**/gradle-wrapper.jar
32 | **/android/.gradle
33 | **/android/captures/
34 | **/android/gradlew
35 | **/android/gradlew.bat
36 | **/android/local.properties
37 | **/android/**/GeneratedPluginRegistrant.java
38 |
39 | # iOS/XCode related
40 | **/ios/**/*.mode1v3
41 | **/ios/**/*.mode2v3
42 | **/ios/**/*.moved-aside
43 | **/ios/**/*.pbxuser
44 | **/ios/**/*.perspectivev3
45 | **/ios/**/*sync/
46 | **/ios/**/.sconsign.dblite
47 | **/ios/**/.tags*
48 | **/ios/**/.vagrant/
49 | **/ios/**/DerivedData/
50 | **/ios/**/Icon?
51 | **/ios/**/Pods/
52 | **/ios/**/.symlinks/
53 | **/ios/**/profile
54 | **/ios/**/xcuserdata
55 | **/ios/.generated/
56 | **/ios/Flutter/App.framework
57 | **/ios/Flutter/Flutter.framework
58 | **/ios/Flutter/Generated.xcconfig
59 | **/ios/Flutter/app.flx
60 | **/ios/Flutter/app.zip
61 | **/ios/Flutter/flutter_assets/
62 | **/ios/ServiceDefinitions.json
63 | **/ios/Runner/GeneratedPluginRegistrant.*
64 |
65 | # Exceptions to above rules.
66 | !**/ios/**/default.mode1v3
67 | !**/ios/**/default.mode2v3
68 | !**/ios/**/default.pbxuser
69 | !**/ios/**/default.perspectivev3
70 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
71 |
--------------------------------------------------------------------------------
/.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: 06b979c4d5e1b499745422269f01a00341257058
8 | channel: dev
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # flutter_driver_application
2 |
3 | 使用flutter 仿写司机端app项目
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 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
26 | def keystorePropertiesFile = rootProject.file("key.properties")
27 | def keystoreProperties = new Properties()
28 | keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
29 |
30 | android {
31 | compileSdkVersion 28
32 |
33 | lintOptions {
34 | disable 'InvalidPackage'
35 | }
36 |
37 | defaultConfig {
38 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
39 | applicationId "com.example.flutterdriverapplication"
40 | minSdkVersion 16
41 | targetSdkVersion 28
42 | versionCode flutterVersionCode.toInteger()
43 | versionName flutterVersionName
44 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
45 | manifestPlaceholders = [
46 | AMAP_KEY : "1fec9b6d232479e4ab5a29725b7f52ae", /// 高德地图key
47 | ]
48 | }
49 | signingConfigs {
50 | release {
51 | keyAlias keystoreProperties['keyAlias']
52 | keyPassword keystoreProperties['keyPassword']
53 | storeFile file(keystoreProperties['storeFile'])
54 | storePassword keystoreProperties['storePassword']
55 | }
56 | }
57 | buildTypes {
58 | release {
59 | signingConfig signingConfigs.release
60 | }
61 | }
62 | }
63 |
64 | flutter {
65 | source '../..'
66 | }
67 |
68 | dependencies {
69 | implementation 'com.amap.api:location:latest.integration'
70 | testImplementation 'junit:junit:4.12'
71 | androidTestImplementation 'androidx.test:runner:1.1.1'
72 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
73 | }
74 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
8 |
13 |
17 |
24 |
28 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/example/flutterdriverapplication/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.example.flutterdriverapplication;
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/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/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | repositories {
3 | google()
4 | jcenter()
5 | }
6 |
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:3.3.0'
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.enableJetifier=true
3 | android.useAndroidX=true
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
7 |
--------------------------------------------------------------------------------
/android/key.properties:
--------------------------------------------------------------------------------
1 | storePassword=mayangyang
2 | keyPassword=mayangyang
3 | keyAlias=key
4 | storeFile=D:/key.jks
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
4 |
5 | def plugins = new Properties()
6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7 | if (pluginsFile.exists()) {
8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
9 | }
10 |
11 | plugins.each { name, path ->
12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13 | include ":$name"
14 | project(":$name").projectDir = pluginDirectory
15 | }
16 |
--------------------------------------------------------------------------------
/assets/examples/app-release.apk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/examples/app-release.apk
--------------------------------------------------------------------------------
/assets/examples/example1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/examples/example1.jpg
--------------------------------------------------------------------------------
/assets/examples/example2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/examples/example2.jpg
--------------------------------------------------------------------------------
/assets/examples/example3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/examples/example3.jpg
--------------------------------------------------------------------------------
/assets/examples/example4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/examples/example4.jpg
--------------------------------------------------------------------------------
/assets/examples/example5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/examples/example5.jpg
--------------------------------------------------------------------------------
/assets/examples/example6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/examples/example6.jpg
--------------------------------------------------------------------------------
/assets/examples/example7.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/examples/example7.jpg
--------------------------------------------------------------------------------
/assets/examples/example8.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/examples/example8.jpg
--------------------------------------------------------------------------------
/assets/images/arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/arrow.png
--------------------------------------------------------------------------------
/assets/images/bank_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/bank_bg.png
--------------------------------------------------------------------------------
/assets/images/bankcard.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/bankcard.png
--------------------------------------------------------------------------------
/assets/images/big_arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/big_arrow.png
--------------------------------------------------------------------------------
/assets/images/btn_delete_photo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/btn_delete_photo.png
--------------------------------------------------------------------------------
/assets/images/cancle-waybill.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/cancle-waybill.jpg
--------------------------------------------------------------------------------
/assets/images/carte.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/carte.png
--------------------------------------------------------------------------------
/assets/images/cashfailure.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/cashfailure.png
--------------------------------------------------------------------------------
/assets/images/close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/close.png
--------------------------------------------------------------------------------
/assets/images/collection.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/collection.png
--------------------------------------------------------------------------------
/assets/images/ewm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/ewm.png
--------------------------------------------------------------------------------
/assets/images/f.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/f.png
--------------------------------------------------------------------------------
/assets/images/finish.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/finish.png
--------------------------------------------------------------------------------
/assets/images/finished.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/finished.png
--------------------------------------------------------------------------------
/assets/images/going.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/going.png
--------------------------------------------------------------------------------
/assets/images/join.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/join.png
--------------------------------------------------------------------------------
/assets/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/logo.png
--------------------------------------------------------------------------------
/assets/images/messages.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/messages.png
--------------------------------------------------------------------------------
/assets/images/mobile.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/mobile.png
--------------------------------------------------------------------------------
/assets/images/oil_card.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/oil_card.png
--------------------------------------------------------------------------------
/assets/images/password.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/password.png
--------------------------------------------------------------------------------
/assets/images/phone.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/phone.png
--------------------------------------------------------------------------------
/assets/images/pic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/pic.png
--------------------------------------------------------------------------------
/assets/images/putforward.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/putforward.png
--------------------------------------------------------------------------------
/assets/images/r.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/r.png
--------------------------------------------------------------------------------
/assets/images/routeLine.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/routeLine.png
--------------------------------------------------------------------------------
/assets/images/safety.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/safety.png
--------------------------------------------------------------------------------
/assets/images/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/splash.png
--------------------------------------------------------------------------------
/assets/images/trading_account.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/trading_account.png
--------------------------------------------------------------------------------
/assets/images/transaction-r.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/transaction-r.png
--------------------------------------------------------------------------------
/assets/images/transaction.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/transaction.png
--------------------------------------------------------------------------------
/assets/images/transportation.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/transportation.png
--------------------------------------------------------------------------------
/assets/images/users.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/users.png
--------------------------------------------------------------------------------
/assets/images/waitingLoading.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/waitingLoading.png
--------------------------------------------------------------------------------
/assets/images/z.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/assets/images/z.png
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/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/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/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/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/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/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/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/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/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/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/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/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/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/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/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/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/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/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/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/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/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/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/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/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/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/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/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/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/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/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/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/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter_driver_application/89f27f1ed8cd36dd185102c1156a640cfc87bab5/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 | flutter_driver_application
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/ios/Runner/main.m:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 | #import "AppDelegate.h"
4 |
5 | int main(int argc, char* argv[]) {
6 | @autoreleasepool {
7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/lib/common/fullScreenWrapper.dart:
--------------------------------------------------------------------------------
1 | import 'package:photo_view/photo_view.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class FullScreenWrapper extends StatelessWidget {
5 | const FullScreenWrapper(
6 | {this.imageProvider,
7 | this.loadingChild,
8 | this.backgroundDecoration,
9 | this.minScale,
10 | this.maxScale,
11 | this.initialScale,
12 | this.basePosition = Alignment.center});
13 |
14 | final ImageProvider imageProvider;
15 | final Widget loadingChild;
16 | final Decoration backgroundDecoration;
17 | final dynamic minScale;
18 | final dynamic maxScale;
19 | final dynamic initialScale;
20 | final Alignment basePosition;
21 |
22 | @override
23 | Widget build(BuildContext context) {
24 | return Container(
25 | constraints: BoxConstraints.expand(
26 | height: MediaQuery.of(context).size.height,
27 | ),
28 | child: PhotoView(
29 | imageProvider: imageProvider,
30 | loadingChild: loadingChild,
31 | backgroundDecoration: backgroundDecoration,
32 | minScale: minScale,
33 | maxScale: maxScale,
34 | initialScale: initialScale,
35 | basePosition: basePosition,
36 | ));
37 | }
38 | }
--------------------------------------------------------------------------------
/lib/common/service_method.dart:
--------------------------------------------------------------------------------
1 | import 'package:dio/dio.dart';
2 | import 'dart:async';
3 | import 'dart:io';
4 | import '../config/service_url.dart';
5 | import 'package:flutter/material.dart';
6 | import 'package:shared_preferences/shared_preferences.dart';
7 | import '../components/toast.dart';
8 |
9 | Future getAjax(url, stringParams, context) async{
10 | SharedPreferences prefs = await SharedPreferences.getInstance();
11 | String cookies = 'JSESSIONID=${prefs.get('cookies')}';
12 | try {
13 | Response response;
14 | Dio dio = new Dio();
15 | String reqUrl;
16 | dio.options.baseUrl = serviceUrl;
17 | dio.options.contentType = ContentType.parse("application/x-www-form-urlencoded");
18 | dio.options.headers['Cookie'] = cookies;
19 | if(stringParams == ''){
20 | reqUrl = servicePath[url];
21 | }else{
22 | reqUrl = servicePath[url] + stringParams;
23 | }
24 | print(reqUrl);
25 | response = await dio.get(reqUrl);
26 | print(response);
27 | if(response.data == null || response.data == ''){
28 | return null;
29 | }
30 | if(response.data['code'] == 500) {
31 | Future.delayed(Duration(milliseconds: 10),(){
32 | Toast.toast(context, response.data['content']);
33 | });
34 | }else if(response.data['code'] == 401) {
35 | Navigator.pushNamedAndRemoveUntil(context, '/login', (route)=>false);
36 | }else {
37 | return response.data;
38 | }
39 | }on DioError catch (e) {
40 | if (e.response != null && e.response.data['code'] == 401) {
41 | Navigator.pushNamedAndRemoveUntil(context, '/login', (route)=>false);
42 | }
43 | }
44 | }
45 |
46 | Future postAjax(String url, Mapparams, BuildContext context) async {
47 | SharedPreferences prefs = await SharedPreferences.getInstance();
48 | String cookies = 'JSESSIONID=' + prefs.get('cookies');
49 | try {
50 | print('获取数据');
51 | print(url);
52 | print(params);
53 | Response response;
54 | Dio dio = new Dio();
55 | dio.options.baseUrl = serviceUrl;
56 | dio.options.contentType = ContentType.parse("application/x-www-form-urlencoded");
57 | dio.options.headers['Cookie'] = cookies;
58 | response = await dio.post(servicePath[url], data:params);
59 | if(response.data == null || response.data == ''){
60 | return null;
61 | }
62 | if(response.data['code'] == 500) {
63 | Future.delayed(Duration(milliseconds: 10),(){
64 | Toast.toast(context, response.data['content']);
65 | });
66 | }else if(response.data['code'] == 401) {
67 | Navigator.pushNamedAndRemoveUntil(context, '/login', (route)=>false);
68 | }else{
69 | return response.data;
70 | }
71 |
72 | } on DioError catch (e) {
73 | if (e.response != null && e.response.data['code'] == 401) {
74 | Navigator.pushNamedAndRemoveUntil(context, '/login', (route)=>false);
75 | }
76 | }
77 | }
78 |
79 | Future getAjaxStr(url, stringParams, context) async{
80 | SharedPreferences prefs = await SharedPreferences.getInstance();
81 | String cookies = 'JSESSIONID=' + prefs.get('cookies');
82 | try {
83 | Response response;
84 | Dio dio = new Dio();
85 | String reqUrl;
86 | dio.options.baseUrl = serviceUrl;
87 | dio.options.contentType = ContentType.parse("application/x-www-form-urlencoded");
88 | dio.options.headers['Cookie'] = cookies;
89 | if(stringParams == ''){
90 | reqUrl = url;
91 | }else{
92 | reqUrl = url + stringParams;
93 | }
94 | print(reqUrl);
95 | response = await dio.get(reqUrl);
96 | print(response.data);
97 | if(response.data == null || response.data == ''){
98 | return null;
99 | }
100 | if(response.data['code'] == 500) {
101 | Future.delayed(Duration(milliseconds: 10),(){
102 | Toast.toast(context, response.data['content']);
103 | });
104 | }else if(response.data['code'] == 401) {
105 | Navigator.pushNamedAndRemoveUntil(context, '/login', (route)=>false);
106 | }else{
107 | return response.data;
108 | }
109 |
110 |
111 | }on DioError catch (e) {
112 | if (e.response.data['code'] == 401) {
113 | Navigator.pushNamedAndRemoveUntil(context, '/login', (route)=>false);
114 | }
115 | }
116 | }
117 |
118 | Future postAjaxStr(url, params, context) async {
119 | SharedPreferences prefs = await SharedPreferences.getInstance();
120 | String cookies = 'JSESSIONID=' + prefs.get('cookies');
121 | try {
122 | Response response;
123 | Dio dio = new Dio();
124 | dio.options.baseUrl = serviceUrl;
125 | dio.options.contentType = ContentType.parse("application/x-www-form-urlencoded");
126 | dio.options.headers['Cookie'] = cookies;
127 | response = await dio.post(url, data:params);
128 | if(response.data == null || response.data == ''){
129 | return null;
130 | }
131 | if(response.data['code'] == 500) {
132 | Future.delayed(Duration(milliseconds: 10),(){
133 | Toast.toast(context, response.data['content']);
134 | });
135 | }else if(response.data['code'] == 401) {
136 | Navigator.pushNamedAndRemoveUntil(context, '/login', (route)=>false);
137 | }else{
138 | return response.data;
139 | }
140 |
141 | } on DioError catch (e) {
142 | if (e.response != null && e.response.data['code'] == 401) {
143 | Navigator.pushNamedAndRemoveUntil(context, '/login', (route)=>false);
144 | }
145 | }
146 | }
147 |
148 | Future uploaFile(url, FormData formData, context) async {
149 | SharedPreferences prefs = await SharedPreferences.getInstance();
150 | String cookies = 'JSESSIONID=' + prefs.get('cookies');
151 | try {
152 | Response response;
153 | Dio dio = new Dio();
154 | dio.options.baseUrl = serviceUrl;
155 | dio.options.contentType = ContentType.parse("application/x-www-form-urlencoded");
156 | dio.options.headers['Cookie'] = cookies;
157 | response = await dio.post(servicePath[url], data:formData);
158 | if(response.data == null || response.data == ''){
159 | return null;
160 | }
161 | if(response.data['code'] == 500) {
162 | Future.delayed(Duration(milliseconds: 10),(){
163 | Toast.toast(context, response.data['content']);
164 | });
165 | }else if(response.data['code'] == 401) {
166 | Navigator.pushNamedAndRemoveUntil(context, '/login', (route)=>false);
167 | }else{
168 | return response.data;
169 | }
170 |
171 | } on DioError catch (e) {
172 | if (e.response != null && e.response.data['code'] == 401) {
173 | Navigator.pushNamedAndRemoveUntil(context, '/login', (route)=>false);
174 | }
175 | }
176 | }
177 |
178 |
--------------------------------------------------------------------------------
/lib/common/splash_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../pages/index_page.dart';
3 |
4 | class SplashScreen extends StatefulWidget {
5 | _SplashScreenState createState() => _SplashScreenState();
6 | }
7 |
8 | class _SplashScreenState extends State with SingleTickerProviderStateMixin {
9 |
10 | AnimationController _controller;
11 | Animation _animation;
12 |
13 | void initState() {
14 | super.initState();
15 | _controller = AnimationController(vsync:this,duration:Duration(milliseconds:3000));
16 | _animation = Tween(begin: 0.0,end:1.0).animate(_controller);
17 |
18 |
19 |
20 | //播放动画
21 | _controller.forward();
22 | /*动画事件监听器,
23 | 它可以监听到动画的执行状态,
24 | 我们这里只监听动画是否结束,
25 | 如果结束则执行页面跳转动作。 */
26 | _animation.addStatusListener((status){
27 | if(status == AnimationStatus.completed){
28 | Navigator.of(context).pushAndRemoveUntil(
29 | MaterialPageRoute(builder: (context)=>IndexPage()),
30 | (route)=> route==null);
31 | }
32 | });
33 |
34 | }
35 |
36 | @override
37 | void dispose() {
38 | _controller.dispose();
39 | super.dispose();
40 | }
41 |
42 |
43 | @override
44 | Widget build(BuildContext context) {
45 | return FadeTransition( //透明度动画组件
46 | opacity: _animation, //执行动画
47 | child: Image.asset( //网络图片
48 | 'assets/images/splash.png',
49 | scale: 2.0, //进行缩放
50 | fit:BoxFit.cover // 充满父容器
51 | ),
52 | );
53 | }
54 | }
--------------------------------------------------------------------------------
/lib/common/util.dart:
--------------------------------------------------------------------------------
1 |
2 | getCookieAndSaveInStorage (res){
3 | String cookies;
4 | var cookiestr = res.headers['set-cookie'][0];
5 | List cookiesarr = cookiestr.split(';');
6 | print('cookiestr');
7 | print(cookiesarr);
8 | cookiesarr.forEach((item){
9 | if(item.indexOf('JSESSIONID') != -1){
10 | var itemar = item.split('=');
11 | cookies = itemar[itemar.length - 1];
12 |
13 | }
14 | });
15 | return cookies;
16 | }
17 | Map licensePlate = {
18 | '01': '大型汽车号牌',
19 | '02': '小型汽车号牌',
20 | '99': '其他号牌'
21 | };
22 | Map truckModel = {
23 | 'H01': '普通货车',
24 | 'H02': '厢式货车',
25 | 'H04': '罐式货车',
26 | 'Q00': '牵引车',
27 | 'G01': '普通挂车',
28 | 'G03': '罐式挂车',
29 | 'G05': '集装箱挂车',
30 | 'H09': '仓栅式货车',
31 | 'H03': '封闭货车',
32 | 'H05': '平板货车',
33 | 'H06': '集装箱车',
34 | 'H07': '自卸货车',
35 | 'H08': '特殊结构货车',
36 | 'Z00': '专项作业车',
37 | 'G02': '厢式挂车',
38 | 'G07': '仓栅式挂车',
39 | 'G04': '平板挂车',
40 | 'G06': '自卸挂车',
41 | 'G09': '专项作业挂车',
42 | 'X91': '车辆运输车',
43 | 'X92': '车辆运输车(单排)'
44 | };
45 |
46 | Map gender = {
47 | 'male': '男',
48 | 'female': '女'
49 | };
50 | Map freightStatus = {
51 | 'pushling': '发布中',
52 | 'received': '已接单',
53 | 'finished': '已结束'
54 | };
55 | Map driverAcceptStatus = {
56 | 'undispatched': '待派车',
57 | 'dispatched': '已派车',
58 | 'ignored': '已忽略'
59 | };
60 |
61 | Map waybillStatus = {
62 | 'unloading': '待装货',
63 | 'going': '运输中',
64 | 'finish': '运输完成',
65 | 'cancel': '运单取消'
66 | };
67 | Map powerTypeMap = {
68 | 'gas': '气车',
69 | 'oil': '油车'
70 | };
71 |
72 | Map unit = {
73 | 'cube': {
74 | 'carrier.price': {
75 | 'yuanpersquare': '元/方',
76 | 'yuanpertruck': '元/车',
77 | },
78 | 'driver.price': {
79 | 'yuanpercube': '元/方',
80 | 'yuanpertruck': '元/车',
81 | },
82 | 'goods.loss': {
83 | 'cube': '方/车'
84 | },
85 | 'goods.price': {
86 | 'yuanpercube': '元/方'
87 | },
88 | 'goods.volume': {
89 | 'cube': '方'
90 | },
91 | 'settle.volume.unit': {
92 | 'cube': '方'
93 | },
94 | 'truck.cubage': {
95 | 'cube': '方'
96 | }
97 | },
98 | 'day': {
99 | 'route.duration': {
100 | 'day': '天'
101 | }
102 | },
103 | 'hour': {
104 | 'route.duration': {
105 | 'hour': '小时'
106 | }
107 | },
108 | 'item': {
109 | 'carrier.price': {
110 | 'yuanperitem': '元/件',
111 | 'yuanpertruck': '元/车'
112 | },
113 | 'driver.price': {
114 | 'yuanperitem': '元/件',
115 | 'yuanpertruck': '元/车'
116 | },
117 | 'goods.loss': {
118 | 'item': '件/车'
119 | },
120 | 'goods.number': {
121 | 'item': '件'
122 | },
123 | 'goods.price': {
124 | 'yuanperitem': '元/件'
125 | },
126 | 'settle.volume.unit': {
127 | 'item': '件'
128 | }
129 | },
130 | 'km': {
131 | 'mileage.number': {
132 | 'km': '公里'
133 | },
134 | 'standard.distance': {
135 | 'km': '公里'
136 | }
137 | },
138 | 'liang': {
139 | 'truckqty.number': {
140 | 'liang': '辆'
141 | }
142 | },
143 | 'meter': {
144 | 'truck.size': {
145 | 'meter': '米'
146 | }
147 | },
148 | 'millimetre': {
149 | 'truck.size': {
150 | 'millimetre': '毫米'
151 | }
152 | },
153 | 'mm': {
154 | 'tyrewrinkles.number': {
155 | 'mm': '毫米'
156 | }
157 | },
158 | 'percent': {
159 | 'goods.loss.ration': {
160 | 'percent': '%'
161 | }
162 | },
163 | 'ton': {
164 | 'carrier.price': {
165 | 'yuanperton': '元/吨',
166 | 'yuanpertruck': '元/车'
167 | },
168 | 'driver.price': {
169 | 'yuanperton': '元/吨',
170 | 'yuanpertruck': '元/车'
171 | },
172 | 'goods.loss': {
173 | 'ton': '吨/车'
174 | },
175 | 'goods.price': {
176 | 'yuanperton': '元/吨'
177 | },
178 | 'goods.weight': {
179 | 'ton': '吨'
180 | },
181 | 'settle.volume.unit': {
182 | 'ton': '吨'
183 | },
184 | 'truck.carry': {
185 | 'ton': '吨'
186 | },
187 | },
188 | 'yuan': {
189 | 'price.unit': {
190 | 'yuan': '元'
191 | }
192 | }
193 | };
194 |
195 | List carTypes = ["请选择","A1", "A2", "A3", "B1", "B2", "C1", "C2"];
196 |
197 | const List attachList = ['cardFront', 'cardAfter', 'driverOne', 'driverTwo', 'qualificationCertificateResourceCodeOne', 'qualificationCertificateResourceCodeTwo'];
198 | Map attachments = {
199 | 'cardFront': { 'name': '身份证正面', 'value': 'assets/images/pic.png', 'status': 'hidden', 'resourceCode': '' },
200 | 'cardAfter': { 'name': '身份证反面', 'value': 'assets/images/pic.png', 'status': 'hidden', 'resourceCode': '' },
201 | 'driverOne': { 'name': '驾驶证第一联照片', 'value': 'assets/images/pic.png', 'status': 'hidden', 'resourceCode': '' },
202 | 'driverTwo': { 'name': '驾驶证第二联照片', 'value': 'assets/images/pic.png', 'status': 'hidden', 'resourceCode': '' },
203 | 'qualificationCertificateResourceCodeOne': { 'name': '从业资格证照片一', 'value': 'assets/images/pic.png', 'status': 'hidden', 'resourceCode': '' },
204 | 'qualificationCertificateResourceCodeTwo': { 'name': '从业资格证照片二', 'value': 'assets/images/pic.png', 'status': 'hidden', 'resourceCode': '' },
205 | };
206 |
207 |
--------------------------------------------------------------------------------
/lib/components/progressDialog.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class ProgressDialog extends StatelessWidget {
4 | //子布局
5 | final Widget child;
6 |
7 | //加载中是否显示
8 | final bool loading;
9 |
10 | //进度提醒内容
11 | final String msg;
12 |
13 | //加载中动画
14 | final Widget progress;
15 |
16 | //背景透明度
17 | final double alpha;
18 |
19 | //字体颜色
20 | final Color textColor;
21 |
22 | ProgressDialog(
23 | {Key key,
24 | @required this.loading,
25 | this.msg,
26 | this.progress = const CircularProgressIndicator(),
27 | this.alpha = 0.3,
28 | this.textColor = Colors.white,
29 | @required this.child})
30 | : assert(child != null),
31 | assert(loading != null),
32 | super(key: key);
33 |
34 | @override
35 | Widget build(BuildContext context) {
36 | List widgetList = [];
37 | widgetList.add(child);
38 | if (loading) {
39 | Widget layoutProgress;
40 | if (msg == null) {
41 | layoutProgress = Center(
42 | child: progress,
43 | );
44 | } else {
45 | layoutProgress = Center(
46 | child: Container(
47 | padding: const EdgeInsets.all(20.0),
48 | decoration: BoxDecoration(
49 | color: Colors.black87,
50 | borderRadius: BorderRadius.circular(4.0)),
51 | child: Column(
52 | mainAxisAlignment: MainAxisAlignment.center,
53 | crossAxisAlignment: CrossAxisAlignment.center,
54 | mainAxisSize: MainAxisSize.min,
55 | children: [
56 | progress,
57 | Container(
58 | padding: const EdgeInsets.fromLTRB(10.0, 10.0, 10.0, 0),
59 | child: Text(
60 | msg,
61 | style: TextStyle(color: textColor, fontSize: 16.0),
62 | ),
63 | )
64 | ],
65 | ),
66 | ),
67 | );
68 | }
69 | widgetList.add(Opacity(
70 | opacity: alpha,
71 | child: new ModalBarrier(color: Colors.black87),
72 | ));
73 | widgetList.add(layoutProgress);
74 | }
75 | return Stack(
76 | children: widgetList,
77 | );
78 | }
79 | }
--------------------------------------------------------------------------------
/lib/components/search_bar.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import './single_picker.dart';
3 | import '../pages/search_page.dart';
4 | import 'package:flutter_screenutil/flutter_screenutil.dart';
5 |
6 | Widget searchBar(BuildContext context, List singlePickerList, int index, Function searchChange, Function change) {
7 | return Container(
8 | height: ScreenUtil().setHeight(120),
9 | padding: EdgeInsets.all(10.0),
10 | decoration: BoxDecoration(
11 | border: Border(bottom: BorderSide(width: 1.0,color: Colors.black26)),
12 | color: Colors.black12,
13 | ),
14 | child: Row(
15 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
16 | children: [
17 | Expanded(
18 | flex: 1,
19 | child: InkWell(
20 | child: Container(
21 | height: ScreenUtil().setHeight(75),
22 | padding: EdgeInsets.only(left: 10.0),
23 | decoration: BoxDecoration(
24 | borderRadius: BorderRadius.circular(5.0),
25 | color: Colors.white
26 | ),
27 | child: Row(
28 | mainAxisAlignment: MainAxisAlignment.start,
29 | crossAxisAlignment: CrossAxisAlignment.center,
30 | children: [
31 | Icon(Icons.search),
32 | Text('搜索',style: TextStyle(fontSize: ScreenUtil().setSp(28)),)
33 | ],
34 | ),
35 |
36 | ),
37 | onTap: (){
38 | Navigator.push(context, MaterialPageRoute(builder: (BuildContext context){
39 | return SearchMessage(success: (val){
40 | searchChange(val);
41 | },);
42 | }));
43 | },
44 | )
45 | ),
46 | Container(
47 | margin:EdgeInsets.only(left: 10.0),
48 | width: ScreenUtil().setWidth(180),
49 | height: ScreenUtil().setHeight(75),
50 | decoration: BoxDecoration(
51 | color: Colors.white,
52 | borderRadius: BorderRadius.circular(5.0)
53 | ),
54 | child: InkWell(
55 | child: Row(
56 | mainAxisAlignment: MainAxisAlignment.spaceAround,
57 | children: [
58 | Text(singlePickerList[index]['key'], style: TextStyle(fontSize: ScreenUtil().setSp(26)),),
59 | Icon(Icons.arrow_drop_down)
60 | ],
61 | ),
62 | onTap: (){
63 | singlePicker(context, singlePickerList, index,(res){
64 | if(res['key'] == 'confirm') {
65 | change(res);
66 | }else if(res['key'] == 'cancel') {
67 | change(res);
68 | }
69 | });
70 | },
71 | )
72 | )
73 |
74 | ],
75 | ),
76 | );
77 | }
78 |
--------------------------------------------------------------------------------
/lib/components/show_modal.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | showMyCupertinoDialog(BuildContext context, String title, String content, Function success) {
5 | showCupertinoDialog(
6 | context: context,
7 | builder: (context) {
8 | return new CupertinoAlertDialog(
9 | title: new Text(title),
10 | content: Padding(child: Text(content),padding: EdgeInsets.only(top: 10),),
11 | actions: [
12 | new FlatButton(
13 | onPressed: () {
14 | Navigator.of(context).pop("点击了取消");
15 | success('cancel');
16 | },
17 | child: new Text("取消"),
18 | ),
19 | new FlatButton(
20 | onPressed: () {
21 | Navigator.of(context).pop("点击了确定");
22 | success('confirm');
23 | },
24 | child: new Text("确认"),
25 | ),
26 | ],
27 | );
28 | });
29 | }
--------------------------------------------------------------------------------
/lib/components/single_picker.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter/cupertino.dart';
3 | import 'package:flutter_screenutil/flutter_screenutil.dart';
4 |
5 | singlePicker(BuildContext context, List