Kaynağa Gözat

第一次提交

yangyang 2 yıl önce
işleme
a1774cc92a
84 değiştirilmiş dosya ile 3246 ekleme ve 0 silme
  1. 159 0
      .gitignore
  2. 33 0
      .metadata
  3. 16 0
      README.md
  4. 29 0
      analysis_options.yaml
  5. 13 0
      android/.gitignore
  6. 59 0
      android/app/build.gradle
  7. 8 0
      android/app/src/debug/AndroidManifest.xml
  8. 34 0
      android/app/src/main/AndroidManifest.xml
  9. 6 0
      android/app/src/main/java/com/ruankong/deus/deus_app/MainActivity.java
  10. 12 0
      android/app/src/main/res/drawable-v21/launch_background.xml
  11. 12 0
      android/app/src/main/res/drawable/launch_background.xml
  12. BIN
      android/app/src/main/res/mipmap-hdpi/ic_launcher.png
  13. BIN
      android/app/src/main/res/mipmap-mdpi/ic_launcher.png
  14. BIN
      android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
  15. BIN
      android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
  16. BIN
      android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
  17. 18 0
      android/app/src/main/res/values-night/styles.xml
  18. 18 0
      android/app/src/main/res/values/styles.xml
  19. 8 0
      android/app/src/profile/AndroidManifest.xml
  20. 31 0
      android/build.gradle
  21. 3 0
      android/gradle.properties
  22. 5 0
      android/gradle/wrapper/gradle-wrapper.properties
  23. 11 0
      android/settings.gradle
  24. BIN
      assets/install.png
  25. 34 0
      ios/.gitignore
  26. 26 0
      ios/Flutter/AppFrameworkInfo.plist
  27. 1 0
      ios/Flutter/Debug.xcconfig
  28. 1 0
      ios/Flutter/Release.xcconfig
  29. 480 0
      ios/Runner.xcodeproj/project.pbxproj
  30. 7 0
      ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  31. 8 0
      ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
  32. 8 0
      ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
  33. 87 0
      ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
  34. 7 0
      ios/Runner.xcworkspace/contents.xcworkspacedata
  35. 8 0
      ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
  36. 8 0
      ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
  37. 6 0
      ios/Runner/AppDelegate.h
  38. 13 0
      ios/Runner/AppDelegate.m
  39. 122 0
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
  40. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
  41. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
  42. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
  43. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
  44. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
  45. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
  46. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
  47. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
  48. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
  49. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
  50. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
  51. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
  52. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
  53. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
  54. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
  55. 23 0
      ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
  56. BIN
      ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
  57. BIN
      ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
  58. BIN
      ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
  59. 5 0
      ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
  60. 37 0
      ios/Runner/Base.lproj/LaunchScreen.storyboard
  61. 26 0
      ios/Runner/Base.lproj/Main.storyboard
  62. 51 0
      ios/Runner/Info.plist
  63. 9 0
      ios/Runner/main.m
  64. 20 0
      lib/common/config/config.dart
  65. 20 0
      lib/common/local/local_storage.dart
  66. 103 0
      lib/common/style/TitleBar.dart
  67. 293 0
      lib/common/style/gsy_style.dart
  68. 10 0
      lib/common/utils/CommonUtils.dart
  69. 15 0
      lib/common/utils/ConstantString.dart
  70. 125 0
      lib/common/utils/DioUtil.dart
  71. 13 0
      lib/common/utils/ToastUtils.dart
  72. 318 0
      lib/common/utils/navigator_utils.dart
  73. 78 0
      lib/generated/json/base/json_convert_content.dart
  74. 18 0
      lib/generated/json/base/json_field.dart
  75. 100 0
      lib/generated/json/login_response_entity_helper.dart
  76. 103 0
      lib/home.dart
  77. 120 0
      lib/main.dart
  78. 20 0
      lib/model/CommonListDataType.dart
  79. 27 0
      lib/model/login_response_entity.dart
  80. 29 0
      lib/page/home/home_page.dart
  81. 211 0
      lib/page/login/login_page.dart
  82. 53 0
      lib/widget/gsy_flex_button.dart
  83. 99 0
      pubspec.yaml
  84. 29 0
      test/widget_test.dart

+ 159 - 0
.gitignore

@@ -0,0 +1,159 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+*.lock
+.DS_Store
+.atom/
+.buildlog/
+.history
+.svn/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# Visual Studio Code related
+.classpath
+.project
+.settings/
+.vscode/
+
+# Flutter/Dart/Pub related
+**/doc/api/
+.dart_tool/
+.flutter-plugins
+.flutter-plugins-dependencies
+.packages
+.pub-cache/
+.pub/
+/build/
+**/generated_plugin_registrant.dart
+build/
+flutter_*.png
+linked_*.ds
+unlinked.ds
+unlinked_spec.ds
+
+
+# Flutter repo-specific
+/bin/cache/
+/bin/mingit/
+/dev/benchmarks/mega_gallery/
+/dev/bots/.recipe_deps
+/dev/bots/android_tools/
+/dev/devicelab/ABresults*.json
+/dev/docs/doc/
+/dev/docs/flutter.docs.zip
+/dev/docs/lib/
+/dev/docs/pubspec.yaml
+/dev/integration_tests/**/xcuserdata
+/dev/integration_tests/**/Pods
+/packages/flutter/coverage/
+version
+analysis_benchmark.json
+/bin/internal/bootstrap.bat
+/bin/internal/bootstrap.sh
+
+# packages file containing multi-root paths
+.packages.generated
+
+### Android ###
+# Built application files
+*.apk
+*.ap_
+*.aab
+
+# Android Studio Navigation editor temp files
+.navigation/
+
+# Android Studio captures folder
+captures/
+
+
+# Android related
+**/android/**/gradle-wrapper.jar
+**/android/.gradle
+**/android/captures/
+**/android/gradlew
+**/android/gradlew.bat
+**/android/local.properties
+**/android/**/GeneratedPluginRegistrant.java
+**/android/app/build
+.gradle/
+**/android/key.properties
+*.jks
+
+
+# iOS/XCode related
+**/ios/**/*.mode1v3
+**/ios/**/*.mode2v3
+**/ios/**/*.moved-aside
+**/ios/**/*.pbxuser
+**/ios/**/*.perspectivev3
+**/ios/**/*sync/
+**/ios/**/.sconsign.dblite
+**/ios/**/.tags*
+**/ios/**/.vagrant/
+**/ios/**/DerivedData/
+**/ios/**/Icon?
+**/ios/**/Pods/
+**/ios/**/.symlinks/
+**/ios/**/profile
+**/ios/**/xcuserdata
+**/ios/.generated/
+**/ios/Flutter/App.framework
+**/ios/Flutter/Flutter.framework
+**/ios/Flutter/Generated.xcconfig
+**/ios/Flutter/app.flx
+**/ios/Flutter/app.zip
+**/ios/Flutter/flutter_assets/
+**/ios/ServiceDefinitions.json
+**/ios/Runner/GeneratedPluginRegistrant.*
+**/ios/Flutter/flutter_export_environment.sh
+**/ios/Flutter/.last_build_id
+**/ios/Podfile.lock
+**/ios/Flutter/Flutter.podspec
+**/ios/Flutter/ephemeral
+
+# Web related
+lib/generated_plugin_registrant.dart
+
+# Exceptions to above rules.
+!**/ios/**/default.mode1v3
+!**/ios/**/default.mode2v3
+!**/ios/**/default.pbxuser
+!**/ios/**/default.perspectivev3
+!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
+/ios/build/
+
+**/pubspec.lock
+**/.flutter-plugins-dependencies
+
+
+# macOS
+**/Flutter/ephemeral/
+**/Pods/
+**/macos/Flutter/GeneratedPluginRegistrant.swift
+**/macos/Flutter/ephemeral
+**/xcuserdata/
+
+# Windows
+**/windows/flutter/generated_plugin_registrant.cc
+**/windows/flutter/generated_plugin_registrant.h
+
+# Linux
+**/linux/flutter/generated_plugin_registrant.cc
+**/linux/flutter/generated_plugin_registrant.h
+
+# Coverage
+coverage/
+
+# Symbols
+app.*.symbols
+
+# Exceptions to above rules.
+!/dev/ci/**/Gemfile.lock

+ 33 - 0
.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.
+
+version:
+  revision: 135454af32477f815a7525073027a3ff9eff1bfd
+  channel: stable
+
+project_type: app
+
+# Tracks metadata for the flutter migrate command
+migration:
+  platforms:
+    - platform: root
+      create_revision: 135454af32477f815a7525073027a3ff9eff1bfd
+      base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
+    - platform: android
+      create_revision: 135454af32477f815a7525073027a3ff9eff1bfd
+      base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
+    - platform: ios
+      create_revision: 135454af32477f815a7525073027a3ff9eff1bfd
+      base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
+
+  # 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'

+ 16 - 0
README.md

@@ -0,0 +1,16 @@
+# deus_app
+
+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.

+ 29 - 0
analysis_options.yaml

@@ -0,0 +1,29 @@
+# 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-lang.github.io/linter/lints/index.html.
+  #
+  # 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:
+    # 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

+ 13 - 0
android/.gitignore

@@ -0,0 +1,13 @@
+gradle-wrapper.jar
+/.gradle
+/captures/
+/gradlew
+/gradlew.bat
+/local.properties
+GeneratedPluginRegistrant.java
+
+# Remember to never publicly share your keystore.
+# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
+key.properties
+**/*.keystore
+**/*.jks

+ 59 - 0
android/app/build.gradle

@@ -0,0 +1,59 @@
+def localProperties = new Properties()
+def localPropertiesFile = rootProject.file('local.properties')
+if (localPropertiesFile.exists()) {
+    localPropertiesFile.withReader('UTF-8') { reader ->
+        localProperties.load(reader)
+    }
+}
+
+def flutterRoot = localProperties.getProperty('flutter.sdk')
+if (flutterRoot == null) {
+    throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
+}
+
+def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
+if (flutterVersionCode == null) {
+    flutterVersionCode = '1'
+}
+
+def flutterVersionName = localProperties.getProperty('flutter.versionName')
+if (flutterVersionName == null) {
+    flutterVersionName = '1.0'
+}
+
+apply plugin: 'com.android.application'
+apply plugin: 'kotlin-android'
+apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
+
+android {
+    compileSdkVersion flutter.compileSdkVersion
+    ndkVersion flutter.ndkVersion
+
+    compileOptions {
+        sourceCompatibility JavaVersion.VERSION_1_8
+        targetCompatibility JavaVersion.VERSION_1_8
+    }
+
+    defaultConfig {
+        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
+        applicationId "com.ruankong.deus.deus_app"
+        // You can update the following values to match your application needs.
+        // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
+        minSdkVersion flutter.minSdkVersion
+        targetSdkVersion flutter.targetSdkVersion
+        versionCode flutterVersionCode.toInteger()
+        versionName flutterVersionName
+    }
+
+    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.debug
+        }
+    }
+}
+
+flutter {
+    source '../..'
+}

+ 8 - 0
android/app/src/debug/AndroidManifest.xml

@@ -0,0 +1,8 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="com.ruankong.deus.deus_app">
+    <!-- The INTERNET permission is required for development. Specifically,
+         the Flutter tool needs it to communicate with the running application
+         to allow setting breakpoints, to provide hot reload, etc.
+    -->
+    <uses-permission android:name="android.permission.INTERNET"/>
+</manifest>

+ 34 - 0
android/app/src/main/AndroidManifest.xml

