Browse Source

Automatic Commit By liuyuqi

liuyuqi-dellpc 1 year ago
commit
2c3b423306
100 changed files with 3441 additions and 0 deletions
  1. 44 0
      .gitignore
  2. 10 0
      .metadata
  3. 72 0
      README.md
  4. 11 0
      android/.gitignore
  5. 66 0
      android/app/build.gradle
  6. 7 0
      android/app/src/debug/AndroidManifest.xml
  7. 49 0
      android/app/src/main/AndroidManifest.xml
  8. 6 0
      android/app/src/main/kotlin/com/example/demo/MainActivity.kt
  9. 6 0
      android/app/src/main/kotlin/com/example/eye_video/MainActivity.kt
  10. 12 0
      android/app/src/main/res/drawable/launch_background.xml
  11. BIN
      android/app/src/main/res/mipmap-hdpi/ic_launcher.png
  12. BIN
      android/app/src/main/res/mipmap-mdpi/ic_launcher.png
  13. BIN
      android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
  14. BIN
      android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
  15. BIN
      android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
  16. 18 0
      android/app/src/main/res/values/styles.xml
  17. 7 0
      android/app/src/profile/AndroidManifest.xml
  18. 31 0
      android/build.gradle
  19. 4 0
      android/gradle.properties
  20. 6 0
      android/gradle/wrapper/gradle-wrapper.properties
  21. 11 0
      android/settings.gradle
  22. BIN
      assets/images/biz_app_icon_attention.png
  23. BIN
      assets/images/biz_app_icon_collection.png
  24. BIN
      assets/images/biz_app_icon_dynamic.png
  25. BIN
      assets/images/biz_app_icon_fans.png
  26. BIN
      assets/images/biz_app_icon_reply.png
  27. BIN
      assets/images/biz_app_icon_share.png
  28. BIN
      assets/images/biz_app_icon_works.png
  29. 32 0
      ios/.gitignore
  30. 26 0
      ios/Flutter/AppFrameworkInfo.plist
  31. 2 0
      ios/Flutter/Debug.xcconfig
  32. 2 0
      ios/Flutter/Release.xcconfig
  33. 41 0
      ios/Podfile
  34. 22 0
      ios/Podfile.lock
  35. 566 0
      ios/Runner.xcodeproj/project.pbxproj
  36. 7 0
      ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  37. 8 0
      ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
  38. 8 0
      ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
  39. 91 0
      ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
  40. 10 0
      ios/Runner.xcworkspace/contents.xcworkspacedata
  41. 8 0
      ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
  42. 8 0
      ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
  43. 13 0
      ios/Runner/AppDelegate.swift
  44. 122 0
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
  45. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
  46. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
  47. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
  48. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
  49. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
  50. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
  51. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
  52. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
  53. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
  54. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
  55. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
  56. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
  57. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
  58. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
  59. BIN
      ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
  60. 23 0
      ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
  61. BIN
      ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
  62. BIN
      ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
  63. BIN
      ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
  64. 5 0
      ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
  65. 37 0
      ios/Runner/Base.lproj/LaunchScreen.storyboard
  66. 26 0
      ios/Runner/Base.lproj/Main.storyboard
  67. 45 0
      ios/Runner/Info.plist
  68. 1 0
      ios/Runner/Runner-Bridging-Header.h
  69. 76 0
      lib/bizmodule/bizwidget/cover_image_item.dart
  70. 68 0
      lib/bizmodule/bizwidget/follow_list_head.dart
  71. 57 0
      lib/bizmodule/bizwidget/header_item.dart
  72. 14 0
      lib/bizmodule/blocs.dart
  73. 31 0
      lib/bizmodule/main/category/blocs/category_bloc.dart
  74. 15 0
      lib/bizmodule/main/category/blocs/category_event.dart
  75. 32 0
      lib/bizmodule/main/category/blocs/category_state.dart
  76. 61 0
      lib/bizmodule/main/category/category_page.dart
  77. 98 0
      lib/bizmodule/main/category/model/category_model.dart
  78. 67 0
      lib/bizmodule/main/category/model/category_model.g.dart
  79. 6 0
      lib/bizmodule/main/category/repositories/category_repository.dart
  80. 11 0
      lib/bizmodule/main/category/repositories/mock/mock_category_repository.dart
  81. 67 0
      lib/bizmodule/main/community/blocs/community_bloc.dart
  82. 19 0
      lib/bizmodule/main/community/blocs/community_event.dart
  83. 31 0
      lib/bizmodule/main/community/blocs/community_state.dart
  84. 105 0
      lib/bizmodule/main/community/community_page.dart
  85. 58 0
      lib/bizmodule/main/community/extension/ext_community.dart
  86. 228 0
      lib/bizmodule/main/community/model/community_model.dart
  87. 135 0
      lib/bizmodule/main/community/model/community_model.g.dart
  88. 5 0
      lib/bizmodule/main/community/respositories/community_repository.dart
  89. 24 0
      lib/bizmodule/main/community/respositories/mock/mock_community_repository.dart
  90. 160 0
      lib/bizmodule/main/community/widget/ugc_item.dart
  91. 32 0
      lib/bizmodule/main/discovery/blocs/discovery_bloc.dart
  92. 15 0
      lib/bizmodule/main/discovery/blocs/discovery_event.dart
  93. 32 0
      lib/bizmodule/main/discovery/blocs/discovery_state.dart
  94. 113 0
      lib/bizmodule/main/discovery/discovery_page.dart
  95. 44 0
      lib/bizmodule/main/discovery/extension/ext_discovery.dart
  96. 150 0
      lib/bizmodule/main/discovery/model/discovery_model.dart
  97. 89 0
      lib/bizmodule/main/discovery/model/discovery_model.g.dart
  98. 5 0
      lib/bizmodule/main/discovery/respositories/discovery_repository.dart
  99. 11 0
      lib/bizmodule/main/discovery/respositories/mock/mock_discovery_repository.dart
  100. 119 0
      lib/bizmodule/main/discovery/widgets/column_card_items.dart

+ 44 - 0
.gitignore

@@ -0,0 +1,44 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.buildlog/
+.history
+.svn/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+pubspec.lock
+# The .vscode folder contains launch configuration and tasks you configure in
+# VS Code which you may wish to be included in version control, so this line
+# is commented out by default.
+#.vscode/
+
+# Flutter/Dart/Pub related
+**/doc/api/
+**/ios/Flutter/.last_build_id
+.dart_tool/
+.flutter-plugins
+.flutter-plugins-dependencies
+.packages
+.pub-cache/
+.pub/
+/build/
+
+# Web related
+lib/generated_plugin_registrant.dart
+
+# Symbolication related
+app.*.symbols
+
+# Obfuscation related
+app.*.map.json
+
+# Exceptions to above rules.
+!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

+ 10 - 0
.metadata

@@ -0,0 +1,10 @@
+# This file tracks properties of this Flutter project.
+# Used by Flutter tool to assess capabilities and perform upgrades etc.
+#
+# This file should be version controlled and should not be manually edited.
+
+version:
+  revision: 15a28159bcf4b3db13411cbc8d9b5fc51adc0a93
+  channel: dev
+
+project_type: app

+ 72 - 0
README.md

@@ -0,0 +1,72 @@
+# EyeVideo
+
+这是一款使用Flutter开发的高仿开眼视频的短视频APP
+
+## Dart基础学习
+
+如果你对Dart基础还不是很熟悉,欢迎参考我的 [《Dart入门实践》系列专栏](https://gitbook.cn/gitchat/column/5e8eddebf33069503095f54a)
+
+主要涉及到的Dart知识点:
+
+### 基础篇
+* 初探 Dart 语法 01
+* 初探 Dart 语法 02
+* 掌握如何让函数更好地调用
+* 掌握 Dart 集合的使用
+* 深入分析 Dart 集合源码
+* 掌握 Dart 集合操作符函数使用
+* 深入分析 Dart 集合操作符源码
+* 掌握 Dart 的面向对象基础
+* 深入理解 Dart 中的继承和 Minxins
+* 深入理解 Dart 中的类型系统和泛型
+* 掌握 Dart 中库 library 的使用
+* 尝鲜 Dart 2.7 最新语法之可空与非空类型
+* 尝鲜 Dart 2.7 最新语法之扩展方法
+* 尝鲜 Dart 2.7 最新语法之泛型强化:声明处型变
+### 进阶篇
+* 异步编程之 Isolate
+* 异步编程之 EventLoop
+* 异步编程之 Future
+* 异步编程之 Stream
+* 异步编程之 async和await
+* 异步编程之同步异步生成器函数
+### 实战篇
+* Dart 与 C 的互相调用
+* Dart 虚拟机运行原理
+* Flutter 实现高仿开眼 APP 的页面开发 01
+* Flutter 实现高仿开眼 APP 的页面开发 02
+* Flutter 实现高仿开眼 APP 的页面开发 03
+
+## 主要使用的技术点
+
+* Dart扩展函数的使用
+
+* Dio网络库优雅封装以及使用
+
+* Bloc状态管理以及实现UI和逻辑分离
+
+* json_serializable的使用
+
+* ScreenRuler Flutter UI尺寸和字体大小的统一适配
+
+* 列表刷新和加载更多组件实现
+
+## 目前支持的平台有
+
+* Android
+
+* iOS
+
+* Mac Desktop
+
+* Linux Desktop
+
+* Web Chrome
+
+* Web Server
+
+## 运行效果
+
+* iOS
+
+![art.png](art/art.png)

+ 11 - 0
android/.gitignore

@@ -0,0 +1,11 @@
+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

+ 66 - 0
android/app/build.gradle

@@ -0,0 +1,66 @@
+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 30
+
+    sourceSets {
+        main.java.srcDirs += 'src/main/kotlin'
+    }
+
+    lintOptions {
+        disable 'InvalidPackage'
+    }
+
+    defaultConfig {
+        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
+        applicationId "com.example.demo"
+        minSdkVersion 16
+        targetSdkVersion 30
+        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
+            ndk {
+                abiFilters "armeabi-v7a"
+            }
+        }
+    }
+}
+
+flutter {
+    source '../..'
+}
+
+dependencies {
+    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
+}

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

@@ -0,0 +1,7 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="com.example.demo">
+    <!-- Flutter 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>

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

@@ -0,0 +1,49 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="com.example.demo">
+    <!-- io.flutter.app.FlutterApplication is an android.app.Application that
+         calls FlutterMain.startInitialization(this); in its onCreate method.
+         In most cases you can leave this as-is, but you if you want to provide
+         additional functionality it is fine to subclass or reimplement
+         FlutterApplication and put your custom class here. -->
+    <uses-permission android:name="android.permission.INTERNET"/>
+    <application
+        android:name="io.flutter.app.FlutterApplication"
+        android:label="demo"
+        android:usesCleartextTraffic="true"
+        android:icon="@mipmap/ic_launcher">
+        <activity
+            android:name=".MainActivity"
+            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"
+              />
+            <!-- Displays an Android View that continues showing the launch screen
+                 Drawable until Flutter paints its first frame, then this splash
+                 screen fades out. A splash screen is useful to avoid any visual
+                 gap between the end of Android's launch screen and the painting of
+                 Flutter's first frame. -->
+            <meta-data
+              android:name="io.flutter.embedding.android.SplashScreenDrawable"
+              android:resource="@drawable/launch_background"
+              />
+            <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/kotlin/com/example/demo/MainActivity.kt

