├── .gitignore
├── .metadata
├── README.md
├── android
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── flutterenterpriseapplication
│ │ │ │ └── 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
│ ├── exa16.jpg
│ ├── example1.jpg
│ ├── example10.jpg
│ ├── example11.jpg
│ ├── example12.jpg
│ ├── example13.jpg
│ ├── example14.jpg
│ ├── example15.jpg
│ ├── example2.jpg
│ ├── example3.jpg
│ ├── example4.jpg
│ ├── example5.jpg
│ ├── example6.jpg
│ ├── example7.jpg
│ ├── example8.jpg
│ └── example9.jpg
└── images
│ ├── arrow.png
│ ├── arrowDown.png
│ ├── arrows.png
│ ├── banner.png
│ ├── bg_mine.jpg
│ ├── car.png
│ ├── certifiedDriver.png
│ ├── certifiedTruck.png
│ ├── chart.png
│ ├── close.png
│ ├── confirm-order.png
│ ├── delete.png
│ ├── directCar.png
│ ├── driver.png
│ ├── driverList.png
│ ├── dsj.png
│ ├── f.png
│ ├── fahuo.png
│ ├── fdriver.png
│ ├── goodsList.png
│ ├── icon_search.png
│ ├── invitingMotivation.png
│ ├── location.png
│ ├── logistics.png
│ ├── logo.png
│ ├── me.png
│ ├── mineList.png
│ ├── modify.png
│ ├── orderList.png
│ ├── password.png
│ ├── pic.png
│ ├── receiptList.png
│ ├── releaseResource.png
│ ├── sb.png
│ ├── shippingList.png
│ ├── shouhuo.png
│ ├── splash.png
│ ├── tel.png
│ ├── tipsImage.png
│ ├── toTop.png
│ ├── transportList.png
│ ├── truckList.png
│ ├── users.png
│ ├── verficition.png
│ ├── wdb.png
│ ├── workspace.png
│ ├── workspace2.png
│ └── z.png
├── flutter_enterprise_application_test.zip
├── 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
│ ├── service_method.dart
│ ├── splash_screen.dart
│ └── utils.dart
├── components
│ ├── city_picker.dart
│ ├── componentsModel.dart
│ ├── date_picker.dart
│ ├── full_screen_wrapper.dart
│ ├── multiple_picker.dart
│ ├── progressDialog.dart
│ ├── search_bar.dart
│ ├── select_button.dart
│ ├── show_modal.dart
│ ├── single_picker.dart
│ └── toast.dart
├── config
│ ├── search_page_config.dart
│ └── service_url.dart
├── main.dart
├── pages
│ ├── build_waybill_page.dart
│ ├── change_password_page.dart
│ ├── change_phone_page.dart
│ ├── collection_and_delivery_page.dart
│ ├── condition_search_page
│ │ ├── cert_driver_search_bar_page.dart
│ │ ├── cert_truck_search_bar_page.dart
│ │ ├── condition_search_model.dart
│ │ ├── driver_list_search_bar_page.dart
│ │ ├── logistics_search_bar_page.dart
│ │ ├── resource_search_bar_page.dart
│ │ ├── truck_list_search_bar_page.dart
│ │ └── waybill_search_bar_page.dart
│ ├── driver_certification_detail_page.dart
│ ├── driver_certification_page.dart
│ ├── driver_detail_page.dart
│ ├── driver_list_page.dart
│ ├── freight_accept_redcord_page.dart
│ ├── index_page.dart
│ ├── login_page.dart
│ ├── logistics_detail_page.dart
│ ├── logistics_list_page.dart
│ ├── mine_page.dart
│ ├── release_resource_page.dart
│ ├── resource_detail_page.dart
│ ├── resource_list_page.dart
│ ├── search_customer_page.dart
│ ├── search_driver_page.dart
│ ├── search_route_line_page.dart
│ ├── search_truck_page.dart
│ ├── truck_detail_page.dart
│ ├── truck_list_page.dart
│ ├── vehicle_certification_detail_page.dart
│ ├── vehicle_certification_page.dart
│ ├── waybill_detail_page.dart
│ ├── waybill_list_page.dart
│ └── work_bench_page.dart
└── widget
│ ├── agreement_widget.dart
│ ├── city_select_widget.dart
│ ├── common_button_widget.dart
│ ├── common_input_select_button_widget.dart
│ ├── common_input_widget.dart
│ ├── common_row_widget.dart
│ ├── date_select_widget.dart
│ ├── detailPageWidget
│ ├── bottom_button_list_widget.dart
│ ├── company_block_widget.dart
│ ├── content_block_widget.dart
│ └── preview_image_list.dart
│ ├── header_title_widget.dart
│ ├── image_title_widget.dart
│ ├── input.dart
│ ├── input_widget.dart
│ ├── mini_button_widget.dart
│ ├── multiple_select_widget.dart
│ ├── radio_widget.dart
│ ├── searchPageWidget
│ ├── bottomButtomWidget.dart
│ ├── common_refresh_list_widget.dart
│ └── searchBar_widget.dart
│ ├── search_widget.dart
│ ├── single_select_widget.dart
│ ├── textWidget
│ ├── text1.dart
│ ├── text2.dart
│ └── text_model.dart
│ └── widget_model.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 | ## 项目部分截图
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 |
--------------------------------------------------------------------------------
/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 29
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.flutterenterpriseapplication"
40 | minSdkVersion 16
41 | targetSdkVersion 29
42 | versionCode flutterVersionCode.toInteger()
43 | versionName flutterVersionName
44 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
45 | manifestPlaceholders = [
46 | AMAP_KEY : "e3972ab10267680027cff8d2fb03e762", /// 高德地图key
47 | ]
48 | multiDexEnabled true
49 | }
50 | signingConfigs {
51 | release {
52 | keyAlias keystoreProperties['keyAlias']
53 | keyPassword keystoreProperties['keyPassword']
54 | storeFile file(keystoreProperties['storeFile'])
55 | storePassword keystoreProperties['storePassword']
56 | }
57 | }
58 |
59 | buildTypes {
60 | release {
61 | // TODO: Add your own signing config for the release build.
62 | // Signing with the debug keys for now, so `flutter run --release` works.
63 | signingConfig signingConfigs.debug
64 | }
65 | }
66 | }
67 |
68 | flutter {
69 | source '../..'
70 | }
71 |
72 | dependencies {
73 | implementation 'com.amap.api:location:latest.integration'
74 | testImplementation 'junit:junit:4.12'
75 | androidTestImplementation 'androidx.test:runner:1.1.1'
76 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
77 | }
78 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
11 |
15 |
22 |
26 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/example/flutterenterpriseapplication/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.example.flutterenterpriseapplication;
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-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/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-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/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-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/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-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/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-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/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 | #Thu Jul 18 17:44:19 CST 2019
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-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/examples/app-release.apk
--------------------------------------------------------------------------------
/assets/examples/exa16.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/examples/exa16.jpg
--------------------------------------------------------------------------------
/assets/examples/example1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/examples/example1.jpg
--------------------------------------------------------------------------------
/assets/examples/example10.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/examples/example10.jpg
--------------------------------------------------------------------------------
/assets/examples/example11.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/examples/example11.jpg
--------------------------------------------------------------------------------
/assets/examples/example12.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/examples/example12.jpg
--------------------------------------------------------------------------------
/assets/examples/example13.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/examples/example13.jpg
--------------------------------------------------------------------------------
/assets/examples/example14.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/examples/example14.jpg
--------------------------------------------------------------------------------
/assets/examples/example15.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/examples/example15.jpg
--------------------------------------------------------------------------------
/assets/examples/example2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/examples/example2.jpg
--------------------------------------------------------------------------------
/assets/examples/example3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/examples/example3.jpg
--------------------------------------------------------------------------------
/assets/examples/example4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/examples/example4.jpg
--------------------------------------------------------------------------------
/assets/examples/example5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/examples/example5.jpg
--------------------------------------------------------------------------------
/assets/examples/example6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/examples/example6.jpg
--------------------------------------------------------------------------------
/assets/examples/example7.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/examples/example7.jpg
--------------------------------------------------------------------------------
/assets/examples/example8.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/examples/example8.jpg
--------------------------------------------------------------------------------
/assets/examples/example9.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/examples/example9.jpg
--------------------------------------------------------------------------------
/assets/images/arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/arrow.png
--------------------------------------------------------------------------------
/assets/images/arrowDown.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/arrowDown.png
--------------------------------------------------------------------------------
/assets/images/arrows.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/arrows.png
--------------------------------------------------------------------------------
/assets/images/banner.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/banner.png
--------------------------------------------------------------------------------
/assets/images/bg_mine.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/bg_mine.jpg
--------------------------------------------------------------------------------
/assets/images/car.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/car.png
--------------------------------------------------------------------------------
/assets/images/certifiedDriver.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/certifiedDriver.png
--------------------------------------------------------------------------------
/assets/images/certifiedTruck.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/certifiedTruck.png
--------------------------------------------------------------------------------
/assets/images/chart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/chart.png
--------------------------------------------------------------------------------
/assets/images/close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/close.png
--------------------------------------------------------------------------------
/assets/images/confirm-order.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/confirm-order.png
--------------------------------------------------------------------------------
/assets/images/delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/delete.png
--------------------------------------------------------------------------------
/assets/images/directCar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/directCar.png
--------------------------------------------------------------------------------
/assets/images/driver.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/driver.png
--------------------------------------------------------------------------------
/assets/images/driverList.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/driverList.png
--------------------------------------------------------------------------------
/assets/images/dsj.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/dsj.png
--------------------------------------------------------------------------------
/assets/images/f.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/f.png
--------------------------------------------------------------------------------
/assets/images/fahuo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/fahuo.png
--------------------------------------------------------------------------------
/assets/images/fdriver.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/fdriver.png
--------------------------------------------------------------------------------
/assets/images/goodsList.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/goodsList.png
--------------------------------------------------------------------------------
/assets/images/icon_search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/icon_search.png
--------------------------------------------------------------------------------
/assets/images/invitingMotivation.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/invitingMotivation.png
--------------------------------------------------------------------------------
/assets/images/location.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/location.png
--------------------------------------------------------------------------------
/assets/images/logistics.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/logistics.png
--------------------------------------------------------------------------------
/assets/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/logo.png
--------------------------------------------------------------------------------
/assets/images/me.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/me.png
--------------------------------------------------------------------------------
/assets/images/mineList.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/mineList.png
--------------------------------------------------------------------------------
/assets/images/modify.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/modify.png
--------------------------------------------------------------------------------
/assets/images/orderList.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/orderList.png
--------------------------------------------------------------------------------
/assets/images/password.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/password.png
--------------------------------------------------------------------------------
/assets/images/pic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/pic.png
--------------------------------------------------------------------------------
/assets/images/receiptList.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/receiptList.png
--------------------------------------------------------------------------------
/assets/images/releaseResource.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/releaseResource.png
--------------------------------------------------------------------------------
/assets/images/sb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/sb.png
--------------------------------------------------------------------------------
/assets/images/shippingList.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/shippingList.png
--------------------------------------------------------------------------------
/assets/images/shouhuo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/shouhuo.png
--------------------------------------------------------------------------------
/assets/images/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/splash.png
--------------------------------------------------------------------------------
/assets/images/tel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/tel.png
--------------------------------------------------------------------------------
/assets/images/tipsImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/tipsImage.png
--------------------------------------------------------------------------------
/assets/images/toTop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/toTop.png
--------------------------------------------------------------------------------
/assets/images/transportList.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/transportList.png
--------------------------------------------------------------------------------
/assets/images/truckList.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/truckList.png
--------------------------------------------------------------------------------
/assets/images/users.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/users.png
--------------------------------------------------------------------------------
/assets/images/verficition.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/verficition.png
--------------------------------------------------------------------------------
/assets/images/wdb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/wdb.png
--------------------------------------------------------------------------------
/assets/images/workspace.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/workspace.png
--------------------------------------------------------------------------------
/assets/images/workspace2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/workspace2.png
--------------------------------------------------------------------------------
/assets/images/z.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/assets/images/z.png
--------------------------------------------------------------------------------
/flutter_enterprise_application_test.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/flutter_enterprise_application_test.zip
--------------------------------------------------------------------------------
/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-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/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-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/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-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/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-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/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-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/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-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/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-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/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-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/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-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/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-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/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-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/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-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/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-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/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-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/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-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/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-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mayangyang1/flutter-application/91a182e6ee21321c3525cbabc90626ec2930fdaa/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_enterprise_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/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 | // String cookies = 'JSESSIONID=9b2c3610-38fe-4541-8459-198333436af2';
13 | try {
14 | Response response;
15 | Dio dio = new Dio();
16 |
17 | // (dio.httpClientAdapter as DefaultHttpClientAdapter).onHttpClientCreate = (client) {
18 | // client.findProxy = (uri) {
19 | // return "PROXY 192.168.10.120:8888";
20 | // };
21 | // client.badCertificateCallback =
22 | // (X509Certificate cert, String host, int port) {
23 | // return true;
24 | // };
25 | // };
26 |
27 | String reqUrl;
28 | dio.options.baseUrl = serviceUrl;
29 | dio.options.contentType = ContentType.parse("application/x-www-form-urlencoded");
30 | dio.options.headers['Cookie'] = cookies;
31 | if(stringParams == ''){
32 | reqUrl = servicePath[url];
33 | }else{
34 | reqUrl = servicePath[url] + stringParams;
35 | }
36 | print(reqUrl);
37 | response = await dio.get(reqUrl);
38 | print(response);
39 | if(response.data == null || response.data == ''){
40 | return null;
41 | }
42 | if(response.data['code'] == 500) {
43 | Future.delayed(Duration(milliseconds: 10),(){
44 | Toast.toast(context, response.data['content']);
45 | });
46 | }else if(response.data['code'] == 401) {
47 | Navigator.pushNamedAndRemoveUntil(context, '/login', (route)=>false);
48 | }else {
49 | return response.data;
50 | }
51 | }on DioError catch (e) {
52 | if (e.response != null && e.response.data['code'] == 401) {
53 | Navigator.pushNamedAndRemoveUntil(context, '/login', (route)=>false);
54 | }
55 | }
56 | }
57 |
58 | Future postAjax(String url, Mapparams, BuildContext context) async {
59 | SharedPreferences prefs = await SharedPreferences.getInstance();
60 | String cookies = 'JSESSIONID=' + prefs.get('cookies');
61 | try {
62 | print('获取数据');
63 | print(url);
64 | print(params);
65 | Response response;
66 | Dio dio = new Dio();
67 | dio.options.baseUrl = serviceUrl;
68 | dio.options.contentType = ContentType.parse("application/x-www-form-urlencoded");
69 | dio.options.headers['Cookie'] = cookies;
70 | response = await dio.post(servicePath[url], data:params);
71 | if(response.data == null || response.data == ''){
72 | return null;
73 | }
74 | if(response.data['code'] == 500) {
75 | Future.delayed(Duration(milliseconds: 10),(){
76 | Toast.toast(context, response.data['content']);
77 | });
78 | }else if(response.data['code'] == 401) {
79 | Navigator.pushNamedAndRemoveUntil(context, '/login', (route)=>false);
80 | }else{
81 | return response.data;
82 | }
83 |
84 | } on DioError catch (e) {
85 | if (e.response != null && e.response.data['code'] == 401) {
86 | Navigator.pushNamedAndRemoveUntil(context, '/login', (route)=>false);
87 | }
88 | }
89 | }
90 |
91 | Future getAjaxStr(url, stringParams, context) async{
92 | SharedPreferences prefs = await SharedPreferences.getInstance();
93 | String cookies = 'JSESSIONID=' + prefs.get('cookies');
94 | try {
95 | Response response;
96 | Dio dio = new Dio();
97 | String reqUrl;
98 | dio.options.baseUrl = serviceUrl;
99 | dio.options.contentType = ContentType.parse("application/x-www-form-urlencoded");
100 | dio.options.headers['Cookie'] = cookies;
101 | if(stringParams == ''){
102 | reqUrl = url;
103 | }else{
104 | reqUrl = url + stringParams;
105 | }
106 | print(reqUrl);
107 | response = await dio.get(reqUrl);
108 | print(response.data);
109 | if(response.data == null || response.data == ''){
110 | return null;
111 | }
112 | if(response.data['code'] == 500) {
113 | Future.delayed(Duration(milliseconds: 10),(){
114 | Toast.toast(context, response.data['content']);
115 | });
116 | }else if(response.data['code'] == 401) {
117 | Navigator.pushNamedAndRemoveUntil(context, '/login', (route)=>false);
118 | }else{
119 | return response.data;
120 | }
121 |
122 |
123 | }on DioError catch (e) {
124 | if (e.response.data['code'] == 401) {
125 | Navigator.pushNamedAndRemoveUntil(context, '/login', (route)=>false);
126 | }
127 | }
128 | }
129 |
130 | Future postAjaxStr(url, params, context) async {
131 | SharedPreferences prefs = await SharedPreferences.getInstance();
132 | String cookies = 'JSESSIONID=' + prefs.get('cookies');
133 | try {
134 | Response response;
135 | Dio dio = new Dio();
136 | dio.options.baseUrl = serviceUrl;
137 | dio.options.contentType = ContentType.parse("application/x-www-form-urlencoded");
138 | dio.options.headers['Cookie'] = cookies;
139 | response = await dio.post(url, data:params);
140 | if(response.data == null || response.data == ''){
141 | return null;
142 | }
143 | if(response.data['code'] == 500) {
144 | Future.delayed(Duration(milliseconds: 10),(){
145 | Toast.toast(context, response.data['content']);
146 | });
147 | }else if(response.data['code'] == 401) {
148 | Navigator.pushNamedAndRemoveUntil(context, '/login', (route)=>false);
149 | }else{
150 | return response.data;
151 | }
152 |
153 | } on DioError catch (e) {
154 | if (e.response != null && e.response.data['code'] == 401) {
155 | Navigator.pushNamedAndRemoveUntil(context, '/login', (route)=>false);
156 | }
157 | }
158 | }
159 |
160 | Future uploaFile(url, FormData formData, context) async {
161 | SharedPreferences prefs = await SharedPreferences.getInstance();
162 | String cookies = 'JSESSIONID=' + prefs.get('cookies');
163 | try {
164 | Response response;
165 | Dio dio = new Dio();
166 | dio.options.baseUrl = serviceUrl;
167 | dio.options.contentType = ContentType.parse("application/x-www-form-urlencoded");
168 | dio.options.headers['Cookie'] = cookies;
169 | response = await dio.post(servicePath[url], data:formData);
170 | if(response.data == null || response.data == ''){
171 | return null;
172 | }
173 | if(response.data['code'] == 500) {
174 | Future.delayed(Duration(milliseconds: 10),(){
175 | Toast.toast(context, response.data['content']);
176 | });
177 | }else if(response.data['code'] == 401) {
178 | Navigator.pushNamedAndRemoveUntil(context, '/login', (route)=>false);
179 | }else{
180 | return response.data;
181 | }
182 |
183 | } on DioError catch (e) {
184 | if (e.response != null && e.response.data['code'] == 401) {
185 | Navigator.pushNamedAndRemoveUntil(context, '/login', (route)=>false);
186 | }
187 | }
188 | }
189 |
190 | Widget commonFutureBuilder( Future _fecth, Widget pageWidget) {
191 | return FutureBuilder(
192 | future: _fecth,
193 | builder: (BuildContext context, AsyncSnapshot snapshot) {
194 | print(snapshot.connectionState);
195 | switch (snapshot.connectionState) {
196 | case ConnectionState.none://-------请求态
197 | return loadingWidget();
198 | case ConnectionState.waiting://-------请求态
199 | print('waiting');
200 | return loadingWidget();
201 | case ConnectionState.done : //完成态
202 | print('done');
203 | return pageWidget;
204 | break;
205 | default:
206 | break;
207 | }
208 | return Container();
209 | },
210 | );
211 | }
212 |
213 | Widget loadingWidget() {
214 | return Stack(
215 | children: [
216 | Opacity(
217 | opacity: 0.3,
218 | child: new ModalBarrier(color: Colors.black87),
219 | ),
220 | Center(
221 | child: CircularProgressIndicator(),
222 | )
223 | ],
224 | );
225 | }
226 |
--------------------------------------------------------------------------------
/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/utils.dart:
--------------------------------------------------------------------------------
1 | import 'package:shared_preferences/shared_preferences.dart';
2 | import 'dart:convert';
3 |
4 | getCookieAndSaveInStorage (res){
5 | String cookies;
6 | var cookiestr = res.headers['set-cookie'].join(';');
7 | List cookiesarr = cookiestr.split(';');
8 | print('cookiestr');
9 | print(cookiesarr);
10 | cookiesarr.forEach((item){
11 | if(item.indexOf('JSESSIONID') != -1){
12 | var itemar = item.split('=');
13 | cookies = itemar[itemar.length - 1];
14 | }
15 | });
16 | return cookies;
17 | }
18 |
19 | checkedPermission (value) async{//权限校验
20 | bool _values = false;
21 | SharedPreferences prefs = await SharedPreferences.getInstance();
22 | if(prefs.getString('roleInfo') != null){
23 | var roleInfo = json.decode(prefs.getString('roleInfo'));
24 | List permissionList = roleInfo['permissionCodeList'] ?? [];
25 | permissionList.forEach((item){
26 | if(item == value){
27 | _values = true;
28 | }
29 | });
30 | }
31 | return _values;
32 | }
33 |
34 | Map configLicensePlate = {
35 | '01': '大型汽车号牌',
36 | '02': '小型汽车号牌',
37 | '99': '其他号牌'
38 | };
39 | Map configTruckModel = {
40 | 'H01': '普通货车',
41 | 'H02': '厢式货车',
42 | 'H04': '罐式货车',
43 | 'Q00': '牵引车',
44 | 'G01': '普通挂车',
45 | 'G03': '罐式挂车',
46 | 'G05': '集装箱挂车',
47 | 'H09': '仓栅式货车',
48 | 'H03': '封闭货车',
49 | 'H05': '平板货车',
50 | 'H06': '集装箱车',
51 | 'H07': '自卸货车',
52 | 'H08': '特殊结构货车',
53 | 'Z00': '专项作业车',
54 | 'G02': '厢式挂车',
55 | 'G07': '仓栅式挂车',
56 | 'G04': '平板挂车',
57 | 'G06': '自卸挂车',
58 | 'G09': '专项作业挂车',
59 | 'X91': '车辆运输车',
60 | 'X92': '车辆运输车(单排)'
61 | };
62 |
63 | Map configGender = {
64 | 'male': '男',
65 | 'female': '女'
66 | };
67 | Map configFreightStatus = {
68 | 'pushling': '发布中',
69 | 'received': '已接单',
70 | 'finished': '已结束'
71 | };
72 | Map driverAcceptStatus = {
73 | 'undispatched': '待派车',
74 | 'dispatched': '已派车',
75 | 'ignored': '已忽略'
76 | };
77 | Map configSettleMethod = {
78 | 'loadingweight': '按发货货量',
79 | 'unloadingweight': '按收货货量',
80 | 'smaller': '发货与收货两者取小',
81 | 'bigger': '发货与收货两者取大',
82 | 'trucknumber': '按车次'
83 | };
84 | Map configPayStatus = {
85 | 'uncreated': '待支付',
86 | 'pend': '待支付',
87 | 'paid': '已支付',
88 | 'failed': '支付失败'
89 | };
90 | Map configPayChannel = {
91 | 'offline': '线下支付',
92 | 'ljs': '炼金师支付',
93 | 'icbc': '工商银行支付',
94 | 'bsb': '包商银行支付',
95 | };
96 | Map configWaybillStatus = {
97 | 'unloading': '待装货',
98 | 'going': '运输中',
99 | 'finish': '运输完成',
100 | 'cancel': '运单取消'
101 | };
102 | Map configLogisticsStatus = {
103 | 'todo': '待执行',
104 | 'doing': '执行中',
105 | 'finish': '订单完成'
106 | };
107 | Map configBusinessTypeCode = {
108 | '1002996': '干线普货运输',
109 | '1003997': '城市配送',
110 | '1003998': '农村配送',
111 | '1002998': '集装箱运输',
112 | '1003999': '其他',
113 | };
114 | Map configCertTruckStatus = {
115 | 'authenticating': '待认证',
116 | 'unauthenticated': '未提交',
117 | 'authenticated': '认证通过',
118 | 'failed': '认证不通过',
119 | };
120 | Map configResourceTruckStatus = {
121 | 'authenticating': '认证中',
122 | 'unauthenticated': '未认证',
123 | 'authenticated': '已认证',
124 | 'failed': '认证失败',
125 | };
126 | Map configMeterageType = {
127 | 'ton' : '吨',
128 | 'cube' : '方',
129 | 'item' : '件',
130 | };
131 | Map configPowerTypeMap = {
132 | 'gas': '气车',
133 | 'oil': '油车'
134 | };
135 | Map configGoodsType = {
136 | '90': '电子产品',
137 | '92': '商品汽车',
138 | '93': '冷藏货物',
139 | '94': '大宗货物',
140 | '95': '快速消费品',
141 | '96': '农产品',
142 | '999': '其他',
143 | };
144 | Map configGoodsLossMethod = {
145 | 'goods.loss.ration': '按系数',
146 | 'goods.loss': '按量'
147 | };
148 | Map configGoodsLossUnitCode = {
149 | 'percent': '‰',
150 | 'ton': '吨/车',
151 | 'cube': '方/车',
152 | 'item': '件/车'
153 | };
154 | Map unit = {
155 | 'cube': {
156 | 'carrier.price': {
157 | 'yuanpersquare': '元/方',
158 | 'yuanpertruck': '元/车',
159 | },
160 | 'driver.prices': {
161 | 'yuanpercube': '元/方',
162 | 'yuanpertruck': '元/车'
163 | },
164 | 'driver.price': [
165 | { 'name': '元/方', 'id': 'yuanpercube' },
166 | { 'name': '元/车', 'id':'yuanpertruck'}
167 | ],
168 | 'goods.loss': {
169 | 'cube': '方/车'
170 | },
171 | 'goods.price': {
172 | 'name': '元/方',
173 | 'id': 'yuanpercube'
174 | },
175 | 'goods.volume': {
176 | 'cube': '方'
177 | },
178 | 'settle.volume.unit': {
179 | 'cube': '方'
180 | },
181 | 'truck.cubage': {
182 | 'cube': '方'
183 | }
184 | },
185 | 'day': {
186 | 'route.duration': {
187 | 'day': '天'
188 | }
189 | },
190 | 'hour': {
191 | 'route.duration': {
192 | 'hour': '小时'
193 | }
194 | },
195 | 'item': {
196 | 'carrier.price': {
197 | 'yuanperitem': '元/件',
198 | 'yuanpertruck': '元/车'
199 | },
200 | 'driver.prices': {
201 | 'yuanperitem': '元/件',
202 | 'yuanpertruck': '元/车'
203 | },
204 | 'driver.price': [
205 | { 'name': '元/件', 'id': 'yuanperitem' },
206 | { 'name': '元/车', 'id': 'yuanpertruck'}
207 | ],
208 | 'goods.loss': {
209 | 'item': '件/车'
210 | },
211 | 'goods.number': {
212 | 'item': '件'
213 | },
214 | 'goods.price': {
215 | 'name': '元/件',
216 | 'id': 'yuanperitem'
217 | },
218 | 'settle.volume.unit': {
219 | 'item': '件'
220 | }
221 | },
222 | 'km': {
223 | 'mileage.number': {
224 | 'km': '公里'
225 | },
226 | 'standard.distance': {
227 | 'km': '公里'
228 | }
229 | },
230 | 'liang': {
231 | 'truckqty.number': {
232 | 'liang': '辆'
233 | }
234 | },
235 | 'meter': {
236 | 'truck.size': {
237 | 'meter': '米'
238 | }
239 | },
240 | 'millimetre': {
241 | 'truck.size': {
242 | 'millimetre': '毫米'
243 | }
244 | },
245 | 'mm': {
246 | 'tyrewrinkles.number': {
247 | 'mm': '毫米'
248 | }
249 | },
250 | 'percent': {
251 | 'goods.loss.ration': {
252 | 'percent': '%'
253 | }
254 | },
255 | 'ton': {
256 | 'carrier.price': {
257 | 'yuanperton': '元/吨',
258 | 'yuanpertruck': '元/车'
259 | },
260 | 'driver.prices': {
261 | 'yuanperton': '元/吨',
262 | 'yuanpertruck': '元/车'
263 | },
264 | 'driver.price': [
265 | { 'name': '元/吨', 'id': 'yuanperton' },
266 | { 'name': '元/车', 'id': 'yuanpertruck'}
267 | ],
268 | 'goods.loss': {
269 | 'ton': '吨/车'
270 | },
271 | 'goods.price': {
272 | 'name': '元/吨',
273 | 'id': 'yuanperton'
274 | },
275 | 'goods.weight': {
276 | 'ton': '吨'
277 | },
278 | 'settle.volume.unit': {
279 | 'ton': '吨'
280 | },
281 | 'truck.carry': {
282 | 'ton': '吨'
283 | },
284 | },
285 | 'yuan': {
286 | 'price.unit': {
287 | 'yuan': '元'
288 | }
289 | }
290 | };
291 |
292 | List carTypes = ["请选择","A1", "A2", "A3", "B1", "B2", "C1", "C2"];
293 |
294 | const List attachList = ['cardFront', 'cardAfter', 'driverOne', 'driverTwo', 'qualificationCertificateResourceCodeOne', 'qualificationCertificateResourceCodeTwo'];
295 | Map attachments = {
296 | 'cardFront': { 'name': '身份证正面', 'value': 'assets/images/pic.png', 'status': 'hidden', 'resourceCode': '' },
297 | 'cardAfter': { 'name': '身份证反面', 'value': 'assets/images/pic.png', 'status': 'hidden', 'resourceCode': '' },
298 | 'driverOne': { 'name': '驾驶证第一联照片', 'value': 'assets/images/pic.png', 'status': 'hidden', 'resourceCode': '' },
299 | 'driverTwo': { 'name': '驾驶证第二联照片', 'value': 'assets/images/pic.png', 'status': 'hidden', 'resourceCode': '' },
300 | 'qualificationCertificateResourceCodeOne': { 'name': '从业资格证照片一', 'value': 'assets/images/pic.png', 'status': 'hidden', 'resourceCode': '' },
301 | 'qualificationCertificateResourceCodeTwo': { 'name': '从业资格证照片二', 'value': 'assets/images/pic.png', 'status': 'hidden', 'resourceCode': '' },
302 | };
303 |
304 | // --------常用正则---start ------------------//
305 | //手机号 RegExp mobile = new RegExp(r"1[0-9]\d{9}$");
306 | //登录密码:6~16位数字和字符组合 RegExp mobile = new RegExp(r"(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,16}$");
307 | //登录密码:6位数字验证码 RegExp mobile = new RegExp(r"\d{6}$");
308 | // 忽略特殊字符 const _regExp=r"^[\u4E00-\u9FA5A-Za-z0-9_]+$";
309 | // 只能输数字和小写字母 const _regExp=r"^[Za-z0-9_]+$";
310 | // 只能输数字和字母 const _regExp=r"^[ZA-ZZa-z0-9_]+$";
311 | //可以带最多四位小数的数字 RegExp = _number = new RegExp(r"^[0-9]+(.[0-9]{0,4})?$");
312 |
313 | // --------常用正则---end ------------------//
314 |
--------------------------------------------------------------------------------
/lib/components/componentsModel.dart:
--------------------------------------------------------------------------------
1 | export './city_picker.dart';
2 | export './date_picker.dart';
3 | export './progressDialog.dart';
4 | export './show_modal.dart';
5 | export './toast.dart';
6 | export './progressDialog.dart';
7 | export './date_picker.dart';
--------------------------------------------------------------------------------
/lib/components/full_screen_wrapper.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:photo_view/photo_view.dart';
3 | class FullScreenWrapper extends StatelessWidget {
4 | const FullScreenWrapper(
5 | {this.imageProvider,
6 | this.loadingChild,
7 | this.backgroundDecoration,
8 | this.minScale,
9 | this.maxScale,
10 | this.initialScale,
11 | this.basePosition = Alignment.center});
12 |
13 | final ImageProvider imageProvider;
14 | final Widget loadingChild;
15 | final Decoration backgroundDecoration;
16 | final dynamic minScale;
17 | final dynamic maxScale;
18 | final dynamic initialScale;
19 | final Alignment basePosition;
20 |
21 | @override
22 | Widget build(BuildContext context) {
23 | return Container(
24 | constraints: BoxConstraints.expand(
25 | height: MediaQuery.of(context).size.height,
26 | ),
27 | child: PhotoView(
28 | imageProvider: imageProvider,
29 | loadingChild: loadingChild,
30 | backgroundDecoration: backgroundDecoration,
31 | minScale: minScale,
32 | maxScale: maxScale,
33 | initialScale: initialScale,
34 | basePosition: basePosition,
35 | ));
36 | }
37 | }
--------------------------------------------------------------------------------
/lib/components/multiple_picker.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_screenutil/flutter_screenutil.dart';
3 | mulitiplePicker(BuildContext context, List truckLengthRequireList,String value, Function success) {
4 | showDialog(
5 | context: context,
6 | builder: (BuildContext context){
7 | return MultiplePickerDialog(list:truckLengthRequireList,value:value,success: success,);
8 | }
9 | );
10 | }
11 | class MultiplePickerDialog extends StatefulWidget{
12 | final List list;
13 | final String value;
14 | final Function success;
15 | MultiplePickerDialog({Key key, this.list,this.value, this.success}) : super(key: key);
16 | @override
17 | _MultiplePickerDialogState createState() => _MultiplePickerDialogState();
18 | }
19 |
20 | class _MultiplePickerDialogState extends State {
21 | List commonList;
22 | @override
23 | void initState() {
24 | super.initState();
25 | commonList = widget.list;
26 | _getCheckedItem();
27 | }
28 | @override
29 | Widget build(BuildContext context) {
30 | return Material(
31 | type: MaterialType.transparency,
32 | child: Container(
33 | child: Stack(
34 | children: [
35 | Positioned(
36 | bottom: 0,
37 | left: 0,
38 | child: Container(
39 | width: MediaQuery.of(context).size.width,
40 | padding: EdgeInsets.only(bottom: 14),
41 | color: Colors.white,
42 | child: Container(
43 | child: Column(
44 | children: [
45 | Container(
46 | padding: EdgeInsets.only(left: 10),
47 | height: ScreenUtil().setHeight(100),
48 | alignment: Alignment.centerLeft,
49 | color: Theme.of(context).primaryColor,
50 | child: Text('选择车长',style: TextStyle(color: Colors.white),),
51 | ),
52 | Container(
53 | margin: EdgeInsets.only(bottom: 10),
54 | padding: EdgeInsets.only(bottom: 10),
55 | decoration: BoxDecoration(
56 | border: Border(
57 | bottom: BorderSide(
58 | width: 1,
59 | color: Color(0xFFCCCCCC)
60 | )
61 | )
62 | ),
63 | child: Wrap(
64 | children: commonList.length > 0
65 | ? commonList.map((item){
66 | return itemModel(context,item);
67 | }).toList()
68 | : [Text('')]
69 | ),
70 | ),
71 | Row(
72 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
73 | children: [
74 | InkWell(
75 | child: Container(
76 | width: ScreenUtil().setWidth(200),
77 | height: ScreenUtil().setHeight(100),
78 | margin: EdgeInsets.only(left:10),
79 | decoration: BoxDecoration(
80 | border: Border.all(
81 | width: 1,
82 | color: Color(0xFFCCCCCC)
83 | ),
84 | borderRadius: BorderRadius.circular(5)
85 | ),
86 | child: Center(
87 | child: Text('取消',style: TextStyle(
88 | color: Color(0xFF666666)
89 | ),),
90 | ),
91 | ),
92 | onTap: (){
93 | Navigator.of(context).pop('cancel');
94 | },
95 | ),
96 | InkWell(
97 | child: Container(
98 | margin: EdgeInsets.only(right: 10),
99 | width: ScreenUtil().setWidth(200),
100 | height: ScreenUtil().setHeight(100),
101 | decoration: BoxDecoration(
102 | borderRadius: BorderRadius.circular(5),
103 | color: Theme.of(context).primaryColor,
104 | ),
105 | child: Center(
106 | child: Text('确认',style: TextStyle(
107 | color: Colors.white
108 | ),),
109 | ),
110 | ),
111 | onTap: (){
112 | Navigator.of(context).pop('confirm');
113 | _selectItem();
114 | },
115 | )
116 | ],
117 | )
118 | ],
119 | ),
120 | ),
121 | ),
122 | )
123 | ],
124 | ),
125 | ),
126 | );
127 | }
128 | Widget itemModel( BuildContext context, Map item,){
129 | return InkWell(
130 | child: Container(
131 | margin: EdgeInsets.fromLTRB(10, 5, 10, 5),
132 | width: MediaQuery.of(context).size.width/3-20,
133 | height: ScreenUtil().setHeight(100),
134 | decoration: BoxDecoration(
135 | border: Border.all(
136 | width: 1,
137 | color: Color(0xFFCCCCCC)
138 | ),
139 | borderRadius: BorderRadius.circular(5),
140 | color: item['check']? Theme.of(context).primaryColor : Colors.white
141 | ),
142 | child: Center(
143 | child: Text(item['value'],style: TextStyle(
144 | color: item['check']? Colors.white : Color(0xFF454545)
145 | ),),
146 | ),
147 | ),
148 | onTap: (){
149 | setState((){
150 | item['check'] = !item['check'];
151 | });
152 | },
153 | );
154 | }
155 | _getCheckedItem() {
156 | if(widget.value == '' || widget.value == '请选择'){
157 | return;
158 | }
159 | List checkList = widget.value.split(',');
160 | commonList.forEach((items){
161 | items['check'] = false;
162 | });
163 | commonList.forEach((items){
164 | checkList.forEach((item){
165 | if(item == items['value']){
166 | setState(() {
167 | items['check'] = true;
168 | });
169 | }
170 | });
171 | });
172 | }
173 | _selectItem() {
174 | List list = [];
175 | String checkValue = '';
176 | commonList.forEach((item){
177 | if(item['check']){
178 | list.add(item['value']);
179 | }
180 | });
181 | checkValue = list.join(',');
182 | widget.success(checkValue);
183 | }
184 | @override
185 | void dispose() {
186 | super.dispose();
187 | commonList = [];
188 | }
189 | }
190 |
--------------------------------------------------------------------------------
/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 'package:flutter_screenutil/flutter_screenutil.dart';
4 | import '../config/search_page_config.dart';
5 |
6 | Widget searchBar(BuildContext context, String type, List singlePickerList, int index, Function searchChange, Function change,{bool disabledEditeStatus}) {
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 searchPageConfig(type,(res){
40 | searchChange(res);
41 | });
42 | }));
43 | },
44 | )
45 | ),
46 | Container(
47 | margin:EdgeInsets.only(left: 10.0),
48 | padding: EdgeInsets.only(left: 5),
49 | width: ScreenUtil().setWidth(190),
50 | height: ScreenUtil().setHeight(75),
51 | decoration: BoxDecoration(
52 | color: Colors.white,
53 | borderRadius: BorderRadius.circular(5.0)
54 | ),
55 | child: InkWell(
56 | child: Row(
57 | mainAxisAlignment: MainAxisAlignment.spaceAround,
58 | children: [
59 | Expanded(
60 | child: Text(singlePickerList[index]['key'], style: TextStyle(fontSize: ScreenUtil().setSp(26)), overflow: TextOverflow.ellipsis,textAlign: TextAlign.center,),
61 | ),
62 | Offstage(
63 | offstage: disabledEditeStatus != null && disabledEditeStatus == true ? true : false,
64 | child: Icon(Icons.arrow_drop_down),
65 | )
66 |
67 | ],
68 | ),
69 | onTap: (){
70 | if(disabledEditeStatus != null && disabledEditeStatus == true){
71 | return;
72 | }
73 | singlePicker(context, singlePickerList, index,(res){
74 | if(res['key'] == 'confirm') {
75 | change(res);
76 | }else if(res['key'] == 'cancel') {
77 | change(res);
78 | }
79 | });
80 | },
81 | )
82 | )
83 |
84 | ],
85 | ),
86 | );
87 | }
88 |
--------------------------------------------------------------------------------
/lib/components/select_button.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_screenutil/flutter_screenutil.dart';
3 |
4 | selectButton( List commonList, String selectValue, Function result) {
5 | return StatefulBuilder(
6 | builder: (BuildContext context, setState) {
7 | return Container(
8 | width: ScreenUtil().setWidth(200),
9 | height: ScreenUtil().setHeight(100),
10 | padding: EdgeInsets.only(left: 6),
11 | decoration: BoxDecoration(
12 | border: Border.all(
13 | width: 1,
14 | color: Color(0xFFcccccc)
15 | ),
16 | borderRadius: BorderRadius.circular(5)
17 | ),
18 | child: DropdownButtonFormField(
19 | decoration: InputDecoration(
20 | enabledBorder: UnderlineInputBorder(
21 | borderSide: BorderSide(color: Colors.white))
22 | ),
23 | value: selectValue,
24 | onChanged: (value){
25 | setState(() {
26 | selectValue = value;
27 | });
28 | result(value);
29 | },
30 | items: commonList.map((item){
31 | return DropdownMenuItem(
32 | value: item['id'],
33 | child: Text(item['name']),
34 | );
35 | }).toList(),
36 | ),
37 | );
38 | },
39 | );
40 | }
41 |
42 | // class SelectButton extends StatefulWidget {
43 | // final List commonList;
44 | // final String selectValue;
45 | // final Function result;
46 | // SelectButton({Key key, this.commonList, this.selectValue,this.result});
47 | // @override
48 | // _SelectButtonState createState() => _SelectButtonState();
49 | // }
50 |
51 | // class _SelectButtonState extends State {
52 | // String values;
53 | // @override
54 | // void initState() {
55 | // super.initState();
56 | // values = widget.selectValue;
57 | // }
58 | // @override
59 | // Widget build(BuildContext context) {
60 | // return Container(
61 | // width: ScreenUtil().setWidth(200),
62 | // height: ScreenUtil().setHeight(100),
63 | // padding: EdgeInsets.only(left: 6),
64 | // decoration: BoxDecoration(
65 | // border: Border.all(
66 | // width: 1,
67 | // color: Color(0xFFcccccc)
68 | // ),
69 | // borderRadius: BorderRadius.circular(5)
70 | // ),
71 | // child: DropdownButtonFormField(
72 | // decoration: InputDecoration(
73 | // enabledBorder: UnderlineInputBorder(
74 | // borderSide: BorderSide(color: Colors.white))
75 | // ),
76 | // value: values,
77 | // onChanged: (value){
78 | // setState(() {
79 | // values = value;
80 | // });
81 | // widget.result(value);
82 | // },
83 | // items: widget.commonList.map((item){
84 | // return DropdownMenuItem(
85 | // value: item['id'],
86 | // child: Text(item['name']),
87 | // );
88 | // }).toList(),
89 | // ),
90 | // );
91 | // }
92 | // }
--------------------------------------------------------------------------------
/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