@@ -0,0 +1,34 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="com.ruankong.deus.deus_app">
+   <application
+        android:label="deus_app"
+        android:name="${applicationName}"
+        android:icon="@mipmap/ic_launcher">
+        <activity
+            android:name=".MainActivity"
+            android:exported="true"
+            android:launchMode="singleTop"
+            android:theme="@style/LaunchTheme"
+            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
+            android:hardwareAccelerated="true"
+            android:windowSoftInputMode="adjustResize">
+            <!-- Specifies an Android theme to apply to this Activity as soon as
+                 the Android process has started. This theme is visible to the user
+                 while the Flutter UI initializes. After that, this theme continues
+                 to determine the Window background behind the Flutter UI. -->
+            <meta-data
+              android:name="io.flutter.embedding.android.NormalTheme"
+              android:resource="@style/NormalTheme"
+              />
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN"/>
+                <category android:name="android.intent.category.LAUNCHER"/>
+            </intent-filter>
+        </activity>
+        <!-- Don't delete the meta-data below.
+             This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
+        <meta-data
+            android:name="flutterEmbedding"
+            android:value="2" />
+    </application>
+</manifest>

+ 6 - 0
android/app/src/main/java/com/ruankong/deus/deus_app/MainActivity.java

@@ -0,0 +1,6 @@
+package com.ruankong.deus.deus_app;
+
+import io.flutter.embedding.android.FlutterActivity;
+
+public class MainActivity extends FlutterActivity {
+}

+ 12 - 0
android/app/src/main/res/drawable-v21/launch_background.xml

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Modify this file to customize your launch splash screen -->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+    <item android:drawable="?android:colorBackground" />
+
+    <!-- You can insert your own image assets here -->
+    <!-- <item>
+        <bitmap
+            android:gravity="center"
+            android:src="@mipmap/launch_image" />
+    </item> -->
+</layer-list>

+ 12 - 0
android/app/src/main/res/drawable/launch_background.xml

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Modify this file to customize your launch splash screen -->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+    <item android:drawable="@android:color/white" />
+
+    <!-- You can insert your own image assets here -->
+    <!-- <item>
+        <bitmap
+            android:gravity="center"
+            android:src="@mipmap/launch_image" />
+    </item> -->
+</layer-list>

BIN
android/app/src/main/res/mipmap-hdpi/ic_launcher.png


BIN
android/app/src/main/res/mipmap-mdpi/ic_launcher.png


BIN
android/app/src/main/res/mipmap-xhdpi/ic_launcher.png


BIN
android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png


BIN
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png


+ 18 - 0
android/app/src/main/res/values-night/styles.xml

@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
+    <style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
+        <!-- Show a splash screen on the activity. Automatically removed when
+             the Flutter engine draws its first frame -->
+        <item name="android:windowBackground">@drawable/launch_background</item>
+    </style>
+    <!-- Theme applied to the Android Window as soon as the process has started.
+         This theme determines the color of the Android Window while your
+         Flutter UI initializes, as well as behind your Flutter UI while its
+         running.
+
+         This Theme is only used starting with V2 of Flutter's Android embedding. -->
+    <style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
+        <item name="android:windowBackground">?android:colorBackground</item>
+    </style>
+</resources>

+ 18 - 0
android/app/src/main/res/values/styles.xml

@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
+    <style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
+        <!-- Show a splash screen on the activity. Automatically removed when
+             the Flutter engine draws its first frame -->
+        <item name="android:windowBackground">@drawable/launch_background</item>
+    </style>
+    <!-- Theme applied to the Android Window as soon as the process has started.
+         This theme determines the color of the Android Window while your
+         Flutter UI initializes, as well as behind your Flutter UI while its
+         running.
+
+         This Theme is only used starting with V2 of Flutter's Android embedding. -->
+    <style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
+        <item name="android:windowBackground">?android:colorBackground</item>
+    </style>
+</resources>

+ 8 - 0
android/app/src/profile/AndroidManifest.xml

@@ -0,0 +1,8 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="com.ruankong.deus.deus_app">
+    <!-- The INTERNET permission is required for development. Specifically,
+         the Flutter tool needs it to communicate with the running application
+         to allow setting breakpoints, to provide hot reload, etc.
+    -->
+    <uses-permission android:name="android.permission.INTERNET"/>
+</manifest>

+ 31 - 0
android/build.gradle

@@ -0,0 +1,31 @@
+buildscript {
+    ext.kotlin_version = '1.6.10'
+    repositories {
+        google()
+        mavenCentral()
+    }
+
+    dependencies {
+        classpath 'com.android.tools.build:gradle:7.1.2'
+        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+    }
+}
+
+allprojects {
+    repositories {
+        google()
+        mavenCentral()
+    }
+}
+
+rootProject.buildDir = '../build'
+subprojects {
+    project.buildDir = "${rootProject.buildDir}/${project.name}"
+}
+subprojects {
+    project.evaluationDependsOn(':app')
+}
+
+task clean(type: Delete) {
+    delete rootProject.buildDir
+}

+ 3 - 0
android/gradle.properties

@@ -0,0 +1,3 @@
+org.gradle.jvmargs=-Xmx1536M
+android.useAndroidX=true
+android.enableJetifier=true

+ 5 - 0
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-7.4-all.zip

+ 11 - 0
android/settings.gradle

@@ -0,0 +1,11 @@
+include ':app'
+
+def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
+def properties = new Properties()
+
+assert localPropertiesFile.exists()
+localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
+
+def flutterSdkPath = properties.getProperty("flutter.sdk")
+assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
+apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"

BIN
assets/install.png


+ 34 - 0
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

+ 26 - 0
ios/Flutter/AppFrameworkInfo.plist

@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+  <key>CFBundleDevelopmentRegion</key>
+  <string>en</string>
+  <key>CFBundleExecutable</key>
+  <string>App</string>
+  <key>CFBundleIdentifier</key>
+  <string>io.flutter.flutter.app</string>
+  <key>CFBundleInfoDictionaryVersion</key>
+  <string>6.0</string>
+  <key>CFBundleName</key>
+  <string>App</string>
+  <key>CFBundlePackageType</key>
+  <string>FMWK</string>
+  <key>CFBundleShortVersionString</key>
+  <string>1.0</string>
+  <key>CFBundleSignature</key>
+  <string>????</string>
+  <key>CFBundleVersion</key>
+  <string>1.0</string>
+  <key>MinimumOSVersion</key>
+  <string>11.0</string>
+</dict>
+</plist>

+ 1 - 0
ios/Flutter/Debug.xcconfig

@@ -0,0 +1 @@
+#include "Generated.xcconfig"

+ 1 - 0
ios/Flutter/Release.xcconfig

@@ -0,0 +1 @@
+#include "Generated.xcconfig"

+ 480 - 0
ios/Runner.xcodeproj/project.pbxproj

@@ -0,0 +1,480 @@
+// !$*UTF8*$!
+{
+	archiveVersion = 1;
+	classes = {
+	};
+	objectVersion = 50;
+	objects = {
+
+/* Begin PBXBuildFile section */
+		1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
+		3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
+		978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; };
+		97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; };
+		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 */; };
+/* End PBXBuildFile 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 = "<group>"; };
+		1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
+		3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
+		7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
+		7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
+		7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
+		9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
+		9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
+		97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
+		97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
+		97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
+		97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
+		97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
+		97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+		97C146EB1CF9000F007C117D /* Frameworks */ = {
+			isa = PBXFrameworksBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+		9740EEB11CF90186004384FC /* Flutter */ = {
+			isa = PBXGroup;
+			children = (
+				3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
+				9740EEB21CF90195004384FC /* Debug.xcconfig */,
+				7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+				9740EEB31CF90195004384FC /* Generated.xcconfig */,
+			);
+			name = Flutter;
+			sourceTree = "<group>";
+		};
+		97C146E51CF9000F007C117D = {
+			isa = PBXGroup;
+			children = (
+				9740EEB11CF90186004384FC /* Flutter */,
+				97C146F01CF9000F007C117D /* Runner */,
+				97C146EF1CF9000F007C117D /* Products */,
+			);
+			sourceTree = "<group>";
+		};
+		97C146EF1CF9000F007C117D /* Products */ = {
+			isa = PBXGroup;
+			children = (
+				97C146EE1CF9000F007C117D /* Runner.app */,
+			);
+			name = Products;
+			sourceTree = "<group>";
+		};
+		97C146F01CF9000F007C117D /* Runner */ = {
+			isa = PBXGroup;
+			children = (
+				7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */,
+				7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */,
+				97C146FA1CF9000F007C117D /* Main.storyboard */,
+				97C146FD1CF9000F007C117D /* Assets.xcassets */,
+				97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
+				97C147021CF9000F007C117D /* Info.plist */,
+				97C146F11CF9000F007C117D /* Supporting Files */,
+				1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
+				1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
+			);
+			path = Runner;
+			sourceTree = "<group>";
+		};
+		97C146F11CF9000F007C117D /* Supporting Files */ = {
+			isa = PBXGroup;
+			children = (
+				97C146F21CF9000F007C117D /* main.m */,
+			);
+			name = "Supporting Files";
+			sourceTree = "<group>";
+		};
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+		97C146ED1CF9000F007C117D /* Runner */ = {
+			isa = PBXNativeTarget;
+			buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
+			buildPhases = (
+				9740EEB61CF901F6004384FC /* Run Script */,
+				97C146EA1CF9000F007C117D /* Sources */,
+				97C146EB1CF9000F007C117D /* Frameworks */,
+				97C146EC1CF9000F007C117D /* Resources */,
+				9705A1C41CF9048500538489 /* Embed Frameworks */,
+				3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+			);
+			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 = {
+				LastUpgradeCheck = 1300;
+				ORGANIZATIONNAME = "";
+				TargetAttributes = {
+					97C146ED1CF9000F007C117D = {
+						CreatedOnToolsVersion = 7.3.1;
+					};
+				};
+			};
+			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 */,
+			);
+		};
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+		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;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			inputPaths = (
+			);
+			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;
+			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";
+		};
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+		97C146EA1CF9000F007C117D /* Sources */ = {
+			isa = PBXSourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */,
+				97C146F31CF9000F007C117D /* main.m in Sources */,
+				1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+		97C146FA1CF9000F007C117D /* Main.storyboard */ = {
+			isa = PBXVariantGroup;
+			children = (
+				97C146FB1CF9000F007C117D /* Base */,
+			);
+			name = Main.storyboard;
+			sourceTree = "<group>";
+		};
+		97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
+			isa = PBXVariantGroup;
+			children = (
+				97C147001CF9000F007C117D /* Base */,
+			);
+			name = LaunchScreen.storyboard;
+			sourceTree = "<group>";
+		};
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+		249021D3217E4FDB00AE95B9 /* Profile */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_SEARCH_USER_PATHS = NO;
+				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;
+				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 = 11.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;
+				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+				ENABLE_BITCODE = NO;
+				INFOPLIST_FILE = Runner/Info.plist;
+				LD_RUNPATH_SEARCH_PATHS = (
+					"$(inherited)",
+					"@executable_path/Frameworks",
+				);
+				PRODUCT_BUNDLE_IDENTIFIER = com.ruankong.deus.deusApp;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				VERSIONING_SYSTEM = "apple-generic";
+			};
+			name = Profile;
+		};
+		97C147031CF9000F007C117D /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_SEARCH_USER_PATHS = NO;
+				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;
+				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 = 11.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;
+				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;
+				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 = 11.0;
+				MTL_ENABLE_DEBUG_INFO = NO;
+				SDKROOT = iphoneos;
+				SUPPORTED_PLATFORMS = iphoneos;
+				TARGETED_DEVICE_FAMILY = "1,2";
+				VALIDATE_PRODUCT = YES;
+			};
+			name = Release;
+		};
+		97C147061CF9000F007C117D /* Debug */ = {
+			isa = XCBuildConfiguration;
+			baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
+			buildSettings = {
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+				ENABLE_BITCODE = NO;
+				INFOPLIST_FILE = Runner/Info.plist;
+				LD_RUNPATH_SEARCH_PATHS = (
+					"$(inherited)",
+					"@executable_path/Frameworks",
+				);
+				PRODUCT_BUNDLE_IDENTIFIER = com.ruankong.deus.deusApp;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				VERSIONING_SYSTEM = "apple-generic";
+			};
+			name = Debug;
+		};
+		97C147071CF9000F007C117D /* Release */ = {
+			isa = XCBuildConfiguration;
+			baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+			buildSettings = {
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+				ENABLE_BITCODE = NO;
+				INFOPLIST_FILE = Runner/Info.plist;
+				LD_RUNPATH_SEARCH_PATHS = (
+					"$(inherited)",
+					"@executable_path/Frameworks",
+				);
+				PRODUCT_BUNDLE_IDENTIFIER = com.ruankong.deus.deusApp;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				VERSIONING_SYSTEM = "apple-generic";
+			};
+			name = Release;
+		};
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+		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 */;
+}