@@ -0,0 +1,6 @@
+package com.example.demo
+
+import io.flutter.embedding.android.FlutterActivity
+
+class MainActivity: FlutterActivity() {
+}

+ 6 - 0
android/app/src/main/kotlin/com/example/eye_video/MainActivity.kt

@@ -0,0 +1,6 @@
+package com.example.eye_video
+
+import io.flutter.embedding.android.FlutterActivity
+
+class MainActivity: FlutterActivity() {
+}

+ 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/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 -->
+    <style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
+        <!-- Show a splash screen on the activity. Automatically removed when
+             Flutter 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:color/white</item>
+    </style>
+</resources>

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

@@ -0,0 +1,7 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="com.example.demo">
+    <!-- Flutter 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.3.50'
+    repositories {
+        google()
+        jcenter()
+    }
+
+    dependencies {
+        classpath 'com.android.tools.build:gradle:4.1.0'
+        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+    }
+}
+
+allprojects {
+    repositories {
+        google()
+        jcenter()
+    }
+}
+
+rootProject.buildDir = '../build'
+subprojects {
+    project.buildDir = "${rootProject.buildDir}/${project.name}"
+}
+subprojects {
+    project.evaluationDependsOn(':app')
+}
+
+task clean(type: Delete) {
+    delete rootProject.buildDir
+}

+ 4 - 0
android/gradle.properties

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

+ 6 - 0
android/gradle/wrapper/gradle-wrapper.properties

@@ -0,0 +1,6 @@
+#Fri Jun 23 08:50:38 CEST 2017
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.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/images/biz_app_icon_attention.png


BIN
assets/images/biz_app_icon_collection.png


BIN
assets/images/biz_app_icon_dynamic.png


BIN
assets/images/biz_app_icon_fans.png


BIN
assets/images/biz_app_icon_reply.png


BIN
assets/images/biz_app_icon_share.png


BIN
assets/images/biz_app_icon_works.png


+ 32 - 0
ios/.gitignore

@@ -0,0 +1,32 @@
+*.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/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>$(DEVELOPMENT_LANGUAGE)</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>8.0</string>
+</dict>
+</plist>

+ 2 - 0
ios/Flutter/Debug.xcconfig

@@ -0,0 +1,2 @@
+#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
+#include "Generated.xcconfig"

+ 2 - 0
ios/Flutter/Release.xcconfig

@@ -0,0 +1,2 @@
+#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
+#include "Generated.xcconfig"

+ 41 - 0
ios/Podfile

@@ -0,0 +1,41 @@
+# Uncomment this line to define a global platform for your project
+# platform :ios, '9.0'
+
+# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
+ENV['COCOAPODS_DISABLE_STATS'] = 'true'
+
+project 'Runner', {
+  'Debug' => :debug,
+  'Profile' => :release,
+  'Release' => :release,
+}
+
+def flutter_root
+  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
+  unless File.exist?(generated_xcode_build_settings_path)
+    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
+  end
+
+  File.foreach(generated_xcode_build_settings_path) do |line|
+    matches = line.match(/FLUTTER_ROOT\=(.*)/)
+    return matches[1].strip if matches
+  end
+  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
+end
+
+require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
+
+flutter_ios_podfile_setup
+
+target 'Runner' do
+  use_frameworks!
+  use_modular_headers!
+
+  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
+end
+
+post_install do |installer|
+  installer.pods_project.targets.each do |target|
+    flutter_additional_ios_build_settings(target)
+  end
+end

+ 22 - 0
ios/Podfile.lock

@@ -0,0 +1,22 @@
+PODS:
+  - Flutter (1.0.0)
+  - shared_preferences (0.0.1):
+    - Flutter
+
+DEPENDENCIES:
+  - Flutter (from `Flutter`)
+  - shared_preferences (from `.symlinks/plugins/shared_preferences/ios`)
+
+EXTERNAL SOURCES:
+  Flutter:
+    :path: Flutter
+  shared_preferences:
+    :path: ".symlinks/plugins/shared_preferences/ios"
+
+SPEC CHECKSUMS:
+  Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
+  shared_preferences: af6bfa751691cdc24be3045c43ec037377ada40d
+
+PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c
+
+COCOAPODS: 1.9.1

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

