diff --git a/.gitignore b/.gitignore
index e01a9fb..79c113f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,29 +1,45 @@
-# ---> Dart
-# See https://www.dartlang.org/guides/libraries/private-files
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.build/
+.buildlog/
+.history
+.svn/
+.swiftpm/
+migrate_working_dir/
-# Files and directories created by pub
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# The .vscode folder contains launch configuration and tasks you configure in
+# VS Code which you may wish to be included in version control, so this line
+# is commented out by default.
+#.vscode/
+
+# Flutter/Dart/Pub related
+**/doc/api/
+**/ios/Flutter/.last_build_id
.dart_tool/
-.packages
-build/
-# If you're building an application, you may want to check-in your pubspec.lock
-pubspec.lock
-
-# Directory created by dartdoc
-# If you don't generate documentation locally you can remove this line.
-doc/api/
-
-# dotenv environment variables file
-.env*
-
-# Avoid committing generated Javascript files:
-*.dart.js
-*.info.json # Produced by the --dump-info flag.
-*.js # When generated by dart2js. Don't specify *.js if your
- # project includes source files written in JavaScript.
-*.js_
-*.js.deps
-*.js.map
-
.flutter-plugins
.flutter-plugins-dependencies
+.pub-cache/
+.pub/
+/build/
+# Symbolication related
+app.*.symbols
+
+# Obfuscation related
+app.*.map.json
+
+# Android Studio will place build artifacts here
+/android/app/debug
+/android/app/profile
+/android/app/release
diff --git a/.metadata b/.metadata
new file mode 100644
index 0000000..3bb6b3c
--- /dev/null
+++ b/.metadata
@@ -0,0 +1,33 @@
+# This file tracks properties of this Flutter project.
+# Used by Flutter tool to assess capabilities and perform upgrades etc.
+#
+# This file should be version controlled and should not be manually edited.
+
+version:
+ revision: "35c388afb57ef061d06a39b537336c87e0e3d1b1"
+ channel: "stable"
+
+project_type: app
+
+# Tracks metadata for the flutter migrate command
+migration:
+ platforms:
+ - platform: root
+ create_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
+ base_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
+ - platform: android
+ create_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
+ base_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
+ - platform: ios
+ create_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
+ base_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
+
+ # User provided section
+
+ # List of Local paths (relative to this file) that should be
+ # ignored by the migrate tool.
+ #
+ # Files that are not part of the templates will be ignored by default.
+ unmanaged_files:
+ - 'lib/main.dart'
+ - 'ios/Runner.xcodeproj/project.pbxproj'
diff --git a/README.md b/README.md
index e0b3bf0..ed84766 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,16 @@
-# flutter_integrated_whb
+# qhd_prevention
-危化项目
\ No newline at end of file
+A new Flutter project.
+
+## Getting Started
+
+This project is a starting point for a Flutter application.
+
+A few resources to get you started if this is your first Flutter project:
+
+- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
+- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
+
+For help getting started with Flutter development, view the
+[online documentation](https://docs.flutter.dev/), which offers tutorials,
+samples, guidance on mobile development, and a full API reference.
diff --git a/analysis_options.yaml b/analysis_options.yaml
new file mode 100644
index 0000000..5c7a25e
--- /dev/null
+++ b/analysis_options.yaml
@@ -0,0 +1,30 @@
+# This file configures the analyzer, which statically analyzes Dart code to
+# check for errors, warnings, and lints.
+#
+# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
+# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
+# invoked from the command line by running `flutter analyze`.
+
+# The following line activates a set of recommended lints for Flutter apps,
+# packages, and plugins designed to encourage good coding practices.
+include: package:flutter_lints/flutter.yaml
+
+linter:
+
+ # The lint rules applied to this project can be customized in the
+ # section below to disable rules from the `package:flutter_lints/flutter.yaml`
+ # included above or to enable additional rules. A list of all available lints
+ # and their documentation is published at https://dart.dev/lints.
+ #
+ # Instead of disabling a lint rule for the entire project in the
+ # section below, it can also be suppressed for a single line of code
+ # or a specific dart file by using the `// ignore: name_of_lint` and
+ # `// ignore_for_file: name_of_lint` syntax on the line or in the file
+ # producing the lint.
+ rules:
+ camel_case_types: false
+ # avoid_print: false # Uncomment to disable the `avoid_print` rule
+ # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
+
+# Additional information about this file can be found at
+# https://dart.dev/guides/language/analysis-options
diff --git a/android/.gitignore b/android/.gitignore
new file mode 100644
index 0000000..be3943c
--- /dev/null
+++ b/android/.gitignore
@@ -0,0 +1,14 @@
+gradle-wrapper.jar
+/.gradle
+/captures/
+/gradlew
+/gradlew.bat
+/local.properties
+GeneratedPluginRegistrant.java
+.cxx/
+
+# Remember to never publicly share your keystore.
+# See https://flutter.dev/to/reference-keystore
+key.properties
+**/*.keystore
+**/*.jks
diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts
new file mode 100644
index 0000000..8637db3
--- /dev/null
+++ b/android/app/build.gradle.kts
@@ -0,0 +1,44 @@
+plugins {
+ id("com.android.application")
+ id("kotlin-android")
+ // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
+ id("dev.flutter.flutter-gradle-plugin")
+}
+
+android {
+ namespace = "com.zhuoyun.qhdprevention.qhd_prevention"
+ compileSdk = flutter.compileSdkVersion
+ ndkVersion = "28.1.13356709"
+
+ compileOptions {
+ sourceCompatibility = JavaVersion.VERSION_11
+ targetCompatibility = JavaVersion.VERSION_11
+ }
+
+ kotlinOptions {
+ jvmTarget = JavaVersion.VERSION_11.toString()
+ }
+
+ defaultConfig {
+ // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
+ applicationId = "com.zhuoyun.qhdprevention.qhd_prevention"
+ // You can update the following values to match your application needs.
+ // For more information, see: https://flutter.dev/to/review-gradle-config.
+ minSdk = flutter.minSdkVersion
+ targetSdk = flutter.targetSdkVersion
+ versionCode = flutter.versionCode
+ versionName = flutter.versionName
+ }
+
+ buildTypes {
+ release {
+ // TODO: Add your own signing config for the release build.
+ // Signing with the debug keys for now, so `flutter run --release` works.
+ signingConfig = signingConfigs.getByName("debug")
+ }
+ }
+}
+
+flutter {
+ source = "../.."
+}
diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml
new file mode 100644
index 0000000..399f698
--- /dev/null
+++ b/android/app/src/debug/AndroidManifest.xml
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..e842ee3
--- /dev/null
+++ b/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/kotlin/com/zhuoyun/qhdprevention/qhd_prevention/MainActivity.kt b/android/app/src/main/kotlin/com/zhuoyun/qhdprevention/qhd_prevention/MainActivity.kt
new file mode 100644
index 0000000..4a716d1
--- /dev/null
+++ b/android/app/src/main/kotlin/com/zhuoyun/qhdprevention/qhd_prevention/MainActivity.kt
@@ -0,0 +1,5 @@
+package com.zhuoyun.qhdprevention.qhd_prevention
+
+import io.flutter.embedding.android.FlutterActivity
+
+class MainActivity : FlutterActivity()
diff --git a/android/app/src/main/res/drawable-v21/launch_background.xml b/android/app/src/main/res/drawable-v21/launch_background.xml
new file mode 100644
index 0000000..f74085f
--- /dev/null
+++ b/android/app/src/main/res/drawable-v21/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/drawable/launch_background.xml b/android/app/src/main/res/drawable/launch_background.xml
new file mode 100644
index 0000000..304732f
--- /dev/null
+++ b/android/app/src/main/res/drawable/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..db77bb4
Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..17987b7
Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..09d4391
Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..d5f1c8d
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..4d6372e
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app/src/main/res/values-night/styles.xml
new file mode 100644
index 0000000..06952be
--- /dev/null
+++ b/android/app/src/main/res/values-night/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..cb1ef88
--- /dev/null
+++ b/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml
new file mode 100644
index 0000000..399f698
--- /dev/null
+++ b/android/app/src/profile/AndroidManifest.xml
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/android/build.gradle.kts b/android/build.gradle.kts
new file mode 100644
index 0000000..89176ef
--- /dev/null
+++ b/android/build.gradle.kts
@@ -0,0 +1,21 @@
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+val newBuildDir: Directory = rootProject.layout.buildDirectory.dir("../../build").get()
+rootProject.layout.buildDirectory.value(newBuildDir)
+
+subprojects {
+ val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
+ project.layout.buildDirectory.value(newSubprojectBuildDir)
+}
+subprojects {
+ project.evaluationDependsOn(":app")
+}
+
+tasks.register("clean") {
+ delete(rootProject.layout.buildDirectory)
+}
diff --git a/android/gradle.properties b/android/gradle.properties
new file mode 100644
index 0000000..f018a61
--- /dev/null
+++ b/android/gradle.properties
@@ -0,0 +1,3 @@
+org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
+android.useAndroidX=true
+android.enableJetifier=true
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..afa1e8e
--- /dev/null
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,5 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
diff --git a/android/settings.gradle.kts b/android/settings.gradle.kts
new file mode 100644
index 0000000..a439442
--- /dev/null
+++ b/android/settings.gradle.kts
@@ -0,0 +1,25 @@
+pluginManagement {
+ val flutterSdkPath = run {
+ val properties = java.util.Properties()
+ file("local.properties").inputStream().use { properties.load(it) }
+ val flutterSdkPath = properties.getProperty("flutter.sdk")
+ require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
+ flutterSdkPath
+ }
+
+ includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
+
+ repositories {
+ google()
+ mavenCentral()
+ gradlePluginPortal()
+ }
+}
+
+plugins {
+ id("dev.flutter.flutter-plugin-loader") version "1.0.0"
+ id("com.android.application") version "8.7.0" apply false
+ id("org.jetbrains.kotlin.android") version "1.8.22" apply false
+}
+
+include(":app")
diff --git a/assets/icon-apps/home-base.png b/assets/icon-apps/home-base.png
new file mode 100644
index 0000000..f61e4fe
Binary files /dev/null and b/assets/icon-apps/home-base.png differ
diff --git a/assets/icon-apps/home-cns.png b/assets/icon-apps/home-cns.png
new file mode 100644
index 0000000..2748674
Binary files /dev/null and b/assets/icon-apps/home-cns.png differ
diff --git a/assets/icon-apps/home-file.png b/assets/icon-apps/home-file.png
new file mode 100644
index 0000000..7e6270e
Binary files /dev/null and b/assets/icon-apps/home-file.png differ
diff --git a/assets/icon-apps/home-fl.png b/assets/icon-apps/home-fl.png
new file mode 100644
index 0000000..311e176
Binary files /dev/null and b/assets/icon-apps/home-fl.png differ
diff --git a/assets/icon-apps/home-gw.png b/assets/icon-apps/home-gw.png
new file mode 100644
index 0000000..0ab1d3a
Binary files /dev/null and b/assets/icon-apps/home-gw.png differ
diff --git a/assets/icon-apps/home-rili.png b/assets/icon-apps/home-rili.png
new file mode 100644
index 0000000..419e6b4
Binary files /dev/null and b/assets/icon-apps/home-rili.png differ
diff --git a/assets/icon-apps/home-risk.png b/assets/icon-apps/home-risk.png
new file mode 100644
index 0000000..0f87f56
Binary files /dev/null and b/assets/icon-apps/home-risk.png differ
diff --git a/assets/icon-apps/home-speEquip.jpg b/assets/icon-apps/home-speEquip.jpg
new file mode 100644
index 0000000..c56a742
Binary files /dev/null and b/assets/icon-apps/home-speEquip.jpg differ
diff --git a/assets/icon-apps/home-study.png b/assets/icon-apps/home-study.png
new file mode 100644
index 0000000..8ba8b01
Binary files /dev/null and b/assets/icon-apps/home-study.png differ
diff --git a/assets/icon-apps/icon-800.png b/assets/icon-apps/icon-800.png
new file mode 100644
index 0000000..62cd09a
Binary files /dev/null and b/assets/icon-apps/icon-800.png differ
diff --git a/assets/icon-apps/icon-801.png b/assets/icon-apps/icon-801.png
new file mode 100644
index 0000000..7031bb6
Binary files /dev/null and b/assets/icon-apps/icon-801.png differ
diff --git a/assets/icon-apps/icon-802.png b/assets/icon-apps/icon-802.png
new file mode 100644
index 0000000..97208b7
Binary files /dev/null and b/assets/icon-apps/icon-802.png differ
diff --git a/assets/icon-apps/icon-803.png b/assets/icon-apps/icon-803.png
new file mode 100644
index 0000000..e69be2c
Binary files /dev/null and b/assets/icon-apps/icon-803.png differ
diff --git a/assets/icon-apps/icon-804.png b/assets/icon-apps/icon-804.png
new file mode 100644
index 0000000..becce6f
Binary files /dev/null and b/assets/icon-apps/icon-804.png differ
diff --git a/assets/icon-apps/icon-805.png b/assets/icon-apps/icon-805.png
new file mode 100644
index 0000000..38e7628
Binary files /dev/null and b/assets/icon-apps/icon-805.png differ
diff --git a/assets/icon-apps/icon-806.png b/assets/icon-apps/icon-806.png
new file mode 100644
index 0000000..de07927
Binary files /dev/null and b/assets/icon-apps/icon-806.png differ
diff --git a/assets/icon-apps/icon-807.png b/assets/icon-apps/icon-807.png
new file mode 100644
index 0000000..5699dda
Binary files /dev/null and b/assets/icon-apps/icon-807.png differ
diff --git a/assets/icon-apps/icon-901.png b/assets/icon-apps/icon-901.png
new file mode 100644
index 0000000..765f12a
Binary files /dev/null and b/assets/icon-apps/icon-901.png differ
diff --git a/assets/icon-apps/icon-902.png b/assets/icon-apps/icon-902.png
new file mode 100644
index 0000000..31f56b3
Binary files /dev/null and b/assets/icon-apps/icon-902.png differ
diff --git a/assets/icon-apps/icon-903.png b/assets/icon-apps/icon-903.png
new file mode 100644
index 0000000..c86c652
Binary files /dev/null and b/assets/icon-apps/icon-903.png differ
diff --git a/assets/icon-apps/icon-904.png b/assets/icon-apps/icon-904.png
new file mode 100644
index 0000000..d4525d9
Binary files /dev/null and b/assets/icon-apps/icon-904.png differ
diff --git a/assets/icon-apps/icon-905.png b/assets/icon-apps/icon-905.png
new file mode 100644
index 0000000..c5526bb
Binary files /dev/null and b/assets/icon-apps/icon-905.png differ
diff --git a/assets/icon-apps/icon-906.png b/assets/icon-apps/icon-906.png
new file mode 100644
index 0000000..bbd3817
Binary files /dev/null and b/assets/icon-apps/icon-906.png differ
diff --git a/assets/icon-apps/icon-907.png b/assets/icon-apps/icon-907.png
new file mode 100644
index 0000000..f46d612
Binary files /dev/null and b/assets/icon-apps/icon-907.png differ
diff --git a/assets/icon-apps/icon-pc-1.png b/assets/icon-apps/icon-pc-1.png
new file mode 100644
index 0000000..8f4c696
Binary files /dev/null and b/assets/icon-apps/icon-pc-1.png differ
diff --git a/assets/icon-apps/icon-yh-1.png b/assets/icon-apps/icon-yh-1.png
new file mode 100644
index 0000000..0f0d814
Binary files /dev/null and b/assets/icon-apps/icon-yh-1.png differ
diff --git a/assets/icon-apps/icon-yxkj-1.png b/assets/icon-apps/icon-yxkj-1.png
new file mode 100644
index 0000000..feeddb3
Binary files /dev/null and b/assets/icon-apps/icon-yxkj-1.png differ
diff --git a/assets/icon-apps/icon-yxkj-2.png b/assets/icon-apps/icon-yxkj-2.png
new file mode 100644
index 0000000..efee965
Binary files /dev/null and b/assets/icon-apps/icon-yxkj-2.png differ
diff --git a/assets/icon-apps/icon-yxkj-4.png b/assets/icon-apps/icon-yxkj-4.png
new file mode 100644
index 0000000..91ed148
Binary files /dev/null and b/assets/icon-apps/icon-yxkj-4.png differ
diff --git a/assets/icon-apps/icon-zl-1.png b/assets/icon-apps/icon-zl-1.png
new file mode 100644
index 0000000..c9eebb9
Binary files /dev/null and b/assets/icon-apps/icon-zl-1.png differ
diff --git a/assets/icon-apps/icon-zl-10.png b/assets/icon-apps/icon-zl-10.png
new file mode 100644
index 0000000..6a02bf6
Binary files /dev/null and b/assets/icon-apps/icon-zl-10.png differ
diff --git a/assets/icon-apps/icon-zl-2.png b/assets/icon-apps/icon-zl-2.png
new file mode 100644
index 0000000..1685996
Binary files /dev/null and b/assets/icon-apps/icon-zl-2.png differ
diff --git a/assets/icon-apps/icon-zl-3.png b/assets/icon-apps/icon-zl-3.png
new file mode 100644
index 0000000..0ba14be
Binary files /dev/null and b/assets/icon-apps/icon-zl-3.png differ
diff --git a/assets/icon-apps/icon-zl-4.png b/assets/icon-apps/icon-zl-4.png
new file mode 100644
index 0000000..fd4e9d8
Binary files /dev/null and b/assets/icon-apps/icon-zl-4.png differ
diff --git a/assets/icon-apps/icon-zl-5.png b/assets/icon-apps/icon-zl-5.png
new file mode 100644
index 0000000..571e57c
Binary files /dev/null and b/assets/icon-apps/icon-zl-5.png differ
diff --git a/assets/icon-apps/icon-zl-6.png b/assets/icon-apps/icon-zl-6.png
new file mode 100644
index 0000000..8a28c25
Binary files /dev/null and b/assets/icon-apps/icon-zl-6.png differ
diff --git a/assets/icon-apps/icon-zl-7.png b/assets/icon-apps/icon-zl-7.png
new file mode 100644
index 0000000..2300341
Binary files /dev/null and b/assets/icon-apps/icon-zl-7.png differ
diff --git a/assets/icon-apps/icon-zl-8.png b/assets/icon-apps/icon-zl-8.png
new file mode 100644
index 0000000..6c901e8
Binary files /dev/null and b/assets/icon-apps/icon-zl-8.png differ
diff --git a/assets/icon-apps/icon-zl-9.png b/assets/icon-apps/icon-zl-9.png
new file mode 100644
index 0000000..7f1f47e
Binary files /dev/null and b/assets/icon-apps/icon-zl-9.png differ
diff --git a/assets/icon-apps/icon_100.png b/assets/icon-apps/icon_100.png
new file mode 100644
index 0000000..912f672
Binary files /dev/null and b/assets/icon-apps/icon_100.png differ
diff --git a/assets/icon-apps/icon_101.png b/assets/icon-apps/icon_101.png
new file mode 100644
index 0000000..d5aebb9
Binary files /dev/null and b/assets/icon-apps/icon_101.png differ
diff --git a/assets/icon-apps/icon_102.png b/assets/icon-apps/icon_102.png
new file mode 100644
index 0000000..a97e623
Binary files /dev/null and b/assets/icon-apps/icon_102.png differ
diff --git a/assets/icon-apps/jobico1.png b/assets/icon-apps/jobico1.png
new file mode 100644
index 0000000..c948020
Binary files /dev/null and b/assets/icon-apps/jobico1.png differ
diff --git a/assets/icon-apps/jobico2.png b/assets/icon-apps/jobico2.png
new file mode 100644
index 0000000..f75de1f
Binary files /dev/null and b/assets/icon-apps/jobico2.png differ
diff --git a/assets/icon-apps/jobico3.png b/assets/icon-apps/jobico3.png
new file mode 100644
index 0000000..87b1123
Binary files /dev/null and b/assets/icon-apps/jobico3.png differ
diff --git a/assets/icon-apps/jobico4.png b/assets/icon-apps/jobico4.png
new file mode 100644
index 0000000..11fda21
Binary files /dev/null and b/assets/icon-apps/jobico4.png differ
diff --git a/assets/icon-apps/jobico5.png b/assets/icon-apps/jobico5.png
new file mode 100644
index 0000000..7ca8070
Binary files /dev/null and b/assets/icon-apps/jobico5.png differ
diff --git a/assets/icon-apps/open-circuit.png b/assets/icon-apps/open-circuit.png
new file mode 100644
index 0000000..fe2f651
Binary files /dev/null and b/assets/icon-apps/open-circuit.png differ
diff --git a/assets/icon-apps/video.png b/assets/icon-apps/video.png
new file mode 100644
index 0000000..cbdbfa2
Binary files /dev/null and b/assets/icon-apps/video.png differ
diff --git a/assets/icon-apps/wenjuan.png b/assets/icon-apps/wenjuan.png
new file mode 100644
index 0000000..2d00526
Binary files /dev/null and b/assets/icon-apps/wenjuan.png differ
diff --git a/assets/image/gai.png b/assets/image/gai.png
new file mode 100644
index 0000000..e90721d
Binary files /dev/null and b/assets/image/gai.png differ
diff --git a/assets/image/gaiz.png b/assets/image/gaiz.png
new file mode 100644
index 0000000..e90721d
Binary files /dev/null and b/assets/image/gaiz.png differ
diff --git a/assets/image/logo.png b/assets/image/logo.png
new file mode 100644
index 0000000..0d925fe
Binary files /dev/null and b/assets/image/logo.png differ
diff --git a/assets/images/1.png b/assets/images/1.png
new file mode 100644
index 0000000..ae5f021
Binary files /dev/null and b/assets/images/1.png differ
diff --git a/assets/images/2.png b/assets/images/2.png
new file mode 100644
index 0000000..f983c0b
Binary files /dev/null and b/assets/images/2.png differ
diff --git a/assets/images/3.png b/assets/images/3.png
new file mode 100644
index 0000000..aab7d0c
Binary files /dev/null and b/assets/images/3.png differ
diff --git a/assets/images/4.png b/assets/images/4.png
new file mode 100644
index 0000000..6ddefdc
Binary files /dev/null and b/assets/images/4.png differ
diff --git a/assets/images/5.png b/assets/images/5.png
new file mode 100644
index 0000000..6716b73
Binary files /dev/null and b/assets/images/5.png differ
diff --git a/assets/images/ai_img.png b/assets/images/ai_img.png
new file mode 100644
index 0000000..583b960
Binary files /dev/null and b/assets/images/ai_img.png differ
diff --git a/assets/images/app-logo.png b/assets/images/app-logo.png
new file mode 100644
index 0000000..54baf79
Binary files /dev/null and b/assets/images/app-logo.png differ
diff --git a/assets/images/app-logo0.png b/assets/images/app-logo0.png
new file mode 100644
index 0000000..7f00ecf
Binary files /dev/null and b/assets/images/app-logo0.png differ
diff --git a/assets/images/apps-banner.jpg b/assets/images/apps-banner.jpg
new file mode 100644
index 0000000..9767f1d
Binary files /dev/null and b/assets/images/apps-banner.jpg differ
diff --git a/assets/images/apps-banner.png b/assets/images/apps-banner.png
new file mode 100644
index 0000000..0093235
Binary files /dev/null and b/assets/images/apps-banner.png differ
diff --git a/assets/images/avatar.png b/assets/images/avatar.png
new file mode 100644
index 0000000..c22a198
Binary files /dev/null and b/assets/images/avatar.png differ
diff --git a/assets/images/banner.jpg b/assets/images/banner.jpg
new file mode 100644
index 0000000..3df5fa8
Binary files /dev/null and b/assets/images/banner.jpg differ
diff --git a/assets/images/banner.png b/assets/images/banner.png
new file mode 100644
index 0000000..f6d6ade
Binary files /dev/null and b/assets/images/banner.png differ
diff --git a/assets/images/bg-login.png b/assets/images/bg-login.png
new file mode 100644
index 0000000..6bc71fd
Binary files /dev/null and b/assets/images/bg-login.png differ
diff --git a/assets/images/hg-bottom.png b/assets/images/hg-bottom.png
new file mode 100644
index 0000000..774847b
Binary files /dev/null and b/assets/images/hg-bottom.png differ
diff --git a/assets/images/ksbgx.png b/assets/images/ksbgx.png
new file mode 100644
index 0000000..4dc90e1
Binary files /dev/null and b/assets/images/ksbgx.png differ
diff --git a/assets/images/login-bg.png b/assets/images/login-bg.png
new file mode 100644
index 0000000..94f11a0
Binary files /dev/null and b/assets/images/login-bg.png differ
diff --git a/assets/images/null.png b/assets/images/null.png
new file mode 100644
index 0000000..7df785c
Binary files /dev/null and b/assets/images/null.png differ
diff --git a/assets/images/scan.png b/assets/images/scan.png
new file mode 100644
index 0000000..6a343ee
Binary files /dev/null and b/assets/images/scan.png differ
diff --git a/assets/images/study-app01.png b/assets/images/study-app01.png
new file mode 100644
index 0000000..087051f
Binary files /dev/null and b/assets/images/study-app01.png differ
diff --git a/assets/images/study-app02.png b/assets/images/study-app02.png
new file mode 100644
index 0000000..223e441
Binary files /dev/null and b/assets/images/study-app02.png differ
diff --git a/assets/images/study-banner.png b/assets/images/study-banner.png
new file mode 100644
index 0000000..c4a2cb6
Binary files /dev/null and b/assets/images/study-banner.png differ
diff --git a/assets/images/user_pic.png b/assets/images/user_pic.png
new file mode 100644
index 0000000..1f196ec
Binary files /dev/null and b/assets/images/user_pic.png differ
diff --git a/assets/images/zt-ing.png b/assets/images/zt-ing.png
new file mode 100644
index 0000000..dacbace
Binary files /dev/null and b/assets/images/zt-ing.png differ
diff --git a/assets/images/zt-over.png b/assets/images/zt-over.png
new file mode 100644
index 0000000..bdc18bc
Binary files /dev/null and b/assets/images/zt-over.png differ
diff --git a/assets/js/jsencrypt.min.js b/assets/js/jsencrypt.min.js
new file mode 100644
index 0000000..174916b
--- /dev/null
+++ b/assets/js/jsencrypt.min.js
@@ -0,0 +1,2 @@
+/*! For license information please see jsencrypt.min.js.LICENSE.txt */
+!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.JSEncrypt=e():t.JSEncrypt=e()}(window,(()=>(()=>{var t={155:t=>{var e,i,r=t.exports={};function n(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function o(t){if(e===setTimeout)return setTimeout(t,0);if((e===n||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(i){try{return e.call(null,t,0)}catch(i){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:n}catch(t){e=n}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var h,a=[],u=!1,c=-1;function f(){u&&h&&(u=!1,h.length?a=h.concat(a):c=-1,a.length&&l())}function l(){if(!u){var t=o(f);u=!0;for(var e=a.length;e;){for(h=a,a=[];++c1)for(var i=1;i{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};return(()=>{"use strict";function t(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function e(t,e){return t&e}function n(t,e){return t|e}function s(t,e){return t^e}function o(t,e){return t&~e}function h(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function a(t){for(var e=0;0!=t;)t&=t-1,++e;return e}i.d(r,{default:()=>ot});var u,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function f(t){var e,i,r="";for(e=0;e+3<=t.length;e+=3)i=parseInt(t.substring(e,e+3),16),r+=c.charAt(i>>6)+c.charAt(63&i);for(e+1==t.length?(i=parseInt(t.substring(e,e+1),16),r+=c.charAt(i<<2)):e+2==t.length&&(i=parseInt(t.substring(e,e+2),16),r+=c.charAt(i>>2)+c.charAt((3&i)<<4));(3&r.length)>0;)r+="=";return r}function l(e){var i,r="",n=0,s=0;for(i=0;i>2),s=3&o,n=1):1==n?(r+=t(s<<2|o>>4),s=15&o,n=2):2==n?(r+=t(s),r+=t(o>>2),s=3&o,n=3):(r+=t(s<<2|o>>4),r+=t(15&o),n=0))}return 1==n&&(r+=t(s<<2)),r}var p,g={decode:function(t){var e;if(void 0===p){var i="= \f\n\r\t \u2028\u2029";for(p=Object.create(null),e=0;e<64;++e)p["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(p["-"]=62,p._=63,e=0;e=4?(r[r.length]=n>>16,r[r.length]=n>>8&255,r[r.length]=255&n,n=0,s=0):n<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=n>>10;break;case 3:r[r.length]=n>>16,r[r.length]=n>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=g.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return g.decode(t)}},d=1e13,v=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var i,r,n=this.buf,s=n.length;for(i=0;i0&&(n[i]=e)},t.prototype.sub=function(t){var e,i,r=this.buf,n=r.length;for(e=0;e=0;--r)i+=(d+e[r]).toString().substring(1);return i},t.prototype.valueOf=function(){for(var t=this.buf,e=0,i=t.length-1;i>=0;--i)e=e*d+t[i];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),m=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,y=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function b(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var T,S=function(){function t(e,i){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=i)}return t.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},t.prototype.hexDump=function(t,e,i){for(var r="",n=t;n176)return!1}return!0},t.prototype.parseStringISO=function(t,e){for(var i="",r=t;r191&&n<224?String.fromCharCode((31&n)<<6|63&this.get(r++)):String.fromCharCode((15&n)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return i},t.prototype.parseStringBMP=function(t,e){for(var i,r,n="",s=t;s127,s=n?255:0,o="";r==s&&++t4){for(o=r,i<<=3;0==(128&(+o^s));)o=+o<<1,--i;o="("+i+" bit)\n"}n&&(r-=256);for(var h=new v(r),a=t+1;a=a;--u)s+=h>>u&1?"1":"0";if(s.length>i)return n+b(s,i)}return n+s},t.prototype.parseOctetString=function(t,e,i){if(this.isASCII(t,e))return b(this.parseStringISO(t,e),i);var r=e-t,n="("+r+" byte)\n";r>(i/=2)&&(e=t+i);for(var s=t;si&&(n+="…"),n},t.prototype.parseOID=function(t,e,i){for(var r="",n=new v,s=0,o=t;oi)return b(r,i);n=new v,s=0}}return s>0&&(r+=".incomplete"),r},t}(),E=function(){function t(t,e,i,r,n){if(!(r instanceof w))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=i,this.tag=r,this.sub=n}return t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},t.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),i=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+i,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+i);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+i,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+i,t);case 6:return this.stream.parseOID(e,e+i,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return b(this.stream.parseStringUTF(e,e+i),t);case 18:case 19:case 20:case 21:case 22:case 26:return b(this.stream.parseStringISO(e,e+i),t);case 30:return b(this.stream.parseStringBMP(e,e+i),t);case 23:case 24:return this.stream.parseTime(e,e+i,23==this.tag.tagNumber)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var i=0,r=this.sub.length;i6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===i)return null;e=0;for(var r=0;r>6,this.tagConstructed=0!=(32&e),this.tagNumber=31&e,31==this.tagNumber){var i=new v;do{e=t.get(),i.mulAdd(128,127&e)}while(128&e);this.tagNumber=i.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},t}(),D=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],x=(1<<26)/D[D.length-1],R=function(){function i(t,e,i){null!=t&&("number"==typeof t?this.fromNumber(t,e,i):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return i.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var i;if(16==e)i=4;else if(8==e)i=3;else if(2==e)i=1;else if(32==e)i=5;else{if(4!=e)return this.toRadix(e);i=2}var r,n=(1<0)for(a>a)>0&&(s=!0,o=t(r));h>=0;)a>(a+=this.DB-i)):(r=this[h]>>(a-=i)&n,a<=0&&(a+=this.DB,--h)),r>0&&(s=!0),s&&(o+=t(r));return s?o:"0"},i.prototype.negate=function(){var t=I();return i.ZERO.subTo(this,t),t},i.prototype.abs=function(){return this.s<0?this.negate():this},i.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var i=this.t;if(0!=(e=i-t.t))return this.s<0?-e:e;for(;--i>=0;)if(0!=(e=this[i]-t[i]))return e;return 0},i.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+C(this[this.t-1]^this.s&this.DM)},i.prototype.mod=function(t){var e=I();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(i.ZERO)>0&&t.subTo(e,e),e},i.prototype.modPowInt=function(t,e){var i;return i=t<256||e.isEven()?new O(e):new A(e),this.exp(t,i)},i.prototype.clone=function(){var t=I();return this.copyTo(t),t},i.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<>24},i.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},i.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},i.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var i,r=this.DB-t*this.DB%8,n=0;if(t-- >0)for(r>r)!=(this.s&this.DM)>>r&&(e[n++]=i|this.s<=0;)r<8?(i=(this[t]&(1<>(r+=this.DB-8)):(i=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&i)&&(i|=-256),0==n&&(128&this.s)!=(128&i)&&++n,(n>0||i!=this.s)&&(e[n++]=i);return e},i.prototype.equals=function(t){return 0==this.compareTo(t)},i.prototype.min=function(t){return this.compareTo(t)<0?this:t},i.prototype.max=function(t){return this.compareTo(t)>0?this:t},i.prototype.and=function(t){var i=I();return this.bitwiseTo(t,e,i),i},i.prototype.or=function(t){var e=I();return this.bitwiseTo(t,n,e),e},i.prototype.xor=function(t){var e=I();return this.bitwiseTo(t,s,e),e},i.prototype.andNot=function(t){var e=I();return this.bitwiseTo(t,o,e),e},i.prototype.not=function(){for(var t=I(),e=0;e=this.t?0!=this.s:0!=(this[e]&1<1){var c=I();for(r.sqrTo(o[1],c);h<=u;)o[h]=I(),r.mulTo(c,o[h-2],o[h]),h+=2}var f,l,p=t.t-1,g=!0,d=I();for(n=C(t[p])-1;p>=0;){for(n>=a?f=t[p]>>n-a&u:(f=(t[p]&(1<0&&(f|=t[p-1]>>this.DB+n-a)),h=i;0==(1&f);)f>>=1,--h;if((n-=h)<0&&(n+=this.DB,--p),g)o[f].copyTo(s),g=!1;else{for(;h>1;)r.sqrTo(s,d),r.sqrTo(d,s),h-=2;h>0?r.sqrTo(s,d):(l=s,s=d,d=l),r.mulTo(d,o[f],s)}for(;p>=0&&0==(t[p]&1<=0?(r.subTo(n,r),e&&s.subTo(h,s),o.subTo(a,o)):(n.subTo(r,n),e&&h.subTo(s,h),a.subTo(o,a))}return 0!=n.compareTo(i.ONE)?i.ZERO:a.compareTo(t)>=0?a.subtract(t):a.signum()<0?(a.addTo(t,a),a.signum()<0?a.add(t):a):a},i.prototype.pow=function(t){return this.exp(t,new B)},i.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(e.compareTo(i)<0){var r=e;e=i,i=r}var n=e.getLowestSetBit(),s=i.getLowestSetBit();if(s<0)return e;for(n0&&(e.rShiftTo(s,e),i.rShiftTo(s,i));e.signum()>0;)(n=e.getLowestSetBit())>0&&e.rShiftTo(n,e),(n=i.getLowestSetBit())>0&&i.rShiftTo(n,i),e.compareTo(i)>=0?(e.subTo(i,e),e.rShiftTo(1,e)):(i.subTo(e,i),i.rShiftTo(1,i));return s>0&&i.lShiftTo(s,i),i},i.prototype.isProbablePrime=function(t){var e,i=this.abs();if(1==i.t&&i[0]<=D[D.length-1]){for(e=0;e=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},i.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},i.prototype.fromString=function(t,e){var r;if(16==e)r=4;else if(8==e)r=3;else if(256==e)r=8;else if(2==e)r=1;else if(32==e)r=5;else{if(4!=e)return void this.fromRadix(t,e);r=2}this.t=0,this.s=0;for(var n=t.length,s=!1,o=0;--n>=0;){var h=8==r?255&+t[n]:q(t,n);h<0?"-"==t.charAt(n)&&(s=!0):(s=!1,0==o?this[this.t++]=h:o+r>this.DB?(this[this.t-1]|=(h&(1<>this.DB-o):this[this.t-1]|=h<=this.DB&&(o-=this.DB))}8==r&&0!=(128&+t[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==t;)--this.t},i.prototype.dlShiftTo=function(t,e){var i;for(i=this.t-1;i>=0;--i)e[i+t]=this[i];for(i=t-1;i>=0;--i)e[i]=0;e.t=this.t+t,e.s=this.s},i.prototype.drShiftTo=function(t,e){for(var i=t;i=0;--h)e[h+s+1]=this[h]>>r|o,o=(this[h]&n)<=0;--h)e[h]=0;e[s]=o,e.t=this.t+s+1,e.s=this.s,e.clamp()},i.prototype.rShiftTo=function(t,e){e.s=this.s;var i=Math.floor(t/this.DB);if(i>=this.t)e.t=0;else{var r=t%this.DB,n=this.DB-r,s=(1<>r;for(var o=i+1;o>r;r>0&&(e[this.t-i-1]|=(this.s&s)<>=this.DB;if(t.t>=this.DB;r+=this.s}else{for(r+=this.s;i>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[i++]=this.DV+r:r>0&&(e[i++]=r),e.t=i,e.clamp()},i.prototype.multiplyTo=function(t,e){var r=this.abs(),n=t.abs(),s=r.t;for(e.t=s+n.t;--s>=0;)e[s]=0;for(s=0;s=0;)t[i]=0;for(i=0;i=e.DV&&(t[i+e.t]-=e.DV,t[i+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(i,e[i],t,2*i,0,1)),t.s=0,t.clamp()},i.prototype.divRemTo=function(t,e,r){var n=t.abs();if(!(n.t<=0)){var s=this.abs();if(s.t0?(n.lShiftTo(u,o),s.lShiftTo(u,r)):(n.copyTo(o),s.copyTo(r));var c=o.t,f=o[c-1];if(0!=f){var l=f*(1<1?o[c-2]>>this.F2:0),p=this.FV/l,g=(1<=0&&(r[r.t++]=1,r.subTo(y,r)),i.ONE.dlShiftTo(c,y),y.subTo(o,o);o.t=0;){var b=r[--v]==f?this.DM:Math.floor(r[v]*p+(r[v-1]+d)*g);if((r[v]+=o.am(0,b,r,m,0,c))0&&r.rShiftTo(u,r),h<0&&i.ZERO.subTo(r,r)}}},i.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},i.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},i.prototype.exp=function(t,e){if(t>4294967295||t<1)return i.ONE;var r=I(),n=I(),s=e.convert(this),o=C(t)-1;for(s.copyTo(r);--o>=0;)if(e.sqrTo(r,n),(t&1<0)e.mulTo(n,s,r);else{var h=r;r=n,n=h}return e.revert(r)},i.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},i.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),i=Math.pow(t,e),r=H(i),n=I(),s=I(),o="";for(this.divRemTo(r,n,s);n.signum()>0;)o=(i+s.intValue()).toString(t).substr(1)+o,n.divRemTo(r,n,s);return s.intValue().toString(t)+o},i.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var r=this.chunkSize(e),n=Math.pow(e,r),s=!1,o=0,h=0,a=0;a=r&&(this.dMultiply(n),this.dAddOffset(h,0),o=0,h=0))}o>0&&(this.dMultiply(Math.pow(e,o)),this.dAddOffset(h,0)),s&&i.ZERO.subTo(this,this)},i.prototype.fromNumber=function(t,e,r){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(i.ONE.shiftLeft(t-1),n,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(i.ONE.shiftLeft(t-1),this);else{var s=[],o=7&t;s.length=1+(t>>3),e.nextBytes(s),o>0?s[0]&=(1<>=this.DB;if(t.t>=this.DB;r+=this.s}else{for(r+=this.s;i>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[i++]=r:r<-1&&(e[i++]=this.DV+r),e.t=i,e.clamp()},i.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},i.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},i.prototype.multiplyLowerTo=function(t,e,i){var r=Math.min(this.t+t.t,e);for(i.s=0,i.t=r;r>0;)i[--r]=0;for(var n=i.t-this.t;r=0;)i[r]=0;for(r=Math.max(e-this.t,0);r0)if(0==e)i=this[0]%t;else for(var r=this.t-1;r>=0;--r)i=(e*i+this[r])%t;return i},i.prototype.millerRabin=function(t){var e=this.subtract(i.ONE),r=e.getLowestSetBit();if(r<=0)return!1;var n=e.shiftRight(r);(t=t+1>>1)>D.length&&(t=D.length);for(var s=I(),o=0;o0&&(i.rShiftTo(o,i),r.rShiftTo(o,r));var h=function(){(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),i.compareTo(r)>=0?(i.subTo(r,i),i.rShiftTo(1,i)):(r.subTo(i,r),r.rShiftTo(1,r)),i.signum()>0?setTimeout(h,0):(o>0&&r.lShiftTo(o,r),setTimeout((function(){e(r)}),0))};setTimeout(h,10)}},i.prototype.fromNumberAsync=function(t,e,r,s){if("number"==typeof e)if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(i.ONE.shiftLeft(t-1),n,this),this.isEven()&&this.dAddOffset(1,0);var o=this,h=function(){o.dAddOffset(2,0),o.bitLength()>t&&o.subTo(i.ONE.shiftLeft(t-1),o),o.isProbablePrime(e)?setTimeout((function(){s()}),0):setTimeout(h,0)};setTimeout(h,0)}else{var a=[],u=7&t;a.length=1+(t>>3),e.nextBytes(a),u>0?a[0]&=(1<=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),A=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=I();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;for(t[i=e+this.m.t]+=this.m.am(0,r,t,e,0,this.m.t);t[i]>=t.DV;)t[i]-=t.DV,t[++i]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),V=function(){function t(t){this.m=t,this.r2=I(),this.q3=I(),R.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=I();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function I(){return new R(null)}function N(t,e){return new R(t,e)}var P="undefined"!=typeof navigator;P&&"Microsoft Internet Explorer"==navigator.appName?(R.prototype.am=function(t,e,i,r,n,s){for(var o=32767&e,h=e>>15;--s>=0;){var a=32767&this[t],u=this[t++]>>15,c=h*a+u*o;n=((a=o*a+((32767&c)<<15)+i[r]+(1073741823&n))>>>30)+(c>>>15)+h*u+(n>>>30),i[r++]=1073741823&a}return n},T=30):P&&"Netscape"!=navigator.appName?(R.prototype.am=function(t,e,i,r,n,s){for(;--s>=0;){var o=e*this[t++]+i[r]+n;n=Math.floor(o/67108864),i[r++]=67108863&o}return n},T=26):(R.prototype.am=function(t,e,i,r,n,s){for(var o=16383&e,h=e>>14;--s>=0;){var a=16383&this[t],u=this[t++]>>14,c=h*a+u*o;n=((a=o*a+((16383&c)<<14)+i[r]+n)>>28)+(c>>14)+h*u,i[r++]=268435455&a}return n},T=28),R.prototype.DB=T,R.prototype.DM=(1<>>16)&&(t=e,i+=16),0!=(e=t>>8)&&(t=e,i+=8),0!=(e=t>>4)&&(t=e,i+=4),0!=(e=t>>2)&&(t=e,i+=2),0!=(e=t>>1)&&(t=e,i+=1),i}R.ZERO=H(0),R.ONE=H(1);var F,U,K=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,i,r;for(e=0;e<256;++e)this.S[e]=e;for(i=0,e=0;e<256;++e)i=i+this.S[e]+t[e%t.length]&255,r=this.S[e],this.S[e]=this.S[i],this.S[i]=r;this.i=0,this.j=0},t.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},t}(),k=null;if(null==k){k=[],U=0;var _=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues){var z=new Uint32Array(256);for(window.crypto.getRandomValues(z),_=0;_=256||U>=256)window.removeEventListener?window.removeEventListener("mousemove",G,!1):window.detachEvent&&window.detachEvent("onmousemove",G);else try{var e=t.x+t.y;k[U++]=255&e,Z+=1}catch(t){}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("mousemove",G,!1):window.attachEvent&&window.attachEvent("onmousemove",G))}function $(){if(null==F){for(F=new K;U<256;){var t=Math.floor(65536*Math.random());k[U++]=255&t}for(F.init(k),U=0;U0&&e.length>0?(this.n=N(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,i=function(t,e){if(e=0&&e>0;){var n=t.charCodeAt(r--);n<128?i[--e]=n:n>127&&n<2048?(i[--e]=63&n|128,i[--e]=n>>6|192):(i[--e]=63&n|128,i[--e]=n>>6&63|128,i[--e]=n>>12|224)}i[--e]=0;for(var s=new Y,o=[];e>2;){for(o[0]=0;0==o[0];)s.nextBytes(o);i[--e]=o[0]}return i[--e]=2,i[--e]=0,new R(i)}(t,e);if(null==i)return null;var r=this.doPublic(i);if(null==r)return null;for(var n=r.toString(16),s=n.length,o=0;o<2*e-s;o++)n="0"+n;return n},t.prototype.setPrivate=function(t,e,i){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=N(t,16),this.e=parseInt(e,16),this.d=N(i,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,i,r,n,s,o,h){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=N(t,16),this.e=parseInt(e,16),this.d=N(i,16),this.p=N(r,16),this.q=N(n,16),this.dmp1=N(s,16),this.dmq1=N(o,16),this.coeff=N(h,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var i=new Y,r=t>>1;this.e=parseInt(e,16);for(var n=new R(e,16);;){for(;this.p=new R(t-r,1,i),0!=this.p.subtract(R.ONE).gcd(n).compareTo(R.ONE)||!this.p.isProbablePrime(10););for(;this.q=new R(r,1,i),0!=this.q.subtract(R.ONE).gcd(n).compareTo(R.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var o=this.p.subtract(R.ONE),h=this.q.subtract(R.ONE),a=o.multiply(h);if(0==a.gcd(n).compareTo(R.ONE)){this.n=this.p.multiply(this.q),this.d=n.modInverse(a),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(h),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=N(t,16),i=this.doPrivate(e);return null==i?null:function(t,e){for(var i=t.toByteArray(),r=0;r=i.length)return null;for(var n="";++r191&&s<224?(n+=String.fromCharCode((31&s)<<6|63&i[r+1]),++r):(n+=String.fromCharCode((15&s)<<12|(63&i[r+1])<<6|63&i[r+2]),r+=2)}return n}(i,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,i){var r=new Y,n=t>>1;this.e=parseInt(e,16);var s=new R(e,16),o=this,h=function(){var e=function(){if(o.p.compareTo(o.q)<=0){var t=o.p;o.p=o.q,o.q=t}var e=o.p.subtract(R.ONE),r=o.q.subtract(R.ONE),n=e.multiply(r);0==n.gcd(s).compareTo(R.ONE)?(o.n=o.p.multiply(o.q),o.d=s.modInverse(n),o.dmp1=o.d.mod(e),o.dmq1=o.d.mod(r),o.coeff=o.q.modInverse(o.p),setTimeout((function(){i()}),0)):setTimeout(h,0)},a=function(){o.q=I(),o.q.fromNumberAsync(n,1,r,(function(){o.q.subtract(R.ONE).gcda(s,(function(t){0==t.compareTo(R.ONE)&&o.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(a,0)}))}))},u=function(){o.p=I(),o.p.fromNumberAsync(t-n,1,r,(function(){o.p.subtract(R.ONE).gcda(s,(function(t){0==t.compareTo(R.ONE)&&o.p.isProbablePrime(10)?setTimeout(a,0):setTimeout(u,0)}))}))};setTimeout(u,0)};setTimeout(h,0)},t.prototype.sign=function(t,e,i){var r=function(t,e){if(e15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+i).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},W.asn1.DERAbstractString=function(t){W.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},Q.lang.extend(W.asn1.DERAbstractString,W.asn1.ASN1Object),W.asn1.DERAbstractTime=function(t){W.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,i){var r=this.zeroPadding,n=this.localDateToUTC(t),s=String(n.getFullYear());"utc"==e&&(s=s.substr(2,2));var o=s+r(String(n.getMonth()+1),2)+r(String(n.getDate()),2)+r(String(n.getHours()),2)+r(String(n.getMinutes()),2)+r(String(n.getSeconds()),2);if(!0===i){var h=n.getMilliseconds();if(0!=h){var a=r(String(h),3);o=o+"."+(a=a.replace(/[0]+$/,""))}}return o+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,i,r,n,s){var o=new Date(Date.UTC(t,e-1,i,r,n,s,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},Q.lang.extend(W.asn1.DERAbstractTime,W.asn1.ASN1Object),W.asn1.DERAbstractStructured=function(t){W.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},Q.lang.extend(W.asn1.DERAbstractStructured,W.asn1.ASN1Object),W.asn1.DERBoolean=function(){W.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Q.lang.extend(W.asn1.DERBoolean,W.asn1.ASN1Object),W.asn1.DERInteger=function(t){W.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=W.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new R(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Q.lang.extend(W.asn1.DERInteger,W.asn1.ASN1Object),W.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=W.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}W.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7=2?(n[n.length]=s,s=0,o=0):s<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return n}(t):g.unarmor(t),n=E.decode(r);if(3===n.sub.length&&(n=n.sub[2].sub[0]),9===n.sub.length){e=n.sub[1].getHexStringValue(),this.n=N(e,16),i=n.sub[2].getHexStringValue(),this.e=parseInt(i,16);var s=n.sub[3].getHexStringValue();this.d=N(s,16);var o=n.sub[4].getHexStringValue();this.p=N(o,16);var h=n.sub[5].getHexStringValue();this.q=N(h,16);var a=n.sub[6].getHexStringValue();this.dmp1=N(a,16);var c=n.sub[7].getHexStringValue();this.dmq1=N(c,16);var f=n.sub[8].getHexStringValue();this.coeff=N(f,16)}else{if(2!==n.sub.length)return!1;if(n.sub[0].sub){var l=n.sub[1].sub[0];e=l.sub[0].getHexStringValue(),this.n=N(e,16),i=l.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else e=n.sub[0].getHexStringValue(),this.n=N(e,16),i=n.sub[1].getHexStringValue(),this.e=parseInt(i,16)}return!0}catch(t){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new W.asn1.DERInteger({int:0}),new W.asn1.DERInteger({bigint:this.n}),new W.asn1.DERInteger({int:this.e}),new W.asn1.DERInteger({bigint:this.d}),new W.asn1.DERInteger({bigint:this.p}),new W.asn1.DERInteger({bigint:this.q}),new W.asn1.DERInteger({bigint:this.dmp1}),new W.asn1.DERInteger({bigint:this.dmq1}),new W.asn1.DERInteger({bigint:this.coeff})]};return new W.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return f(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new W.asn1.DERSequence({array:[new W.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new W.asn1.DERNull]}),e=new W.asn1.DERSequence({array:[new W.asn1.DERInteger({bigint:this.n}),new W.asn1.DERInteger({int:this.e})]}),i=new W.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new W.asn1.DERSequence({array:[t,i]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return f(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(!t)return t;var i="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(i,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return(t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n")+"-----END RSA PRIVATE KEY-----"},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return(t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n")+"-----END PUBLIC KEY-----"},e.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(J),nt=i(155),st=void 0!==nt?null===(et=nt.env)||void 0===et?void 0:"3.3.1":void 0;const ot=function(){function t(t){void 0===t&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return t.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new rt(t)},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(l(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return f(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,i){try{return f(this.getKey().sign(t,e,i))}catch(t){return!1}},t.prototype.verify=function(t,e,i){try{return this.getKey().verify(t,l(e),i)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new rt,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version=st,t}()})(),r.default})()));
\ No newline at end of file
diff --git a/assets/map/100.png b/assets/map/100.png
new file mode 100644
index 0000000..2639bba
Binary files /dev/null and b/assets/map/100.png differ
diff --git a/assets/map/50.png b/assets/map/50.png
new file mode 100644
index 0000000..e67c5d0
Binary files /dev/null and b/assets/map/50.png differ
diff --git a/assets/map/c.png b/assets/map/c.png
new file mode 100644
index 0000000..23b2c8d
Binary files /dev/null and b/assets/map/c.png differ
diff --git a/assets/map/h.png b/assets/map/h.png
new file mode 100644
index 0000000..31cec4a
Binary files /dev/null and b/assets/map/h.png differ
diff --git a/assets/map/hh.png b/assets/map/hh.png
new file mode 100644
index 0000000..dc8c775
Binary files /dev/null and b/assets/map/hh.png differ
diff --git a/assets/map/jc.png b/assets/map/jc.png
new file mode 100644
index 0000000..38bbc8f
Binary files /dev/null and b/assets/map/jc.png differ
diff --git a/assets/map/l.png b/assets/map/l.png
new file mode 100644
index 0000000..165f498
Binary files /dev/null and b/assets/map/l.png differ
diff --git a/assets/map/ls.png b/assets/map/ls.png
new file mode 100644
index 0000000..fb06e6b
Binary files /dev/null and b/assets/map/ls.png differ
diff --git a/assets/tabbar/application.png b/assets/tabbar/application.png
new file mode 100644
index 0000000..03fc273
Binary files /dev/null and b/assets/tabbar/application.png differ
diff --git a/assets/tabbar/application_cur.png b/assets/tabbar/application_cur.png
new file mode 100644
index 0000000..c0bab46
Binary files /dev/null and b/assets/tabbar/application_cur.png differ
diff --git a/assets/tabbar/basics.png b/assets/tabbar/basics.png
new file mode 100644
index 0000000..f2ad80a
Binary files /dev/null and b/assets/tabbar/basics.png differ
diff --git a/assets/tabbar/basics_cur.png b/assets/tabbar/basics_cur.png
new file mode 100644
index 0000000..63b1965
Binary files /dev/null and b/assets/tabbar/basics_cur.png differ
diff --git a/assets/tabbar/my.png b/assets/tabbar/my.png
new file mode 100644
index 0000000..b5c45b8
Binary files /dev/null and b/assets/tabbar/my.png differ
diff --git a/assets/tabbar/my_cur.png b/assets/tabbar/my_cur.png
new file mode 100644
index 0000000..79d148a
Binary files /dev/null and b/assets/tabbar/my_cur.png differ
diff --git a/assets/tabbar/works.png b/assets/tabbar/works.png
new file mode 100644
index 0000000..d36d3ba
Binary files /dev/null and b/assets/tabbar/works.png differ
diff --git a/assets/tabbar/works_cur.png b/assets/tabbar/works_cur.png
new file mode 100644
index 0000000..0ac9ec8
Binary files /dev/null and b/assets/tabbar/works_cur.png differ
diff --git a/devtools_options.yaml b/devtools_options.yaml
new file mode 100644
index 0000000..fa0b357
--- /dev/null
+++ b/devtools_options.yaml
@@ -0,0 +1,3 @@
+description: This file stores settings for Dart & Flutter DevTools.
+documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states
+extensions:
diff --git a/ios/.gitignore b/ios/.gitignore
new file mode 100644
index 0000000..7a7f987
--- /dev/null
+++ b/ios/.gitignore
@@ -0,0 +1,34 @@
+**/dgph
+*.mode1v3
+*.mode2v3
+*.moved-aside
+*.pbxuser
+*.perspectivev3
+**/*sync/
+.sconsign.dblite
+.tags*
+**/.vagrant/
+**/DerivedData/
+Icon?
+**/Pods/
+**/.symlinks/
+profile
+xcuserdata
+**/.generated/
+Flutter/App.framework
+Flutter/Flutter.framework
+Flutter/Flutter.podspec
+Flutter/Generated.xcconfig
+Flutter/ephemeral/
+Flutter/app.flx
+Flutter/app.zip
+Flutter/flutter_assets/
+Flutter/flutter_export_environment.sh
+ServiceDefinitions.json
+Runner/GeneratedPluginRegistrant.*
+
+# Exceptions to above rules.
+!default.mode1v3
+!default.mode2v3
+!default.pbxuser
+!default.perspectivev3
diff --git a/ios/Flutter/AppFrameworkInfo.plist b/ios/Flutter/AppFrameworkInfo.plist
new file mode 100644
index 0000000..7c56964
--- /dev/null
+++ b/ios/Flutter/AppFrameworkInfo.plist
@@ -0,0 +1,26 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleExecutable
+ App
+ CFBundleIdentifier
+ io.flutter.flutter.app
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ App
+ CFBundlePackageType
+ FMWK
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1.0
+ MinimumOSVersion
+ 12.0
+
+
diff --git a/ios/Flutter/Debug.xcconfig b/ios/Flutter/Debug.xcconfig
new file mode 100644
index 0000000..ec97fc6
--- /dev/null
+++ b/ios/Flutter/Debug.xcconfig
@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
+#include "Generated.xcconfig"
diff --git a/ios/Flutter/Release.xcconfig b/ios/Flutter/Release.xcconfig
new file mode 100644
index 0000000..c4855bf
--- /dev/null
+++ b/ios/Flutter/Release.xcconfig
@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
+#include "Generated.xcconfig"
diff --git a/ios/Podfile b/ios/Podfile
new file mode 100644
index 0000000..e549ee2
--- /dev/null
+++ b/ios/Podfile
@@ -0,0 +1,43 @@
+# Uncomment this line to define a global platform for your project
+# platform :ios, '12.0'
+
+# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
+ENV['COCOAPODS_DISABLE_STATS'] = 'true'
+
+project 'Runner', {
+ 'Debug' => :debug,
+ 'Profile' => :release,
+ 'Release' => :release,
+}
+
+def flutter_root
+ generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
+ unless File.exist?(generated_xcode_build_settings_path)
+ raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
+ end
+
+ File.foreach(generated_xcode_build_settings_path) do |line|
+ matches = line.match(/FLUTTER_ROOT\=(.*)/)
+ return matches[1].strip if matches
+ end
+ raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
+end
+
+require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
+
+flutter_ios_podfile_setup
+
+target 'Runner' do
+ use_frameworks!
+
+ flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
+ target 'RunnerTests' do
+ inherit! :search_paths
+ end
+end
+
+post_install do |installer|
+ installer.pods_project.targets.each do |target|
+ flutter_additional_ios_build_settings(target)
+ end
+end
diff --git a/ios/Podfile.lock b/ios/Podfile.lock
new file mode 100644
index 0000000..999ffaa
--- /dev/null
+++ b/ios/Podfile.lock
@@ -0,0 +1,69 @@
+PODS:
+ - connectivity_plus (0.0.1):
+ - Flutter
+ - Flutter (1.0.0)
+ - image_picker_ios (0.0.1):
+ - Flutter
+ - mobile_scanner (7.0.0):
+ - Flutter
+ - FlutterMacOS
+ - package_info_plus (0.4.5):
+ - Flutter
+ - path_provider_foundation (0.0.1):
+ - Flutter
+ - FlutterMacOS
+ - photo_manager (3.7.1):
+ - Flutter
+ - FlutterMacOS
+ - shared_preferences_foundation (0.0.1):
+ - Flutter
+ - FlutterMacOS
+ - video_player_avfoundation (0.0.1):
+ - Flutter
+ - FlutterMacOS
+
+DEPENDENCIES:
+ - connectivity_plus (from `.symlinks/plugins/connectivity_plus/ios`)
+ - Flutter (from `Flutter`)
+ - image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)
+ - mobile_scanner (from `.symlinks/plugins/mobile_scanner/darwin`)
+ - package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
+ - path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
+ - photo_manager (from `.symlinks/plugins/photo_manager/ios`)
+ - shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
+ - video_player_avfoundation (from `.symlinks/plugins/video_player_avfoundation/darwin`)
+
+EXTERNAL SOURCES:
+ connectivity_plus:
+ :path: ".symlinks/plugins/connectivity_plus/ios"
+ Flutter:
+ :path: Flutter
+ image_picker_ios:
+ :path: ".symlinks/plugins/image_picker_ios/ios"
+ mobile_scanner:
+ :path: ".symlinks/plugins/mobile_scanner/darwin"
+ package_info_plus:
+ :path: ".symlinks/plugins/package_info_plus/ios"
+ path_provider_foundation:
+ :path: ".symlinks/plugins/path_provider_foundation/darwin"
+ photo_manager:
+ :path: ".symlinks/plugins/photo_manager/ios"
+ shared_preferences_foundation:
+ :path: ".symlinks/plugins/shared_preferences_foundation/darwin"
+ video_player_avfoundation:
+ :path: ".symlinks/plugins/video_player_avfoundation/darwin"
+
+SPEC CHECKSUMS:
+ connectivity_plus: cb623214f4e1f6ef8fe7403d580fdad517d2f7dd
+ Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
+ image_picker_ios: 7fe1ff8e34c1790d6fff70a32484959f563a928a
+ mobile_scanner: 9157936403f5a0644ca3779a38ff8404c5434a93
+ package_info_plus: af8e2ca6888548050f16fa2f1938db7b5a5df499
+ path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564
+ photo_manager: 1d80ae07a89a67dfbcae95953a1e5a24af7c3e62
+ shared_preferences_foundation: 9e1978ff2562383bd5676f64ec4e9aa8fa06a6f7
+ video_player_avfoundation: 2cef49524dd1f16c5300b9cd6efd9611ce03639b
+
+PODFILE CHECKSUM: 4305caec6b40dde0ae97be1573c53de1882a07e5
+
+COCOAPODS: 1.16.2
diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..804382b
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.pbxproj
@@ -0,0 +1,742 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 54;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
+ 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
+ D5BBE0FD0EAD05B450AEE37D /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D535373899AA9DD1E6E7511 /* Pods_RunnerTests.framework */; };
+ F6873A5EEA3A9CD4CC30B8F1 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F1EE4D2BDFD716FB80E3EB92 /* Pods_Runner.framework */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXContainerItemProxy section */
+ 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 97C146E61CF9000F007C117D /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 97C146ED1CF9000F007C117D;
+ remoteInfo = Runner;
+ };
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ );
+ name = "Embed Frameworks";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
+ 1D535373899AA9DD1E6E7511 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; };
+ 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
+ 71118A79D1B878EF92EF0C82 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
+ 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
+ 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
+ 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+ A56B7CF3BE602CF776E716CF /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; };
+ B32FA449F9E8B4334D347232 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
+ D892E03EBCFFE7AEA26BADEF /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
+ E32A50F59BB884B8EEEA48BB /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; };
+ EB96BCD274E74DA46B53876B /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; };
+ F1EE4D2BDFD716FB80E3EB92 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 97C146EB1CF9000F007C117D /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ F6873A5EEA3A9CD4CC30B8F1 /* Pods_Runner.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 9AD71197BA5C33D24636B03A /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ D5BBE0FD0EAD05B450AEE37D /* Pods_RunnerTests.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 331C8082294A63A400263BE5 /* RunnerTests */ = {
+ isa = PBXGroup;
+ children = (
+ 331C807B294A618700263BE5 /* RunnerTests.swift */,
+ );
+ path = RunnerTests;
+ sourceTree = "";
+ };
+ 9740EEB11CF90186004384FC /* Flutter */ = {
+ isa = PBXGroup;
+ children = (
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */,
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */,
+ );
+ name = Flutter;
+ sourceTree = "";
+ };
+ 97C146E51CF9000F007C117D = {
+ isa = PBXGroup;
+ children = (
+ 9740EEB11CF90186004384FC /* Flutter */,
+ 97C146F01CF9000F007C117D /* Runner */,
+ 97C146EF1CF9000F007C117D /* Products */,
+ 331C8082294A63A400263BE5 /* RunnerTests */,
+ D1B24C997F4A0101CD2D397B /* Pods */,
+ DB502A4E3FC0608DF67A6BF0 /* Frameworks */,
+ );
+ sourceTree = "";
+ };
+ 97C146EF1CF9000F007C117D /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146EE1CF9000F007C117D /* Runner.app */,
+ 331C8081294A63A400263BE5 /* RunnerTests.xctest */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 97C146F01CF9000F007C117D /* Runner */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146FA1CF9000F007C117D /* Main.storyboard */,
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */,
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
+ 97C147021CF9000F007C117D /* Info.plist */,
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
+ );
+ path = Runner;
+ sourceTree = "";
+ };
+ D1B24C997F4A0101CD2D397B /* Pods */ = {
+ isa = PBXGroup;
+ children = (
+ D892E03EBCFFE7AEA26BADEF /* Pods-Runner.debug.xcconfig */,
+ 71118A79D1B878EF92EF0C82 /* Pods-Runner.release.xcconfig */,
+ B32FA449F9E8B4334D347232 /* Pods-Runner.profile.xcconfig */,
+ E32A50F59BB884B8EEEA48BB /* Pods-RunnerTests.debug.xcconfig */,
+ EB96BCD274E74DA46B53876B /* Pods-RunnerTests.release.xcconfig */,
+ A56B7CF3BE602CF776E716CF /* Pods-RunnerTests.profile.xcconfig */,
+ );
+ path = Pods;
+ sourceTree = "";
+ };
+ DB502A4E3FC0608DF67A6BF0 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ F1EE4D2BDFD716FB80E3EB92 /* Pods_Runner.framework */,
+ 1D535373899AA9DD1E6E7511 /* Pods_RunnerTests.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 331C8080294A63A400263BE5 /* RunnerTests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
+ buildPhases = (
+ AB8878D34A77D2374C7913D0 /* [CP] Check Pods Manifest.lock */,
+ 331C807D294A63A400263BE5 /* Sources */,
+ 331C807F294A63A400263BE5 /* Resources */,
+ 9AD71197BA5C33D24636B03A /* Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 331C8086294A63A400263BE5 /* PBXTargetDependency */,
+ );
+ name = RunnerTests;
+ productName = RunnerTests;
+ productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */;
+ productType = "com.apple.product-type.bundle.unit-test";
+ };
+ 97C146ED1CF9000F007C117D /* Runner */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
+ buildPhases = (
+ DCD396AFC5D4EF84A1AB88FB /* [CP] Check Pods Manifest.lock */,
+ 9740EEB61CF901F6004384FC /* Run Script */,
+ 97C146EA1CF9000F007C117D /* Sources */,
+ 97C146EB1CF9000F007C117D /* Frameworks */,
+ 97C146EC1CF9000F007C117D /* Resources */,
+ 9705A1C41CF9048500538489 /* Embed Frameworks */,
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+ 9D4AB6A98949D5BF69896B41 /* [CP] Embed Pods Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Runner;
+ productName = Runner;
+ productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 97C146E61CF9000F007C117D /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ BuildIndependentTargetsInParallel = YES;
+ LastUpgradeCheck = 1510;
+ ORGANIZATIONNAME = "";
+ TargetAttributes = {
+ 331C8080294A63A400263BE5 = {
+ CreatedOnToolsVersion = 14.0;
+ TestTargetID = 97C146ED1CF9000F007C117D;
+ };
+ 97C146ED1CF9000F007C117D = {
+ CreatedOnToolsVersion = 7.3.1;
+ LastSwiftMigration = 1100;
+ };
+ };
+ };
+ buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
+ compatibilityVersion = "Xcode 9.3";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 97C146E51CF9000F007C117D;
+ productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 97C146ED1CF9000F007C117D /* Runner */,
+ 331C8080294A63A400263BE5 /* RunnerTests */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 331C807F294A63A400263BE5 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 97C146EC1CF9000F007C117D /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
+ isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
+ );
+ name = "Thin Binary";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
+ };
+ 9740EEB61CF901F6004384FC /* Run Script */ = {
+ isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Run Script";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
+ };
+ 9D4AB6A98949D5BF69896B41 /* [CP] Embed Pods Frameworks */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
+ );
+ name = "[CP] Embed Pods Frameworks";
+ outputFileListPaths = (
+ "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
+ showEnvVarsInLog = 0;
+ };
+ AB8878D34A77D2374C7913D0 /* [CP] Check Pods Manifest.lock */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+ "${PODS_ROOT}/Manifest.lock",
+ );
+ name = "[CP] Check Pods Manifest.lock";
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+ showEnvVarsInLog = 0;
+ };
+ DCD396AFC5D4EF84A1AB88FB /* [CP] Check Pods Manifest.lock */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+ "${PODS_ROOT}/Manifest.lock",
+ );
+ name = "[CP] Check Pods Manifest.lock";
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+ showEnvVarsInLog = 0;
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 331C807D294A63A400263BE5 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 97C146EA1CF9000F007C117D /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+ 331C8086294A63A400263BE5 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 97C146ED1CF9000F007C117D /* Runner */;
+ targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency section */
+
+/* Begin PBXVariantGroup section */
+ 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C146FB1CF9000F007C117D /* Base */,
+ );
+ name = Main.storyboard;
+ sourceTree = "";
+ };
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C147001CF9000F007C117D /* Base */,
+ );
+ name = LaunchScreen.storyboard;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 249021D3217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 12.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Profile;
+ };
+ 249021D4217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_IDENTITY = "Apple Development";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ DEVELOPMENT_TEAM = 8AKCJ9LW7D;
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.zhuoyun.qhdprevention.qhdPrevention;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Profile;
+ };
+ 331C8088294A63A400263BE5 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = E32A50F59BB884B8EEEA48BB /* Pods-RunnerTests.debug.xcconfig */;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ DEVELOPMENT_TEAM = 8AKCJ9LW7D;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.zhuoyun.qhdprevention.qhdPrevention.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Debug;
+ };
+ 331C8089294A63A400263BE5 /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = EB96BCD274E74DA46B53876B /* Pods-RunnerTests.release.xcconfig */;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ DEVELOPMENT_TEAM = 8AKCJ9LW7D;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.zhuoyun.qhdprevention.qhdPrevention.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Release;
+ };
+ 331C808A294A63A400263BE5 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = A56B7CF3BE602CF776E716CF /* Pods-RunnerTests.profile.xcconfig */;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ DEVELOPMENT_TEAM = 8AKCJ9LW7D;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = com.zhuoyun.qhdprevention.qhdPrevention.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Profile;
+ };
+ 97C147031CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 12.0;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 97C147041CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 12.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 97C147061CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_IDENTITY = "Apple Development";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ DEVELOPMENT_TEAM = 8AKCJ9LW7D;
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.zhuoyun.qhdprevention.qhdPrevention;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Debug;
+ };
+ 97C147071CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_IDENTITY = "Apple Development";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ DEVELOPMENT_TEAM = 8AKCJ9LW7D;
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.zhuoyun.qhdprevention.qhdPrevention;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 331C8088294A63A400263BE5 /* Debug */,
+ 331C8089294A63A400263BE5 /* Release */,
+ 331C808A294A63A400263BE5 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147031CF9000F007C117D /* Debug */,
+ 97C147041CF9000F007C117D /* Release */,
+ 249021D3217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147061CF9000F007C117D /* Debug */,
+ 97C147071CF9000F007C117D /* Release */,
+ 249021D4217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 97C146E61CF9000F007C117D /* Project object */;
+}
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..919434a
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
new file mode 100644
index 0000000..15cada4
--- /dev/null
+++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,99 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..21a3cc1
--- /dev/null
+++ b/ios/Runner.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
diff --git a/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift
new file mode 100644
index 0000000..6266644
--- /dev/null
+++ b/ios/Runner/AppDelegate.swift
@@ -0,0 +1,13 @@
+import Flutter
+import UIKit
+
+@main
+@objc class AppDelegate: FlutterAppDelegate {
+ override func application(
+ _ application: UIApplication,
+ didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
+ ) -> Bool {
+ GeneratedPluginRegistrant.register(with: self)
+ return super.application(application, didFinishLaunchingWithOptions: launchOptions)
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 0000000..d36b1fa
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,122 @@
+{
+ "images" : [
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "83.5x83.5",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-83.5x83.5@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "1024x1024",
+ "idiom" : "ios-marketing",
+ "filename" : "Icon-App-1024x1024@1x.png",
+ "scale" : "1x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
new file mode 100644
index 0000000..dc9ada4
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
new file mode 100644
index 0000000..7353c41
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
new file mode 100644
index 0000000..797d452
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
new file mode 100644
index 0000000..6ed2d93
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
new file mode 100644
index 0000000..4cd7b00
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
new file mode 100644
index 0000000..fe73094
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
new file mode 100644
index 0000000..321773c
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
new file mode 100644
index 0000000..797d452
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
new file mode 100644
index 0000000..502f463
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
new file mode 100644
index 0000000..0ec3034
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
new file mode 100644
index 0000000..0ec3034
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
new file mode 100644
index 0000000..e9f5fea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
new file mode 100644
index 0000000..84ac32a
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
new file mode 100644
index 0000000..8953cba
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
new file mode 100644
index 0000000..0467bf1
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
new file mode 100644
index 0000000..0bedcf2
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
@@ -0,0 +1,23 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@3x.png",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
new file mode 100644
index 0000000..89c2725
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
@@ -0,0 +1,5 @@
+# Launch Screen Assets
+
+You can customize the launch screen with your own desired assets by replacing the image files in this directory.
+
+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.
\ No newline at end of file
diff --git a/ios/Runner/Base.lproj/LaunchScreen.storyboard b/ios/Runner/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 0000000..f2e259c
--- /dev/null
+++ b/ios/Runner/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner/Base.lproj/Main.storyboard b/ios/Runner/Base.lproj/Main.storyboard
new file mode 100644
index 0000000..f3c2851
--- /dev/null
+++ b/ios/Runner/Base.lproj/Main.storyboard
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
new file mode 100644
index 0000000..7b0ffc3
--- /dev/null
+++ b/ios/Runner/Info.plist
@@ -0,0 +1,78 @@
+
+
+
+
+ CADisableMinimumFrameDurationOnPhone
+
+ CFBundleDisplayName
+ Qhd Prevention
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ qhd_prevention
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(FLUTTER_BUILD_NAME)
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ LSRequiresIPhoneOS
+
+ NSAppTransportSecurity
+
+ NSAllowsArbitraryLoads
+
+
+ NSBluetoothAlwaysUsageDescription
+ app需要蓝牙权限连接设备
+ NSCameraUsageDescription
+ app需要相机权限来扫描二维码
+ NSContactsUsageDescription
+ app需要通讯录权限添加好友
+ NSHealthShareUsageDescription
+ app需要读取健康数据
+ NSHealthUpdateUsageDescription
+ app需要写入健康数据
+ NSLocalNetworkUsageDescription
+ app需要发现本地网络设备
+ NSLocationAlwaysAndWhenInUseUsageDescription
+ app需要后台定位以实现持续跟踪
+ NSLocationWhenInUseUsageDescription
+ app需要定位权限来提供附近服务
+ NSMicrophoneUsageDescription
+ app需要麦克风权限进行语音通话
+ NSMotionUsageDescription
+ app需要访问运动数据统计步数
+ NSPhotoLibraryAddUsageDescription
+ app需要保存图片到相册
+ NSPhotoLibraryUsageDescription
+ app需要访问相册以上传图片
+ NSUserNotificationsUsageDescription
+ app需要发送通知提醒重要信息
+ UIApplicationSupportsIndirectInputEvents
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIMainStoryboardFile
+ Main
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+
+
diff --git a/ios/Runner/Runner-Bridging-Header.h b/ios/Runner/Runner-Bridging-Header.h
new file mode 100644
index 0000000..308a2a5
--- /dev/null
+++ b/ios/Runner/Runner-Bridging-Header.h
@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"
diff --git a/ios/RunnerTests/RunnerTests.swift b/ios/RunnerTests/RunnerTests.swift
new file mode 100644
index 0000000..86a7c3b
--- /dev/null
+++ b/ios/RunnerTests/RunnerTests.swift
@@ -0,0 +1,12 @@
+import Flutter
+import UIKit
+import XCTest
+
+class RunnerTests: XCTestCase {
+
+ func testExample() {
+ // If you add code to the Runner application, consider adding tests here.
+ // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
+ }
+
+}
diff --git a/lib/Model/list_model.dart b/lib/Model/list_model.dart
new file mode 100644
index 0000000..f1abb98
--- /dev/null
+++ b/lib/Model/list_model.dart
@@ -0,0 +1,6 @@
+/// 清单检查记录
+class RecordCheckModel {
+ final String title;
+ final String time;
+ RecordCheckModel(this.title, this.time);
+}
\ No newline at end of file
diff --git a/lib/customWidget/ItemWidgetFactory.dart b/lib/customWidget/ItemWidgetFactory.dart
new file mode 100644
index 0000000..0d1235b
--- /dev/null
+++ b/lib/customWidget/ItemWidgetFactory.dart
@@ -0,0 +1,357 @@
+import 'package:flutter/material.dart';
+
+import '../tools/tools.dart';
+
+/// 自定义组件
+class ListItemFactory {
+ /// 类型1:横向spaceBetween布局两个文本加按钮
+ static Widget createRowSpaceBetweenItem({
+ required String leftText,
+ required String rightText,
+ double verticalPadding = 10,
+ double horizontalPadding = 0,
+ Color textColor = Colors.black,
+ bool isRight = false,
+ }) {
+ return Padding(
+ padding: EdgeInsets.symmetric(
+ vertical: verticalPadding,
+ horizontal: horizontalPadding,
+ ),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Text(
+ leftText,
+ style: TextStyle(
+ fontSize: 15,
+ fontWeight: FontWeight.bold,
+ color: textColor,
+ ),
+ ),
+ if (isRight)
+ Row(
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ Text(
+ rightText,
+ style: TextStyle(fontSize: 15, color: Colors.grey),
+ ),
+ SizedBox(width: 2,),
+ Icon(Icons.arrow_forward_ios_rounded, color: Colors.black45, size: 15),
+ ],
+ )
+ else
+ Text(rightText, style: TextStyle(fontSize: 15, color: Colors.grey)),
+ ],
+ ),
+ );
+ }
+
+ ///类型2:上下布局两个文本(自适应高度)
+ static Widget createColumnTextItem({
+ required String topText,
+ required String bottomText,
+ double verticalPadding = 15,
+ double horizontalPadding = 0,
+ }) {
+ return Padding(
+ padding: EdgeInsets.symmetric(
+ vertical: verticalPadding,
+ horizontal: horizontalPadding,
+ ),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ Text(
+ topText,
+ style: TextStyle(
+ fontSize: 15,
+ fontWeight: FontWeight.bold,
+ color: Colors.black,
+ ),
+ ),
+ const SizedBox(height: 5),
+ Text(
+ bottomText,
+ style: TextStyle(fontSize: 15, color: Colors.grey),
+ softWrap: true,
+ maxLines: null, // 允许无限行数
+ ),
+ ],
+ ),
+ );
+ }
+
+ /// 类型3:文本和图片上下布局
+ static Widget createTextImageItem({
+ required String text,
+ required List imageUrls,
+ double imageHeight = 90,
+ double verticalPadding = 10,
+ double horizontalPadding = 0,
+ // 点击图片时回调,index 为被点击图片的下标
+ void Function(int index)? onImageTapped,
+ }) {
+ return Padding(
+ padding: EdgeInsets.symmetric(
+ vertical: verticalPadding,
+ horizontal: horizontalPadding,
+ ),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
+ text,
+ style: const TextStyle(
+ fontSize: 15,
+ fontWeight: FontWeight.bold,
+ color: Colors.black,
+ ),
+ ),
+ const SizedBox(height: 10),
+ Wrap(
+ spacing: 8, // 水平间距
+ runSpacing: 8, // 垂直间距
+ children: List.generate(imageUrls.length, (i) {
+ final url = imageUrls[i];
+ Widget img;
+ if (url.startsWith('http')) {
+ img = Image.network(
+ url,
+ height: imageHeight,
+ width: imageHeight * 3 / 2,
+ fit: BoxFit.cover,
+ );
+ } else {
+ img = Image.asset(
+ url,
+ height: imageHeight,
+ width: imageHeight * 3 / 2,
+ fit: BoxFit.cover,
+ );
+ }
+ return GestureDetector(
+ onTap: () {
+ if (onImageTapped != null) onImageTapped(i);
+ },
+ child: ClipRRect(
+ borderRadius: BorderRadius.circular(4),
+ child: img,
+ ),
+ );
+ }),
+ ),
+ ],
+ ),
+ );
+ }
+ /// 类型6:文本和视频上下布局
+
+ static Widget createTextVideoItem({
+ required String text,
+ required String videoUrl,
+ double videoHeight = 90,
+ double verticalPadding = 10,
+ double horizontalPadding = 0,
+ VoidCallback? onVideoTapped,
+ }) {
+ return Padding(
+ padding: EdgeInsets.symmetric(
+ vertical: verticalPadding,
+ horizontal: horizontalPadding,
+ ),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
+ text,
+ style: const TextStyle(
+ fontSize: 15,
+ fontWeight: FontWeight.bold,
+ color: Colors.black,
+ ),
+ ),
+ const SizedBox(height: 10),
+ GestureDetector(
+ onTap: onVideoTapped,
+ child: Container(
+ height: videoHeight,
+ width: videoHeight * 3 / 2,
+ decoration: BoxDecoration(
+ color: Colors.grey[300],
+ borderRadius: BorderRadius.circular(4),
+ ),
+ child: const Center(
+ child: Icon(
+ Icons.play_circle_outline,
+ size: 40,
+ color: Colors.white,
+ ),
+ ),
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+
+
+ ///类型4:一个文本(自适应高度)
+ static Widget createAloneTextItem({
+ required String text,
+ double verticalPadding = 10,
+ double horizontalPadding = 0,
+ }) {
+ return Padding(
+ padding: EdgeInsets.symmetric(
+ vertical: verticalPadding,
+ horizontal: horizontalPadding,
+ ),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ Text(
+ text,
+ style: TextStyle(fontSize: 15, color: Colors.grey),
+ softWrap: true,
+ maxLines: null, // 允许无限行数
+ ),
+ ],
+ ),
+ );
+ }
+
+ /// 分类头部
+ static Widget createYesNoSection({
+ required String title,
+ required String yesLabel,
+ required String noLabel,
+ required bool groupValue,
+ required ValueChanged onChanged,
+ double verticalPadding = 15,
+ double horizontalPadding = 10,
+ }) {
+ return Padding(
+ padding: EdgeInsets.only(top: 0, right: horizontalPadding, left: horizontalPadding, bottom: verticalPadding),
+ child: Container(
+ padding: EdgeInsets.symmetric(horizontal: 10),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(5),
+ ),
+ child: Row(
+ children: [
+ Expanded(
+ child: Text(
+ title,
+ style: TextStyle(
+ fontSize: 15,
+ fontWeight: FontWeight.bold,
+ color: Colors.black,
+ ),
+ ),
+ ),
+ Row(
+ children: [
+ Row(
+ children: [
+ Radio(
+ activeColor: Colors.blue,
+ value: true,
+ groupValue: groupValue,
+ onChanged: (val) => onChanged(val!),
+ ),
+ Text(yesLabel),
+ ],
+ ),
+ const SizedBox(width: 16),
+ Row(
+ children: [
+ Radio(
+ activeColor: Colors.blue,
+ value: false,
+ groupValue: groupValue,
+ onChanged: (val) => onChanged(val!),
+ ),
+ Text(noLabel),
+ ],
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+ /// 列表标题头(蓝色标识+文字)
+ static Widget createBuildSimpleSection(String title) {
+ return Container(
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(8),
+ ),
+ child: Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 10),
+ child: Row(
+ children: [
+ Container(width: 3, height: 15, color: Colors.blue),
+ const SizedBox(width: 8),
+ Text(
+ title,
+ style: const TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+
+ /// 扩展项(根据需求自定义)
+ static Widget createCustomItem({
+ required Widget child,
+ double verticalPadding = 15,
+ double horizontalPadding = 0,
+ }) {
+ return Padding(
+ padding: EdgeInsets.symmetric(
+ vertical: verticalPadding,
+ horizontal: horizontalPadding,
+ ),
+ child: child,
+ );
+ }
+ /// 标题加输入框上下排列
+ static Widget createBuildMultilineInput(
+ String label,
+ String hint,
+ TextEditingController controller,
+ ) {
+ return Container(
+ height: 130,
+ padding: const EdgeInsets.only(top: 8),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ HhTextStyleUtils.mainTitle(label, fontSize: 15),
+ const SizedBox(height: 8),
+ Expanded(
+ child: TextField(
+ controller: controller,
+ keyboardType: TextInputType.multiline,
+ maxLines: null,
+ expands: true,
+ style: const TextStyle(fontSize: 15),
+ decoration: InputDecoration(
+ hintText: hint,
+ border: InputBorder.none,
+ ),
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+}
diff --git a/lib/customWidget/bottom_picker.dart b/lib/customWidget/bottom_picker.dart
new file mode 100644
index 0000000..11841e0
--- /dev/null
+++ b/lib/customWidget/bottom_picker.dart
@@ -0,0 +1,83 @@
+import 'package:flutter/material.dart';
+import 'package:flutter/cupertino.dart';
+
+/// 通用底部弹窗选择器
+/// Example:
+/// ```dart
+/// final choice = await BottomPicker.show(
+/// context,
+/// items: ['选项1', '选项2', '选项3'],
+/// itemBuilder: (item) => Text(item, textAlign: TextAlign.center),
+/// initialIndex: 1,
+/// );
+/// if (choice != null) {
+/// // 用户点击确定并选择了 choice
+/// }
+/// ```
+class BottomPicker {
+ /// 显示底部选择器弹窗
+ ///
+ /// [items]: 选项列表
+ /// [itemBuilder]: 每个选项的展示 Widget
+ /// [initialIndex]: 初始选中索引
+ /// [itemExtent]: 列表行高
+ /// [height]: 弹窗总高度
+ static Future show(
+ BuildContext context, {
+ required List items,
+ required Widget Function(T item) itemBuilder,
+ int initialIndex = 0,
+ double itemExtent = 40.0,
+ double height = 250,
+ }) {
+ // 当前选中项
+ T selected = items[initialIndex];
+
+ return showModalBottomSheet(
+ context: context,
+ backgroundColor: Colors.white,
+ shape: const RoundedRectangleBorder(
+ borderRadius: BorderRadius.vertical(top: Radius.circular(12)),
+ ),
+ builder: (ctx) {
+ return SizedBox(
+ height: height,
+ child: Column(
+ children: [
+ // 按钮行
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ TextButton(
+ onPressed: () => Navigator.of(ctx).pop(),
+ child: const Text('取消'),
+ ),
+ TextButton(
+ onPressed: () => Navigator.of(ctx).pop(selected),
+ child: const Text('确定'),
+ ),
+ ],
+ ),
+ ),
+ const Divider(height: 1),
+ // 滚动选择器
+ Expanded(
+ child: CupertinoPicker(
+ scrollController:
+ FixedExtentScrollController(initialItem: initialIndex),
+ itemExtent: 30,
+ onSelectedItemChanged: (index) {
+ selected = items[index];
+ },
+ children: items.map(itemBuilder).toList(),
+ ),
+ ),
+ ],
+ ),
+ );
+ },
+ );
+ }
+}
diff --git a/lib/customWidget/custom_button.dart b/lib/customWidget/custom_button.dart
new file mode 100644
index 0000000..f41e432
--- /dev/null
+++ b/lib/customWidget/custom_button.dart
@@ -0,0 +1,50 @@
+import 'package:flutter/material.dart';
+
+/// 自定义默认按钮
+class CustomButton extends StatelessWidget {
+ final String text; // 按钮文字
+ final Color backgroundColor; // 按钮背景色
+ final double borderRadius; // 圆角半径(默认5)
+ final VoidCallback? onPressed; // 点击事件回调
+ final EdgeInsetsGeometry? padding; // 内边距
+ final EdgeInsetsGeometry? margin; // 外边距
+ final double? height; // 按钮高度
+ final TextStyle? textStyle; // 文字样式
+
+ const CustomButton({
+ super.key,
+ required this.text,
+ required this.backgroundColor,
+ this.borderRadius = 5.0,
+ this.onPressed,
+ this.padding,
+ this.margin,
+ this.height,
+ this.textStyle,
+ });
+
+ @override
+ Widget build(BuildContext context) {
+ return GestureDetector(
+ onTap: onPressed,
+ child: Container(
+ height: height ?? 50, // 默认高度50
+ padding: padding ?? const EdgeInsets.all(8), // 默认内边距
+ margin: margin ?? const EdgeInsets.symmetric(horizontal: 8), // 默认外边距
+ decoration: BoxDecoration(
+ borderRadius: BorderRadius.circular(borderRadius),
+ color: backgroundColor,
+ ),
+ child: Center(
+ child: Text(
+ text,
+ style: textStyle ?? const TextStyle(
+ color: Colors.white,
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+ ),
+ ),
+ );
+ }
+}
\ No newline at end of file
diff --git a/lib/customWidget/danner_repain_item.dart b/lib/customWidget/danner_repain_item.dart
new file mode 100644
index 0000000..d22be3b
--- /dev/null
+++ b/lib/customWidget/danner_repain_item.dart
@@ -0,0 +1,147 @@
+import 'package:flutter/material.dart';
+import '../tools/tools.dart';
+
+/// 通用列表卡片组件:
+/// - 两两为一组,优先尝试同一行显示左右两列并左/右对齐;
+/// - 如放不下,则自动拆成两行,上行左对齐,下行右对齐。
+class DannerRepainItem extends StatelessWidget {
+ final String title;
+ final List details;
+ final bool showBottomTags;
+ final List bottomTags;
+ final bool showTitleIcon;
+
+ const DannerRepainItem({
+ Key? key,
+ required this.title,
+ required this.details,
+ this.showBottomTags = false,
+ this.showTitleIcon = true,
+ this.bottomTags = const [],
+ }) : super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ return Padding(
+ padding: const EdgeInsets.only(left: 15, right: 15, bottom: 15),
+ child: Container(
+ decoration: const BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.all(Radius.circular(5)),
+ ),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.stretch,
+ children: [
+ // — 标题行 —
+ Padding(
+ padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 15),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Row(children: [
+ if (showTitleIcon)
+ const Icon(Icons.star_rate_sharp, color: Colors.green, size: 18),
+ SizedBox(width: showTitleIcon ? 5 : 0),
+ Text(title, style: const TextStyle(fontSize: 14)),
+ ]),
+ const Icon(Icons.arrow_forward_ios_rounded, color: Colors.grey, size: 15),
+ ],
+ ),
+ ),
+ const Divider(height: 1),
+
+ // — 详情区:动态两列/换行 —
+ Padding(
+ padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 15),
+ child: LayoutBuilder(builder: (context, constraints) {
+ // 间距:你可以根据设计随意调整
+ const double horizontalGap = 20;
+ const double verticalGap = 5;
+
+ List rows = [];
+ for (int i = 0; i < details.length; i += 2) {
+ final left = details[i];
+ final right = (i + 1 < details.length) ? details[i + 1] : '';
+
+ // 测量文字宽度
+ final leftPainter = TextPainter(
+ text: TextSpan(text: left, style: HhTextStyleUtils.secondaryTitleStyle),
+ maxLines: 1,
+ textDirection: TextDirection.ltr,
+ )..layout();
+ final rightPainter = TextPainter(
+ text: TextSpan(text: right, style: HhTextStyleUtils.secondaryTitleStyle),
+ maxLines: 1,
+ textDirection: TextDirection.ltr,
+ )..layout();
+
+ final canFitOneLine = right.isNotEmpty &&
+ (leftPainter.width + horizontalGap + rightPainter.width)
+ <= constraints.maxWidth;
+
+ if (right.isNotEmpty && canFitOneLine) {
+ // 同行显示,左右对齐
+ rows.add(Padding(
+ padding: EdgeInsets.only(bottom: verticalGap),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ _DetailText(left),
+ _DetailText(right),
+ ],
+ ),
+ ));
+ } else {
+ // 拆为两行
+ rows.add(Padding(
+ padding: EdgeInsets.only(bottom: verticalGap),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.stretch,
+ children: [
+ // 上行:左对齐
+ _DetailText(left),
+ if (right.isNotEmpty)
+ // 下行:右对齐
+ Align(
+ alignment: Alignment.centerRight,
+ child: _DetailText(right),
+ ),
+ ],
+ ),
+ ));
+ }
+ }
+
+ return Column(children: rows);
+ }),
+ ),
+
+ // — 底部标签区 —
+ if (showBottomTags && bottomTags.isNotEmpty)
+ Padding(
+ padding: const EdgeInsets.only(left: 15, right: 15, bottom: 15),
+ child: Wrap(spacing: 5, runSpacing: 5, children: bottomTags),
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+}
+
+/// Detail 文本封装:
+/// 默认一行不换行;若超出则让整个组件撑宽,由外层判断拆行。
+class _DetailText extends StatelessWidget {
+ final String text;
+ const _DetailText(this.text, {Key? key}) : super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ return Text(
+ text,
+ style: HhTextStyleUtils.secondaryTitleStyle,
+ softWrap: false,
+ overflow: TextOverflow.visible,
+ );
+ }
+}
diff --git a/lib/customWidget/date_picker_dialog.dart b/lib/customWidget/date_picker_dialog.dart
new file mode 100644
index 0000000..f7f25d0
--- /dev/null
+++ b/lib/customWidget/date_picker_dialog.dart
@@ -0,0 +1,168 @@
+import 'package:flutter/material.dart';
+import 'package:intl/intl.dart';
+
+class HDatePickerDialog extends StatefulWidget {
+ final DateTime initialDate;
+ final VoidCallback onCancel;
+ final ValueChanged onConfirm;
+
+ const HDatePickerDialog({
+ Key? key,
+ required this.initialDate,
+ required this.onCancel,
+ required this.onConfirm,
+ }) : super(key: key);
+
+ @override
+ _HDatePickerDialogState createState() => _HDatePickerDialogState();
+}
+
+class _HDatePickerDialogState extends State {
+ late DateTime _displayedMonth;
+ late DateTime _selectedDate;
+
+ @override
+ void initState() {
+ super.initState();
+ _selectedDate = widget.initialDate;
+ _displayedMonth = DateTime(widget.initialDate.year, widget.initialDate.month);
+ }
+
+ void _prevMonth() {
+ setState(() {
+ _displayedMonth = DateTime(_displayedMonth.year, _displayedMonth.month - 1);
+ });
+ }
+
+ void _nextMonth() {
+ setState(() {
+ _displayedMonth = DateTime(_displayedMonth.year, _displayedMonth.month + 1);
+ });
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ final daysInMonth = DateUtils.getDaysInMonth(_displayedMonth.year, _displayedMonth.month);
+ final firstWeekday = DateTime(_displayedMonth.year, _displayedMonth.month, 1).weekday;
+
+ return GestureDetector(
+ onTap: widget.onCancel,
+ child: Material(
+ color: Colors.black54,
+ child: Center(
+ child: GestureDetector(
+ onTap: () {}, // 拦截点击
+ child: Container(
+ width: 320,
+ padding: const EdgeInsets.all(16),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(8),
+ ),
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ // 顶部显示选中日期
+ Text(
+ DateFormat('yyyy-MM-dd').format(_selectedDate),
+ style: const TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
+ ),
+ const SizedBox(height: 16),
+
+ // 月份选择
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ IconButton(
+ icon: const Icon(Icons.chevron_left),
+ onPressed: _prevMonth,
+ ),
+ Text(
+ DateFormat('yyyy 年 MM 月').format(_displayedMonth),
+ style: const TextStyle(fontSize: 16),
+ ),
+ IconButton(
+ icon: const Icon(Icons.chevron_right),
+ onPressed: _nextMonth,
+ ),
+ ],
+ ),
+
+ // 星期标题
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceAround,
+ children: ['一', '二', '三', '四', '五', '六', '日']
+ .map((d) => Expanded(
+ child: Center(child: Text(d)),
+ ))
+ .toList(),
+ ),
+ SizedBox(height: 10,),
+ // 日历网格
+ GridView.builder(
+ shrinkWrap: true,
+ physics: const NeverScrollableScrollPhysics(),
+ gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
+ crossAxisCount: 7,
+ childAspectRatio: 1.2,
+ crossAxisSpacing: 4,
+ mainAxisSpacing: 4,
+ ),
+ itemCount: daysInMonth + firstWeekday - 1,
+ itemBuilder: (context, index) {
+ if (index < firstWeekday - 1) {
+ return const SizedBox();
+ }
+ final day = index - firstWeekday + 2;
+ final date = DateTime(_displayedMonth.year, _displayedMonth.month, day);
+ final isSelected = DateUtils.isSameDay(date, _selectedDate);
+
+ return GestureDetector(
+ onTap: () {
+ setState(() {
+ _selectedDate = date;
+ });
+ },
+ child: Container(
+ decoration: BoxDecoration(
+ color: isSelected ? Theme.of(context).primaryColor : null,
+ shape: BoxShape.circle,
+ ),
+ child: Center(
+ child: Text(
+ '$day',
+ style: TextStyle(
+ color: isSelected ? Colors.white : Colors.black87,
+ ),
+ ),
+ ),
+ ),
+ );
+ },
+ ),
+
+ const SizedBox(height: 16),
+
+ // 按钮
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceEvenly,
+ children: [
+ TextButton(
+ onPressed: widget.onCancel,
+ child: const Text('取消'),
+ ),
+ ElevatedButton(
+ onPressed: () => widget.onConfirm(_selectedDate),
+ child: const Text('确定'),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ ),
+ );
+ }
+}
diff --git a/lib/customWidget/department_picker.dart b/lib/customWidget/department_picker.dart
new file mode 100644
index 0000000..98f1d39
--- /dev/null
+++ b/lib/customWidget/department_picker.dart
@@ -0,0 +1,152 @@
+import 'package:flutter/material.dart';
+
+class Category {
+ final String id;
+ final String title;
+ final List children;
+
+ Category({
+ required this.id,
+ required this.title,
+ this.children = const [],
+ });
+}
+
+class DepartmentPicker extends StatefulWidget {
+ final List data;
+ final String? initialSelectedId;
+ final Set? initialExpandedSet;
+ final ValueChanged onSelected;
+
+ const DepartmentPicker({
+ Key? key,
+ required this.data,
+ this.initialSelectedId,
+ this.initialExpandedSet,
+ required this.onSelected,
+ }) : super(key: key);
+
+ @override
+ _DepartmentPickerState createState() => _DepartmentPickerState();
+}
+
+class _DepartmentPickerState extends State {
+ late String? selectedId;
+ late Set expandedSet;
+
+ @override
+ void initState() {
+ super.initState();
+ selectedId = widget.initialSelectedId;
+ expandedSet = Set.from(widget.initialExpandedSet ?? {});
+ }
+
+ Widget _buildRow(Category cat, int indent) {
+ final bool hasChildren = cat.children.isNotEmpty;
+ final bool isExpanded = expandedSet.contains(cat.id);
+ final bool isSelected = cat.id == selectedId;
+
+ return Column(
+ children: [
+ InkWell(
+ onTap: () {
+ setState(() {
+ if (hasChildren) {
+ if (isExpanded) {
+ expandedSet.remove(cat.id);
+ } else {
+ expandedSet.add(cat.id);
+ }
+ }
+ selectedId = cat.id;
+ });
+ },
+ child: Container(
+ color: Colors.white,
+ child: Row(
+ crossAxisAlignment: CrossAxisAlignment.center,
+ children: [
+ // 左侧缩进
+ SizedBox(width: 16.0 * indent),
+ // 展开/占位图标
+ SizedBox(
+ width: 24,
+ child: hasChildren
+ ? Icon(
+ isExpanded ? Icons.expand_less : Icons.expand_more,
+ size: 20,
+ color: Colors.grey[600],
+ )
+ : const SizedBox.shrink(),
+ ),
+ const SizedBox(width: 8),
+ // 标题
+ Expanded(
+ child: Padding(
+ padding: const EdgeInsets.symmetric(vertical: 12),
+ child: Text(cat.title),
+ ),
+ ),
+ // 单选圈保持右侧对齐
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16),
+ child: Icon(
+ isSelected
+ ? Icons.radio_button_checked
+ : Icons.radio_button_unchecked,
+ color: Colors.green,
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ if (hasChildren && isExpanded)
+ ...cat.children.map((c) => _buildRow(c, indent + 1)),
+ // const Divider(height: 1),
+ ],
+ );
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Container(
+ width: MediaQuery.of(context).size.width,
+ height: MediaQuery.of(context).size.height * 0.7,
+ color: Colors.transparent,
+ child: Column(
+ children: [
+ // 顶部操作栏
+ Container(
+ color: Colors.white,
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ GestureDetector(
+ onTap: () => Navigator.of(context).pop(),
+ child: const Text('取消', style: TextStyle(fontSize: 16)),
+ ),
+ GestureDetector(
+ onTap: () => Navigator.of(context).pop(selectedId),
+ child: const Text('确定', style: TextStyle(fontSize: 16, color: Colors.green),),
+ ),
+ ],
+ ),
+ ),
+ const Divider(height: 1),
+ // 列表区
+ Expanded(
+ child: Container(
+ color: Colors.white,
+ child: ListView.builder(
+ itemCount: widget.data.length,
+ itemBuilder: (ctx, idx) => _buildRow(widget.data[idx], 0),
+ ),
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+}
diff --git a/lib/customWidget/full_screen_video_page.dart b/lib/customWidget/full_screen_video_page.dart
new file mode 100644
index 0000000..37558d6
--- /dev/null
+++ b/lib/customWidget/full_screen_video_page.dart
@@ -0,0 +1,265 @@
+
+import 'package:flutter/material.dart';
+import 'package:video_player/video_player.dart';
+import 'package:flutter/services.dart';
+
+///弹窗组件:VideoPlayerPopup
+class VideoPlayerPopup extends StatefulWidget {
+ /// 视频地址
+ final String videoUrl;
+ const VideoPlayerPopup({Key? key, required this.videoUrl}) : super(key: key);
+
+ @override
+ State createState() => _VideoPlayerPopupState();
+
+}
+
+class _VideoPlayerPopupState extends State {
+ late VideoPlayerController _controller;
+ bool _showControls = true;
+
+ @override
+ void initState() {
+ super.initState();
+ _controller = VideoPlayerController.networkUrl(
+ Uri.parse(widget.videoUrl),
+ )..initialize().then((_) {
+ setState(() {});
+ _controller.play();
+ });
+ // 自动隐藏控件
+ _controller.addListener(() {
+ if (_controller.value.isPlaying && _showControls) {
+ Future.delayed(const Duration(seconds: 3), () {
+ if (_controller.value.isPlaying && mounted) {
+ setState(() => _showControls = false);
+ }
+ });
+ }
+ });
+ }
+
+ @override
+ void dispose() {
+ _controller.dispose();
+ super.dispose();
+ }
+
+ Widget _buildControls() {
+ final pos = _controller.value.position;
+ final dur = _controller.value.duration;
+ String fmt(Duration d) =>
+ '${d.inMinutes.remainder(60).toString().padLeft(2, '0')}:'
+ '${d.inSeconds.remainder(60).toString().padLeft(2, '0')}';
+
+ return Positioned.fill(
+ child: AnimatedOpacity(
+ opacity: _showControls ? 1 : 0,
+ duration: const Duration(milliseconds: 300),
+ child: GestureDetector(
+ onTap: () => setState(() => _showControls = !_showControls),
+ child: Container(
+ color: Colors.black45,
+ child: Column(
+ mainAxisAlignment: MainAxisAlignment.end,
+ children: [
+ // 进度条
+ Slider(
+ value: pos.inMilliseconds.toDouble().clamp(0, dur.inMilliseconds.toDouble()),
+ max: dur.inMilliseconds.toDouble(),
+ onChanged: (v) {
+ _controller.seekTo(Duration(milliseconds: v.toInt()));
+ },
+ ),
+ // 时间 + 控制按钮
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
+ child: Row(
+ children: [
+ IconButton(
+ icon: Icon(
+ _controller.value.isPlaying ? Icons.pause : Icons.play_arrow,
+ color: Colors.white,
+ ),
+ onPressed: () {
+ setState(() {
+ _controller.value.isPlaying
+ ? _controller.pause()
+ : _controller.play();
+ });
+ },
+ ),
+ Text(
+ '${fmt(pos)} / ${fmt(dur)}',
+ style: const TextStyle(color: Colors.white),
+ ),
+ const Spacer(),
+ IconButton(
+ icon: const Icon(Icons.fullscreen, color: Colors.white),
+ onPressed: () {
+ Navigator.of(context).push(MaterialPageRoute(
+ builder: (_) => FullScreenVideoPage(
+ controller: _controller)));
+ },
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ );
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Center(
+ child: Material(
+ color: Colors.transparent,
+ child: Container(
+ constraints: BoxConstraints(
+ maxWidth: MediaQuery.of(context).size.width * 0.9,
+ maxHeight: MediaQuery.of(context).size.height * 0.8,
+ ),
+ decoration: BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.circular(8),
+ ),
+ child: Stack(
+ children: [
+ // 视频内容
+ if (_controller.value.isInitialized)
+ AspectRatio(
+ aspectRatio: _controller.value.aspectRatio,
+ child: VideoPlayer(_controller),
+ )
+ else
+ const Center(child: CircularProgressIndicator()),
+
+ // 关闭按钮
+ Positioned(
+ top: 4,
+ right: 4,
+ child: IconButton(
+ icon: const Icon(Icons.close, color: Colors.black54),
+ onPressed: () => Navigator.of(context).pop(),
+ ),
+ ),
+
+ // 播放控制
+ if (_controller.value.isInitialized) _buildControls(),
+ ],
+ ),
+ ),
+ ),
+ );
+ }
+}
+
+/// 全屏横屏播放页面:FullScreenVideoPage
+class FullScreenVideoPage extends StatefulWidget {
+ final VideoPlayerController controller;
+ const FullScreenVideoPage({Key? key, required this.controller}) : super(key: key);
+
+ @override
+ State createState() => _FullScreenVideoPageState();
+}
+
+class _FullScreenVideoPageState extends State {
+ VideoPlayerController get _controller => widget.controller;
+
+ @override
+ void initState() {
+ super.initState();
+ // 进入横屏、沉浸式
+ SystemChrome.setPreferredOrientations([
+ DeviceOrientation.landscapeLeft,
+ DeviceOrientation.landscapeRight,
+ ]);
+ SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky);
+ }
+
+ @override
+ void dispose() {
+ // 恢复竖屏
+ SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
+ SystemChrome.setPreferredOrientations([
+ DeviceOrientation.portraitUp,
+ DeviceOrientation.portraitDown,
+ ]);
+ super.dispose();
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.black,
+ body: Center(
+ child: Stack(
+ children: [
+ // 全屏视频
+ if (_controller.value.isInitialized)
+ SizedBox.expand(child: VideoPlayer(_controller))
+ else
+ const Center(child: CircularProgressIndicator()),
+
+ // 简单控制:点击画面切换播放/暂停
+ GestureDetector(
+ onTap: () {
+ setState(() {
+ _controller.value.isPlaying
+ ? _controller.pause()
+ : _controller.play();
+ });
+ },
+ ),
+
+ // 返回按钮
+ Positioned(
+ top: 20,
+ left: 20,
+ child: IconButton(
+ icon: const Icon(Icons.arrow_back, color: Colors.white, size: 28),
+ onPressed: () => Navigator.of(context).pop(),
+ ),
+ ),
+
+ // 时间 & 进度条(简单版)
+ if (_controller.value.isInitialized)
+ Positioned(
+ bottom: 20,
+ left: 20,
+ right: 20,
+ child: Row(
+ children: [
+ Text(
+ '${_format(_controller.value.position)} / ${_format(_controller.value.duration)}',
+ style: const TextStyle(color: Colors.white),
+ ),
+ const SizedBox(width: 12),
+ Expanded(
+ child: VideoProgressIndicator(
+ _controller,
+ allowScrubbing: true,
+ colors: VideoProgressColors(
+ playedColor: Colors.red,
+ bufferedColor: Colors.white54,
+ backgroundColor: Colors.white30,
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+
+ String _format(Duration d) =>
+ '${d.inMinutes.remainder(60).toString().padLeft(2, '0')}:'
+ '${d.inSeconds.remainder(60).toString().padLeft(2, '0')}';
+}
diff --git a/lib/customWidget/photo_picker_row.dart b/lib/customWidget/photo_picker_row.dart
new file mode 100644
index 0000000..e2d94eb
--- /dev/null
+++ b/lib/customWidget/photo_picker_row.dart
@@ -0,0 +1,299 @@
+import 'dart:io';
+import 'package:flutter/material.dart';
+import 'package:image_picker/image_picker.dart';
+import 'package:qhd_prevention/tools/h_colors.dart';
+import 'package:wechat_assets_picker/wechat_assets_picker.dart';
+import 'package:photo_manager/photo_manager.dart';
+
+import 'ItemWidgetFactory.dart';
+
+/// 媒体选择类型
+enum MediaType { image, video }
+
+/// 横向一行最多四个媒体的添加组件,支持拍摄和全屏相册多选
+/// 使用示例:
+/// MediaPickerRow(
+/// maxCount: 4,
+/// mediaType: MediaType.video,
+/// onChanged: (List medias) {
+/// // medias 列表更新
+/// },
+/// ),
+class MediaPickerRow extends StatefulWidget {
+ final int maxCount;
+ final MediaType mediaType;
+ final ValueChanged> onChanged;
+
+ const MediaPickerRow({
+ Key? key,
+ this.maxCount = 4,
+ this.mediaType = MediaType.image,
+ required this.onChanged,
+ }) : super(key: key);
+
+ @override
+ _MediaPickerRowState createState() => _MediaPickerRowState();
+}
+
+class _MediaPickerRowState extends State {
+ final ImagePicker _picker = ImagePicker();
+ final List _files = [];
+
+ Future _showPickerOptions() async {
+ showModalBottomSheet(
+ context: context,
+ builder:
+ (_) => SafeArea(
+ child: Wrap(
+ children: [
+ ListTile(
+ leading: Icon(
+ widget.mediaType == MediaType.image
+ ? Icons.camera_alt
+ : Icons.videocam,
+ ),
+ title: Text(
+ widget.mediaType == MediaType.image ? '拍照' : '拍摄视频',
+ ),
+ onTap: () {
+ Navigator.of(context).pop();
+ _pickCamera();
+ },
+ ),
+ ListTile(
+ leading: Icon(
+ widget.mediaType == MediaType.image
+ ? Icons.photo_library
+ : Icons.video_library,
+ ),
+ title: Text(
+ widget.mediaType == MediaType.image ? '从相册选择' : '从相册选择视频',
+ ),
+ onTap: () {
+ Navigator.of(context).pop();
+ _pickGallery();
+ },
+ ),
+ ListTile(
+ leading: const Icon(Icons.close),
+ title: const Text('取消'),
+ onTap: () => Navigator.of(context).pop(),
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+
+ Future _pickCamera() async {
+ if (_files.length >= widget.maxCount) return;
+ try {
+ XFile? picked;
+ if (widget.mediaType == MediaType.image) {
+ picked = await _picker.pickImage(source: ImageSource.camera);
+ } else {
+ picked = await _picker.pickVideo(source: ImageSource.camera);
+ }
+ if (picked != null) {
+ setState(() {
+ _files.add(File(picked!.path));
+ });
+ widget.onChanged(_files);
+ }
+ } catch (e) {
+ debugPrint('拍摄失败: \$e');
+ }
+ }
+
+ Future _pickGallery() async {
+ if (_files.length >= widget.maxCount) return;
+ final permission = await PhotoManager.requestPermissionExtend();
+ if (permission != PermissionState.authorized &&
+ permission != PermissionState.limited) {
+ ScaffoldMessenger.of(
+ context,
+ ).showSnackBar(const SnackBar(content: Text('请到设置中开启相册访问权限')));
+ return;
+ }
+ try {
+ final remaining = widget.maxCount - _files.length;
+ final List? assets = await AssetPicker.pickAssets(
+ context,
+ pickerConfig: AssetPickerConfig(
+ requestType:
+ widget.mediaType == MediaType.image
+ ? RequestType.image
+ : RequestType.video,
+ maxAssets: remaining,
+ gridCount: 4,
+ ),
+ );
+ if (assets != null) {
+ for (final asset in assets) {
+ if (_files.length >= widget.maxCount) break;
+ final file = await asset.file;
+ if (file != null) {
+ _files.add(file);
+ }
+ }
+ setState(() {});
+ widget.onChanged(_files);
+ }
+ } catch (e) {
+ debugPrint('相册选择失败: \$e');
+ }
+ }
+
+ void _removeFile(int index) {
+ setState(() {
+ _files.removeAt(index);
+ });
+ widget.onChanged(_files);
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return SizedBox(
+ height: 80,
+ child: ListView.separated(
+ scrollDirection: Axis.horizontal,
+ itemCount:
+ _files.length < widget.maxCount
+ ? _files.length + 1
+ : widget.maxCount,
+ separatorBuilder: (_, __) => const SizedBox(width: 8),
+ itemBuilder: (context, index) {
+ if (index < _files.length) {
+ return Stack(
+ children: [
+ ClipRRect(
+ borderRadius: BorderRadius.circular(5),
+ child:
+ widget.mediaType == MediaType.image
+ ? Image.file(
+ _files[index],
+ width: 80,
+ height: 80,
+ fit: BoxFit.cover,
+ )
+ : Container(
+ width: 80,
+ height: 80,
+ color: Colors.black12,
+ child: const Center(
+ child: Icon(
+ Icons.videocam,
+ color: Colors.white70,
+ ),
+ ),
+ ),
+ ),
+ Positioned(
+ top: -6,
+ right: -6,
+ child: IconButton(
+ icon: const Icon(Icons.cancel, size: 20, color: Colors.red),
+ onPressed: () => _removeFile(index),
+ ),
+ ),
+ ],
+ );
+ } else {
+ return GestureDetector(
+ onTap: _showPickerOptions,
+ child: Container(
+ width: 80,
+ height: 80,
+ decoration: BoxDecoration(
+ border: Border.all(color: Colors.black12),
+ borderRadius: BorderRadius.circular(5),
+ ),
+ child: Center(
+ child: Icon(
+ widget.mediaType == MediaType.image
+ ? Icons.camera_alt
+ : Icons.videocam,
+ color: Colors.black26,
+ ),
+ ),
+ ),
+ );
+ }
+ },
+ ),
+ );
+ }
+}
+
+/// 整改后照片上传区域组件
+class RepairedPhotoSection extends StatelessWidget {
+ final int maxCount;
+ final MediaType mediaType;
+ final String title;
+ final ValueChanged> onChanged;
+ final VoidCallback onAiIdentify;
+ final bool isShowAI;
+ final double horizontalPadding;
+
+ const RepairedPhotoSection({
+ Key? key,
+ this.maxCount = 4,
+ this.mediaType = MediaType.image,
+ required this.title,
+ this.isShowAI = false,
+ required this.onChanged,
+ required this.onAiIdentify,
+ this.horizontalPadding = 10,
+ }) : super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ return Container(
+ color: Colors.white,
+ padding: const EdgeInsets.only(left: 5, right: 10),
+ child: Column(
+ children: [
+ Padding(
+ padding: EdgeInsets.symmetric(horizontal: horizontalPadding),
+ child: ListItemFactory.createRowSpaceBetweenItem(
+ leftText: title,
+ rightText: '0/$maxCount',
+ ),
+ ),
+ Padding(
+ padding: EdgeInsets.symmetric(horizontal: horizontalPadding),
+ child: MediaPickerRow(
+ maxCount: maxCount,
+ mediaType: mediaType,
+ onChanged: onChanged,
+ ),
+ ),
+ const SizedBox(height: 20),
+ if (isShowAI)
+ Row(
+ children: [
+ GestureDetector(
+ onTap: onAiIdentify,
+ child: Container(
+ padding: const EdgeInsets.symmetric(horizontal: 15),
+ height: 36,
+ decoration: BoxDecoration(
+ color: const Color(0xFFDFEAFF),
+ borderRadius: BorderRadius.circular(18),
+ ),
+ child: Row(
+ children: [
+ Image.asset('assets/images/ai_img.png', width: 20),
+ const SizedBox(width: 5),
+ const Text('AI隐患识别与处理'),
+ ],
+ ),
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ );
+ }
+}
diff --git a/lib/customWidget/search_bar_widget.dart b/lib/customWidget/search_bar_widget.dart
new file mode 100644
index 0000000..ee095a0
--- /dev/null
+++ b/lib/customWidget/search_bar_widget.dart
@@ -0,0 +1,124 @@
+import 'package:flutter/material.dart';
+
+class SearchBarWidget extends StatelessWidget {
+ final String hintText;
+ final String buttonText;
+ final ValueChanged onSearch;
+ final TextEditingController controller; // 改为必传参数
+ final bool autoFocus;
+ final bool showResetButton;
+ final String resetButtonText;
+ final VoidCallback? onReset;
+ final bool isClickableOnly;
+ final VoidCallback? onInputTap;
+ final ValueChanged? onTextChanged; // 新增文本变化回调
+
+ const SearchBarWidget({
+ Key? key,
+ required this.onSearch,
+ required this.controller, // 必须传入controller
+ this.hintText = '请输入关键字',
+ this.buttonText = '搜索',
+ this.autoFocus = false,
+ this.showResetButton = false,
+ this.resetButtonText = '重置',
+ this.onReset,
+ this.isClickableOnly = false,
+ this.onInputTap,
+ this.onTextChanged, // 可选文本变化监听
+ }) : super(key: key);
+
+ // 公共方法:更新输入框内容(可在外部调用)
+ void updateText(String newText) {
+ controller.text = newText;
+ controller.selection = TextSelection.fromPosition(
+ TextPosition(offset: newText.length),
+ );
+ // 可选:触发文本变化回调
+ onTextChanged?.call(newText);
+ }
+
+ @override
+ Widget build(BuildContext context) {
+
+ return Row(
+ children: [
+ Expanded(
+ child: GestureDetector(
+ onTap: isClickableOnly ? onInputTap : null,
+ child: AbsorbPointer(
+ absorbing: isClickableOnly,
+ child: TextField(
+ controller: controller,
+ autofocus: autoFocus,
+ readOnly: isClickableOnly,
+ style: const TextStyle(fontSize: 15),
+ onChanged: onTextChanged, // 监听文本变化
+ decoration: InputDecoration(
+ filled: true,
+ fillColor: const Color(0xFFF5F5F5),
+ prefixIcon: const Icon(Icons.search_rounded),
+ hintText: hintText,
+ border: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(5),
+ borderSide: BorderSide.none,
+ ),
+ isDense: true,
+ contentPadding: const EdgeInsets.symmetric(vertical: 8),
+
+ ),
+ onSubmitted: onSearch,
+ ),
+ ),
+ ),
+ ),
+ const SizedBox(width: 10),
+ // 搜索按钮
+ ElevatedButton(
+ onPressed: () => onSearch(controller.text.trim()),
+ style: ElevatedButton.styleFrom(
+ backgroundColor: Colors.green,
+ padding: const EdgeInsets.symmetric(horizontal: 15, vertical: 8),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(5),
+ ),
+ elevation: 4,
+ shadowColor: Colors.black45,
+ ),
+ child: Text(
+ buttonText,
+ style: const TextStyle(
+ color: Colors.white,
+ fontSize: 16,
+ ),
+ ),
+ ),
+ // 重置按钮
+ if (showResetButton) const SizedBox(width: 10),
+ if (showResetButton)
+ ElevatedButton(
+ onPressed: () {
+ updateText(''); // 使用统一方法清空
+ onReset?.call();
+ },
+ style: ElevatedButton.styleFrom(
+ backgroundColor: Colors.blue,
+ padding: const EdgeInsets.symmetric(horizontal: 15, vertical: 8),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(5),
+ ),
+ elevation: 1,
+ shadowColor: Colors.black26,
+ ),
+ child: Text(
+ resetButtonText,
+ style: TextStyle(
+ color: Colors.white,
+ fontSize: 16,
+ ),
+ ),
+ ),
+ ],
+ );
+ }
+}
\ No newline at end of file
diff --git a/lib/customWidget/single_image_viewer.dart b/lib/customWidget/single_image_viewer.dart
new file mode 100644
index 0000000..c13dfa1
--- /dev/null
+++ b/lib/customWidget/single_image_viewer.dart
@@ -0,0 +1,29 @@
+import 'package:flutter/material.dart';
+import 'package:photo_view/photo_view.dart';
+import 'package:qhd_prevention/pages/my_appbar.dart';
+// 查看大图
+class SingleImageViewer extends StatelessWidget {
+ final String imageUrl;
+ const SingleImageViewer({Key? key, required this.imageUrl}) : super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ backgroundColor: Colors.black,
+ appBar: MyAppbar(
+ backgroundColor: Colors.transparent, title: '',
+ ),
+ body: Center(
+ child: PhotoView(
+ imageProvider: NetworkImage(imageUrl),
+ backgroundDecoration: BoxDecoration(color: Colors.black),
+ minScale: PhotoViewComputedScale.contained,
+ maxScale: PhotoViewComputedScale.covered * 2,
+ onTapUp: (context, details, controllerValue) {
+ Navigator.of(context).pop();
+ },
+ ),
+ ),
+ );
+ }
+}
diff --git a/lib/main.dart b/lib/main.dart
new file mode 100644
index 0000000..ff7788f
--- /dev/null
+++ b/lib/main.dart
@@ -0,0 +1,59 @@
+import 'package:flutter/material.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+import './pages/login_page.dart'; // 导入登录页面
+import './pages/main_tab.dart'; // 导入主页(带TabBar的页面)
+import 'package:intl/date_symbol_data_local.dart';
+
+void main() async {
+ // 确保Flutter引擎初始化完成
+ WidgetsFlutterBinding.ensureInitialized();
+ await initializeDateFormatting('zh_CN', null);
+
+ // 获取共享首选项实例
+ final prefs = await SharedPreferences.getInstance();
+
+ // 获取登录状态
+ final isLoggedIn = prefs.getBool('isLoggedIn') ?? false;
+
+ runApp(MyApp(isLoggedIn: isLoggedIn));
+}
+
+class MyApp extends StatelessWidget {
+ final bool isLoggedIn;
+
+ const MyApp({super.key, required this.isLoggedIn});
+
+ @override
+ Widget build(BuildContext context) {
+ return MaterialApp(
+ title: '',
+ builder: (context, child) {
+ return GestureDetector(
+ behavior: HitTestBehavior.translucent, // 让空白区域也能点击
+ onTap: () {
+ // 收起键盘
+ FocusScope.of(context).unfocus();
+ },
+ child: child,
+ );
+ },
+ theme: ThemeData(
+ dividerTheme: const DividerThemeData(
+ color: Color(0xF1F1F1FF),
+ thickness: 1, // 线高
+ indent: 0, // 左缩进
+ endIndent: 0, // 右缩进
+ ),
+ primarySwatch: Colors.blue,
+ colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
+ inputDecorationTheme: const InputDecorationTheme(
+ border: InputBorder.none,
+ contentPadding: EdgeInsets.symmetric(horizontal: 8),
+ ),
+ ),
+ // 根据登录状态决定初始页面
+ home: isLoggedIn ? const MainPage() : const LoginPage(),
+ debugShowCheckedModeBanner: false,
+ );
+ }
+}
\ No newline at end of file
diff --git a/lib/pages/app/Danger_paicha/check_record_list_page.dart b/lib/pages/app/Danger_paicha/check_record_list_page.dart
new file mode 100644
index 0000000..7c4d77c
--- /dev/null
+++ b/lib/pages/app/Danger_paicha/check_record_list_page.dart
@@ -0,0 +1,176 @@
+import 'dart:ui';
+
+import 'package:flutter/material.dart';
+import 'package:qhd_prevention/customWidget/danner_repain_item.dart';
+import 'package:qhd_prevention/customWidget/department_picker.dart';
+import 'package:qhd_prevention/customWidget/search_bar_widget.dart';
+import 'package:qhd_prevention/pages/home/scan_page.dart';
+import 'package:qhd_prevention/pages/home/work/risk_list_page.dart';
+import 'package:qhd_prevention/pages/my_appbar.dart';
+import 'package:qhd_prevention/tools/SmallWidget.dart';
+import 'package:qhd_prevention/tools/tools.dart';
+
+class CheckRecordListPage extends StatefulWidget {
+ const CheckRecordListPage({super.key});
+
+ @override
+ _CheckRecordListPageState createState() => _CheckRecordListPageState();
+}
+
+class _CheckRecordListPageState extends State
+ with SingleTickerProviderStateMixin {
+ late TabController _tabController;
+ int _selectedTab = 0;
+
+ // 模拟数据
+ final List _notifications = List.generate(10, (i) {
+ bool read = i % 3 == 0;
+ String title = '测试数据标题标题 ${i + 1}';
+ String time = '2025-06-${10 + i} 12:3${i}';
+ return NotificationItem(title, time);
+ });
+ final List data = [
+ Category(
+ id: '1',
+ title: '分类一',
+ children: [
+ Category(id: '1-1', title: '子项 1-1'),
+ Category(id: '1-2', title: '子项 1-2'),
+ ],
+ ),
+ Category(id: '2', title: '分类二'),
+ Category(
+ id: '3',
+ title: '分类三',
+ children: [
+ Category(
+ id: '3-1',
+ title: '子项 3-1',
+ children: [Category(id: '3-1-1', title: '子项 3-1-1')],
+ ),
+ ],
+ ),
+ ];
+ final TextEditingController _searchController = TextEditingController();
+
+ @override
+ void initState() {
+ super.initState();
+ _tabController = TabController(length: 2, vsync: this);
+ _tabController.addListener(() {
+ if (!_tabController.indexIsChanging) {
+ setState(() => _selectedTab = _tabController.index);
+ }
+ });
+ }
+
+ @override
+ void dispose() {
+ _tabController.dispose();
+ super.dispose();
+ }
+ void _handleItemTap(NotificationItem item, int index) {
+ print("点击了是: ${item.title}");
+
+ }
+ // 显示分类选择器
+ void showCategoryPicker() {
+ showModalBottomSheet(
+ context: context,
+ isScrollControlled: true,
+ barrierColor: Colors.black54,
+ backgroundColor: Colors.transparent,
+ builder:
+ (ctx) => DepartmentPicker(
+ data: data,
+ onSelected: (selectedId) {
+ setState(() {});
+ },
+ ),
+ );
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ appBar: MyAppbar(
+ title: "清单检查记录",
+
+ ),
+ body: SafeArea(
+ child: Column(
+ children: [
+ // Tab bar
+ TabBar(
+ controller: _tabController,
+ labelStyle: TextStyle(fontSize: 16),
+ indicator: UnderlineTabIndicator(
+ borderSide: BorderSide(width: 3.0, color: Colors.blue),
+ insets: EdgeInsets.symmetric(horizontal: 100.0),
+ ),
+ labelColor: Colors.blue,
+ unselectedLabelColor: Colors.grey,
+ tabs: const [Tab(text: '已检查记录'), Tab(text: '超期未检查记录')],
+ ),
+
+ // Search bar
+ Padding(
+ padding: const EdgeInsets.all(10),
+ child: SearchBarWidget(
+ showResetButton: false,
+ onInputTap: () {
+ showCategoryPicker();
+ },
+ hintText: "",
+ isClickableOnly: true,
+ onSearch: (text) {
+ print('----------');
+ },
+ controller: _searchController,
+ ),
+ ),
+
+ // List
+ Expanded(
+ child: ListView.separated(
+ itemCount: _notifications.length,
+ separatorBuilder: (_, __) => const SizedBox(),
+ itemBuilder: (context, index) {
+ NotificationItem item = _notifications[index];
+ return GestureDetector(
+ onTap: () => _handleItemTap(item, index),
+ child: DannerRepainItem(
+ title: '清单名称:测试的时候写的假数据',
+ showTitleIcon: false,
+ details: [
+ '清单类型:测试',
+ '排查周期:测试',
+ '包含检查项:3',
+ '负责人:是测试',
+ '起始时间:2025-6-20',
+ '',
+ '测试一下是否跳过时间'
+ ],
+ showBottomTags: false,
+
+ ),
+ );
+ },
+ ),
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+
+
+}
+
+// 模拟数据模版
+class NotificationItem {
+ final String title;
+ final String time;
+
+ NotificationItem(this.title, this.time);
+}
diff --git a/lib/pages/app/Danger_paicha/check_record_page.dart b/lib/pages/app/Danger_paicha/check_record_page.dart
new file mode 100644
index 0000000..3a3d9b6
--- /dev/null
+++ b/lib/pages/app/Danger_paicha/check_record_page.dart
@@ -0,0 +1,107 @@
+import 'package:flutter/material.dart';
+import 'package:qhd_prevention/customWidget/search_bar_widget.dart';
+import 'package:qhd_prevention/pages/app/Danger_paicha/check_record_list_page.dart';
+import 'package:qhd_prevention/pages/app/Danger_paicha/custom_record_drawer.dart';
+import 'package:qhd_prevention/pages/my_appbar.dart';
+import 'package:qhd_prevention/tools/tools.dart';
+
+import '../../../Model/list_model.dart';
+import '../../../customWidget/danner_repain_item.dart';
+import '../../home/scan_page.dart';
+
+class CheckRecordPage extends StatefulWidget {
+ const CheckRecordPage({super.key});
+
+ @override
+ State createState() => _CheckRecordPageState();
+}
+
+class _CheckRecordPageState extends State {
+ final TextEditingController _searchController = TextEditingController();
+ final List _notifications = List.generate(10, (i) {
+ bool read = i % 3 == 0;
+ String title = '测试数据标题标题 ${i + 1}';
+ String time = '2025-06-${10 + i} 12:3${i}';
+ return RecordCheckModel(title, time);
+ });
+
+ void _handleItemTap(RecordCheckModel model) {
+ pushPage(CheckRecordListPage(), context);
+ }
+ @override
+ Widget build(BuildContext context) {
+ // 取屏幕宽度
+ final double screenWidth = MediaQuery.of(context).size.width;
+ final GlobalKey _scaffoldKey = GlobalKey();
+
+ return Scaffold(
+ key: _scaffoldKey, // ② 绑定 key
+
+ appBar: MyAppbar(
+ title: "清单检查记录",
+ actions: [
+ TextButton(
+ onPressed: () {
+ _scaffoldKey.currentState?.openEndDrawer();
+ },
+ child: Text(
+ "查询",
+ style: TextStyle(color: Colors.white, fontSize: 16),
+ ),
+ ),
+ ],
+ ),
+ endDrawer: Drawer(
+ // 用 Container 限制宽度为屏幕的 3/5
+ child: Container(
+ width: screenWidth * 3 / 5,
+ color: Colors.white,
+ child: const CustomRecordDrawer(),
+ ),
+ ),
+ body: SafeArea(child: Column(
+ children: [
+ Container(
+ padding: EdgeInsets.all(15),
+ color: Colors.white,
+ child: SearchBarWidget(
+ controller: _searchController,
+ onSearch: (keyboard) {
+ // 输入请求接口
+ },
+ ),
+ ),
+ Expanded(
+
+ child: ListView.separated(
+ padding: EdgeInsets.only(top: 15),
+ itemCount: _notifications.length,
+ separatorBuilder: (_, __) => const SizedBox(),
+ itemBuilder: (context, index) {
+ RecordCheckModel item = _notifications[index];
+ return GestureDetector(
+ onTap: () => _handleItemTap(item),
+ child: DannerRepainItem(
+ showTitleIcon: false,
+ title: '测试--------new',
+ details: [
+ '清单类型:测试',
+ '排查周期:测试',
+ '包含检查项:3',
+ '',
+ '起始时间:2025-6-20------',
+ '测试',"ccccc",'sssss'
+ ],
+ showBottomTags: false,
+
+ ),
+ );
+ },
+ ),
+ )
+
+ ],
+ )),
+ );
+ }
+}
diff --git a/lib/pages/app/Danger_paicha/custom_record_drawer.dart b/lib/pages/app/Danger_paicha/custom_record_drawer.dart
new file mode 100644
index 0000000..053cdaf
--- /dev/null
+++ b/lib/pages/app/Danger_paicha/custom_record_drawer.dart
@@ -0,0 +1,312 @@
+import 'package:flutter/material.dart';
+import 'package:qhd_prevention/customWidget/bottom_picker.dart';
+import 'package:qhd_prevention/customWidget/department_picker.dart';
+import '../../../tools/h_colors.dart';
+import '/customWidget/custom_button.dart';
+
+/// 自定义抽屉
+class CustomRecordDrawer extends StatefulWidget {
+ const CustomRecordDrawer({super.key});
+
+ @override
+ _CustomRecordDrawerState createState() => _CustomRecordDrawerState();
+}
+
+class _CustomRecordDrawerState extends State {
+ // 四个选项的单选 index
+ int _selectedOption = -1;
+ // 已选择的分类 id
+ String? _selectedCategoryId;
+ // 检查人
+ String? _selectedPerson;
+ // 清单类型
+ String? _selectedQDType;
+ // 排查周期
+ String? _selectedZQTime;
+
+ // 新增:开始/结束时间
+ DateTime? _startDate;
+ DateTime? _endDate;
+
+ @override
+ Widget build(BuildContext context) {
+ final List data = [
+ Category(
+ id: '1',
+ title: '分类一1',
+ children: [
+ Category(id: '1-1', title: '子项 1-1'),
+ Category(id: '1-2', title: '子项 1-2'),
+ ],
+ ),
+ Category(id: '2', title: '分类二'),
+ Category(
+ id: '3',
+ title: '分类三',
+ children: [
+ Category(id: '3-1', title: '子项 3-1', children: [
+ Category(id: '3-1-1', title: '子项 3-1-1'),
+ ]),
+ ],
+ ),
+ ];
+
+ Future showCategoryPicker(int type) async {
+ if (type == 1) {
+ showModalBottomSheet(
+ context: context,
+ isScrollControlled: true,
+ barrierColor: Colors.black54,
+ backgroundColor: Colors.transparent,
+ builder: (ctx) => DepartmentPicker(
+ data: data,
+ onSelected: (selectedId) {
+ setState(() {
+ _selectedCategoryId = selectedId;
+ });
+ },
+ ),
+ );
+ } else if (type == 2) {
+ final choice = await BottomPicker.show(
+ context,
+ items: ['未知'],
+ itemBuilder: (item) => Text(item, textAlign: TextAlign.center),
+ initialIndex: 0,
+ );
+ if (choice != null) {
+ // 用户点击确定并选择了 choice
+ setState(() {
+ _selectedPerson = choice;
+ });
+ }
+ }else if (type == 3) {
+ final choice = await BottomPicker.show(
+ context,
+ items: ['日常', '综合', '专业', '季节性','节假日'],
+ itemBuilder: (item) => Text(item, textAlign: TextAlign.center),
+ initialIndex: 0,
+ );
+ if (choice != null) {
+ setState(() {
+ _selectedQDType = choice;
+ });
+ }
+ }else if (type == 4) {
+ final choice = await BottomPicker.show(
+ context,
+ items: ['每日', '每周', '每旬', '每月', '每季', '半年', '每年'],
+ itemBuilder: (item) => Text(item, textAlign: TextAlign.center),
+ initialIndex: 0,
+ );
+ if (choice != null) {
+ setState(() {
+ _selectedZQTime = choice;
+ });
+ }
+ }
+
+
+ }
+
+ Future _pickStartDate() async {
+ final now = DateTime.now();
+ final picked = await showDatePicker(
+ context: context,
+ initialDate: _startDate ?? now,
+ firstDate: DateTime(now.year - 5),
+ lastDate: DateTime(now.year + 5),
+ );
+ if (picked != null) {
+ setState(() {
+ _startDate = picked;
+ // 保证开始 <= 结束
+ if (_endDate != null && _endDate!.isBefore(picked)) {
+ _endDate = null;
+ }
+ });
+ }
+ }
+
+ Future _pickEndDate() async {
+ final now = DateTime.now();
+ final initial = _endDate ??
+ (_startDate != null && _startDate!.isAfter(now)
+ ? _startDate!
+ : now);
+ final picked = await showDatePicker(
+ context: context,
+ initialDate: initial,
+ firstDate: _startDate ?? DateTime(now.year - 5),
+ lastDate: DateTime(now.year + 5),
+ );
+ if (picked != null) {
+ setState(() {
+ _endDate = picked;
+ });
+ }
+ }
+
+ Widget _buildDatePickerBox({
+ required String label,
+ DateTime? date,
+ required VoidCallback onTap,
+ }) {
+ final display = date != null
+ ? "${date.year.toString().padLeft(4, '0')}-${date.month.toString().padLeft(2, '0')}-${date.day.toString().padLeft(2, '0')}"
+ : label;
+ return Expanded(
+ child: GestureDetector(
+ onTap: onTap,
+ child: Container(
+ height: 35,
+ padding: const EdgeInsets.symmetric(horizontal: 5),
+ decoration: BoxDecoration(
+ borderRadius: BorderRadius.circular(4),
+ border: Border.all(color: Colors.grey.shade400),
+ color: Colors.white,
+ ),
+ child: Row(
+ children: [
+ const Icon(Icons.calendar_today, size: 18, color: Colors.grey),
+ const SizedBox(width: 6),
+ Text(display, style: const TextStyle(fontSize: 14, color: Colors.black38)),
+ ],
+ ),
+ ),
+ ),
+ );
+ }
+
+ return SafeArea(
+ child: Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 20),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ const Text(
+ "高级查询",
+ style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
+ ),
+ const Divider(height: 24, color: Colors.grey),
+
+ // 分类筛选
+ _buildDropdownBox(
+ "检查部门",
+ display: _selectedCategoryId ?? '请选择',
+ onTap: () => showCategoryPicker(1),
+ ),
+ const SizedBox(height: 12),
+ _buildDropdownBox(
+ "检查人",
+ display: _selectedPerson ?? '请选择',
+ onTap: () => showCategoryPicker(2),
+ ),
+ const SizedBox(height: 12),
+ _buildDropdownBox(
+ "清单类型",
+ display: _selectedQDType ?? '请选择',
+ onTap: () => showCategoryPicker(3),
+ ),
+ const SizedBox(height: 12),
+ _buildDropdownBox(
+ "排查周期",
+ display: _selectedZQTime ?? '请选择',
+ onTap: () => showCategoryPicker(4),
+ ),
+ const SizedBox(height: 24),
+
+ // 时间查询
+ const Text(
+ "时间查询",
+ style: TextStyle(fontSize: 16, fontWeight: FontWeight.w500),
+ ),
+ const SizedBox(height: 12),
+
+ // 开始时间 - 结束时间 —— //
+ Row(
+ children: [
+ _buildDatePickerBox(
+ label: "开始时间",
+ date: _startDate,
+ onTap: _pickStartDate,
+ ),
+ const SizedBox(width: 5),
+ const Text("—", style: TextStyle(fontSize: 8)),
+ const SizedBox(width: 5),
+ _buildDatePickerBox(
+ label: "结束时间",
+ date: _endDate,
+ onTap: _pickEndDate,
+ ),
+ ],
+ ),
+
+ const Spacer(),
+
+ // 底部按钮
+ Row(
+ children: [
+ Expanded(
+ flex: 1,
+ child: CustomButton(
+ text: "重置",
+ backgroundColor: h_backGroundColor(),
+ textStyle: const TextStyle(color: Colors.black45),
+ onPressed: () {
+ setState(() {
+ _selectedOption = -1;
+ _selectedCategoryId = null;
+ _startDate = null;
+ _endDate = null;
+ });
+ },
+ ),
+ ),
+ const SizedBox(width: 12),
+ Expanded(
+ flex: 2,
+ child: CustomButton(
+ text: "完成",
+ backgroundColor: Colors.blue,
+ onPressed: () {
+ // TODO: 提交筛选条件,包括 _startDate、_endDate
+ },
+ ),
+ ),
+ ],
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+
+ Widget _buildDropdownBox(String title,
+ {required String display, required VoidCallback onTap}) {
+ return GestureDetector(
+ onTap: onTap,
+ child: Container(
+ height: 48,
+ padding: const EdgeInsets.symmetric(horizontal: 12),
+ decoration: BoxDecoration(
+ borderRadius: BorderRadius.circular(4),
+ border: Border.all(color: Colors.grey.shade400),
+ color: Colors.white,
+ ),
+ child: Row(
+ children: [
+ Text(title, style: const TextStyle(fontSize: 14)),
+ const Spacer(),
+ Row(
+ children: [
+ Text(display),
+ const Icon(Icons.arrow_drop_down, color: Colors.grey),
+ ],
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+}
diff --git a/lib/pages/app/Danger_paicha/quick_report_page.dart b/lib/pages/app/Danger_paicha/quick_report_page.dart
new file mode 100644
index 0000000..9734cf9
--- /dev/null
+++ b/lib/pages/app/Danger_paicha/quick_report_page.dart
@@ -0,0 +1,196 @@
+import 'dart:io';
+import 'package:flutter/material.dart';
+import 'package:qhd_prevention/customWidget/ItemWidgetFactory.dart';
+import 'package:qhd_prevention/customWidget/custom_button.dart';
+import 'package:qhd_prevention/pages/my_appbar.dart';
+import '../../../customWidget/photo_picker_row.dart';
+
+class QuickReportPage extends StatefulWidget {
+ const QuickReportPage({super.key});
+
+ @override
+ State createState() => _QuickReportPageState();
+}
+
+class _QuickReportPageState extends State {
+ final _standardController = TextEditingController();
+ final _partController = TextEditingController();
+ final _dangerDetailController = TextEditingController();
+
+ final String _repairLevel = "请选择";
+ final String _repairType = "请选择";
+ final String _dangerOrganize = "请选择";
+ final String _dangerTime = "请选择";
+
+ late bool _isDanger = false;
+
+ @override
+ void dispose() {
+ _standardController.dispose();
+ _partController.dispose();
+ _dangerDetailController.dispose();
+ super.dispose();
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ appBar: MyAppbar(title: "隐患随手拍"),
+ body: Column(
+ children: [
+ // 详情滚动区域
+ _pageDetail(),
+ // 底部警示文字,固定在页面底部
+ Container(
+ padding: const EdgeInsets.all(15),
+ color: Colors.white,
+ child: Text(
+ ' 严禁在本互联网非涉密平台处理、传输国家秘密和工作秘密,请确认扫描、传输的文件资料不涉及国家秘密和工作秘密',
+ style: TextStyle(fontSize: 14, color: Colors.red),
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+
+ Widget _buildSectionContainer({required Widget child}) {
+ return Container(
+ margin: const EdgeInsets.only(top: 10),
+ color: Colors.white,
+ padding: const EdgeInsets.symmetric(horizontal: 15, vertical: 10),
+ child: child,
+ );
+ }
+
+ Widget _pageDetail() {
+ return Expanded(
+ child: SingleChildScrollView(
+ padding: const EdgeInsets.only(bottom: 20),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.stretch,
+ children: [
+ _buildSectionContainer(
+ child: RepairedPhotoSection(
+ title: "隐患照片",
+ maxCount: 4,
+ mediaType: MediaType.image,
+ isShowAI: true,
+ onChanged: (List files) {
+ // 上传图片 files
+ },
+ onAiIdentify: () {
+ // AI 识别逻辑
+ },
+ ),
+ ),
+ _buildSectionContainer(
+ child: RepairedPhotoSection(
+ title: "隐患视频",
+ maxCount: 1,
+ mediaType: MediaType.video,
+ onChanged: (List files) {
+ // 上传视频 files
+ },
+ onAiIdentify: () {
+ // AI 视频识别逻辑
+ },
+ ),
+ ),
+ _buildSectionContainer(
+ child: ListItemFactory.createBuildMultilineInput(
+ "隐患描述",
+ "请对隐患进行详细描述(必填项)",
+ _standardController,
+ ),
+ ),
+ _buildSectionContainer(
+ child: ListItemFactory.createBuildMultilineInput(
+ "隐患部位",
+ "请对隐患部位进行详细描述(必填项)",
+ _partController,
+ ),
+ ),
+ _buildSectionContainer(
+ child: ListItemFactory.createRowSpaceBetweenItem(
+ leftText: "隐患级别",
+ rightText: _repairLevel,
+ isRight: true,
+ ),
+ ),
+ _buildSectionContainer(
+ child: ListItemFactory.createRowSpaceBetweenItem(
+ leftText: "隐患类型",
+ rightText: _repairType,
+ isRight: true,
+ ),
+ ),
+ _buildSectionContainer(
+ child: ListItemFactory.createYesNoSection(
+ title: "是否立即整改",
+ horizontalPadding: 0,
+ verticalPadding: 0,
+ yesLabel: "是",
+ noLabel: "否",
+ groupValue: _isDanger,
+ onChanged: (val) {
+ setState(() {
+ _isDanger = val;
+ });
+ },
+ ),
+ ),
+ if (_isDanger)
+ Column(
+ children: [
+ _buildSectionContainer(
+ child: ListItemFactory.createBuildMultilineInput(
+ "整改描述",
+ "请对隐患进行整改描述(必填项)",
+ _dangerDetailController,
+ ),
+ ),
+ SizedBox(height: 10),
+ _buildSectionContainer(
+ child: RepairedPhotoSection(
+ title: "整改后图片",
+ maxCount: 4,
+ horizontalPadding: 0,
+ mediaType: MediaType.image,
+ isShowAI: false,
+ onChanged: (List files) {
+ // 上传图片 files
+ },
+ onAiIdentify: () {},
+ ),
+ ),
+ ],
+ ),
+ if (!_isDanger)
+ Column(
+ children: [
+ _buildSectionContainer(
+ child: ListItemFactory.createRowSpaceBetweenItem(
+ leftText: "整改责任部门",
+ rightText: _dangerOrganize,
+ isRight: true,
+ ),
+ ),
+ _buildSectionContainer(
+ child: ListItemFactory.createRowSpaceBetweenItem(
+ leftText: "整改期限",
+ rightText: _dangerTime,
+ isRight: true,
+ ),
+ ),
+ ],
+ ),
+
+ SizedBox(height: 30),
+ CustomButton(text: "提交", backgroundColor: Colors.blue),
+ ],
+ ),
+ ),
+ );
+ }
+}
diff --git a/lib/pages/app/application_page.dart b/lib/pages/app/application_page.dart
new file mode 100644
index 0000000..afe6b08
--- /dev/null
+++ b/lib/pages/app/application_page.dart
@@ -0,0 +1,250 @@
+import 'package:flutter/material.dart';
+import 'package:qhd_prevention/pages/app/Danger_paicha/check_record_page.dart';
+import 'package:qhd_prevention/pages/app/Danger_paicha/quick_report_page.dart';
+import 'package:qhd_prevention/pages/home/work/danger_wait_list_page.dart';
+import 'package:qhd_prevention/pages/home/work/risk_list_page.dart';
+
+import '../../tools/tools.dart';
+import '../home/userInfo_page.dart';
+import '../home/work/danger_page.dart';
+import '../home/work/danger_repair_page.dart';
+
+enum AppItem {
+ riskInspection, // 隐患排查
+ quickReport, // 隐患快报
+ checkRecord, // 检查记录
+ riskRecord, // 隐患记录
+ pendingRectification, // 待整改隐患
+ overdueRectification, // 超期未整改
+ riskAcceptance, // 隐患验收
+ acceptedRisk, // 已验收隐患
+ specialRectification, // 专项检查中的隐患整改
+ specialRecord, // 专项检查中的隐患记录
+ supervisionRectification, // 监管帮扶中的隐患整改
+ supervisionRecord, // 监管帮扶中的隐患记录
+}
+
+class ApplicationPage extends StatelessWidget {
+ const ApplicationPage({Key? key}) : super(key: key);
+
+ // 处理项目点击事件
+ void _handleItemClick(BuildContext context, AppItem item) {
+ switch (item) {
+ case AppItem.riskInspection:
+ // 跳转到隐患排查页面
+ pushPage(DangerPage(), context);
+ break;
+ case AppItem.quickReport:
+ // 跳转到隐患快报页面
+ pushPage(QuickReportPage(), context);
+ break;
+ case AppItem.checkRecord:
+ // 跳转到检查记录页面
+ pushPage(CheckRecordPage(), context);
+ break;
+ case AppItem.riskRecord:
+ // 跳转到隐患记录页面
+ pushPage(DangerWaitListPage(DangerType.ristRecord), context);
+ break;
+ case AppItem.pendingRectification:
+ // 跳转到待整改隐患页面
+ pushPage(DangerWaitListPage(DangerType.wait), context);
+ break;
+ case AppItem.overdueRectification:
+ // 跳转到超期未整改页面
+ pushPage(DangerWaitListPage(DangerType.expired), context);
+ break;
+ case AppItem.riskAcceptance:
+ // 跳转到隐患验收页面
+ pushPage(DangerWaitListPage(DangerType.waitAcceptance), context);
+ break;
+ case AppItem.acceptedRisk:
+ // 跳转到已验收隐患页面
+ pushPage(DangerWaitListPage(DangerType.acceptanced), context);
+ break;
+ case AppItem.specialRectification:
+ // 跳转到专项检查隐患整改页面
+ //Navigator.push(context, MaterialPageRoute(builder: (_) => SpecialRectificationPage()));
+ break;
+ case AppItem.specialRecord:
+ // 跳转到专项检查隐患记录页面
+ // Navigator.push(context, MaterialPageRoute(builder: (_) => SpecialRecordPage()));
+ break;
+ case AppItem.supervisionRectification:
+ // 跳转到监管帮扶隐患整改页面
+ //Navigator.push(context, MaterialPageRoute(builder: (_) => SupervisionRectificationPage()));
+ break;
+ case AppItem.supervisionRecord:
+ // 跳转到监管帮扶隐患记录页面
+ //Navigator.push(context, MaterialPageRoute(builder: (_) => SupervisionRecordPage()));
+ break;
+ }
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ // 使用枚举定义项目
+ final List