+ 7 - 0
ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+   version = "1.0">
+   <FileRef
+      location = "self:">
+   </FileRef>
+</Workspace>

+ 8 - 0
ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>IDEDidComputeMac32BitWarning</key>
+	<true/>
+</dict>
+</plist>

+ 8 - 0
ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>PreviewsEnabled</key>
+	<false/>
+</dict>
+</plist>

+ 87 - 0
ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+   LastUpgradeVersion = "1300"
+   version = "1.3">
+   <BuildAction
+      parallelizeBuildables = "YES"
+      buildImplicitDependencies = "YES">
+      <BuildActionEntries>
+         <BuildActionEntry
+            buildForTesting = "YES"
+            buildForRunning = "YES"
+            buildForProfiling = "YES"
+            buildForArchiving = "YES"
+            buildForAnalyzing = "YES">
+            <BuildableReference
+               BuildableIdentifier = "primary"
+               BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+               BuildableName = "Runner.app"
+               BlueprintName = "Runner"
+               ReferencedContainer = "container:Runner.xcodeproj">
+            </BuildableReference>
+         </BuildActionEntry>
+      </BuildActionEntries>
+   </BuildAction>
+   <TestAction
+      buildConfiguration = "Debug"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+      shouldUseLaunchSchemeArgsEnv = "YES">
+      <MacroExpansion>
+         <BuildableReference
+            BuildableIdentifier = "primary"
+            BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+            BuildableName = "Runner.app"
+            BlueprintName = "Runner"
+            ReferencedContainer = "container:Runner.xcodeproj">
+         </BuildableReference>
+      </MacroExpansion>
+      <Testables>
+      </Testables>
+   </TestAction>
+   <LaunchAction
+      buildConfiguration = "Debug"
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+      launchStyle = "0"
+      useCustomWorkingDirectory = "NO"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      debugServiceExtension = "internal"
+      allowLocationSimulation = "YES">
+      <BuildableProductRunnable
+         runnableDebuggingMode = "0">
+         <BuildableReference
+            BuildableIdentifier = "primary"
+            BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+            BuildableName = "Runner.app"
+            BlueprintName = "Runner"
+            ReferencedContainer = "container:Runner.xcodeproj">
+         </BuildableReference>
+      </BuildableProductRunnable>
+   </LaunchAction>
+   <ProfileAction
+      buildConfiguration = "Profile"
+      shouldUseLaunchSchemeArgsEnv = "YES"
+      savedToolIdentifier = ""
+      useCustomWorkingDirectory = "NO"
+      debugDocumentVersioning = "YES">
+      <BuildableProductRunnable
+         runnableDebuggingMode = "0">
+         <BuildableReference
+            BuildableIdentifier = "primary"
+            BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+            BuildableName = "Runner.app"
+            BlueprintName = "Runner"
+            ReferencedContainer = "container:Runner.xcodeproj">
+         </BuildableReference>
+      </BuildableProductRunnable>
+   </ProfileAction>
+   <AnalyzeAction
+      buildConfiguration = "Debug">
+   </AnalyzeAction>
+   <ArchiveAction
+      buildConfiguration = "Release"
+      revealArchiveInOrganizer = "YES">
+   </ArchiveAction>
+</Scheme>

+ 7 - 0
ios/Runner.xcworkspace/contents.xcworkspacedata

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+   version = "1.0">
+   <FileRef
+      location = "group:Runner.xcodeproj">
+   </FileRef>
+</Workspace>

+ 8 - 0
ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>IDEDidComputeMac32BitWarning</key>
+	<true/>
+</dict>
+</plist>

+ 8 - 0
ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>PreviewsEnabled</key>
+	<false/>
+</dict>
+</plist>

+ 6 - 0
ios/Runner/AppDelegate.h

@@ -0,0 +1,6 @@
+#import <Flutter/Flutter.h>
+#import <UIKit/UIKit.h>
+
+@interface AppDelegate : FlutterAppDelegate
+
+@end

+ 13 - 0
ios/Runner/AppDelegate.m

@@ -0,0 +1,13 @@
+#import "AppDelegate.h"
+#import "GeneratedPluginRegistrant.h"
+
+@implementation AppDelegate
+
+- (BOOL)application:(UIApplication *)application
+    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
+  [GeneratedPluginRegistrant registerWithRegistry:self];
+  // Override point for customization after application launch.
+  return [super application:application didFinishLaunchingWithOptions:launchOptions];
+}
+
+@end

+ 122 - 0
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"
+  }
+}

BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png


BIN
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png


+ 23 - 0
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"
+  }
+}

BIN
ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png


BIN
ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png


BIN
ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png


+ 5 - 0
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.

+ 37 - 0
ios/Runner/Base.lproj/LaunchScreen.storyboard

@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
+    <dependencies>
+        <deployment identifier="iOS"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
+    </dependencies>
+    <scenes>
+        <!--View Controller-->
+        <scene sceneID="EHf-IW-A2E">
+            <objects>
+                <viewController id="01J-lp-oVM" sceneMemberID="viewController">
+                    <layoutGuides>
+                        <viewControllerLayoutGuide type="top" id="Ydg-fD-yQy"/>
+                        <viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/>
+                    </layoutGuides>
+                    <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
+                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                        <subviews>
+                            <imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
+                            </imageView>
+                        </subviews>
+                        <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                        <constraints>
+                            <constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/>
+                            <constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/>
+                        </constraints>
+                    </view>
+                </viewController>
+                <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
+            </objects>
+            <point key="canvasLocation" x="53" y="375"/>
+        </scene>
+    </scenes>
+    <resources>
+        <image name="LaunchImage" width="168" height="185"/>
+    </resources>
+</document>

+ 26 - 0
ios/Runner/Base.lproj/Main.storyboard

@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
+    <dependencies>
+        <deployment identifier="iOS"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
+    </dependencies>
+    <scenes>
+        <!--Flutter View Controller-->
+        <scene sceneID="tne-QT-ifu">
+            <objects>
+                <viewController id="BYZ-38-t0r" customClass="FlutterViewController" sceneMemberID="viewController">
+                    <layoutGuides>
+                        <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
+                        <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
+                    </layoutGuides>
+                    <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
+                        <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
+                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                        <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
+                    </view>
+                </viewController>
+                <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
+            </objects>
+        </scene>
+    </scenes>
+</document>

+ 51 - 0
ios/Runner/Info.plist

@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>CFBundleDevelopmentRegion</key>
+	<string>$(DEVELOPMENT_LANGUAGE)</string>
+	<key>CFBundleDisplayName</key>
+	<string>Deus App</string>
+	<key>CFBundleExecutable</key>
+	<string>$(EXECUTABLE_NAME)</string>
+	<key>CFBundleIdentifier</key>
+	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
+	<key>CFBundleInfoDictionaryVersion</key>
+	<string>6.0</string>
+	<key>CFBundleName</key>
+	<string>deus_app</string>
+	<key>CFBundlePackageType</key>
+	<string>APPL</string>
+	<key>CFBundleShortVersionString</key>
+	<string>$(FLUTTER_BUILD_NAME)</string>
+	<key>CFBundleSignature</key>
+	<string>????</string>
+	<key>CFBundleVersion</key>
+	<string>$(FLUTTER_BUILD_NUMBER)</string>
+	<key>LSRequiresIPhoneOS</key>
+	<true/>
+	<key>UILaunchStoryboardName</key>
+	<string>LaunchScreen</string>
+	<key>UIMainStoryboardFile</key>
+	<string>Main</string>
+	<key>UISupportedInterfaceOrientations</key>
+	<array>
+		<string>UIInterfaceOrientationPortrait</string>
+		<string>UIInterfaceOrientationLandscapeLeft</string>
+		<string>UIInterfaceOrientationLandscapeRight</string>
+	</array>
+	<key>UISupportedInterfaceOrientations~ipad</key>
+	<array>
+		<string>UIInterfaceOrientationPortrait</string>
+		<string>UIInterfaceOrientationPortraitUpsideDown</string>
+		<string>UIInterfaceOrientationLandscapeLeft</string>
+		<string>UIInterfaceOrientationLandscapeRight</string>
+	</array>
+	<key>UIViewControllerBasedStatusBarAppearance</key>
+	<false/>
+	<key>CADisableMinimumFrameDurationOnPhone</key>
+	<true/>
+	<key>UIApplicationSupportsIndirectInputEvents</key>
+	<true/>
+</dict>
+</plist>

+ 9 - 0
ios/Runner/main.m

@@ -0,0 +1,9 @@
+#import <Flutter/Flutter.h>
+#import <UIKit/UIKit.h>
+#import "AppDelegate.h"
+
+int main(int argc, char* argv[]) {
+  @autoreleasepool {
+    return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
+  }
+}

+ 20 - 0
lib/common/config/config.dart

@@ -0,0 +1,20 @@
+class Config {
+  static bool? DEBUG = true;
+
+
+
+  static const PAGE_SIZE = 20;
+
+  /// //////////////////////////////////////常量////////////////////////////////////// ///
+  static const API_TOKEN = "4d65e2a5626103f92a71867d7b49fea0";
+  static const TOKEN_KEY = "token";
+  static const USER_NAME_KEY = "user-name";
+  static const PW_KEY = "user-pw";
+  static const USER_BASIC_CODE = "user-basic-code";
+  static const USER_INFO = "user-info";
+  static const LANGUAGE_SELECT = "language-select";
+  static const LANGUAGE_SELECT_NAME = "language-select-name";
+  static const REFRESH_LANGUAGE = "refreshLanguageApp";
+  static const THEME_COLOR = "theme-color";
+  static const LOCALE = "locale";
+}

+ 20 - 0
lib/common/local/local_storage.dart

@@ -0,0 +1,20 @@
+import "package:shared_preferences/shared_preferences.dart";
+
+///SharedPreferences 本地存储
+class LocalStorage {
+
+  static save(String key, value) async {
+    SharedPreferences prefs = await SharedPreferences.getInstance();
+    prefs.setString(key, value);
+  }
+
+  static get(String key) async {
+    SharedPreferences prefs = await SharedPreferences.getInstance();
+    return prefs.get(key);
+  }
+
+  static remove(String key) async {
+    SharedPreferences prefs = await SharedPreferences.getInstance();
+    prefs.remove(key);
+  }
+}

+ 103 - 0
lib/common/style/TitleBar.dart