@@ -0,0 +1,566 @@
+// !$*UTF8*$!
+{
+	archiveVersion = 1;
+	classes = {
+	};
+	objectVersion = 46;
+	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 */; };
+		74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
+		97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
+		97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
+		97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
+		97DAC1A8E3F10AC84878EF10 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 43E0533D246BAA67D877904E /* Pods_Runner.framework */; };
+/* 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>"; };
+		35C5EBCAB8C7010EDEE6D92C /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
+		3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
+		43E0533D246BAA67D877904E /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+		5DE387AB59277E2FCD6D0AA0 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
+		74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
+		74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
+		7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; 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; };
+		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>"; };
+		E0DC25E8AEA19BA6898995E7 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+		97C146EB1CF9000F007C117D /* Frameworks */ = {
+			isa = PBXFrameworksBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				97DAC1A8E3F10AC84878EF10 /* Pods_Runner.framework in Frameworks */,
+			);
+			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 */,
+				BF62DE56C735995C2A3DF9FB /* Pods */,
+				B70F649117621AD21CBAA465 /* Frameworks */,
+			);
+			sourceTree = "<group>";
+		};
+		97C146EF1CF9000F007C117D /* Products */ = {
+			isa = PBXGroup;
+			children = (
+				97C146EE1CF9000F007C117D /* Runner.app */,
+			);
+			name = Products;
+			sourceTree = "<group>";
+		};
+		97C146F01CF9000F007C117D /* Runner */ = {
+			isa = PBXGroup;
+			children = (
+				97C146FA1CF9000F007C117D /* Main.storyboard */,
+				97C146FD1CF9000F007C117D /* Assets.xcassets */,
+				97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
+				97C147021CF9000F007C117D /* Info.plist */,
+				1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
+				1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
+				74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
+				74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
+			);
+			path = Runner;
+			sourceTree = "<group>";
+		};
+		B70F649117621AD21CBAA465 /* Frameworks */ = {
+			isa = PBXGroup;
+			children = (
+				43E0533D246BAA67D877904E /* Pods_Runner.framework */,
+			);
+			name = Frameworks;
+			sourceTree = "<group>";
+		};
+		BF62DE56C735995C2A3DF9FB /* Pods */ = {
+			isa = PBXGroup;
+			children = (
+				5DE387AB59277E2FCD6D0AA0 /* Pods-Runner.debug.xcconfig */,
+				E0DC25E8AEA19BA6898995E7 /* Pods-Runner.release.xcconfig */,
+				35C5EBCAB8C7010EDEE6D92C /* Pods-Runner.profile.xcconfig */,
+			);
+			name = Pods;
+			path = Pods;
+			sourceTree = "<group>";
+		};
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+		97C146ED1CF9000F007C117D /* Runner */ = {
+			isa = PBXNativeTarget;
+			buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
+			buildPhases = (
+				25EF7EC8496DCAADAED1BA35 /* [CP] Check Pods Manifest.lock */,
+				9740EEB61CF901F6004384FC /* Run Script */,
+				97C146EA1CF9000F007C117D /* Sources */,
+				97C146EB1CF9000F007C117D /* Frameworks */,
+				97C146EC1CF9000F007C117D /* Resources */,
+				9705A1C41CF9048500538489 /* Embed Frameworks */,
+				3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+				4FC59CEA9B1EDD3E3A3E386D /* [CP] Embed Pods Frameworks */,
+			);
+			buildRules = (
+			);
+			dependencies = (
+			);
+			name = Runner;
+			productName = Runner;
+			productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
+			productType = "com.apple.product-type.application";
+		};
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+		97C146E61CF9000F007C117D /* Project object */ = {
+			isa = PBXProject;
+			attributes = {
+				LastUpgradeCheck = 1020;
+				ORGANIZATIONNAME = "";
+				TargetAttributes = {
+					97C146ED1CF9000F007C117D = {
+						CreatedOnToolsVersion = 7.3.1;
+						LastSwiftMigration = 1100;
+					};
+				};
+			};
+			buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
+			compatibilityVersion = "Xcode 9.3";
+			developmentRegion = en;
+			hasScannedForEncodings = 0;
+			knownRegions = (
+				en,
+				Base,
+			);
+			mainGroup = 97C146E51CF9000F007C117D;
+			productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
+			projectDirPath = "";
+			projectRoot = "";
+			targets = (
+				97C146ED1CF9000F007C117D /* Runner */,
+			);
+		};
+/* 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 */
+		25EF7EC8496DCAADAED1BA35 /* [CP] Check Pods Manifest.lock */ = {
+			isa = PBXShellScriptBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			inputFileListPaths = (
+			);
+			inputPaths = (
+				"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+				"${PODS_ROOT}/Manifest.lock",
+			);
+			name = "[CP] Check Pods Manifest.lock";
+			outputFileListPaths = (
+			);
+			outputPaths = (
+				"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+			shellPath = /bin/sh;
+			shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n    # print error to STDERR\n    echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n    exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+			showEnvVarsInLog = 0;
+		};
+		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";
+		};
+		4FC59CEA9B1EDD3E3A3E386D /* [CP] Embed Pods Frameworks */ = {
+			isa = PBXShellScriptBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			inputPaths = (
+				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
+				"${PODS_ROOT}/../Flutter/Flutter.framework",
+				"${BUILT_PRODUCTS_DIR}/shared_preferences/shared_preferences.framework",
+			);
+			name = "[CP] Embed Pods Frameworks";
+			outputPaths = (
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",
+				"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/shared_preferences.framework",
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+			shellPath = /bin/sh;
+			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
+			showEnvVarsInLog = 0;
+		};
+		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 = (
+				74858FAF1ED2DC5600515810 /* AppDelegate.swift 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 = 8.0;
+				MTL_ENABLE_DEBUG_INFO = NO;
+				SDKROOT = iphoneos;
+				SUPPORTED_PLATFORMS = iphoneos;
+				TARGETED_DEVICE_FAMILY = "1,2";
+				VALIDATE_PRODUCT = YES;
+			};
+			name = Profile;
+		};
+		249021D4217E4FDB00AE95B9 /* Profile */ = {
+			isa = XCBuildConfiguration;
+			baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+			buildSettings = {
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+				CLANG_ENABLE_MODULES = YES;
+				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+				ENABLE_BITCODE = NO;
+				FRAMEWORK_SEARCH_PATHS = (
+					"$(inherited)",
+					"$(PROJECT_DIR)/Flutter",
+				);
+				INFOPLIST_FILE = Runner/Info.plist;
+				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+				LIBRARY_SEARCH_PATHS = (
+					"$(inherited)",
+					"$(PROJECT_DIR)/Flutter",
+				);
+				PRODUCT_BUNDLE_IDENTIFIER = com.example.demo;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+				SWIFT_VERSION = 5.0;
+				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 = 8.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 = 8.0;
+				MTL_ENABLE_DEBUG_INFO = NO;
+				SDKROOT = iphoneos;
+				SUPPORTED_PLATFORMS = iphoneos;
+				SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
+				TARGETED_DEVICE_FAMILY = "1,2";
+				VALIDATE_PRODUCT = YES;
+			};
+			name = Release;
+		};
+		97C147061CF9000F007C117D /* Debug */ = {
+			isa = XCBuildConfiguration;
+			baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
+			buildSettings = {
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+				CLANG_ENABLE_MODULES = YES;
+				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+				ENABLE_BITCODE = NO;
+				FRAMEWORK_SEARCH_PATHS = (
+					"$(inherited)",
+					"$(PROJECT_DIR)/Flutter",
+				);
+				INFOPLIST_FILE = Runner/Info.plist;
+				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+				LIBRARY_SEARCH_PATHS = (
+					"$(inherited)",
+					"$(PROJECT_DIR)/Flutter",
+				);
+				PRODUCT_BUNDLE_IDENTIFIER = com.example.demo;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+				SWIFT_VERSION = 5.0;
+				VERSIONING_SYSTEM = "apple-generic";
+			};
+			name = Debug;
+		};
+		97C147071CF9000F007C117D /* Release */ = {
+			isa = XCBuildConfiguration;
+			baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+			buildSettings = {
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+				CLANG_ENABLE_MODULES = YES;
+				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+				ENABLE_BITCODE = NO;
+				FRAMEWORK_SEARCH_PATHS = (
+					"$(inherited)",
+					"$(PROJECT_DIR)/Flutter",
+				);
+				INFOPLIST_FILE = Runner/Info.plist;
+				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+				LIBRARY_SEARCH_PATHS = (
+					"$(inherited)",
+					"$(PROJECT_DIR)/Flutter",
+				);
+				PRODUCT_BUNDLE_IDENTIFIER = com.example.demo;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+				SWIFT_VERSION = 5.0;
+				VERSIONING_SYSTEM = "apple-generic";
+			};
+			name = Release;
+		};
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+		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>

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

@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+   LastUpgradeVersion = "1020"
+   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">
+      <Testables>
+      </Testables>
+      <MacroExpansion>
+         <BuildableReference
+            BuildableIdentifier = "primary"
+            BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+            BuildableName = "Runner.app"
+            BlueprintName = "Runner"
+            ReferencedContainer = "container:Runner.xcodeproj">
+         </BuildableReference>
+      </MacroExpansion>
+      <AdditionalOptions>
+      </AdditionalOptions>
+   </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>
+      <AdditionalOptions>
+      </AdditionalOptions>
+   </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>

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

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

+ 13 - 0
ios/Runner/AppDelegate.swift

@@ -0,0 +1,13 @@
+import UIKit
+import Flutter
+
+@UIApplicationMain
+@objc class AppDelegate: FlutterAppDelegate {
+  override func application(
+    _ application: UIApplication,
+    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
+  ) -> Bool {
+    GeneratedPluginRegistrant.register(with: self)
+    return super.application(application, didFinishLaunchingWithOptions: launchOptions)
+  }
+}

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

+ 45 - 0
ios/Runner/Info.plist

@@ -0,0 +1,45 @@
+<?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>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>demo</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/>
+</dict>
+</plist>

+ 1 - 0
ios/Runner/Runner-Bridging-Header.h

@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"

+ 76 - 0
lib/bizmodule/bizwidget/cover_image_item.dart

@@ -0,0 +1,76 @@
+import 'package:flutter/material.dart';
+
+class CoverImageItem extends StatelessWidget {
+  final double width;
+  final String coverUrl;
+  final int duration;
+
+  const CoverImageItem(
+      {Key key, this.width: 0, this.coverUrl, this.duration: -1})
+      : super(key: key);
+
+  @override
+  Widget build(BuildContext context) {
+    var coverImageWidget = Container(
+      width: width == 0 ? double.infinity : width,
+      height: (width == 0 ? MediaQuery.of(context).size.width : width) * 0.5,
+      decoration: ShapeDecoration(
+        image: DecorationImage(
+          image: NetworkImage(coverUrl),
+          fit: BoxFit.cover,
+        ),
+        shape: RoundedRectangleBorder(
+          borderRadius: BorderRadius.circular(5),
+        ),
+      ),
+    );
+
+    if (duration >= 0) {
+      var tvTimeLabel = Container(
+        decoration: ShapeDecoration(
+          color: Color(0xff333333),
+          shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(3)),
+        ),
+        child: Padding(
+          padding: const EdgeInsets.only(left: 6, top: 1, right: 6, bottom: 1),
+          child: Text(
+            getTimeLabel(duration),
+            style: TextStyle(
+              fontSize: 12,
+              fontWeight: FontWeight.bold,
+              fontFamily: 'Oswald-Regular',
+              color: Color(0xffffffff),
+            ),
+          ),
+        ),
+      );
+
+      return Stack(
+        alignment: AlignmentDirectional.bottomEnd,
+        children: <Widget>[
+          coverImageWidget,
+          Positioned(
+            child: tvTimeLabel,
+            bottom: 3,
+            right: 3,
+          ),
+        ],
+      );
+    }
+
+    return coverImageWidget;
+  }
+
+  String getTimeLabel(int duration) {
+    if (duration < 60) {
+      return "00 : $duration";
+    } else if (duration >= 60) {
+      int minute = duration ~/ 60;
+      int second = duration % 60;
+      String minuteStr = minute < 10 ? "0$minute" : "$minute";
+      String secondStr = second < 10 ? "0$second" : "$second";
+      return "$minuteStr : $secondStr";
+    }
+    return "00 : 00";
+  }
+}

+ 68 - 0
lib/bizmodule/bizwidget/follow_list_head.dart

@@ -0,0 +1,68 @@
+import 'package:flutter/material.dart';
+
+class FollowListHead extends StatelessWidget {
+  final String title;
+  final String avatarUrl;
+  final String description;
+
+  const FollowListHead({Key key, this.title, this.avatarUrl, this.description})
+      : super(key: key);
+
+  @override
+  Widget build(BuildContext context) {
+    var ivAvatar = CircleAvatar(
+      backgroundImage: NetworkImage(avatarUrl),
+    );
+
+    var tvTitle = Text(
+      title,
+      style: TextStyle(
+        fontSize: 14,
+        color: Color(0xff333333),
+        fontFamily: 'NotoSansHans-Medium',
+      ),
+    );
+
+    var tvSubtitle = Text(
+      description,
+      maxLines: 1,
+      overflow: TextOverflow.ellipsis,
+      style: TextStyle(
+        fontSize: 12,
+        color: Color(0xff666666),
+      ),
+    );
+
+    var btnFollow = Container(
+      width: 40,
+      height: 20,
+      child: OutlineButton(
+        padding: EdgeInsets.all(0),
+        child: Text(
+          '+关注',
+          style: TextStyle(
+            fontSize: 12,
+            fontFamily: 'NotoSansHans-Regular',
+            color: Color(0xff666666),
+          ),
+        ),
+        borderSide: BorderSide(
+          color: Color(0xff333333),
+          width: 0.5,
+          style: BorderStyle.solid,
+        ),
+        onPressed: () => null,
+      ),
+    );
+
+    return ListTile(
+      leading: ivAvatar,
+      contentPadding: EdgeInsets.zero,
+      title: tvTitle,
+      subtitle: tvSubtitle,
+      trailing: btnFollow,
+      enabled: false,
+      onTap: () {},
+    );
+  }
+}

+ 57 - 0
lib/bizmodule/bizwidget/header_item.dart

@@ -0,0 +1,57 @@
+import 'package:flutter/material.dart';
+
+class HeaderItem extends StatelessWidget {
+  final String title;
+
+  const HeaderItem({Key key, this.title}) : super(key: key);
+
+  @override
+  Widget build(BuildContext context) {
+    return Column(
+      crossAxisAlignment: CrossAxisAlignment.start,
+      children: [
+        Divider(
+          color: Color(0xFFBDBDBD),
+          thickness: 0.1,
+        ),
+        Container(
+          margin: EdgeInsets.only(left: 10, top: 5, right: 10),
+          child: Row(
+            mainAxisAlignment: MainAxisAlignment.spaceBetween,
+            children: [
+              Text(
+                title,
+                style: TextStyle(
+                  fontSize: 18,
+                  color: Color(0xff333333),
+                  fontFamily: 'NotoSansHans-Medium',
+                ),
+              ),
+              Container(
+                width: 60,
+                height: 20,
+                child: OutlineButton(
+                  padding: EdgeInsets.all(0),
+                  child: Text(
+                    '查看更多',
+                    style: TextStyle(
+                      fontSize: 12,
+                      fontFamily: 'NotoSansHans-Regular',
+                      color: Color(0xff666666),
+                    ),
+                  ),
+                  borderSide: BorderSide(
+                    color: Color(0xff333333),
+                    width: 0.5,
+                    style: BorderStyle.solid,
+                  ),
+                  onPressed: () => null,
+                ),
+              )
+            ],
+          ),
+        ),
+      ],
+    );
+  }
+}

+ 14 - 0
lib/bizmodule/blocs.dart

@@ -0,0 +1,14 @@
+library bloc_unit;
+
+export 'main/thiz/blocs/main_bloc.dart';
+export 'main/thiz/blocs/main_state.dart';
+export 'main/thiz/blocs/main_event.dart';
+
+export 'main/category/blocs/category_bloc.dart';
+export 'main/category/blocs/category_event.dart';
+export 'main/category/blocs/category_state.dart';
+
+export 'main/selections/blocs/selection_bloc.dart';
+export 'main/selections/blocs/selection_state.dart';
+export 'main/selections/blocs/selection_event.dart';
+

+ 31 - 0
lib/bizmodule/main/category/blocs/category_bloc.dart

@@ -0,0 +1,31 @@
+import 'package:eye_video/bizmodule/blocs.dart';
+import 'package:eye_video/bizmodule/main/category/model/category_model.dart';
+import 'package:eye_video/bizmodule/main/category/repositories/category_repository.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_bloc/flutter_bloc.dart';
+
+class CategoryBloc extends Bloc<CategoryEvent, CategoryState> {
+  final CategoryRepository categoryRepository;
+
+  CategoryBloc({@required this.categoryRepository}) : super(null) {
+    add(EventRequestCategory()); //初始状态,手动添加首次请求事件
+  }
+
+  @override
+  Stream<CategoryState> mapEventToState(CategoryEvent event) async* {
+    if (event is EventRequestCategory) {
+      yield StateLoading();
+      try {
+        final CategoryModel categoryModel =
+            await categoryRepository.fetchCategories();
+        if (categoryModel == null || categoryModel.categoryList.isEmpty) {
+          yield StateEmpty();
+        } else {
+          yield StateLoadSuccess(categoryModel: categoryModel);
+        }
+      } catch (e) {
+        yield StateLoadFailure();
+      }
+    }
+  }
+}

+ 15 - 0
lib/bizmodule/main/category/blocs/category_event.dart

@@ -0,0 +1,15 @@
+import 'package:equatable/equatable.dart';
+
+abstract class CategoryEvent extends Equatable {
+  const CategoryEvent();
+
+  @override
+  List<Object> get props => [];
+}
+
+class EventRequestCategory extends CategoryEvent {
+  const EventRequestCategory();
+
+  @override
+  List<Object> get props => [];
+}

+ 32 - 0
lib/bizmodule/main/category/blocs/category_state.dart

@@ -0,0 +1,32 @@
+import 'package:equatable/equatable.dart';
+import 'package:eye_video/bizmodule/main/category/model/category_model.dart';
+import 'package:flutter/material.dart';
+
+abstract class CategoryState extends Equatable {
+  @override
+  List<Object> get props => [];
+
+  const CategoryState();
+}
+
+class StateLoadSuccess extends CategoryState {
+  final CategoryModel categoryModel;
+
+  const StateLoadSuccess({@required this.categoryModel})
+      : assert(categoryModel != null);
+
+  @override
+  List<Object> get props => [categoryModel];
+}
+
+class StateLoadFailure extends CategoryState {
+  List<Object> get props => [];
+}
+
+class StateLoading extends CategoryState {
+  List<Object> get props => [];
+}
+
+class StateEmpty extends CategoryState {
+  List<Object> get props => [];
+}

+ 61 - 0
lib/bizmodule/main/category/category_page.dart

@@ -0,0 +1,61 @@
+import 'package:eye_video/bizmodule/blocs.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_bloc/flutter_bloc.dart';
+import 'package:eye_video/framework/extension/image_compress.dart';
+
+class CategoryPage extends StatelessWidget {
+  @override
+  Widget build(BuildContext context) {
+    return BlocBuilder<CategoryBloc, CategoryState>(builder: (context, state) {
+      if (state is StateLoading) {
+        return Center(
+          child: CircularProgressIndicator(),
+        );
+      } else if (state is StateEmpty) {
+        return Center(
+          child: Text('数据请求为空'),
+        );
+      } else if (state is StateLoadFailure) {
+        return Center(
+          child: Text('数据请求失败'),
+        );
+      } else if (state is StateLoadSuccess) {
+        return GridView.count(
+          crossAxisCount: 2,
+          crossAxisSpacing: 3,
+          padding: EdgeInsets.all(3),
+          mainAxisSpacing: 3,
+
+          children: state.categoryModel.categoryList.map((itemData) {
+            var coverImage = itemData.item.image.compress_value();
+            String title = itemData.item.title;
+            return Stack(
+              alignment: Alignment.center,
+              children: [
+                Container(
+                  width: double.infinity,
+                  height: double.infinity,
+                  child: Image.network(
+                    coverImage,
+                    fit: BoxFit.cover,
+                  ),
+                ),
+                Positioned(
+                  child: Text(
+                    '${title.replaceAll("#", "")}',
+                    style: TextStyle(
+                      fontFamily: 'NotoSansHans-Medium',
+                      fontSize: 16,
+                      color: Colors.white,
+                    ),
+                  ),
+                ),
+              ],
+            );
+          }).toList(),
+        );
+      }
+      return Container();
+    });
+  }
+}

+ 98 - 0
lib/bizmodule/main/category/model/category_model.dart

@@ -0,0 +1,98 @@
+import 'package:equatable/equatable.dart';
+import 'package:json_annotation/json_annotation.dart';
+
+part 'category_model.g.dart';
+
+@JsonSerializable()
+class CategoryModel extends Equatable {
+  @JsonKey(name: 'itemList')
+  final List<CategoryList> categoryList;
+
+  @JsonKey(name: 'count')
+  final int count;
+
+  @JsonKey(name: 'total')
+  final int total;
+
+  @JsonKey(name: 'adExist')
+  final bool adExist;
+
+  CategoryModel(this.categoryList, this.count, this.total, this.adExist);
+
+  factory CategoryModel.fromJson(Map<String, dynamic> srcJson) =>
+      _$CategoryModelFromJson(srcJson);
+
+  Map<String, dynamic> toJson() => _$CategoryModelToJson(this);
+
+  @override
+  List<Object> get props => [categoryList, count, total, adExist];
+}
+
+@JsonSerializable()
+class CategoryList extends Equatable {
+  @JsonKey(name: 'type')
+  final String type;
+
+  @JsonKey(name: 'data')
+  final CategoryItem item;
+
+  @JsonKey(name: 'id')
+  final int id;
+
+  @JsonKey(name: 'adIndex')
+  final int adIndex;
+
+  CategoryList(this.type, this.item, this.id, this.adIndex);
+
+  factory CategoryList.fromJson(Map<String, dynamic> srcJson) =>
+      _$CategoryListFromJson(srcJson);
+
+  Map<String, dynamic> toJson() => _$CategoryListToJson(this);
+
+  @override
+  List<Object> get props => [
+    type,
+    item,
+    id,
+    adIndex
+  ];
+}
+
+@JsonSerializable()
+class CategoryItem extends Equatable {
+  @JsonKey(name: 'dataType')
+  final String dataType;
+
+  @JsonKey(name: 'id')
+  final int id;
+
+  @JsonKey(name: 'title')
+  final String title;
+
+  @JsonKey(name: 'image')
+  final String image;
+
+  @JsonKey(name: 'actionUrl')
+  final String actionUrl;
+
+  @JsonKey(name: 'shade')
+  final bool shade;
+
+  CategoryItem(this.dataType, this.id, this.title, this.image, this.actionUrl,
+      this.shade);
+
+  factory CategoryItem.fromJson(Map<String, dynamic> srcJson) =>
+      _$CategoryItemFromJson(srcJson);
+
+  Map<String, dynamic> toJson() => _$CategoryItemToJson(this);
+
+  @override
+  List<Object> get props => [
+    dataType,
+    id,
+    title,
+    image,
+    actionUrl,
+    shade
+  ];
+}

+ 67 - 0
lib/bizmodule/main/category/model/category_model.g.dart

@@ -0,0 +1,67 @@
+// GENERATED CODE - DO NOT MODIFY BY HAND
+
+part of 'category_model.dart';
+
+// **************************************************************************
+// JsonSerializableGenerator
+// **************************************************************************
+
+CategoryModel _$CategoryModelFromJson(Map<String, dynamic> json) {
+  return CategoryModel(
+    (json['itemList'] as List)
+        ?.map((e) =>
+            e == null ? null : CategoryList.fromJson(e as Map<String, dynamic>))
+        ?.toList(),
+    json['count'] as int,
+    json['total'] as int,
+    json['adExist'] as bool,
+  );
+}
+
+Map<String, dynamic> _$CategoryModelToJson(CategoryModel instance) =>
+    <String, dynamic>{
+      'itemList': instance.categoryList,
+      'count': instance.count,
+      'total': instance.total,
+      'adExist': instance.adExist,
+    };
+
+CategoryList _$CategoryListFromJson(Map<String, dynamic> json) {
+  return CategoryList(
+    json['type'] as String,
+    json['data'] == null
+        ? null
+        : CategoryItem.fromJson(json['data'] as Map<String, dynamic>),
+    json['id'] as int,
+    json['adIndex'] as int,
+  );
+}
+
+Map<String, dynamic> _$CategoryListToJson(CategoryList instance) =>
+    <String, dynamic>{
+      'type': instance.type,
+      'data': instance.item,
+      'id': instance.id,
+      'adIndex': instance.adIndex,
+    };
+
+CategoryItem _$CategoryItemFromJson(Map<String, dynamic> json) {
+  return CategoryItem(
+    json['dataType'] as String,
+    json['id'] as int,
+    json['title'] as String,
+    json['image'] as String,
+    json['actionUrl'] as String,
+    json['shade'] as bool,
+  );
+}
+
+Map<String, dynamic> _$CategoryItemToJson(CategoryItem instance) =>
+    <String, dynamic>{
+      'dataType': instance.dataType,
+      'id': instance.id,
+      'title': instance.title,
+      'image': instance.image,
+      'actionUrl': instance.actionUrl,
+      'shade': instance.shade,
+    };

+ 6 - 0
lib/bizmodule/main/category/repositories/category_repository.dart

@@ -0,0 +1,6 @@
+
+import 'package:eye_video/bizmodule/main/category/model/category_model.dart';
+
+abstract class CategoryRepository {
+  Future<CategoryModel> fetchCategories();
+}

+ 11 - 0
lib/bizmodule/main/category/repositories/mock/mock_category_repository.dart

@@ -0,0 +1,11 @@
+import 'package:eye_video/bizmodule/main/category/model/category_model.dart';
+import 'package:eye_video/bizmodule/main/category/repositories/category_repository.dart';
+import 'package:eye_video/framework/network/pretty_http.dart';
+
+class MockCategoryRepository extends CategoryRepository {
+  @override
+  Future<CategoryModel> fetchCategories() async {
+    var resData = await PrettyHttp.get('api/categories/list');
+    return Future.value(CategoryModel.fromJson(resData));
+  }
+}

+ 67 - 0
lib/bizmodule/main/community/blocs/community_bloc.dart

@@ -0,0 +1,67 @@
+import 'package:eye_video/bizmodule/main/community/blocs/community_event.dart';
+import 'package:eye_video/bizmodule/main/community/blocs/community_state.dart';
+import 'package:eye_video/bizmodule/main/community/model/community_model.dart';
+import 'package:eye_video/bizmodule/main/community/respositories/community_repository.dart';
+import 'package:eye_video/bizmodule/main/community/extension/ext_community.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_bloc/flutter_bloc.dart';
+
+class CommunityBloc extends Bloc<CommunityEvent, CommunityState> {
+  final CommunityRepository communityRepository;
+  List<Community> mCommunityList = [];
+  String nextPageUrl;
+
+  CommunityBloc({@required this.communityRepository}) : super(null){
+    add(EventRequest(isFirst: true, isRefresh: true));
+  }
+
+  @override
+  Stream<CommunityState> mapEventToState(CommunityEvent event) async* {
+    if (event is EventRequest) {
+      if (event.isFirst) {
+        yield StateRequestLoading();
+      }
+      try {
+        if (event.isRefresh) {
+          //刷新
+          mCommunityList.clear();
+          var communityModel = await communityRepository.fetchCommunity();
+          nextPageUrl = communityModel.nextPageUrl ?? "";
+          mCommunityList.addAll(communityModel.communityList);
+        } else {
+          //加载更多
+          if (_hasNextPage(nextPageUrl)) {
+            var communityModel = await communityRepository.fetchCommunity();
+            nextPageUrl = communityModel.nextPageUrl ?? "";
+            mCommunityList.addAll(communityModel.communityList.where((element) => !element.isHorizontalScrollCard));
+          }
+        }
+
+        if (mCommunityList.isEmpty) {
+          yield StateRequestEmpty();
+        } else {
+          yield StateRequestSuccess(List.of(mCommunityList), _hasNextPage(nextPageUrl));
+    }
+    } catch (e) {
+    yield StateRequestFailure();
+    }
+  }
+  }
+
+  bool _hasNextPage(String nextPageUrl) {
+    if (nextPageUrl == null || nextPageUrl.isEmpty) {
+      return false;
+    }
+    try {
+      Uri uri = Uri.parse(nextPageUrl);
+      // ignore: unrelated_type_equality_checks
+      if (uri.queryParameters['smallCardLast'] == null && uri.queryParameters['smallCardLast'] == 0 &&
+          uri.queryParameters['pageCount'] == '0') {
+        return false;
+      }
+    } catch (e) {
+      return false;
+    }
+    return true;
+  }
+}

+ 19 - 0
lib/bizmodule/main/community/blocs/community_event.dart

@@ -0,0 +1,19 @@
+import 'package:equatable/equatable.dart';
+
+abstract class CommunityEvent extends Equatable {
+  @override
+  List<Object> get props => [];
+
+  const CommunityEvent();
+}
+
+class EventRequest extends CommunityEvent {
+  @override
+  List<Object> get props => [isFirst];
+
+  final bool isFirst;
+
+  final bool isRefresh;
+
+  const EventRequest({this.isFirst: true, this.isRefresh: true});
+}

+ 31 - 0
lib/bizmodule/main/community/blocs/community_state.dart

@@ -0,0 +1,31 @@
+import 'package:equatable/equatable.dart';
+import 'package:eye_video/bizmodule/main/community/model/community_model.dart';
+
+abstract class CommunityState extends Equatable {
+  @override
+  List<Object> get props => [];
+
+  const CommunityState();
+}
+
+class StateRequestSuccess extends CommunityState {
+  final List<Community> communityList;
+
+  final bool hasNextPage;
+
+  const StateRequestSuccess(this.communityList, this.hasNextPage);
+
+  List<Object> get props => [communityList, hasNextPage];
+}
+
+class StateRequestLoading extends CommunityState {
+  List<Object> get props => [];
+}
+
+class StateRequestFailure extends CommunityState {
+  List<Object> get props => [];
+}
+
+class StateRequestEmpty extends CommunityState {
+  List<Object> get props => [];
+}

+ 105 - 0
lib/bizmodule/main/community/community_page.dart

@@ -0,0 +1,105 @@
+import 'package:eye_video/bizmodule/bizwidget/cover_image_item.dart';
+import 'package:eye_video/bizmodule/main/community/blocs/community_bloc.dart';
+import 'package:eye_video/bizmodule/main/community/blocs/community_event.dart';
+import 'package:eye_video/bizmodule/main/community/blocs/community_state.dart';
+import 'package:eye_video/bizmodule/main/community/extension/ext_community.dart';
+import 'package:eye_video/bizmodule/main/community/widget/ugc_item.dart';
+import 'package:eye_video/framework/extension/context_extension.dart';
+import 'package:eye_video/framework/uikit/carousel/carousel_option.dart';
+import 'package:eye_video/framework/uikit/carousel/carousel_slider.dart';
+import 'package:eye_video/framework/uikit/refresher/indicator/material/material_footer.dart';
+import 'package:eye_video/framework/uikit/refresher/indicator/material/material_header.dart';
+import 'package:eye_video/framework/uikit/refresher/pretty_refresher.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_bloc/flutter_bloc.dart';
+import 'package:eye_video/framework/extension/image_compress.dart';
+
+class CommunityPage extends StatelessWidget {
+  final RefreshController _controller = RefreshController();
+
+  @override
+  Widget build(BuildContext context) {
+    return BlocBuilder<CommunityBloc, CommunityState>(
+      builder: (context, state) {
+        if (state is StateRequestLoading) {
+          return Center(
+            child: CircularProgressIndicator(),
+          );
+        } else if (state is StateRequestEmpty) {
+          return Center(
+            child: Text('数据请求为空'),
+          );
+        } else if (state is StateRequestFailure) {
+          return Center(
+            child: Text('数据请求失败'),
+          );
+        } else if (state is StateRequestSuccess) {
+          return PrettyRefresher(
+            header: MaterialHeader(),
+            footer: MaterialFooter(),
+            enableControlFinishLoad: false,
+            enableControlFinishRefresh: false,
+            controller: _controller,
+            child: ListView.builder(
+              padding: EdgeInsets.only(top: 10),
+              itemCount: state.communityList
+                  .where((element) =>
+                      element.isHorizontalScrollCard || element.isPicFollowCard)
+                  .length,
+              itemBuilder: (BuildContext context, int pos) {
+                return buildItemWidget(context, state, pos);
+              },
+            ),
+            onLoad: () async {
+              if (!state.hasNextPage) {
+                _controller.finishLoad(noMore: true);
+                context.showSnackBar(msg: '已经到底了~');
+              } else {
+                BlocProvider.of<CommunityBloc>(context)
+                    .add(EventRequest(isFirst: false, isRefresh: false));
+              }
+            },
+            onRefresh: () async {
+              BlocProvider.of<CommunityBloc>(context)
+                  .add(EventRequest(isFirst: false, isRefresh: true));
+              _controller.resetLoadState();
+            },
+          );
+        }
+        return Container();
+      },
+    );
+  }
+
+  Widget buildItemWidget(
+      BuildContext context, StateRequestSuccess state, int pos) {
+    var itemList = state.communityList
+        .where((element) =>
+            element.isHorizontalScrollCard || element.isPicFollowCard)
+        .toList();
+    var itemData = itemList[pos];
+    if (itemData.isHorizontalScrollCard) {
+      return CarouselSlider(
+        options: CarouselOption(
+          autoPlay: true,
+          aspectRatio: 2.0,
+          viewportFraction: 0.95,
+          autoPlayInterval: Duration(seconds: 5),
+          isEnableLargeCenterPage: true,
+        ),
+        items: itemData.data.communityList
+            .map((discovery) => CoverImageItem(
+                  coverUrl: discovery.data.image.compress_value(),
+                ))
+            .toList(),
+      );
+    }
+    if (itemData.isPicFollowCard) {
+      return UgcFollowItem(
+        header: itemData.data.header,
+        content: itemData.data.content.data,
+      );
+    }
+    return Container();
+  }
+}

+ 58 - 0
lib/bizmodule/main/community/extension/ext_community.dart

@@ -0,0 +1,58 @@
+import 'package:eye_video/bizmodule/main/community/model/community_model.dart';
+
+const int _MINUTE = 60; // 1分钟
+const int _HOUR = 60 * _MINUTE; // 1小时
+const int _DAY = 24 * _HOUR; // 1天
+const int _MONTH = 31 * _DAY; // 月
+const int _YEAR = 12 * _MONTH; // 年
+
+String prettyTime(int timeMillis) {
+  if (timeMillis < 0) return "";
+  var currentMills = DateTime.now().millisecondsSinceEpoch;
+  int seconds = (currentMills - timeMillis) ~/ 1000;
+  if (seconds <= 0) {
+    return "刚刚";
+  }
+
+  if (seconds < 60) {
+    return "${seconds.toString()}秒前";
+  }
+
+  int minutes = seconds ~/ _MINUTE;
+  if (seconds < 60) {
+    return "${minutes.toString()}分钟前";
+  }
+
+  int hours = seconds ~/ _HOUR;
+  if (hours < 24) {
+    return "${hours.toString()}小时前";
+  }
+
+  int days = seconds ~/ _DAY;
+  if (days < 31) {
+    return "${days.toString()}天前";
+  }
+
+  int months = seconds ~/ _MONTH;
+  if (months < 12) {
+    return "${months.toString()}月前";
+  }
+
+  int years = seconds ~/ _YEAR;
+  return "${years.toString()}年前";
+}
+
+extension ExtCommunity on Community {
+  bool get isHorizontalScrollCard =>
+      this.type == 'horizontalScrollCard' &&
+      data != null &&
+      data.dataType == 'HorizontalScrollCard' &&
+      data.communityList.isNotEmpty;
+
+  bool get isPicFollowCard =>
+      this.type == 'pictureFollowCard' &&
+      data != null &&
+      data.dataType == 'FollowCard' &&
+      data.header != null &&
+      data.content != null;
+}

+ 228 - 0
lib/bizmodule/main/community/model/community_model.dart

@@ -0,0 +1,228 @@
+import 'package:equatable/equatable.dart';
+import 'package:json_annotation/json_annotation.dart';
+
+part 'community_model.g.dart';
+
+@JsonSerializable()
+class CommunityModel extends Equatable {
+  @JsonKey(name: 'itemList')
+  final List<Community> communityList;
+
+  @JsonKey(name: 'count')
+  final int count;
+
+  @JsonKey(name: 'total')
+  final int total;
+
+  @JsonKey(name: 'nextPageUrl')
+  final String nextPageUrl;
+
+  CommunityModel(this.communityList, this.count, this.total, this.nextPageUrl);
+
+  @override
+  List<Object> get props => [communityList, count, total, nextPageUrl];
+
+  factory CommunityModel.fromJson(Map<String, dynamic> srcJson) =>
+      _$CommunityModelFromJson(srcJson);
+
+  Map<String, dynamic> toJson() => _$CommunityModelToJson(this);
+}
+
+@JsonSerializable()
+class Community extends Equatable {
+  @JsonKey(name: 'type')
+  final String type;
+
+  @JsonKey(name: 'data')
+  final CommunityData data;
+
+  @JsonKey(name: 'tag')
+  final String tag;
+
+  @JsonKey(name: 'id')
+  final int id;
+
+  @JsonKey(name: 'adIndex')
+  final int adIndex;
+
+  Community(this.type, this.data, this.tag, this.id, this.adIndex);
+
+  factory Community.fromJson(Map<String, dynamic> srcJson) {
+    try {
+      return _$CommunityFromJson(srcJson);
+    } catch (e) {
+      print('$e');
+    }
+  }
+
+  Map<String, dynamic> toJson() => _$CommunityToJson(this);
+
+  @override
+  List<Object> get props => [type, data, tag, id, adIndex];
+}
+
+@JsonSerializable()
+class CommunityData extends Equatable {
+  @JsonKey(name: 'dataType')
+  final String dataType;
+
+  @JsonKey(name: 'itemList')
+  final List<Community> communityList;
+
+  @JsonKey(name: 'count')
+  final int count;
+
+  @JsonKey(name: 'header')
+  final HeaderData header;
+
+  @JsonKey(name: 'content')
+  final Community content;
+
+  @JsonKey(name: 'consumption')
+  final Consumption consumption;
+
+  @JsonKey(name: 'tags')
+  final List<Tag> tags;
+
+  @JsonKey(name: 'releaseTime')
+  final int releaseTime;
+
+  @JsonKey(name: 'urls')
+  final List<String> urls;
+
+  @JsonKey(name: 'city')
+  final String city;
+
+  @JsonKey(name: 'longitude')
+  final double longitude;
+
+  @JsonKey(name: 'latitude')
+  final double latitude;
+
+  @JsonKey(name: 'image')
+  final String image;
+
+  @JsonKey(name: 'description')
+  final String description;
+
+  CommunityData(
+      this.dataType,
+      this.communityList,
+      this.count,
+      this.header,
+      this.content,
+      this.consumption,
+      this.tags,
+      this.releaseTime,
+      this.urls,
+      this.city,
+      this.longitude,
+      this.latitude,
+      this.image,
+      this.description);
+
+  factory CommunityData.fromJson(Map<String, dynamic> srcJson) {
+    try {
+      return _$CommunityDataFromJson(srcJson);
+    } catch (e) {
+      print('$e');
+    }
+  }
+
+  Map<String, dynamic> toJson() => _$CommunityDataToJson(this);
+
+  @override
+  List<Object> get props => [
+        dataType,
+        communityList,
+        count,
+        header,
+        content,
+        consumption,
+        tags,
+        releaseTime,
+        urls,
+        city,
+        longitude,
+        latitude,
+        image,
+        description
+      ];
+}
+
+@JsonSerializable()
+class Tag extends Equatable {
+  @JsonKey(name: 'name')
+  final String name;
+
+  Tag(this.name);
+
+  factory Tag.fromJson(Map<String, dynamic> srcJson) {
+    try {
+      return _$TagFromJson(srcJson);
+    } catch (e) {
+      print('$e');
+    }
+  }
+
+  Map<String, dynamic> toJson() => _$TagToJson(this);
+
+  @override
+  List<Object> get props => [name];
+}
+
+@JsonSerializable()
+class Consumption extends Equatable {
+  @JsonKey(name: 'collectionCount')
+  final int collectionCount;
+
+  @JsonKey(name: 'replyCount')
+  final int replyCount;
+
+  @JsonKey(name: 'shareCount')
+  final int shareCount;
+
+  @JsonKey(name: 'realCollectionCount')
+  final int realCollectionCount;
+
+  Consumption(this.collectionCount, this.replyCount, this.shareCount,
+      this.realCollectionCount);
+
+  @override
+  List<Object> get props =>
+      [collectionCount, replyCount, shareCount, realCollectionCount];
+
+  factory Consumption.fromJson(Map<String, dynamic> srcJson) {
+    try {
+      return _$ConsumptionFromJson(srcJson);
+    } catch (e) {
+      print('$e');
+    }
+  }
+
+  Map<String, dynamic> toJson() => _$ConsumptionToJson(this);
+}
+
+@JsonSerializable()
+class HeaderData extends Equatable {
+  @JsonKey(name: 'icon')
+  final String icon;
+
+  @JsonKey(name: 'issuerName')
+  final String issuerName;
+
+  HeaderData(this.icon, this.issuerName);
+
+  factory HeaderData.fromJson(Map<String, dynamic> srcJson) {
+    try {
+      return _$HeaderDataFromJson(srcJson);
+    } catch (e) {
+      print('$e');
+    }
+  }
+
+  Map<String, dynamic> toJson() => _$HeaderDataToJson(this);
+
+  @override
+  List<Object> get props => [icon, issuerName];
+}

+ 135 - 0
lib/bizmodule/main/community/model/community_model.g.dart

@@ -0,0 +1,135 @@
+// GENERATED CODE - DO NOT MODIFY BY HAND
+
+part of 'community_model.dart';
+
+// **************************************************************************
+// JsonSerializableGenerator
+// **************************************************************************
+
+CommunityModel _$CommunityModelFromJson(Map<String, dynamic> json) {
+  return CommunityModel(
+    (json['itemList'] as List)
+        ?.map((e) =>
+            e == null ? null : Community.fromJson(e as Map<String, dynamic>))
+        ?.toList(),
+    json['count'] as int,
+    json['total'] as int,
+    json['nextPageUrl'] as String,
+  );
+}
+
+Map<String, dynamic> _$CommunityModelToJson(CommunityModel instance) =>
+    <String, dynamic>{
+      'itemList': instance.communityList,
+      'count': instance.count,
+      'total': instance.total,
+      'nextPageUrl': instance.nextPageUrl,
+    };
+
+Community _$CommunityFromJson(Map<String, dynamic> json) {
+  return Community(
+    json['type'] as String,
+    json['data'] == null
+        ? null
+        : CommunityData.fromJson(json['data'] as Map<String, dynamic>),
+    json['tag'] as String,
+    json['id'] as int,
+    json['adIndex'] as int,
+  );
+}
+
+Map<String, dynamic> _$CommunityToJson(Community instance) => <String, dynamic>{
+      'type': instance.type,
+      'data': instance.data,
+      'tag': instance.tag,
+      'id': instance.id,
+      'adIndex': instance.adIndex,
+    };
+
+CommunityData _$CommunityDataFromJson(Map<String, dynamic> json) {
+  return CommunityData(
+    json['dataType'] as String,
+    (json['itemList'] as List)
+        ?.map((e) =>
+            e == null ? null : Community.fromJson(e as Map<String, dynamic>))
+        ?.toList(),
+    json['count'] as int,
+    json['header'] == null
+        ? null
+        : HeaderData.fromJson(json['header'] as Map<String, dynamic>),
+    json['content'] == null
+        ? null
+        : Community.fromJson(json['content'] as Map<String, dynamic>),
+    json['consumption'] == null
+        ? null
+        : Consumption.fromJson(json['consumption'] as Map<String, dynamic>),
+    (json['tags'] as List)
+        ?.map((e) => e == null ? null : Tag.fromJson(e as Map<String, dynamic>))
+        ?.toList(),
+    json['releaseTime'] as int,
+    (json['urls'] as List)?.map((e) => e as String)?.toList(),
+    json['city'] as String,
+    (json['longitude'] as num)?.toDouble(),
+    (json['latitude'] as num)?.toDouble(),
+    json['image'] as String,
+    json['description'] as String,
+  );
+}
+
+Map<String, dynamic> _$CommunityDataToJson(CommunityData instance) =>
+    <String, dynamic>{
+      'dataType': instance.dataType,
+      'itemList': instance.communityList,
+      'count': instance.count,
+      'header': instance.header,
+      'content': instance.content,
+      'consumption': instance.consumption,
+      'tags': instance.tags,
+      'releaseTime': instance.releaseTime,
+      'urls': instance.urls,
+      'city': instance.city,
+      'longitude': instance.longitude,
+      'latitude': instance.latitude,
+      'image': instance.image,
+      'description': instance.description,
+    };
+
+Tag _$TagFromJson(Map<String, dynamic> json) {
+  return Tag(
+    json['name'] as String,
+  );
+}
+
+Map<String, dynamic> _$TagToJson(Tag instance) => <String, dynamic>{
+      'name': instance.name,
+    };
+
+Consumption _$ConsumptionFromJson(Map<String, dynamic> json) {
+  return Consumption(
+    json['collectionCount'] as int,
+    json['replyCount'] as int,
+    json['shareCount'] as int,
+    json['realCollectionCount'] as int,
+  );
+}
+
+Map<String, dynamic> _$ConsumptionToJson(Consumption instance) =>
+    <String, dynamic>{
+      'collectionCount': instance.collectionCount,
+      'replyCount': instance.replyCount,
+      'shareCount': instance.shareCount,
+      'realCollectionCount': instance.realCollectionCount,
+    };
+
+HeaderData _$HeaderDataFromJson(Map<String, dynamic> json) {
+  return HeaderData(
+    json['icon'] as String,
+    json['issuerName'] as String,
+  );
+}
+
+Map<String, dynamic> _$HeaderDataToJson(HeaderData instance) =>
+    <String, dynamic>{
+      'icon': instance.icon,
+      'issuerName': instance.issuerName,
+    };

+ 5 - 0
lib/bizmodule/main/community/respositories/community_repository.dart

@@ -0,0 +1,5 @@
+import 'package:eye_video/bizmodule/main/community/model/community_model.dart';
+
+abstract class CommunityRepository {
+  Future<CommunityModel> fetchCommunity({String nextPageUrl});
+}

+ 24 - 0
lib/bizmodule/main/community/respositories/mock/mock_community_repository.dart

@@ -0,0 +1,24 @@
+import 'package:eye_video/bizmodule/main/community/model/community_model.dart';
+import 'package:eye_video/bizmodule/main/community/respositories/community_repository.dart';
+import 'package:eye_video/framework/network/pretty_http.dart';
+
+class MockCommunityRepository extends CommunityRepository {
+  @override
+  Future<CommunityModel> fetchCommunity({String nextPageUrl}) async {
+    try {
+      Map<String, dynamic> reqParams;
+      if (nextPageUrl == null || nextPageUrl.isEmpty) {
+        reqParams = {};
+      } else {
+        reqParams = Uri.parse(nextPageUrl).queryParameters;
+      }
+      var resData = await PrettyHttp.get(
+        "api/community/recommend/list",
+        reqParams: reqParams,
+      );
+      return Future.value(CommunityModel.fromJson(resData));
+    } catch (e) {
+      return Future.error(e);
+    }
+  }
+}

+ 160 - 0
lib/bizmodule/main/community/widget/ugc_item.dart

@@ -0,0 +1,160 @@
+import 'package:eye_video/bizmodule/bizwidget/follow_list_head.dart';
+import 'package:eye_video/bizmodule/main/community/extension/ext_community.dart';
+import 'package:eye_video/bizmodule/main/community/model/community_model.dart';
+import 'package:eye_video/framework/extension/screen_ruler.dart';
+import 'package:eye_video/framework/uikit/layout/nine_layout.dart';
+import 'package:flutter/material.dart';
+import 'package:eye_video/framework/extension/image_compress.dart';
+
+class UgcFollowItem extends StatelessWidget {
+  final HeaderData header;
+  final CommunityData content;
+
+  const UgcFollowItem({Key key, this.header, this.content}) : super(key: key);
+
+  @override
+  Widget build(BuildContext context) {
+    List<Widget> children = [];
+
+    var headerItem = FollowListHead(
+      title: header.issuerName,
+      avatarUrl: header.icon.compress_value(),
+      description: "${prettyTime(content.releaseTime)}发布",
+    );
+    children.add(headerItem);
+
+    if (content.description != null && content.description.isNotEmpty) {
+      var contentItem = Padding(
+        padding: EdgeInsets.only(left: 16),
+        child: Text(
+          content.description,
+          style: TextStyle(
+            fontSize: 15,
+            fontFamily: 'NotoSansHans-Regular',
+            color: Color(0xff333333),
+          ),
+        ),
+      );
+      children.add(contentItem);
+    }
+
+    if (content.urls != null || content.urls.isNotEmpty) {
+      var nineImages = Padding(
+        padding: EdgeInsets.only(left: 8, top: 10, bottom: 10),
+        child: NineLayout(
+          width: MediaQuery.of(context).size.width - 34,
+          children: content.urls.map((url) {
+            return Container(
+                decoration: ShapeDecoration(
+              image: DecorationImage(
+                image: NetworkImage(url.compress_value()),
+                fit: BoxFit.cover,
+              ),
+              shape: RoundedRectangleBorder(
+                borderRadius: BorderRadius.circular(5),
+              ),
+            ));
+          }).toList(),
+          count: content.urls.length,
+          gap: 1,
+        ),
+      );
+
+      children.add(nineImages);
+    }
+
+    if (content.tags != null && content.tags.isNotEmpty) {
+      var tagItems = Container(
+        padding: EdgeInsets.only(left: 10, top: 10),
+        child: Wrap(
+          children: content.tags
+              .map((tag) => Container(
+                    decoration: BoxDecoration(
+                      color: Color(0xfff0f0f0),
+                      borderRadius: BorderRadius.all(Radius.circular(15)),
+                    ),
+                    padding:
+                        EdgeInsets.only(top: 2, bottom: 2, left: 10, right: 10),
+                    child: Text(
+                      tag.name,
+                      style: TextStyle(
+                        color: Colors.blue,
+                        fontSize: 12,
+                      ),
+                    ),
+                  ))
+              .toList(),
+        ),
+      );
+      children.add(tagItems);
+    }
+
+    if (content.consumption != null) {
+      var consumptionItem = Padding(
+        padding: EdgeInsets.only(top: 10, left: 15),
+        child: Row(
+          children: [
+            Row(
+              mainAxisAlignment: MainAxisAlignment.start,
+              children: [
+                Image.asset(
+                  'assets/images/biz_app_icon_collection.png',
+                  width: 20,
+                  height: 20,
+                ),
+                Padding(
+                  padding: EdgeInsets.only(left: 3),
+                  child: Text("${content.consumption.realCollectionCount}"),
+                ),
+              ],
+            ),
+            Padding(
+              padding: EdgeInsets.only(left: 30),
+              child: Row(
+                mainAxisAlignment: MainAxisAlignment.start,
+                children: [
+                  Image.asset(
+                    'assets/images/biz_app_icon_reply.png',
+                    width: 20,
+                    height: 20,
+                  ),
+                  Padding(
+                    padding: EdgeInsets.only(left: 3),
+                    child: Text("${content.consumption.replyCount}"),
+                  ),
+                ],
+              ),
+            ),
+            Padding(
+              padding: EdgeInsets.only(left: 30),
+              child: Row(
+                mainAxisAlignment: MainAxisAlignment.start,
+                children: [
+                  Image.asset(
+                    'assets/images/biz_app_icon_share.png',
+                    width: 20,
+                    height: 20,
+                  ),
+                  Padding(
+                    padding: EdgeInsets.only(left: 3),
+                    child: Text("${content.consumption.shareCount}"),
+                  ),
+                ],
+              ),
+            )
+          ],
+        ),
+      );
+      children.add(consumptionItem);
+    }
+
+    return Container(
+      padding: EdgeInsets.all(10),
+      child: Column(
+        mainAxisAlignment: MainAxisAlignment.start,
+        crossAxisAlignment: CrossAxisAlignment.start,
+        children: children,
+      ),
+    );
+  }
+}

+ 32 - 0
lib/bizmodule/main/discovery/blocs/discovery_bloc.dart

@@ -0,0 +1,32 @@
+import 'package:eye_video/bizmodule/main/discovery/blocs/discovery_event.dart';
+import 'package:eye_video/bizmodule/main/discovery/blocs/discovery_state.dart';
+import 'package:eye_video/bizmodule/main/discovery/respositories/discovery_repository.dart';
+import 'package:flutter/material.dart';
+import 'package:eye_video/bizmodule/main/discovery/model/discovery_model.dart';
+import 'package:flutter_bloc/flutter_bloc.dart';
+
+class DiscoveryBloc extends Bloc<DiscoveryEvent, DiscoveryState> {
+  final DiscoveryRepository discoveryRepository;
+
+  DiscoveryBloc({@required this.discoveryRepository}) : super(null) {
+    add(DiscoveryRequestEvent());
+  }
+
+  @override
+  Stream<DiscoveryState> mapEventToState(DiscoveryEvent event) async* {
+    if (event is DiscoveryRequestEvent) {
+      yield StateLoading();
+      try {
+        final DiscoveryModel discoveryModel =
+            await discoveryRepository.fetchDiscovery();
+        if (discoveryModel == null || discoveryModel.discoveryList.isEmpty) {
+          yield StateEmpty();
+        } else {
+          yield StateLoadSuccess(discoveryModel: discoveryModel);
+        }
+      } catch (e) {
+        yield StateLoadFailure();
+      }
+    }
+  }
+}

+ 15 - 0
lib/bizmodule/main/discovery/blocs/discovery_event.dart

@@ -0,0 +1,15 @@
+import 'package:equatable/equatable.dart';
+
+abstract class DiscoveryEvent extends Equatable {
+  const DiscoveryEvent();
+
+  @override
+  List<Object> get props => [];
+}
+
+class DiscoveryRequestEvent extends DiscoveryEvent {
+  const DiscoveryRequestEvent();
+
+  @override
+  List<Object> get props => [];
+}

+ 32 - 0
lib/bizmodule/main/discovery/blocs/discovery_state.dart

@@ -0,0 +1,32 @@
+import 'package:equatable/equatable.dart';
+import 'package:flutter/material.dart';
+import 'package:eye_video/bizmodule/main/discovery/model/discovery_model.dart';
+
+abstract class DiscoveryState extends Equatable {
+  const DiscoveryState();
+
+  @override
+  List<Object> get props => [];
+}
+
+class StateLoadSuccess extends DiscoveryState {
+  final DiscoveryModel discoveryModel;
+
+  const StateLoadSuccess({@required this.discoveryModel})
+      : assert(discoveryModel != null);
+
+  @override
+  List<Object> get props => [discoveryModel];
+}
+
+class StateLoadFailure extends DiscoveryState {
+  List<Object> get props => [];
+}
+
+class StateLoading extends DiscoveryState {
+  List<Object> get props => [];
+}
+
+class StateEmpty extends DiscoveryState {
+  List<Object> get props => [];
+}

+ 113 - 0
lib/bizmodule/main/discovery/discovery_page.dart

@@ -0,0 +1,113 @@
+import 'package:eye_video/bizmodule/bizwidget/cover_image_item.dart';
+import 'package:eye_video/bizmodule/bizwidget/follow_list_head.dart';
+import 'package:eye_video/bizmodule/bizwidget/header_item.dart';
+import 'package:eye_video/bizmodule/main/discovery/blocs/discovery_bloc.dart';
+import 'package:eye_video/bizmodule/main/discovery/blocs/discovery_state.dart';
+import 'package:eye_video/bizmodule/main/discovery/model/discovery_model.dart';
+import 'package:eye_video/bizmodule/main/discovery/extension/ext_discovery.dart';
+import 'package:eye_video/bizmodule/main/discovery/widgets/column_card_items.dart';
+import 'package:eye_video/bizmodule/main/discovery/widgets/hot_category_items.dart';
+import 'package:eye_video/framework/uikit/carousel/carousel_option.dart';
+import 'package:eye_video/framework/uikit/carousel/carousel_slider.dart';
+import 'package:eye_video/framework/uikit/scrollview/overscroll_behavior.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_bloc/flutter_bloc.dart';
+import 'package:eye_video/framework/extension/image_compress.dart';
+
+class DiscoveryPage extends StatelessWidget {
+  @override
+  Widget build(BuildContext context) {
+    return Container(
+      padding: EdgeInsets.only(top: 10, bottom: 10),
+      child: BlocBuilder<DiscoveryBloc, DiscoveryState>(
+        builder: (context, state) {
+          if (state is StateLoading) {
+            return Center(
+              child: CircularProgressIndicator(),
+            );
+          } else if (state is StateLoadFailure) {
+            return Center(
+              child: Text('数据请求失败'),
+            );
+          } else if (state is StateLoadSuccess) {
+            return ScrollConfiguration(
+              behavior: OverScrollBehavior(),
+              child: ListView.builder(
+                itemBuilder: (context, pos) =>
+                    buildItemWidget(context, state, pos),
+                itemCount: state.discoveryModel.discoveryList.length,
+              ),
+            );
+          } else {
+            return Center(
+              child: Text('数据请求为空'),
+            );
+          }
+        },
+      ),
+    );
+  }
+
+  Widget buildItemWidget(
+      BuildContext context, StateLoadSuccess state, int pos) {
+    Discovery itemData = state.discoveryModel.discoveryList[pos];
+    if (itemData.isHorizontalScrollCard) {
+      return CarouselSlider(
+        options: CarouselOption(
+          autoPlay: true,
+          aspectRatio: 2.0,
+          viewportFraction: 0.95,
+          autoPlayInterval: Duration(seconds: 5),
+          isEnableLargeCenterPage: true,
+        ),
+        items: itemData.data.discoveryList
+            .where((discovery) =>
+                discovery.data != null &&
+                discovery.data.image != null &&
+                discovery.data.image.isNotEmpty)
+            .map((discovery) => CoverImageItem(
+                  coverUrl: discovery.data.image.compress_value(),
+                ))
+            .toList(),
+      );
+    } else if (itemData.isHeaderCard) {
+      return HeaderItem(
+        title: itemData.data.text,
+      );
+    } else if (itemData.isSpecialSquareCard) {
+      List<Widget> children = <Widget>[];
+      if (itemData.isSpecialSquareHeader) {
+        var headerItem = HeaderItem(
+          title: itemData.data.header.title,
+        );
+        children.add(headerItem);
+      }
+      children.add(HotCategoryItems(
+        discoveryList: itemData.data.discoveryList,
+      ));
+      return Column(children: children);
+    } else if (itemData.isColumnCardList) {
+      List<Widget> children = <Widget>[];
+      if (itemData.isColumnCardListHeader) {
+        var headerItem = HeaderItem(
+          title: itemData.data.header.title,
+        );
+        children.add(headerItem);
+      }
+      children.add(ColumnCardItems(
+        discoveryList: itemData.data.discoveryList,
+      ));
+      return Column(children: children);
+    } else if (itemData.isBriefCard) {
+      return Padding(
+        padding: EdgeInsets.only(left: 10, right: 10),
+        child: FollowListHead(
+          title: itemData.data.title,
+          avatarUrl: itemData.data.icon.compress_value(),
+          description: itemData.data.description,
+        ),
+      );
+    }
+    return Container();
+  }
+}

+ 44 - 0
lib/bizmodule/main/discovery/extension/ext_discovery.dart

@@ -0,0 +1,44 @@
+import 'package:eye_video/bizmodule/main/discovery/model/discovery_model.dart';
+
+extension ExtDiscovery on Discovery {
+  bool get isHorizontalScrollCard =>
+      this.type == 'horizontalScrollCard' &&
+      this.data != null &&
+      this.data.discoveryList.isNotEmpty &&
+      this.data.discoveryList[0] != null &&
+      this.data.discoveryList[0].data.dataType == 'Banner';
+
+  bool get isSpecialSquareHeader =>
+      type == 'specialSquareCardCollection' &&
+      this.data != null &&
+      this.data.header != null &&
+      this.data.header.title != null;
+
+  bool get isSpecialSquareCard =>
+      type == 'specialSquareCardCollection' &&
+      this.data != null &&
+      this.data.discoveryList != null &&
+      this.data.discoveryList.isNotEmpty &&
+      this.data.discoveryList[0].type == 'squareCardOfCategory' &&
+      this.data.discoveryList[0].data.dataType == 'SquareCard';
+
+  bool get isColumnCardListHeader =>
+      type == 'columnCardList' &&
+      this.data != null &&
+      this.data.header != null &&
+      this.data.header.title != null;
+
+  bool get isColumnCardList =>
+      type == 'columnCardList' &&
+      this.data != null &&
+      this.data.discoveryList != null &&
+      this.data.discoveryList.isNotEmpty &&
+      this.data.discoveryList[0].type == 'squareCardOfColumn' &&
+          this.data.discoveryList[0].data.dataType == 'SquareCard';
+
+  bool get isHeaderCard =>
+      type == 'textCard' && data != null && data.text.isNotEmpty;
+
+  bool get isBriefCard =>
+      type == 'briefCard' && data != null;
+}

+ 150 - 0
lib/bizmodule/main/discovery/model/discovery_model.dart

@@ -0,0 +1,150 @@
+import 'package:equatable/equatable.dart';
+import 'package:json_annotation/json_annotation.dart';
+
+part 'discovery_model.g.dart';
+
+@JsonSerializable()
+class DiscoveryModel extends Equatable {
+  @JsonKey(name: 'itemList')
+  final List<Discovery> discoveryList;
+
+  @JsonKey(name: 'count')
+  final int count;
+
+  @JsonKey(name: 'total')
+  final int total;
+
+  @JsonKey(name: 'nextPageUrl')
+  final String nextPageUrl;
+
+  @JsonKey(name: 'adExist')
+  final bool adExist;
+
+  DiscoveryModel(this.discoveryList, this.count, this.total, this.nextPageUrl,
+      this.adExist);
+
+  factory DiscoveryModel.fromJson(Map<String, dynamic> srcJson) =>
+      _$DiscoveryModelFromJson(srcJson);
+
+  Map<String, dynamic> toJson() => _$DiscoveryModelToJson(this);
+
+  @override
+  List<Object> get props => [discoveryList, count, total, nextPageUrl, adExist];
+}
+
+@JsonSerializable()
+class Discovery extends Equatable {
+  @JsonKey(name: 'type')
+  final String type;
+
+  @JsonKey(name: 'data')
+  final DiscoveryData data;
+
+  @JsonKey(name: 'tag')
+  final String tag;
+
+  @JsonKey(name: 'id')
+  final int id;
+
+  @JsonKey(name: 'adIndex')
+  final int adIndex;
+
+  Discovery(this.type, this.data, this.tag, this.id, this.adIndex);
+
+  factory Discovery.fromJson(Map<String, dynamic> srcJson) {
+    try {
+      return _$DiscoveryFromJson(srcJson);
+    } catch (e) {
+      print('$e');
+    }
+  }
+
+  Map<String, dynamic> toJson() => _$DiscoveryToJson(this);
+
+  @override
+  List<Object> get props => [type, data, tag, id, adIndex];
+}
+
+@JsonSerializable()
+class DiscoveryData extends Equatable {
+  @JsonKey(name: 'dataType')
+  final String dataType;
+
+  @JsonKey(name: 'itemList')
+  final List<Discovery> discoveryList;
+
+  @JsonKey(name: 'header')
+  final DiscoveryData header;
+
+  @JsonKey(name: 'id')
+  final int id;
+
+  @JsonKey(name: 'type')
+  final String type;
+
+  @JsonKey(name: 'text')
+  final String text;
+
+  @JsonKey(name: 'title')
+  final String title;
+
+  @JsonKey(name: 'subTitle')
+  final String subTitle;
+
+  @JsonKey(name: 'icon')
+  final String icon;
+
+  @JsonKey(name: 'iconType')
+  final String iconType;
+
+  @JsonKey(name: 'actionUrl')
+  final String actionUrl;
+
+  @JsonKey(name: 'description')
+  final String description;
+
+  @JsonKey(name: 'image')
+  final String image;
+
+  DiscoveryData(
+      this.dataType,
+      this.discoveryList,
+      this.header,
+      this.id,
+      this.type,
+      this.text,
+      this.title,
+      this.subTitle,
+      this.icon,
+      this.iconType,
+      this.actionUrl,
+      this.description,
+      this.image);
+
+  @override
+  List<Object> get props => [
+        dataType,
+        discoveryList,
+        header,
+        id,
+        type,
+        text,
+        title,
+        subTitle,
+        icon,
+        iconType,
+        actionUrl,
+        description,
+        image
+      ];
+
+  factory DiscoveryData.fromJson(Map<String, dynamic> srcJson) {
+    try {
+      return _$DiscoveryDataFromJson(srcJson);
+    } catch (e) {
+      print('$e');
+    }
+  }
+
+  Map<String, dynamic> toJson() => _$DiscoveryDataToJson(this);
+}

+ 89 - 0
lib/bizmodule/main/discovery/model/discovery_model.g.dart

@@ -0,0 +1,89 @@
+// GENERATED CODE - DO NOT MODIFY BY HAND
+
+part of 'discovery_model.dart';
+
+// **************************************************************************
+// JsonSerializableGenerator
+// **************************************************************************
+
+DiscoveryModel _$DiscoveryModelFromJson(Map<String, dynamic> json) {
+  return DiscoveryModel(
+    (json['itemList'] as List)
+        ?.map((e) =>
+            e == null ? null : Discovery.fromJson(e as Map<String, dynamic>))
+        ?.toList(),
+    json['count'] as int,
+    json['total'] as int,
+    json['nextPageUrl'] as String,
+    json['adExist'] as bool,
+  );
+}
+
+Map<String, dynamic> _$DiscoveryModelToJson(DiscoveryModel instance) =>
+    <String, dynamic>{
+      'itemList': instance.discoveryList,
+      'count': instance.count,
+      'total': instance.total,
+      'nextPageUrl': instance.nextPageUrl,
+      'adExist': instance.adExist,
+    };
+
+Discovery _$DiscoveryFromJson(Map<String, dynamic> json) {
+  return Discovery(
+    json['type'] as String,
+    json['data'] == null
+        ? null
+        : DiscoveryData.fromJson(json['data'] as Map<String, dynamic>),
+    json['tag'] as String,
+    json['id'] as int,
+    json['adIndex'] as int,
+  );
+}
+
+Map<String, dynamic> _$DiscoveryToJson(Discovery instance) => <String, dynamic>{
+      'type': instance.type,
+      'data': instance.data,
+      'tag': instance.tag,
+      'id': instance.id,
+      'adIndex': instance.adIndex,
+    };
+
+DiscoveryData _$DiscoveryDataFromJson(Map<String, dynamic> json) {
+  return DiscoveryData(
+    json['dataType'] as String,
+    (json['itemList'] as List)
+        ?.map((e) =>
+            e == null ? null : Discovery.fromJson(e as Map<String, dynamic>))
+        ?.toList(),
+    json['header'] == null
+        ? null
+        : DiscoveryData.fromJson(json['header'] as Map<String, dynamic>),
+    json['id'] as int,
+    json['type'] as String,
+    json['text'] as String,
+    json['title'] as String,
+    json['subTitle'] as String,
+    json['icon'] as String,
+    json['iconType'] as String,
+    json['actionUrl'] as String,
+    json['description'] as String,
+    json['image'] as String,
+  );
+}
+
+Map<String, dynamic> _$DiscoveryDataToJson(DiscoveryData instance) =>
+    <String, dynamic>{
+      'dataType': instance.dataType,
+      'itemList': instance.discoveryList,
+      'header': instance.header,
+      'id': instance.id,
+      'type': instance.type,
+      'text': instance.text,
+      'title': instance.title,
+      'subTitle': instance.subTitle,
+      'icon': instance.icon,
+      'iconType': instance.iconType,
+      'actionUrl': instance.actionUrl,
+      'description': instance.description,
+      'image': instance.image,
+    };

+ 5 - 0
lib/bizmodule/main/discovery/respositories/discovery_repository.dart

@@ -0,0 +1,5 @@
+import 'package:eye_video/bizmodule/main/discovery/model/discovery_model.dart';
+
+abstract class DiscoveryRepository {
+  Future<DiscoveryModel> fetchDiscovery();
+}

+ 11 - 0
lib/bizmodule/main/discovery/respositories/mock/mock_discovery_repository.dart

@@ -0,0 +1,11 @@
+import 'package:eye_video/bizmodule/main/discovery/model/discovery_model.dart';
+import 'package:eye_video/bizmodule/main/discovery/respositories/discovery_repository.dart';
+import 'package:eye_video/framework/network/pretty_http.dart';
+
+class MockDiscoveryRepository extends DiscoveryRepository {
+  @override
+  Future<DiscoveryModel> fetchDiscovery() async {
+    var resData = await PrettyHttp.get("api/discovery/list");
+    return Future.value(DiscoveryModel.fromJson(resData));
+  }
+}

+ 119 - 0
lib/bizmodule/main/discovery/widgets/column_card_items.dart

@@ -0,0 +1,119 @@
+import 'package:eye_video/bizmodule/main/discovery/model/discovery_model.dart';
+import 'package:eye_video/framework/uikit/scrollview/overscroll_behavior.dart';
+import 'package:flutter/material.dart';
+
+class ColumnCardItems extends StatelessWidget {
+  final List<Discovery> discoveryList;
+
+  const ColumnCardItems({Key key, this.discoveryList}) : super(key: key);
+
+  Widget getColumnItem(BuildContext context, String coverImage, String title,
+      String description) {
+    return Stack(
+      alignment: Alignment.center,
+      children: [
+        Container(
+          width: MediaQuery.of(context).size.width / 2,
+          height: 120,
+          decoration: ShapeDecoration(
+            image: DecorationImage(
+              image: NetworkImage(coverImage),
+              fit: BoxFit.cover,
+            ),
+            shape: RoundedRectangleBorder(
+              borderRadius: BorderRadius.circular(5),
+            ),
+          ),
+        ),
+        Positioned(
+          child: Column(
+            mainAxisAlignment: MainAxisAlignment.center,
+            children: [
+              Text(
+                title,
+                style: TextStyle(
+                  fontFamily: 'NotoSansHans-Medium',
+                  fontSize: 14,
+                  color: Colors.white,
+                ),
+              ),
+              Text(
+                description,
+                style: TextStyle(
+                  fontFamily: 'NotoSansHans-Regular',
+                  fontSize: 12,
+                  color: Colors.white,
+                ),
+              )
+            ],
+          ),
+        ),
+      ],
+    );
+  }
+
+  @override
+  Widget build(BuildContext context) {
+    return Container(
+        height: 220,
+        child: ScrollConfiguration(
+          behavior: OverScrollBehavior(),
+          child: GridView.count(
+            crossAxisCount: 2,
+            scrollDirection: Axis.vertical,
+            crossAxisSpacing: 8,
+            shrinkWrap: true,
+            physics: NeverScrollableScrollPhysics(),
+            childAspectRatio: 2.0,
+            padding: EdgeInsets.all(10),
+            mainAxisSpacing: 8,
+            children: discoveryList.map((discovery) {
+              var coverImage = discovery.data.image;
+              var title = discovery.data.title;
+              var description = discovery.data.description;
+              return Stack(
+                alignment: Alignment.center,
+                children: [
+                  Container(
+                    width: MediaQuery.of(context).size.width / 2,
+                    height: 120,
+                    decoration: ShapeDecoration(
+                      image: DecorationImage(
+                        image: NetworkImage(coverImage),
+                        fit: BoxFit.cover,
+                      ),
+                      shape: RoundedRectangleBorder(
+                        borderRadius: BorderRadius.circular(5),
+                      ),
+                    ),
+                  ),
+                  Positioned(
+                    child: Column(
+                      mainAxisAlignment: MainAxisAlignment.center,
+                      children: [
+                        Text(
+                          title,
+                          style: TextStyle(
+                            fontFamily: 'NotoSansHans-Medium',
+                            fontSize: 14,
+                            color: Colors.white,
+                          ),
+                        ),
+                        Text(
+                          description,
+                          style: TextStyle(
+                            fontFamily: 'NotoSansHans-Regular',
+                            fontSize: 12,
+                            color: Colors.white,
+                          ),
+                        )
+                      ],
+                    ),
+                  ),
+                ],
+              );
+            }).toList(),
+          ),
+        ));
+  }
+}

Some files were not shown because too many files changed in this diff