@@ -0,0 +1,103 @@
+import 'package:deus_app/common/style/gsy_style.dart';
+import 'package:flutter/material.dart';
+
+/**
+ * Created with IntelliJ IDEA.
+ * Package: utils
+ * Author: sirai
+ * Create Time: 2019-06-24 16:10
+ * QQ: 785716471
+ * Email: 785716471@qq.com
+ * Description:公共的titlebar
+ */
+
+class TitleBar {
+
+  /**
+   * 仅含 左侧返回按钮 及中间标题
+   * appBar: TitleBar().backAppbar(context, '个人资料'),
+   * appBar: TitleBar().backAppbar(context, '个人资料',(){}),
+   */
+  backAppbar(BuildContext context, String title) {
+    return PreferredSize(
+        preferredSize: Size.fromHeight(48),
+        child: AppBar(
+          title: Text(
+            title,
+            style: TextStyle(color: GSYColors.primaryDarkValue, fontSize: 16),
+          ),
+          centerTitle: true,
+          leading: BackButton(),
+          brightness: Brightness.light,
+          backgroundColor: GSYColors.white,
+          elevation: 0,
+          iconTheme: IconThemeData(color: GSYColors.primaryDarkValue),
+        ));
+  }
+
+  /**
+   * 设置左侧按钮
+   */
+  _leading(BuildContext context, VoidCallback onPressed) {
+    return Column(
+      mainAxisAlignment: MainAxisAlignment.center,
+      crossAxisAlignment: CrossAxisAlignment.start,
+      children: <Widget>[
+        Container(
+          width: 44,
+          padding: EdgeInsets.all(0),
+          child: new IconButton(
+            padding: EdgeInsets.only(left: 16, right: 16),
+//            icon: Image.asset(
+//              'assets/images/ic_black_left_arrow.png',
+//              fit: BoxFit.contain,
+//              width: 16,
+//              height: 16,
+//            ),
+            icon: Icon(Icons.chevron_left),
+            onPressed: () {
+              if (onPressed == null) {
+                _popThis(context);
+              } else {
+                onPressed();
+              }
+            },
+          ),
+        ),
+      ],
+    );
+  }
+
+
+  homeAppBar(String title, VoidCallback rightButtonClick) {
+    return AppBar(
+      centerTitle: true,
+      titleSpacing: 0,
+      backgroundColor:Colors.black,
+      // 返回按钮
+      title: Text(
+        title,
+        style: TextStyle(fontSize: 17),
+      ),
+      automaticallyImplyLeading: false,
+      // 标题
+        actions: <Widget>[
+          new IconButton( // action button
+            padding: EdgeInsets.only(right: 20),
+            icon: new Icon(Icons.settings),
+            onPressed: rightButtonClick,
+          ),
+        ],
+    );
+  }
+
+
+
+  /**
+   * 关闭页面
+   */
+  _popThis(BuildContext context){
+    Navigator.of(context).pop();
+  }
+
+}

+ 293 - 0
lib/common/style/gsy_style.dart

@@ -0,0 +1,293 @@
+import 'package:flutter/material.dart';
+
+///颜色
+class GSYColors {
+  static const int primaryIntValue = 0xFF24292E;
+
+  static const MaterialColor primarySwatch = const MaterialColor(
+    primaryIntValue,
+    const <int, Color>{
+      50: const Color(primaryIntValue),
+      100: const Color(primaryIntValue),
+      200: const Color(primaryIntValue),
+      300: const Color(primaryIntValue),
+      400: const Color(primaryIntValue),
+      500: const Color(primaryIntValue),
+      600: const Color(primaryIntValue),
+      700: const Color(primaryIntValue),
+      800: const Color(primaryIntValue),
+      900: const Color(primaryIntValue),
+    },
+  );
+
+  static const String primaryValueString = "#24292E";
+  static const String primaryLightValueString = "#42464b";
+  static const String primaryDarkValueString = "#121917";
+  static const String miWhiteString = "#ececec";
+  static const String actionBlueString = "#267aff";
+  static const String webDraculaBackgroundColorString = "#282a36";
+
+  static const Color primaryValue = Color(0xFF24292E);
+  static const Color primaryLightValue = Color(0xFF42464b);
+  static const Color primaryDarkValue = Color(0xFF121917);
+
+  static const Color cardWhite = Color(0xFFFFFFFF);
+  static const Color textWhite = Color(0xFFFFFFFF);
+  static const Color miWhite = Color(0xffececec);
+  static const Color white = Color(0xFFFFFFFF);
+  static const Color actionBlue = Color(0xff267aff);
+  static const Color subTextColor = Color(0xff959595);
+  static const Color subLightTextColor = Color(0xffc4c4c4);
+
+  static const Color mainBackgroundColor = miWhite;
+
+  static const Color mainTextColor = primaryDarkValue;
+  static const Color textColorWhite = white;
+}
+
+///文本样式
+class GSYConstant {
+  static const String app_default_share_url =
+      "https://github.com/CarGuo/gsy_github_app_flutter";
+
+  static const lagerTextSize = 30.0;
+  static const bigTextSize = 23.0;
+  static const normalTextSize = 18.0;
+  static const middleTextWhiteSize = 16.0;
+  static const smallTextSize = 14.0;
+  static const minTextSize = 12.0;
+
+  static const minText = TextStyle(
+    color: GSYColors.subLightTextColor,
+    fontSize: minTextSize,
+  );
+
+  static const smallTextWhite = TextStyle(
+    color: GSYColors.textColorWhite,
+    fontSize: smallTextSize,
+  );
+
+  static const smallText = TextStyle(
+    color: GSYColors.mainTextColor,
+    fontSize: smallTextSize,
+  );
+
+  static const smallTextBold = TextStyle(
+    color: GSYColors.mainTextColor,
+    fontSize: smallTextSize,
+    fontWeight: FontWeight.bold,
+  );
+
+  static const smallSubLightText = TextStyle(
+    color: GSYColors.subLightTextColor,
+    fontSize: smallTextSize,
+  );
+
+  static const smallActionLightText = TextStyle(
+    color: GSYColors.actionBlue,
+    fontSize: smallTextSize,
+  );
+
+  static const smallMiLightText = TextStyle(
+    color: GSYColors.miWhite,
+    fontSize: smallTextSize,
+  );
+
+  static const smallSubText = TextStyle(
+    color: GSYColors.subTextColor,
+    fontSize: smallTextSize,
+  );
+
+  static const middleText = TextStyle(
+    color: GSYColors.mainTextColor,
+    fontSize: middleTextWhiteSize,
+  );
+
+  static const middleTextWhite = TextStyle(
+    color: GSYColors.textColorWhite,
+    fontSize: middleTextWhiteSize,
+  );
+
+  static const middleSubText = TextStyle(
+    color: GSYColors.subTextColor,
+    fontSize: middleTextWhiteSize,
+  );
+
+  static const middleSubLightText = TextStyle(
+    color: GSYColors.subLightTextColor,
+    fontSize: middleTextWhiteSize,
+  );
+
+  static const middleTextBold = TextStyle(
+    color: GSYColors.mainTextColor,
+    fontSize: middleTextWhiteSize,
+    fontWeight: FontWeight.bold,
+  );
+
+  static const middleTextWhiteBold = TextStyle(
+    color: GSYColors.textColorWhite,
+    fontSize: middleTextWhiteSize,
+    fontWeight: FontWeight.bold,
+  );
+
+  static const middleSubTextBold = TextStyle(
+    color: GSYColors.subTextColor,
+    fontSize: middleTextWhiteSize,
+    fontWeight: FontWeight.bold,
+  );
+
+  static const normalText = TextStyle(
+    color: GSYColors.mainTextColor,
+    fontSize: normalTextSize,
+  );
+
+  static const normalTextBold = TextStyle(
+    color: GSYColors.mainTextColor,
+    fontSize: normalTextSize,
+    fontWeight: FontWeight.bold,
+  );
+
+  static const normalSubText = TextStyle(
+    color: GSYColors.subTextColor,
+    fontSize: normalTextSize,
+  );
+
+  static const normalTextWhite = TextStyle(
+    color: GSYColors.textColorWhite,
+    fontSize: normalTextSize,
+  );
+
+  static const normalTextMitWhiteBold = TextStyle(
+    color: GSYColors.miWhite,
+    fontSize: normalTextSize,
+    fontWeight: FontWeight.bold,
+  );
+
+  static const normalTextActionWhiteBold = TextStyle(
+    color: GSYColors.actionBlue,
+    fontSize: normalTextSize,
+    fontWeight: FontWeight.bold,
+  );
+
+  static const normalTextLight = TextStyle(
+    color: GSYColors.primaryLightValue,
+    fontSize: normalTextSize,
+  );
+
+  static const largeText = TextStyle(
+    color: GSYColors.mainTextColor,
+    fontSize: bigTextSize,
+  );
+
+  static const largeTextBold = TextStyle(
+    color: GSYColors.mainTextColor,
+    fontSize: bigTextSize,
+    fontWeight: FontWeight.bold,
+  );
+
+  static const largeTextWhite = TextStyle(
+    color: GSYColors.textColorWhite,
+    fontSize: bigTextSize,
+  );
+
+  static const largeTextWhiteBold = TextStyle(
+    color: GSYColors.textColorWhite,
+    fontSize: bigTextSize,
+    fontWeight: FontWeight.bold,
+  );
+
+  static const largeLargeTextWhite = TextStyle(
+    color: GSYColors.textColorWhite,
+    fontSize: lagerTextSize,
+    fontWeight: FontWeight.bold,
+  );
+
+  static const largeLargeText = TextStyle(
+    color: GSYColors.primaryValue,
+    fontSize: lagerTextSize,
+    fontWeight: FontWeight.bold,
+  );
+}
+
+class GSYICons {
+  static const String FONT_FAMILY = 'wxcIconFont';
+
+  static const String DEFAULT_USER_ICON = 'static/images/logo.png';
+  static const String DEFAULT_IMAGE = 'static/images/default_img.png';
+  static const String DEFAULT_REMOTE_PIC =
+      'http://img.cdn.guoshuyu.cn/gsy_github_app_logo.png';
+
+  static const IconData HOME =
+      const IconData(0xe624, fontFamily: GSYICons.FONT_FAMILY);
+  static const IconData MORE =
+      const IconData(0xe674, fontFamily: GSYICons.FONT_FAMILY);
+  static const IconData SEARCH =
+      const IconData(0xe61c, fontFamily: GSYICons.FONT_FAMILY);
+
+  static const IconData MAIN_DT =
+      const IconData(0xe684, fontFamily: GSYICons.FONT_FAMILY);
+  static const IconData MAIN_QS =
+      const IconData(0xe818, fontFamily: GSYICons.FONT_FAMILY);
+  static const IconData MAIN_MY =
+      const IconData(0xe6d0, fontFamily: GSYICons.FONT_FAMILY);
+  static const IconData MAIN_SEARCH =
+      const IconData(0xe61c, fontFamily: GSYICons.FONT_FAMILY);
+
+  static const IconData LOGIN_USER =
+      const IconData(0xe666, fontFamily: GSYICons.FONT_FAMILY);
+  static const IconData LOGIN_PW =
+      const IconData(0xe60e, fontFamily: GSYICons.FONT_FAMILY);
+
+  static const IconData REPOS_ITEM_USER =
+      const IconData(0xe63e, fontFamily: GSYICons.FONT_FAMILY);
+  static const IconData REPOS_ITEM_STAR =
+      const IconData(0xe643, fontFamily: GSYICons.FONT_FAMILY);
+  static const IconData REPOS_ITEM_FORK =
+      const IconData(0xe67e, fontFamily: GSYICons.FONT_FAMILY);
+  static const IconData REPOS_ITEM_ISSUE =
+      const IconData(0xe661, fontFamily: GSYICons.FONT_FAMILY);
+
+  static const IconData REPOS_ITEM_STARED =
+      const IconData(0xe698, fontFamily: GSYICons.FONT_FAMILY);
+  static const IconData REPOS_ITEM_WATCH =
+      const IconData(0xe681, fontFamily: GSYICons.FONT_FAMILY);
+  static const IconData REPOS_ITEM_WATCHED =
+      const IconData(0xe629, fontFamily: GSYICons.FONT_FAMILY);
+  static const IconData REPOS_ITEM_DIR = Icons.folder;
+  static const IconData REPOS_ITEM_FILE =
+      const IconData(0xea77, fontFamily: GSYICons.FONT_FAMILY);
+  static const IconData REPOS_ITEM_NEXT =
+      const IconData(0xe610, fontFamily: GSYICons.FONT_FAMILY);
+
+  static const IconData USER_ITEM_COMPANY =
+      const IconData(0xe63e, fontFamily: GSYICons.FONT_FAMILY);
+  static const IconData USER_ITEM_LOCATION =
+      const IconData(0xe7e6, fontFamily: GSYICons.FONT_FAMILY);
+  static const IconData USER_ITEM_LINK =
+      const IconData(0xe670, fontFamily: GSYICons.FONT_FAMILY);
+  static const IconData USER_NOTIFY =
+      const IconData(0xe600, fontFamily: GSYICons.FONT_FAMILY);
+
+  static const IconData ISSUE_ITEM_ISSUE =
+      const IconData(0xe661, fontFamily: GSYICons.FONT_FAMILY);
+  static const IconData ISSUE_ITEM_COMMENT =
+      const IconData(0xe6ba, fontFamily: GSYICons.FONT_FAMILY);
+  static const IconData ISSUE_ITEM_ADD =
+      const IconData(0xe662, fontFamily: GSYICons.FONT_FAMILY);
+
+  static const IconData ISSUE_EDIT_H1 = Icons.filter_1;
+  static const IconData ISSUE_EDIT_H2 = Icons.filter_2;
+  static const IconData ISSUE_EDIT_H3 = Icons.filter_3;
+  static const IconData ISSUE_EDIT_BOLD = Icons.format_bold;
+  static const IconData ISSUE_EDIT_ITALIC = Icons.format_italic;
+  static const IconData ISSUE_EDIT_QUOTE = Icons.format_quote;
+  static const IconData ISSUE_EDIT_CODE = Icons.format_shapes;
+  static const IconData ISSUE_EDIT_LINK = Icons.insert_link;
+
+  static const IconData NOTIFY_ALL_READ =
+      const IconData(0xe62f, fontFamily: GSYICons.FONT_FAMILY);
+
+  static const IconData PUSH_ITEM_EDIT = Icons.mode_edit;
+  static const IconData PUSH_ITEM_ADD = Icons.add_box;
+  static const IconData PUSH_ITEM_MIN = Icons.indeterminate_check_box;
+}

+ 10 - 0
lib/common/utils/CommonUtils.dart

@@ -0,0 +1,10 @@
+
+
+class CommonUtils {
+
+  // 验证是否为null 或者 ''
+  static bool validationInput(String? inputText) {
+    return inputText?.isNotEmpty ?? false;
+  }
+
+}

+ 15 - 0
lib/common/utils/ConstantString.dart

@@ -0,0 +1,15 @@
+class ConstantString {
+  static const String token = "token";
+
+  static const String name = "name";
+
+  static const String userId = "userId";
+
+  static const String loadingText = "努力加载中···";
+
+  static const String loginText = "登录";
+
+  static const String mainText = "首页";
+
+  static const String loginNull = "请输入用户名和密码";
+}

+ 125 - 0
lib/common/utils/DioUtil.dart

@@ -0,0 +1,125 @@
+import 'package:deus_app/common/utils/ToastUtils.dart';
+import 'package:dio/dio.dart';
+
+/// 请求方法
+enum DioMethod {
+  get,
+  post,
+  put,
+  delete,
+  patch,
+  head,
+}
+
+class DioUtil {
+  /// 单例模式
+  static DioUtil? _instance;
+  factory DioUtil() => _instance ?? DioUtil._internal();
+  static DioUtil? get instance => _instance ?? DioUtil._internal();
+
+  /// 连接超时时间
+  static const int connectTimeout = 60 * 1000;
+
+  /// 响应超时时间
+  static const int receiveTimeout = 60 * 1000;
+
+  /// Dio实例
+  static Dio _dio = Dio();
+
+  /// 初始化
+  DioUtil._internal() {
+    // 初始化基本选项
+    Map<String, String> map={
+      // 'Bearer Token':''
+    };
+    BaseOptions options = BaseOptions(
+        baseUrl: 'https://fqgz.flowbb.cn:7070/system-api/',
+        headers: map,
+        connectTimeout: connectTimeout,
+        receiveTimeout: receiveTimeout);
+    _instance = this;
+    // 初始化dio
+    _dio = Dio(options);
+    // 添加拦截器
+    _dio.interceptors.add(InterceptorsWrapper(
+        onRequest: _onRequest, onResponse: _onResponse, onError: _onError));
+  }
+
+  /// 请求拦截器
+  void _onRequest(RequestOptions options, RequestInterceptorHandler handler) {
+    // 对非open的接口的请求参数全部增加userId
+    if (!options.path.contains("open")) {
+      options.queryParameters["userId"] = "xxx";
+    }
+    // 头部添加token
+    options.headers["Token"] = "xxx";
+    // 更多业务需求
+    handler.next(options);
+    // super.onRequest(options, handler);
+  }
+
+  /// 相应拦截器
+  void _onResponse(
+      Response response, ResponseInterceptorHandler handler) async {
+    // 请求成功是对数据做基本处理
+    if (response.statusCode == 200) {
+      // ....
+      handler.next(response);
+    } else {
+      // ....
+      // showToast(response.statusMessage);
+    }
+    if (response.requestOptions.baseUrl.contains("???????")) {
+      // 对某些单独的url返回数据做特殊处理
+    }
+  }
+
+  /// 错误处理
+  void _onError(DioError error, ErrorInterceptorHandler handler) {
+    handler.next(error);
+    showToast(error.message);
+  }
+
+  /// 请求类
+  Future<T> request<T>(
+      String path, {
+        DioMethod method = DioMethod.get,
+        Map<String, dynamic>? params,
+        data,
+        CancelToken? cancelToken,
+        Options? options,
+        ProgressCallback? onSendProgress,
+        ProgressCallback? onReceiveProgress,
+      }) async {
+    const _methodValues = {
+      DioMethod.get: 'get',
+      DioMethod.post: 'post',
+      DioMethod.put: 'put',
+      DioMethod.delete: 'delete',
+      DioMethod.patch: 'patch',
+      DioMethod.head: 'head'
+    };
+    options ??= Options(method: _methodValues[method]);
+    try {
+      Response response;
+      response = await _dio.request(path,
+          data: data,
+          queryParameters: params,
+          cancelToken: cancelToken,
+          options: options,
+          onSendProgress: onSendProgress,
+          onReceiveProgress: onReceiveProgress);
+        return response.data;
+    } on DioError catch (e) {
+      showToast(e.message);
+      rethrow;
+    }
+  }
+
+  /// 开启日志打印
+  /// 需要打印日志的接口在接口请求前 DioUtil.instance?.openLog();
+  void openLog() {
+    _dio.interceptors
+        .add(LogInterceptor(responseHeader: false, responseBody: true));
+  }
+}

+ 13 - 0
lib/common/utils/ToastUtils.dart

@@ -0,0 +1,13 @@
+import 'package:fluttertoast/fluttertoast.dart';
+
+void showToast(String text){
+  Fluttertoast.showToast(msg: text,
+      gravity: ToastGravity.CENTER,
+      toastLength: Toast.LENGTH_SHORT);
+}
+
+void showLongToast(String text){
+  Fluttertoast.showToast(msg: text,
+      gravity: ToastGravity.CENTER,
+      toastLength: Toast.LENGTH_LONG);
+}

+ 318 - 0
lib/common/utils/navigator_utils.dart

@@ -0,0 +1,318 @@
+import 'package:deus_app/page/login/login_page.dart';
+import 'package:flutter/cupertino.dart';
+import 'package:flutter/material.dart';
+
+/**
+ * 导航栏
+ * Created by guoshuyu
+ * Date: 2018-07-16
+ */
+class NavigatorUtils {
+  ///替换
+  static pushReplacementNamed(BuildContext context, String routeName) {
+    Navigator.pushReplacementNamed(context, routeName);
+//    if (navigator == null) {
+//      try {
+//        navigator = Navigator.of(context);
+//      } catch (e) {
+//        error = true;
+//      }
+//    }
+//
+//    if (replace) {
+//      ///如果可以返回,清空开始,然后塞入
+//      if (!error && navigator.canPop()) {
+//        navigator.pushAndRemoveUntil(
+//          router,
+//          ModalRoute.withName('/'),
+//        );
+//      } else {
+//        ///如果不可返回,直接替换当前
+//        navigator.pushReplacement(router);
+//      }
+//    } else {
+//      navigator.push(router);
+//    }
+  }
+
+  ///切换无参数页面
+  static pushNamed(BuildContext context, String routeName) {
+    Navigator.pushNamed(context, routeName);
+  }
+
+  // ///主页
+  // static goHome(BuildContext context) {
+  //   Navigator.pushReplacementNamed(context, HomePage.sName);
+  // }
+
+  ///登录页
+  static goLogin(BuildContext context) {
+    Navigator.pushReplacementNamed(context, LoginPage.sName);
+  }
+
+
+  // ///图片预览
+  // static gotoPhotoViewPage(BuildContext context, String? url) {
+  //   Navigator.pushNamed(context, PhotoViewPage.sName, arguments: url);
+  // }
+  //
+  // ///个人中心
+  // static goPerson(BuildContext context, String? userName) {
+  //   NavigatorRouter(context, new PersonPage(userName));
+  // }
+  //
+  // ///请求数据调试页面
+  // static goDebugDataPage(BuildContext context) {
+  //   return NavigatorRouter(context, new DebugDataPage());
+  // }
+
+  // ///仓库详情
+  // static Future goReposDetail(
+  //     BuildContext context, String? userName, String? reposName) {
+  //   ///利用 SizeRoute 动画大小打开
+  //   return Navigator.push(
+  //       context,
+  //       PageRouteBuilder(
+  //         pageBuilder: (context, animation, secondaryAnimation) =>
+  //             RepositoryDetailPage(userName, reposName),
+  //         transitionsBuilder: (context, animation, secondaryAnimation, child) {
+  //           double begin = 0;
+  //           double end = 1;
+  //           var curve = Curves.ease;
+  //
+  //           var tween =
+  //               Tween(begin: begin, end: end).chain(CurveTween(curve: curve));
+  //
+  //           return Align(
+  //             child: SizeTransition(
+  //               sizeFactor: animation.drive(tween),
+  //               child: NeverOverScrollIndicator(
+  //                 needOverload: false,
+  //                 child: child,
+  //               ),
+  //             ),
+  //           );
+  //         },
+  //       ));
+  // }
+  //
+  // ///荣耀列表
+  // static Future goHonorListPage(BuildContext context, List? list) {
+  //   return Navigator.push(
+  //     context,
+  //     PageRouteBuilder(
+  //       pageBuilder: (context, animation, secondaryAnimation) =>
+  //           HonorListPage(list),
+  //       transitionsBuilder: (context, animation, secondaryAnimation, child) {
+  //         double begin = 0;
+  //         double end = 1;
+  //         var curve = Curves.ease;
+  //
+  //         var tween =
+  //             Tween(begin: begin, end: end).chain(CurveTween(curve: curve));
+  //
+  //         return Align(
+  //           child: SizeTransition(
+  //             sizeFactor: animation.drive(tween),
+  //             child: NeverOverScrollIndicator(
+  //               needOverload: false,
+  //               child: child,
+  //             ),
+  //           ),
+  //         );
+  //       },
+  //     ),
+  //   );
+  // }
+  //
+  // ///仓库版本列表
+  // static Future goReleasePage(BuildContext context, String? userName,
+  //     String? reposName, String releaseUrl, String tagUrl) {
+  //   return NavigatorRouter(
+  //       context,
+  //       new ReleasePage(
+  //         userName,
+  //         reposName,
+  //         releaseUrl,
+  //         tagUrl,
+  //       ));
+  // }
+  //
+  // ///issue详情
+  // static Future goIssueDetail(
+  //     BuildContext context, String? userName, String? reposName, String num,
+  //     {bool needRightLocalIcon = false}) {
+  //   return NavigatorRouter(
+  //       context,
+  //       new IssueDetailPage(
+  //         userName,
+  //         reposName,
+  //         num,
+  //         needHomeIcon: needRightLocalIcon,
+  //       ));
+  // }
+  //
+  // ///通用列表
+  // static gotoCommonList(
+  //     BuildContext context, String? title, String showType, CommonListDataType dataType,
+  //     {String? userName, String? reposName}) {
+  //   NavigatorRouter(
+  //       context,
+  //       new CommonListPage(
+  //         title,
+  //         showType,
+  //         dataType,
+  //         userName: userName,
+  //         reposName: reposName,
+  //       ));
+  // }
+  //
+  // ///仓库详情通知
+  // static Future goNotifyPage(BuildContext context) {
+  //   return NavigatorRouter(context, new NotifyPage());
+  // }
+  //
+  // ///用户趋势
+  // static Future goTrendUserPage(BuildContext context) {
+  //   return NavigatorRouter(context, new TrendUserPage());
+  // }
+  //
+  // ///搜索
+  // static Future goSearchPage(BuildContext context, Offset centerPosition) {
+  //   return showGeneralDialog(
+  //     context: context,
+  //     pageBuilder: (BuildContext buildContext, Animation<double> animation,
+  //         Animation<double> secondaryAnimation) {
+  //       return Builder(builder: (BuildContext context) {
+  //         return pageContainer(SearchPage(centerPosition), context);
+  //       });
+  //     },
+  //     barrierDismissible: false,
+  //     barrierLabel: MaterialLocalizations.of(context).modalBarrierDismissLabel,
+  //     barrierColor: Color(0x01000000),
+  //     transitionDuration: const Duration(milliseconds: 150),
+  //     transitionBuilder: (BuildContext context, Animation<double> animation,
+  //         Animation<double> secondaryAnimation, Widget child) {
+  //       return FadeTransition(
+  //         opacity: CurvedAnimation(
+  //           parent: animation,
+  //           curve: Curves.easeOut,
+  //         ),
+  //         child: child,
+  //       );
+  //     },
+  //   );
+  // }
+  //
+  // ///提交详情
+  // static Future goPushDetailPage(BuildContext context, String? userName,
+  //     String? reposName, String? sha, bool needHomeIcon) {
+  //   return NavigatorRouter(
+  //       context,
+  //       new PushDetailPage(
+  //         sha,
+  //         userName,
+  //         reposName,
+  //         needHomeIcon: needHomeIcon,
+  //       ));
+  // }
+  //
+  // ///全屏Web页面
+  // static Future goGSYWebView(BuildContext context, String url, String? title) {
+  //   return NavigatorRouter(context, new GSYWebView(url, title));
+  // }
+  //
+  // ///登陆Web页面
+  // static Future goLoginWebView(BuildContext context, String url, String title) {
+  //   return NavigatorRouter(context, new LoginWebView(url, title));
+  // }
+  //
+  // ///文件代码详情Web
+  // static gotoCodeDetailPageWeb(BuildContext context,
+  //     {String? title,
+  //     String? userName,
+  //     String? reposName,
+  //     String? path,
+  //     String? data,
+  //     String? branch,
+  //     String? htmlUrl}) {
+  //   NavigatorRouter(
+  //       context,
+  //       new CodeDetailPageWeb(
+  //         title: title,
+  //         userName: userName,
+  //         reposName: reposName,
+  //         path: path,
+  //         data: data,
+  //         branch: branch,
+  //         htmlUrl: htmlUrl,
+  //       ));
+  // }
+  //
+  // ///根据平台跳转文件代码详情Web
+  // static gotoCodeDetailPlatform(BuildContext context,
+  //     {String? title,
+  //     String? userName,
+  //     String? reposName,
+  //     String? path,
+  //     String? data,
+  //     String? branch,
+  //     String? htmlUrl}) {
+  //   NavigatorUtils.gotoCodeDetailPageWeb(
+  //     context,
+  //     title: title,
+  //     reposName: reposName,
+  //     userName: userName,
+  //     data: data,
+  //     path: path,
+  //     branch: branch,
+  //   );
+  // }
+  //
+  // ///用户配置
+  // static gotoUserProfileInfo(BuildContext context) {
+  //   NavigatorRouter(context, new UserProfileInfo());
+  // }
+  //
+  // ///公共打开方式
+  // static NavigatorRouter(BuildContext context, Widget widget) {
+  //   return Navigator.push(
+  //       context,
+  //       new CupertinoPageRoute(
+  //           builder: (context) => pageContainer(widget, context)));
+  // }
+  //
+  // ///Page页面的容器,做一次通用自定义
+  // static Widget pageContainer(widget, BuildContext context) {
+  //   return MediaQuery(
+  //
+  //       ///不受系统字体缩放影响
+  //       data: MediaQuery.of(context).copyWith(textScaleFactor: 1),
+  //       child: NeverOverScrollIndicator(
+  //         needOverload: false,
+  //         child: widget,
+  //       ));
+  // }
+  //
+  // ///弹出 dialog
+  // static Future<T?> showGSYDialog<T>({
+  //   required BuildContext context,
+  //   bool barrierDismissible = true,
+  //   WidgetBuilder? builder,
+  // }) {
+  //   return showDialog<T>(
+  //       context: context,
+  //       barrierDismissible: barrierDismissible,
+  //       builder: (context) {
+  //         return MediaQuery(
+  //
+  //             ///不受系统字体缩放影响
+  //             data: MediaQueryData.fromView(WidgetsBinding.instance.platformDispatcher.views.first)
+  //                 .copyWith(textScaleFactor: 1),
+  //             child: NeverOverScrollIndicator(
+  //               needOverload: false,
+  //               child: new SafeArea(child: builder!(context)),
+  //             ));
+  //       });
+  // }
+}

+ 78 - 0
lib/generated/json/base/json_convert_content.dart

@@ -0,0 +1,78 @@
+// ignore_for_file: non_constant_identifier_names
+// ignore_for_file: camel_case_types
+// ignore_for_file: prefer_single_quotes
+
+import 'package:deus_app/generated/json/login_response_entity_helper.dart';
+// This file is automatically generated. DO NOT EDIT, all your changes would be lost.
+import 'package:deus_app/model/login_response_entity.dart';
+
+class JsonConvert<T> {
+	T fromJson(Map<String, dynamic> json) {
+		return _getFromJson<T>(runtimeType, this, json);
+	}
+
+  Map<String, dynamic> toJson() {
+		return _getToJson<T>(runtimeType, this);
+  }
+
+  static _getFromJson<T>(Type type, data, json) {
+		switch (type) {
+			case LoginResponseEntity:
+				return loginResponseEntityFromJson(data as LoginResponseEntity, json) as T;
+			case LoginResponseData:
+				return loginResponseDataFromJson(data as LoginResponseData, json) as T;
+			case LoginResponseDataUser:
+				return loginResponseDataUserFromJson(data as LoginResponseDataUser, json) as T;    }
+		return data as T;
+	}
+
+  static _getToJson<T>(Type type, data) {
+		switch (type) {
+			case LoginResponseEntity:
+				return loginResponseEntityToJson(data as LoginResponseEntity);
+			case LoginResponseData:
+				return loginResponseDataToJson(data as LoginResponseData);
+			case LoginResponseDataUser:
+				return loginResponseDataUserToJson(data as LoginResponseDataUser);
+			}
+			return data as T;
+		}
+  //Go back to a single instance by type
+	static _fromJsonSingle<M>( json) {
+		String type = M.toString();
+		if(type == (LoginResponseEntity).toString()){
+			return LoginResponseEntity().fromJson(json);
+		}
+		if(type == (LoginResponseData).toString()){
+			return LoginResponseData().fromJson(json);
+		}
+		if(type == (LoginResponseDataUser).toString()){
+			return LoginResponseDataUser().fromJson(json);
+		}
+
+		return null;
+	}
+
+  //list is returned by type
+	static M _getListChildType<M>(List data) {
+		if(<LoginResponseEntity>[] is M){
+			return data.map<LoginResponseEntity>((e) => LoginResponseEntity().fromJson(e)).toList() as M;
+		}
+		if(<LoginResponseData>[] is M){
+			return data.map<LoginResponseData>((e) => LoginResponseData().fromJson(e)).toList() as M;
+		}
+		if(<LoginResponseDataUser>[] is M){
+			return data.map<LoginResponseDataUser>((e) => LoginResponseDataUser().fromJson(e)).toList() as M;
+		}
+
+		throw Exception("not found");
+	}
+
+  static M fromJsonAsT<M>(json) {
+		if (json is List) {
+			return _getListChildType<M>(json);
+		} else {
+			return _fromJsonSingle<M>(json) as M;
+		}
+	}
+}

+ 18 - 0
lib/generated/json/base/json_field.dart

@@ -0,0 +1,18 @@
+// ignore_for_file: non_constant_identifier_names
+// ignore_for_file: camel_case_types
+// ignore_for_file: prefer_single_quotes
+
+// This file is automatically generated. DO NOT EDIT, all your changes would be lost.
+
+class JSONField {
+  //Specify the parse field name
+  final String? name;
+
+  //Whether to participate in toJson
+  final bool? serialize;
+  
+  //Whether to participate in fromMap
+  final bool? deserialize;
+
+  const JSONField({this.name, this.serialize, this.deserialize});
+}

+ 100 - 0
lib/generated/json/login_response_entity_helper.dart

@@ -0,0 +1,100 @@
+import 'package:deus_app/model/login_response_entity.dart';
+
+loginResponseEntityFromJson(LoginResponseEntity data, Map<String, dynamic> json) {
+	if (json['code'] != null) {
+		data.code = json['code'] is String
+				? int.tryParse(json['code'])
+				: json['code'].toInt();
+	}
+	if (json['data'] != null) {
+		data.data = LoginResponseData().fromJson(json['data']);
+	}
+	if (json['msg'] != null) {
+		data.msg = json['msg'].toString();
+	}
+	return data;
+}
+
+Map<String, dynamic> loginResponseEntityToJson(LoginResponseEntity entity) {
+	final Map<String, dynamic> data = new Map<String, dynamic>();
+	data['code'] = entity.code;
+	data['data'] = entity.data?.toJson();
+	data['msg'] = entity.msg;
+	return data;
+}
+
+loginResponseDataFromJson(LoginResponseData data, Map<String, dynamic> json) {
+	if (json['user'] != null) {
+		data.user = LoginResponseDataUser().fromJson(json['user']);
+	}
+	if (json['token'] != null) {
+		data.token = json['token'].toString();
+	}
+	return data;
+}
+
+Map<String, dynamic> loginResponseDataToJson(LoginResponseData entity) {
+	final Map<String, dynamic> data = new Map<String, dynamic>();
+	data['user'] = entity.user?.toJson();
+	data['token'] = entity.token;
+	return data;
+}
+
+loginResponseDataUserFromJson(LoginResponseDataUser data, Map<String, dynamic> json) {
+	if (json['key'] != null) {
+		data.key = json['key'].toString();
+	}
+	if (json['token'] != null) {
+		data.token = json['token'].toString();
+	}
+	if (json['ip'] != null) {
+		data.ip = json['ip'].toString();
+	}
+	if (json['address'] != null) {
+		data.address = json['address'].toString();
+	}
+	if (json['browser'] != null) {
+		data.browser = json['browser'].toString();
+	}
+	if (json['loginTime'] != null) {
+		data.loginTime = json['loginTime'].toString();
+	}
+	if (json['userId'] != null) {
+		data.userId = json['userId'] is String
+				? int.tryParse(json['userId'])
+				: json['userId'].toInt();
+	}
+	if (json['username'] != null) {
+		data.username = json['username'].toString();
+	}
+	if (json['nickName'] != null) {
+		data.nickName = json['nickName'];
+	}
+	if (json['enabled'] != null) {
+		data.enabled = json['enabled'];
+	}
+	if (json['dataScopes'] != null) {
+		data.dataScopes = json['dataScopes'];
+	}
+	if (json['authorities'] != null) {
+		data.authorities = (json['authorities'] as List).map((v) => v).toList().cast<dynamic>();
+	}
+	return data;
+}
+
+Map<String, dynamic> loginResponseDataUserToJson(LoginResponseDataUser entity) {
+	final Map<String, dynamic> data = new Map<String, dynamic>();
+	data['key'] = entity.key;
+	data['token'] = entity.token;
+	data['ip'] = entity.ip;
+	data['address'] = entity.address;
+	data['browser'] = entity.browser;
+	data['loginTime'] = entity.loginTime;
+	data['userId'] = entity.userId;
+	data['username'] = entity.username;
+	data['nickName'] = entity.nickName;
+	data['enabled'] = entity.enabled;
+	data['dataScopes'] = entity.dataScopes;
+	data['authorities'] = entity.authorities;
+	return data;
+}

+ 103 - 0
lib/home.dart

@@ -0,0 +1,103 @@
+import 'package:flutter/material.dart';
+
+class FMHomeVC extends StatefulWidget {
+  @override
+  FMHomeState createState() => FMHomeState();
+}
+
+class FMHomeState extends State<FMHomeVC> {
+  var funcLists = [];
+
+  @override
+  void initState() {
+    super.initState();
+
+    initData();
+  }
+
+  void initData() {
+    funcLists.add(
+        {"name": "基础组件", "desc": "在构建您的第一个Flutter应用程序之前,您绝对需要了解这些widget。"});
+    funcLists.add({
+      "name": "Material Components",
+      "desc": "实现了Material Design 指南的视觉、效果、motion-rich的widget。"
+    });
+    funcLists.add({
+      "name": "Cupertino(iOS风格的widget)",
+      "desc": "用于当前iOS设计语言的美丽和高保真widget。"
+    });
+    funcLists.add({
+      "name": "Layout",
+      "desc": "排列其它widget的columns、rows、grids和其它的layouts。"
+    });
+    funcLists.add({"name": "Text", "desc": "文本显示和样式。"});
+    funcLists.add({"name": "Assets、图片、Icons", "desc": "管理assets, 显示图片和Icon。"});
+    funcLists.add({
+      "name": "Input",
+      "desc": "Material Components 和 Cupertino中获取用户输入的widget。"
+    });
+    funcLists.add({"name": "动画和Motion", "desc": "在您的应用中使用动画。查看Flutter中的动画总览。"});
+    funcLists.add({"name": "交互模型", "desc": "响应触摸事件并将用户路由到不同的页面视图(View)。"});
+    funcLists.add({"name": "样式", "desc": "管理应用的主题,使应用能够响应式的适应屏幕尺寸或添加填充。"});
+    funcLists.add(
+        {"name": "绘制和效果", "desc": "Widget将视觉效果应用到其子组件,而不改变它们的布局、大小和位置。"});
+    funcLists.add({"name": "Async", "desc": "Flutter应用的异步模型。"});
+    funcLists.add({"name": "滚动", "desc": "滚动一个拥有多个子组件的父组件。"});
+    funcLists.add({"name": "辅助功能", "desc": "给你的App添加辅助功能(这是一个正在进行的工作)。"});
+
+    print(funcLists);
+
+    setState(() {
+
+    });
+  }
+
+  @override
+  Widget build(BuildContext context) {
+    // TODO: implement build
+
+    return Container(
+      child: Scaffold(
+        backgroundColor: Colors.white,
+        appBar: AppBar(
+          backgroundColor: Colors.lightBlue,
+          title: Text("Widgets 目录"),
+        ),
+        body: Center(
+          child: ListView.builder(
+            padding: const EdgeInsets.all(15.0),
+            itemCount: funcLists.length,
+            itemBuilder: (context, index) {
+              var func = funcLists[index];
+              return ListTile(
+                contentPadding: const EdgeInsets.all(10.0),
+                title: Text(
+                  "${func["name"]}",
+                  style: TextStyle(
+                    fontSize: 20,
+                    color: Colors.black,
+                  ),
+                ),
+                subtitle: Text(
+                  "${func["desc"]}",
+                  style: TextStyle(
+                    fontSize: 15,
+                    color: Colors.grey,
+                  ),
+                ),
+                onTap: () {
+                  Navigator.push(
+                    context,
+                    MaterialPageRoute(builder: (context) {
+                      return FMHomeVC();
+                    }),
+                  );
+                },
+              );
+            },
+          ),
+        ),
+      ),
+    );
+  }
+}

+ 120 - 0
lib/main.dart

@@ -0,0 +1,120 @@
+import 'package:deus_app/page/login/login_page.dart';
+import 'package:flutter/material.dart';
+
+void main() {
+  runApp(const MyApp());
+}
+
+class MyApp extends StatelessWidget {
+  const MyApp({super.key});
+
+  // This widget is the root of your application.
+  @override
+  Widget build(BuildContext context) {
+    return MaterialApp(
+      title: 'Flutter Demo',
+      theme: ThemeData(
+        // This is the theme of your application.
+        //
+        // Try running your application with "flutter run". You'll see the
+        // application has a blue toolbar. Then, without quitting the app, try
+        // changing the primarySwatch below to Colors.green and then invoke
+        // "hot reload" (press "r" in the console where you ran "flutter run",
+        // or simply save your changes to "hot reload" in a Flutter IDE).
+        // Notice that the counter didn't reset back to zero; the application
+        // is not restarted.
+        brightness: Brightness.light,
+        primarySwatch: Colors.blue,
+      ),
+      // home: const MyHomePage(title: 'Flutter Demo Home Page'),
+      home: LoginPage(),
+    );
+  }
+}
+
+class MyHomePage extends StatefulWidget {
+  const MyHomePage({super.key, required this.title});
+
+  // This widget is the home page of your application. It is stateful, meaning
+  // that it has a State object (defined below) that contains fields that affect
+  // how it looks.
+
+  // This class is the configuration for the state. It holds the values (in this
+  // case the title) provided by the parent (in this case the App widget) and
+  // used by the build method of the State. Fields in a Widget subclass are
+  // always marked "final".
+
+  final String title;
+
+  @override
+  State<MyHomePage> createState() => _MyHomePageState();
+}
+
+class _MyHomePageState extends State<MyHomePage> {
+  int _counter = 0;
+
+  void _incrementCounter() {
+    setState(() {
+      // This call to setState tells the Flutter framework that something has
+      // changed in this State, which causes it to rerun the build method below
+      // so that the display can reflect the updated values. If we changed
+      // _counter without calling setState(), then the build method would not be
+      // called again, and so nothing would appear to happen.
+      _counter++;
+    });
+  }
+
+  @override
+  Widget build(BuildContext context) {
+    // This method is rerun every time setState is called, for instance as done
+    // by the _incrementCounter method above.
+    //
+    // The Flutter framework has been optimized to make rerunning build methods
+    // fast, so that you can just rebuild anything that needs updating rather
+    // than having to individually change instances of widgets.
+    return Scaffold(
+      appBar: AppBar(
+        // Here we take the value from the MyHomePage object that was created by
+        // the App.build method, and use it to set our appbar title.
+        title: Text(widget.title),
+      ),
+      body: Center(
+        // Center is a layout widget. It takes a single child and positions it
+        // in the middle of the parent.
+        child: Column(
+          // Column is also a layout widget. It takes a list of children and
+          // arranges them vertically. By default, it sizes itself to fit its
+          // children horizontally, and tries to be as tall as its parent.
+          //
+          // Invoke "debug painting" (press "p" in the console, choose the
+          // "Toggle Debug Paint" action from the Flutter Inspector in Android
+          // Studio, or the "Toggle Debug Paint" command in Visual Studio Code)
+          // to see the wireframe for each widget.
+          //
+          // Column has various properties to control how it sizes itself and
+          // how it positions its children. Here we use mainAxisAlignment to
+          // center the children vertically; the main axis here is the vertical
+          // axis because Columns are vertical (the cross axis would be
+          // horizontal).
+          mainAxisAlignment: MainAxisAlignment.center,
+          children: <Widget>[
+            const Text(
+              'You have pushed the button this many times:',
+            ),
+            Text(
+              '$_counter',
+              style: Theme.of(context).textTheme.headline4,
+            ),
+          ],
+        ),
+      ),
+      floatingActionButton: FloatingActionButton(
+        onPressed: _incrementCounter,
+        tooltip: 'Increment',
+        child: const Icon(Icons.add),
+      ), // This trailing comma makes auto-formatting nicer for build methods.
+
+
+    );
+  }
+}

+ 20 - 0
lib/model/CommonListDataType.dart

@@ -0,0 +1,20 @@
+enum CommonListDataType {
+  follower("follower"),
+  followed("followed"),
+  userRepos('user_repos'),
+  repoStar("repo_star"),
+  userStar("user_star"),
+  repoWatcher("repo_watcher"),
+  repoFork("repo_fork"),
+  repoRelease("repoRelease"),
+  repoTag("repo_tag"),
+  notify("notify"),
+  history("history"),
+  topics("topics"),
+  userBeStared("user_be_stared"),
+  userOrgs("user_orgs");
+
+  final String value;
+
+  const CommonListDataType(this.value);
+}

+ 27 - 0
lib/model/login_response_entity.dart

@@ -0,0 +1,27 @@
+import 'package:deus_app/generated/json/base/json_convert_content.dart';
+
+class LoginResponseEntity with JsonConvert<LoginResponseEntity> {
+	int? code;
+	late LoginResponseData data;
+	late String msg;
+}
+
+class LoginResponseData with JsonConvert<LoginResponseData> {
+	late LoginResponseDataUser user;
+	late String token;
+}
+
+class LoginResponseDataUser with JsonConvert<LoginResponseDataUser> {
+	String? key;
+	String? token;
+	String? ip;
+	String? address;
+	String? browser;
+	String? loginTime;
+	late int userId;
+	late String username;
+	dynamic? nickName;
+	bool? enabled;
+	dynamic? dataScopes;
+	List<dynamic>? authorities;
+}

+ 29 - 0
lib/page/home/home_page.dart

@@ -0,0 +1,29 @@
+import 'package:deus_app/common/style/TitleBar.dart';
+import 'package:deus_app/common/utils/ConstantString.dart';
+import 'package:deus_app/common/utils/ToastUtils.dart';
+import 'package:flutter/material.dart';
+
+class HomePage extends StatefulWidget {
+  const HomePage({super.key});
+
+  @override
+  State createState() {
+    return _HomePage();
+  }
+}
+
+class _HomePage extends State<HomePage>{
+
+  @override
+  Widget build(BuildContext context) {
+    return Scaffold(
+      
+      appBar: TitleBar().homeAppBar(ConstantString.mainText, () {
+        showToast("text");
+      }),
+      body: const Center(
+
+      ),
+    );
+  }
+}

+ 211 - 0
lib/page/login/login_page.dart

@@ -0,0 +1,211 @@
+import 'package:deus_app/common/local/local_storage.dart';
+import 'package:deus_app/common/style/gsy_style.dart';
+import 'package:deus_app/common/utils/CommonUtils.dart';
+import 'package:deus_app/common/utils/DioUtil.dart';
+import 'package:deus_app/common/utils/ToastUtils.dart';
+import 'package:deus_app/model/login_response_entity.dart';
+import 'package:deus_app/page/home/home_page.dart';
+import 'package:deus_app/widget/gsy_flex_button.dart';
+import 'package:flutter/material.dart';
+
+import '../../common/utils/ConstantString.dart';
+import '../../generated/json/login_response_entity_helper.dart';
+
+// import 'package:deus_app/common/utils/common_utils.dart';
+// import 'package:deus_app/widget/animated_background.dart';
+// import 'package:deus_app/widget/gsy_flex_button.dart';
+// import 'package:deus_app/widget/gsy_input_widget.dart';
+// import 'package:deus_app/widget/particle/particle_widget.dart';
+
+/// 登录页
+/// Created by Ocean
+class LoginPage extends StatefulWidget {
+  static const String sName = "login";
+
+  const LoginPage({super.key});
+
+  @override
+  State createState() {
+    return _LoginPageState();
+  }
+}
+
+class _LoginPageState extends State<LoginPage> {
+  //TextEditingController可以使用 text 属性指定初始值
+  final TextEditingController _usernameController = TextEditingController();
+  final TextEditingController _passwordController = TextEditingController();
+  String _username = '17327890361', _password = '123456';
+
+  @override
+  Widget build(BuildContext context) {
+    return Scaffold(
+      appBar: AppBar(
+        centerTitle: true,
+
+        title: const Text(ConstantString.loginText,style: TextStyle(fontSize: 17)),
+        backgroundColor:Colors.black,
+      ),
+      body: Center(
+        child: Column(
+          crossAxisAlignment: CrossAxisAlignment.center,
+          mainAxisAlignment: MainAxisAlignment.center,
+          children: <Widget>[
+            //   _getRoundImage('images/logo.png', 100.0),
+            //   SizedBox(
+            //     height: 60,
+            //   ),
+            _getUsernameInput(),
+            _getPasswordInput(),
+            SizedBox(
+              height: 10,
+            ),
+            _getLoginButton(),
+          ],
+        ),
+      ),
+    );
+  }
+
+  Widget _getUsernameInput() {
+    return _getInputTextField(
+      TextInputType.number,
+      controller: _usernameController,
+      decoration: InputDecoration(
+        hintText: "输入手机号",
+        icon: Icon(
+          Icons.mobile_friendly_rounded,
+          size: 20.0,
+        ),
+        border: InputBorder.none,
+        //使用 GestureDetector 实现手势识别
+        suffixIcon: GestureDetector(
+          child: Offstage(
+            child: Icon(Icons.clear),
+            offstage: _username == '',
+          ),
+          //点击清除文本框内容
+          onTap: () {
+            this.setState(() {
+              _username = '';
+              _usernameController.clear();
+            });
+          },
+        ),
+      ),
+      //使用 onChanged 完成双向绑定
+      onChanged: (value) {
+        this.setState(() {
+          _username = value;
+        });
+      },
+    );
+  }
+
+  Widget _getPasswordInput() {
+    return _getInputTextField(
+      TextInputType.text,
+      obscureText: true,
+      controller: _passwordController,
+      decoration: InputDecoration(
+        hintText: "输入密码",
+        icon: Icon(
+          Icons.lock_open,
+          size: 20.0,
+        ),
+        suffixIcon: GestureDetector(
+          child: Offstage(
+            child: Icon(Icons.clear),
+            offstage: _password == '',
+          ),
+          onTap: () {
+            this.setState(() {
+              _password = '';
+              _passwordController.clear();
+            });
+          },
+        ),
+        border: InputBorder.none,
+      ),
+      onChanged: (value) {
+        this.setState(() {
+          _password = value;
+        });
+      },
+    );
+  }
+
+//省略了上述列举的代码
+  Widget _getInputTextField(
+    TextInputType keyboardType, {
+    FocusNode? focusNode,
+    controller: TextEditingController,
+    onChanged: Function,
+    InputDecoration? decoration,
+    bool obscureText = false,
+    height = 50.0,
+  }) {
+    return Container(
+      height: height,
+      margin: EdgeInsets.all(10.0),
+      child: Column(
+        children: [
+          TextField(
+            keyboardType: keyboardType,
+            focusNode: focusNode,
+            obscureText: obscureText,
+            controller: controller,
+            decoration: decoration,
+            onChanged: onChanged,
+          ),
+          Divider(
+            height: 1.0,
+            color: Colors.grey[400],
+          ),
+        ],
+      ),
+    );
+  }
+
+  Widget _getLoginButton() {
+    return Container(
+      height: 50,
+      width: double.infinity,
+      margin: EdgeInsets.all(10),
+      decoration: BoxDecoration(
+        color:Colors.black,
+        borderRadius: BorderRadius.circular(4.0),
+      ),
+      child: GSYFlexButton(
+        text: ConstantString.loginText,
+        color: Colors.black,
+        textColor: GSYColors.textWhite,
+        fontSize: 16,
+        onPress: login,
+      ),
+    );
+  }
+
+  login() async {
+    if (!CommonUtils.validationInput(_username)) {
+      showToast(ConstantString.loginNull);
+    } else {
+      var result = await DioUtil().request('auth/login',
+          method: DioMethod.post,
+          data: {'username': _username, 'password': _password});
+      LoginResponseEntity loginResponseEntity =
+          loginResponseEntityFromJson(LoginResponseEntity(), result);
+      if (0 == loginResponseEntity.code) {
+        LocalStorage.save(ConstantString.token, loginResponseEntity.data.token);
+        LocalStorage.save(ConstantString.name, loginResponseEntity.data.user.username);
+        LocalStorage.save(ConstantString.userId, loginResponseEntity.data.user.userId);
+        await Navigator.push(context,
+            MaterialPageRoute(builder: (context)  =>
+               const HomePage()
+            ));
+        Navigator.pop(context);
+      } else {
+        showToast(loginResponseEntity.msg);
+      }
+    }
+  }
+}

+ 53 - 0
lib/widget/gsy_flex_button.dart

@@ -0,0 +1,53 @@
+import 'package:flutter/material.dart';
+
+
+class GSYFlexButton extends StatelessWidget {
+  final String? text;
+
+  final Color? color;
+
+  final Color textColor;
+
+  final VoidCallback? onPress;
+
+  final double fontSize;
+  final int maxLines;
+
+  final MainAxisAlignment mainAxisAlignment;
+
+  GSYFlexButton(
+      {Key? super.key,
+      this.text,
+      this.color,
+      this.textColor = Colors.black,
+      this.onPress,
+      this.fontSize = 20.0,
+      this.mainAxisAlignment = MainAxisAlignment.center,
+      this.maxLines = 1});
+
+  @override
+  Widget build(BuildContext context) {
+    return new ElevatedButton(
+        style: TextButton.styleFrom(
+            backgroundColor: color,
+            padding: new EdgeInsets.only(
+                left: 20.0, top: 10.0, right: 20.0, bottom: 10.0)),
+        child: new Flex(
+          mainAxisAlignment: mainAxisAlignment,
+          direction: Axis.horizontal,
+          children: <Widget>[
+            new Expanded(
+              child: new Text(text!,
+                  style: new TextStyle(
+                      color: textColor, fontSize: fontSize, height: 1),
+                  textAlign: TextAlign.center,
+                  maxLines: maxLines,
+                  overflow: TextOverflow.ellipsis),
+            )
+          ],
+        ),
+        onPressed: () {
+          this.onPress?.call();
+        });
+  }
+}

+ 99 - 0
pubspec.yaml

@@ -0,0 +1,99 @@
+name: deus_app
+description: A new Flutter project.
+
+# The following line prevents the package from being accidentally published to
+# pub.dev using `flutter pub publish`. This is preferred for private packages.
+publish_to: 'none' # Remove this line if you wish to publish to pub.dev
+
+# The following defines the version and build number for your application.
+# A version number is three numbers separated by dots, like 1.2.43
+# followed by an optional build number separated by a +.
+# Both the version and the builder number may be overridden in flutter
+# build by specifying --build-name and --build-number, respectively.
+# In Android, build-name is used as versionName while build-number used as versionCode.
+# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
+# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
+# Read more about iOS versioning at
+# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
+# In Windows, build-name is used as the major, minor, and patch parts
+# of the product and file versions while build-number is used as the build suffix.
+version: 1.0.0+1
+
+environment:
+  sdk: '>=2.18.6 <3.0.0'
+
+# Dependencies specify other packages that your package needs in order to work.
+# To automatically upgrade your package dependencies to the latest versions
+# consider running `flutter pub upgrade --major-versions`. Alternatively,
+# dependencies can be manually updated by changing the version numbers below to
+# the latest version available on pub.dev. To see which dependencies have newer
+# versions available, run `flutter pub outdated`.
+dependencies:
+  flutter:
+    sdk: flutter
+
+
+  # The following adds the Cupertino Icons font to your application.
+  # Use with the CupertinoIcons class for iOS style icons.
+  cupertino_icons: ^1.0.2
+
+
+dev_dependencies:
+  flutter_test:
+    sdk: flutter
+
+    # The "flutter_lints" package below contains a set of recommended lints to
+    # encourage good coding practices. The lint set provided by the package is
+    # activated in the `analysis_options.yaml` file located at the root of your
+    # package. See that file for information about deactivating specific lint
+    # rules and activating additional ones.
+  flutter_lints: ^2.0.0
+  fluttertoast: ^8.0.8
+  flutter_redux: 0.10.0
+  shared_preferences: 2.0.10
+  flutter_native_splash: ^1.2.0
+  flutter_smart_dialog: ^4.5.3+7
+  json_serializable: ^3.3.0
+  build_runner: ^1.1.3
+  dio: ^4.0.4
+
+# For information on the generic Dart part of this file, see the
+# following page: https://dart.dev/tools/pub/pubspec
+
+# The following section is specific to Flutter packages.
+flutter:
+
+  # The following line ensures that the Material Icons font is
+  # included with your application, so that you can use the icons in
+  # the material Icons class.
+  uses-material-design: true
+
+  # To add assets to your application, add an assets section, like this:
+assets:
+   - assets/install.png
+
+  # An image asset can refer to one or more resolution-specific "variants", see
+  # https://flutter.dev/assets-and-images/#resolution-aware
+
+  # For details regarding adding assets from package dependencies, see
+  # https://flutter.dev/assets-and-images/#from-packages
+
+  # To add custom fonts to your application, add a fonts section here,
+  # in this "flutter" section. Each entry in this list should have a
+  # "family" key with the font family name, and a "fonts" key with a
+  # list giving the asset and other descriptors for the font. For
+  # example:
+  # fonts:
+  #   - family: Schyler
+  #     fonts:
+  #       - asset: fonts/Schyler-Regular.ttf
+  #       - asset: fonts/Schyler-Italic.ttf
+  #         style: italic
+  #   - family: Trajan Pro
+  #     fonts:
+  #       - asset: fonts/TrajanPro.ttf
+  #       - asset: fonts/TrajanPro_Bold.ttf
+  #         weight: 700
+  #
+  # For details regarding fonts from package dependencies,
+  # see https://flutter.dev/custom-fonts/#from-packages

+ 29 - 0
test/widget_test.dart

@@ -0,0 +1,29 @@
+// This is a basic Flutter widget test.
+//
+// To perform an interaction with a widget in your test, use the WidgetTester
+// utility in the flutter_test package. For example, you can send tap and scroll
+// gestures. You can also use WidgetTester to find child widgets in the widget
+// tree, read text, and verify that the values of widget properties are correct.
+
+import 'package:deus_app/main.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_test/flutter_test.dart';
+
+void main() {
+  testWidgets('Counter increments smoke test', (WidgetTester tester) async {
+    // Build our app and trigger a frame.
+    await tester.pumpWidget(const MyApp());
+
+    // Verify that our counter starts at 0.
+    expect(find.text('0'), findsOneWidget);
+    expect(find.text('1'), findsNothing);
+
+    // Tap the '+' icon and trigger a frame.
+    await tester.tap(find.byIcon(Icons.add));
+    await tester.pump();
+
+    // Verify that our counter has incremented.
+    expect(find.text('0'), findsNothing);
+    expect(find.text('1'), findsOneWidget);
+  });
+}