├── .gitignore
├── .metadata
├── README.md
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ ├── demo
│ │ │ │ └── MainActivity.kt
│ │ │ │ └── eye_video
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── art
└── art.png
├── assets
├── fonts
│ ├── NotoSansHans-Medium.otf
│ ├── NotoSansHans-Regular.otf
│ └── Oswald-Regular.otf
└── images
│ ├── biz_app_icon_attention.png
│ ├── biz_app_icon_collection.png
│ ├── biz_app_icon_dynamic.png
│ ├── biz_app_icon_fans.png
│ ├── biz_app_icon_reply.png
│ ├── biz_app_icon_share.png
│ └── biz_app_icon_works.png
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Podfile
├── Podfile.lock
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
├── lib
├── bizmodule
│ ├── bizwidget
│ │ ├── cover_image_item.dart
│ │ ├── follow_list_head.dart
│ │ └── header_item.dart
│ ├── blocs.dart
│ └── main
│ │ ├── category
│ │ ├── blocs
│ │ │ ├── category_bloc.dart
│ │ │ ├── category_event.dart
│ │ │ └── category_state.dart
│ │ ├── category_page.dart
│ │ ├── model
│ │ │ ├── category_model.dart
│ │ │ └── category_model.g.dart
│ │ └── repositories
│ │ │ ├── category_repository.dart
│ │ │ └── mock
│ │ │ └── mock_category_repository.dart
│ │ ├── community
│ │ ├── blocs
│ │ │ ├── community_bloc.dart
│ │ │ ├── community_event.dart
│ │ │ └── community_state.dart
│ │ ├── community_page.dart
│ │ ├── extension
│ │ │ └── ext_community.dart
│ │ ├── model
│ │ │ ├── community_model.dart
│ │ │ └── community_model.g.dart
│ │ ├── respositories
│ │ │ ├── community_repository.dart
│ │ │ └── mock
│ │ │ │ └── mock_community_repository.dart
│ │ └── widget
│ │ │ └── ugc_item.dart
│ │ ├── discovery
│ │ ├── blocs
│ │ │ ├── discovery_bloc.dart
│ │ │ ├── discovery_event.dart
│ │ │ └── discovery_state.dart
│ │ ├── discovery_page.dart
│ │ ├── extension
│ │ │ └── ext_discovery.dart
│ │ ├── model
│ │ │ ├── discovery_model.dart
│ │ │ └── discovery_model.g.dart
│ │ ├── respositories
│ │ │ ├── discovery_repository.dart
│ │ │ └── mock
│ │ │ │ └── mock_discovery_repository.dart
│ │ └── widgets
│ │ │ ├── column_card_items.dart
│ │ │ └── hot_category_items.dart
│ │ ├── selections
│ │ ├── blocs
│ │ │ ├── selection_bloc.dart
│ │ │ ├── selection_event.dart
│ │ │ ├── selection_state.dart
│ │ │ └── ugc
│ │ │ │ ├── ugc_bloc.dart
│ │ │ │ ├── ugc_event.dart
│ │ │ │ └── ugc_state.dart
│ │ ├── extension
│ │ │ └── ext_selection.dart
│ │ ├── model
│ │ │ ├── selection_model.dart
│ │ │ ├── selection_model.g.dart
│ │ │ └── ugc
│ │ │ │ ├── ugc_author_model.dart
│ │ │ │ ├── ugc_author_model.g.dart
│ │ │ │ ├── ugc_list_model.dart
│ │ │ │ ├── ugc_list_model.g.dart
│ │ │ │ ├── ugc_model.dart
│ │ │ │ ├── ugc_model.g.dart
│ │ │ │ ├── ugc_tag_model.dart
│ │ │ │ └── ugc_tag_model.g.dart
│ │ ├── respositories
│ │ │ ├── mock
│ │ │ │ ├── mock_selection_repository.dart
│ │ │ │ └── mock_ugc_repository.dart
│ │ │ ├── selection_repository.dart
│ │ │ └── ugc_repository.dart
│ │ ├── ugc_page.dart
│ │ └── widgets
│ │ │ ├── follow_Item.dart
│ │ │ └── small_video_item.dart
│ │ └── thiz
│ │ ├── blocs
│ │ ├── main_bloc.dart
│ │ ├── main_event.dart
│ │ └── main_state.dart
│ │ ├── main_page.dart
│ │ ├── model
│ │ ├── drawer_configs.dart
│ │ ├── drawer_configs.g.dart
│ │ ├── user_model.dart
│ │ └── user_model.g.dart
│ │ ├── repositories
│ │ ├── main_repository.dart
│ │ └── mock
│ │ │ └── mock_main_repository.dart
│ │ └── widgets
│ │ └── drawer_widget.dart
├── framework
│ ├── extension
│ │ ├── context_extension.dart
│ │ ├── image_compress.dart
│ │ ├── screen_ruler.dart
│ │ └── size_extension.dart
│ ├── network
│ │ ├── cookie
│ │ │ └── pretty_cookie.dart
│ │ ├── dio_client.dart
│ │ ├── interceptor
│ │ │ └── log_interceptor.dart
│ │ └── pretty_http.dart
│ └── uikit
│ │ ├── carousel
│ │ ├── carousel_controller.dart
│ │ ├── carousel_option.dart
│ │ ├── carousel_slider.dart
│ │ ├── carousel_state.dart
│ │ └── utils.dart
│ │ ├── layout
│ │ └── nine_layout.dart
│ │ ├── refresher
│ │ ├── empty
│ │ │ └── empty_widget.dart
│ │ ├── indicator
│ │ │ ├── classic
│ │ │ │ ├── classic_footer.dart
│ │ │ │ └── classic_header.dart
│ │ │ ├── core
│ │ │ │ ├── abstract_footer.dart
│ │ │ │ ├── abstract_header.dart
│ │ │ │ ├── first_refresh_header.dart
│ │ │ │ ├── footer_link_notifier.dart
│ │ │ │ └── header_link_notifier.dart
│ │ │ └── material
│ │ │ │ ├── material_footer.dart
│ │ │ │ └── material_header.dart
│ │ ├── listener
│ │ │ ├── scroll_notification_interceptor.dart
│ │ │ └── scroll_notification_listener.dart
│ │ ├── physics
│ │ │ └── scroll_physics.dart
│ │ ├── pretty_refresher.dart
│ │ └── sliver
│ │ │ ├── sliver_loading.dart
│ │ │ └── sliver_refresh.dart
│ │ └── scrollview
│ │ └── overscroll_behavior.dart
└── main.dart
├── linux
├── .gitignore
├── CMakeLists.txt
├── flutter
│ ├── CMakeLists.txt
│ ├── generated_plugin_registrant.cc
│ ├── generated_plugin_registrant.h
│ └── generated_plugins.cmake
├── main.cc
├── my_application.cc
└── my_application.h
├── macos
├── .gitignore
├── Flutter
│ ├── Flutter-Debug.xcconfig
│ ├── Flutter-Release.xcconfig
│ └── GeneratedPluginRegistrant.swift
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── app_icon_1024.png
│ │ ├── app_icon_128.png
│ │ ├── app_icon_16.png
│ │ ├── app_icon_256.png
│ │ ├── app_icon_32.png
│ │ ├── app_icon_512.png
│ │ └── app_icon_64.png
│ ├── Base.lproj
│ └── MainMenu.xib
│ ├── Configs
│ ├── AppInfo.xcconfig
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── Warnings.xcconfig
│ ├── DebugProfile.entitlements
│ ├── Info.plist
│ ├── MainFlutterWindow.swift
│ └── Release.entitlements
├── pubspec.yaml
├── release_apk
└── app-release.apk
├── test
└── widget_test.dart
├── web
├── favicon.png
├── icons
│ ├── Icon-192.png
│ └── Icon-512.png
├── index.html
└── manifest.json
└── windows
├── .gitignore
├── CMakeLists.txt
├── flutter
├── CMakeLists.txt
├── generated_plugin_registrant.cc
├── generated_plugin_registrant.h
└── generated_plugins.cmake
└── runner
├── CMakeLists.txt
├── Runner.rc
├── flutter_window.cpp
├── flutter_window.h
├── main.cpp
├── resource.h
├── resources
└── app_icon.ico
├── run_loop.cpp
├── run_loop.h
├── runner.exe.manifest
├── utils.cpp
├── utils.h
├── win32_window.cpp
└── win32_window.h
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 | pubspec.lock
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | **/ios/Flutter/.last_build_id
26 | .dart_tool/
27 | .flutter-plugins
28 | .flutter-plugins-dependencies
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | /build/
33 |
34 | # Web related
35 | lib/generated_plugin_registrant.dart
36 |
37 | # Symbolication related
38 | app.*.symbols
39 |
40 | # Obfuscation related
41 | app.*.map.json
42 |
43 | # Exceptions to above rules.
44 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
45 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: 15a28159bcf4b3db13411cbc8d9b5fc51adc0a93
8 | channel: dev
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # EyeVideo
2 |
3 | 这是一款使用Flutter开发的高仿开眼视频的短视频APP
4 |
5 | ## Dart基础学习
6 |
7 | 如果你对Dart基础还不是很熟悉,欢迎参考我的 [《Dart入门实践》系列专栏](https://gitbook.cn/gitchat/column/5e8eddebf33069503095f54a)
8 |
9 | 主要涉及到的Dart知识点:
10 |
11 | ### 基础篇
12 | * 初探 Dart 语法 01
13 | * 初探 Dart 语法 02
14 | * 掌握如何让函数更好地调用
15 | * 掌握 Dart 集合的使用
16 | * 深入分析 Dart 集合源码
17 | * 掌握 Dart 集合操作符函数使用
18 | * 深入分析 Dart 集合操作符源码
19 | * 掌握 Dart 的面向对象基础
20 | * 深入理解 Dart 中的继承和 Minxins
21 | * 深入理解 Dart 中的类型系统和泛型
22 | * 掌握 Dart 中库 library 的使用
23 | * 尝鲜 Dart 2.7 最新语法之可空与非空类型
24 | * 尝鲜 Dart 2.7 最新语法之扩展方法
25 | * 尝鲜 Dart 2.7 最新语法之泛型强化:声明处型变
26 | ### 进阶篇
27 | * 异步编程之 Isolate
28 | * 异步编程之 EventLoop
29 | * 异步编程之 Future
30 | * 异步编程之 Stream
31 | * 异步编程之 async和await
32 | * 异步编程之同步异步生成器函数
33 | ### 实战篇
34 | * Dart 与 C 的互相调用
35 | * Dart 虚拟机运行原理
36 | * Flutter 实现高仿开眼 APP 的页面开发 01
37 | * Flutter 实现高仿开眼 APP 的页面开发 02
38 | * Flutter 实现高仿开眼 APP 的页面开发 03
39 |
40 | ## 主要使用的技术点
41 |
42 | * Dart扩展函数的使用
43 |
44 | * Dio网络库优雅封装以及使用
45 |
46 | * Bloc状态管理以及实现UI和逻辑分离
47 |
48 | * json_serializable的使用
49 |
50 | * ScreenRuler Flutter UI尺寸和字体大小的统一适配
51 |
52 | * 列表刷新和加载更多组件实现
53 |
54 | ## 目前支持的平台有
55 |
56 | * Android
57 |
58 | * iOS
59 |
60 | * Mac Desktop
61 |
62 | * Linux Desktop
63 |
64 | * Web Chrome
65 |
66 | * Web Server
67 |
68 | ## 运行效果
69 |
70 | * iOS
71 |
72 | 
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 28
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | lintOptions {
36 | disable 'InvalidPackage'
37 | }
38 |
39 | defaultConfig {
40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41 | applicationId "com.example.demo"
42 | minSdkVersion 16
43 | targetSdkVersion 28
44 | versionCode flutterVersionCode.toInteger()
45 | versionName flutterVersionName
46 | }
47 |
48 | buildTypes {
49 | release {
50 | // TODO: Add your own signing config for the release build.
51 | // Signing with the debug keys for now, so `flutter run --release` works.
52 | signingConfig signingConfigs.debug
53 | ndk {
54 | abiFilters "armeabi-v7a"
55 | }
56 | }
57 | }
58 | }
59 |
60 | flutter {
61 | source '../..'
62 | }
63 |
64 | dependencies {
65 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
66 | }
67 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
8 |
9 |
14 |
21 |
25 |
29 |
34 |
38 |
39 |
40 |
41 |
42 |
43 |
45 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/demo/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.demo
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/eye_video/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.eye_video
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.3.50'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.5.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | jcenter()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.enableR8=true
3 | android.useAndroidX=true
4 | android.enableJetifier=true
5 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/art/art.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/art/art.png
--------------------------------------------------------------------------------
/assets/fonts/NotoSansHans-Medium.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/assets/fonts/NotoSansHans-Medium.otf
--------------------------------------------------------------------------------
/assets/fonts/NotoSansHans-Regular.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/assets/fonts/NotoSansHans-Regular.otf
--------------------------------------------------------------------------------
/assets/fonts/Oswald-Regular.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/assets/fonts/Oswald-Regular.otf
--------------------------------------------------------------------------------
/assets/images/biz_app_icon_attention.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/assets/images/biz_app_icon_attention.png
--------------------------------------------------------------------------------
/assets/images/biz_app_icon_collection.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/assets/images/biz_app_icon_collection.png
--------------------------------------------------------------------------------
/assets/images/biz_app_icon_dynamic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/assets/images/biz_app_icon_dynamic.png
--------------------------------------------------------------------------------
/assets/images/biz_app_icon_fans.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/assets/images/biz_app_icon_fans.png
--------------------------------------------------------------------------------
/assets/images/biz_app_icon_reply.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/assets/images/biz_app_icon_reply.png
--------------------------------------------------------------------------------
/assets/images/biz_app_icon_share.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/assets/images/biz_app_icon_share.png
--------------------------------------------------------------------------------
/assets/images/biz_app_icon_works.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/assets/images/biz_app_icon_works.png
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/app.flx
22 | Flutter/app.zip
23 | Flutter/flutter_assets/
24 | Flutter/flutter_export_environment.sh
25 | ServiceDefinitions.json
26 | Runner/GeneratedPluginRegistrant.*
27 |
28 | # Exceptions to above rules.
29 | !default.mode1v3
30 | !default.mode2v3
31 | !default.pbxuser
32 | !default.perspectivev3
33 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | # platform :ios, '9.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def flutter_root
14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15 | unless File.exist?(generated_xcode_build_settings_path)
16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17 | end
18 |
19 | File.foreach(generated_xcode_build_settings_path) do |line|
20 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
21 | return matches[1].strip if matches
22 | end
23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24 | end
25 |
26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27 |
28 | flutter_ios_podfile_setup
29 |
30 | target 'Runner' do
31 | use_frameworks!
32 | use_modular_headers!
33 |
34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35 | end
36 |
37 | post_install do |installer|
38 | installer.pods_project.targets.each do |target|
39 | flutter_additional_ios_build_settings(target)
40 | end
41 | end
42 |
--------------------------------------------------------------------------------
/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Flutter (1.0.0)
3 | - shared_preferences (0.0.1):
4 | - Flutter
5 |
6 | DEPENDENCIES:
7 | - Flutter (from `Flutter`)
8 | - shared_preferences (from `.symlinks/plugins/shared_preferences/ios`)
9 |
10 | EXTERNAL SOURCES:
11 | Flutter:
12 | :path: Flutter
13 | shared_preferences:
14 | :path: ".symlinks/plugins/shared_preferences/ios"
15 |
16 | SPEC CHECKSUMS:
17 | Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
18 | shared_preferences: af6bfa751691cdc24be3045c43ec037377ada40d
19 |
20 | PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c
21 |
22 | COCOAPODS: 1.9.1
23 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BayMikyou/EyeVideo-Flutter/6f1e4dfd1b9b2cb0fe6a894f000f9225db2ec0a0/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | demo
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/lib/bizmodule/bizwidget/cover_image_item.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class CoverImageItem extends StatelessWidget {
4 | final double width;
5 | final String coverUrl;
6 | final int duration;
7 |
8 | const CoverImageItem(
9 | {Key key, this.width: 0, this.coverUrl, this.duration: -1})
10 | : super(key: key);
11 |
12 | @override
13 | Widget build(BuildContext context) {
14 | var coverImageWidget = Container(
15 | width: width == 0 ? double.infinity : width,
16 | height: (width == 0 ? MediaQuery.of(context).size.width : width) * 0.5,
17 | decoration: ShapeDecoration(
18 | image: DecorationImage(
19 | image: NetworkImage(coverUrl),
20 | fit: BoxFit.cover,
21 | ),
22 | shape: RoundedRectangleBorder(
23 | borderRadius: BorderRadius.circular(5),
24 | ),
25 | ),
26 | );
27 |
28 | if (duration >= 0) {
29 | var tvTimeLabel = Container(
30 | decoration: ShapeDecoration(
31 | color: Color(0xff333333),
32 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(3)),
33 | ),
34 | child: Padding(
35 | padding: const EdgeInsets.only(left: 6, top: 1, right: 6, bottom: 1),
36 | child: Text(
37 | getTimeLabel(duration),
38 | style: TextStyle(
39 | fontSize: 12,
40 | fontWeight: FontWeight.bold,
41 | fontFamily: 'Oswald-Regular',
42 | color: Color(0xffffffff),
43 | ),
44 | ),
45 | ),
46 | );
47 |
48 | return Stack(
49 | alignment: AlignmentDirectional.bottomEnd,
50 | children: [
51 | coverImageWidget,
52 | Positioned(
53 | child: tvTimeLabel,
54 | bottom: 3,
55 | right: 3,
56 | ),
57 | ],
58 | );
59 | }
60 |
61 | return coverImageWidget;
62 | }
63 |
64 | String getTimeLabel(int duration) {
65 | if (duration < 60) {
66 | return "00 : $duration";
67 | } else if (duration >= 60) {
68 | int minute = duration ~/ 60;
69 | int second = duration % 60;
70 | String minuteStr = minute < 10 ? "0$minute" : "$minute";
71 | String secondStr = second < 10 ? "0$second" : "$second";
72 | return "$minuteStr : $secondStr";
73 | }
74 | return "00 : 00";
75 | }
76 | }
77 |
--------------------------------------------------------------------------------
/lib/bizmodule/bizwidget/follow_list_head.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class FollowListHead extends StatelessWidget {
4 | final String title;
5 | final String avatarUrl;
6 | final String description;
7 |
8 | const FollowListHead({Key key, this.title, this.avatarUrl, this.description})
9 | : super(key: key);
10 |
11 | @override
12 | Widget build(BuildContext context) {
13 | var ivAvatar = CircleAvatar(
14 | backgroundImage: NetworkImage(avatarUrl),
15 | );
16 |
17 | var tvTitle = Text(
18 | title,
19 | style: TextStyle(
20 | fontSize: 14,
21 | color: Color(0xff333333),
22 | fontFamily: 'NotoSansHans-Medium',
23 | ),
24 | );
25 |
26 | var tvSubtitle = Text(
27 | description,
28 | maxLines: 1,
29 | overflow: TextOverflow.ellipsis,
30 | style: TextStyle(
31 | fontSize: 12,
32 | color: Color(0xff666666),
33 | ),
34 | );
35 |
36 | var btnFollow = Container(
37 | width: 40,
38 | height: 20,
39 | child: OutlineButton(
40 | padding: EdgeInsets.all(0),
41 | child: Text(
42 | '+关注',
43 | style: TextStyle(
44 | fontSize: 12,
45 | fontFamily: 'NotoSansHans-Regular',
46 | color: Color(0xff666666),
47 | ),
48 | ),
49 | borderSide: BorderSide(
50 | color: Color(0xff333333),
51 | width: 0.5,
52 | style: BorderStyle.solid,
53 | ),
54 | onPressed: () => null,
55 | ),
56 | );
57 |
58 | return ListTile(
59 | leading: ivAvatar,
60 | contentPadding: EdgeInsets.zero,
61 | title: tvTitle,
62 | subtitle: tvSubtitle,
63 | trailing: btnFollow,
64 | enabled: false,
65 | onTap: () {},
66 | );
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/lib/bizmodule/bizwidget/header_item.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class HeaderItem extends StatelessWidget {
4 | final String title;
5 |
6 | const HeaderItem({Key key, this.title}) : super(key: key);
7 |
8 | @override
9 | Widget build(BuildContext context) {
10 | return Column(
11 | crossAxisAlignment: CrossAxisAlignment.start,
12 | children: [
13 | Divider(
14 | color: Color(0xFFBDBDBD),
15 | thickness: 0.1,
16 | ),
17 | Container(
18 | margin: EdgeInsets.only(left: 10, top: 5, right: 10),
19 | child: Row(
20 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
21 | children: [
22 | Text(
23 | title,
24 | style: TextStyle(
25 | fontSize: 18,
26 | color: Color(0xff333333),
27 | fontFamily: 'NotoSansHans-Medium',
28 | ),
29 | ),
30 | Container(
31 | width: 60,
32 | height: 20,
33 | child: OutlineButton(
34 | padding: EdgeInsets.all(0),
35 | child: Text(
36 | '查看更多',
37 | style: TextStyle(
38 | fontSize: 12,
39 | fontFamily: 'NotoSansHans-Regular',
40 | color: Color(0xff666666),
41 | ),
42 | ),
43 | borderSide: BorderSide(
44 | color: Color(0xff333333),
45 | width: 0.5,
46 | style: BorderStyle.solid,
47 | ),
48 | onPressed: () => null,
49 | ),
50 | )
51 | ],
52 | ),
53 | ),
54 | ],
55 | );
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/lib/bizmodule/blocs.dart:
--------------------------------------------------------------------------------
1 | library bloc_unit;
2 |
3 | export 'main/thiz/blocs/main_bloc.dart';
4 | export 'main/thiz/blocs/main_state.dart';
5 | export 'main/thiz/blocs/main_event.dart';
6 |
7 | export 'main/category/blocs/category_bloc.dart';
8 | export 'main/category/blocs/category_event.dart';
9 | export 'main/category/blocs/category_state.dart';
10 |
11 | export 'main/selections/blocs/selection_bloc.dart';
12 | export 'main/selections/blocs/selection_state.dart';
13 | export 'main/selections/blocs/selection_event.dart';
14 |
15 |
--------------------------------------------------------------------------------
/lib/bizmodule/main/category/blocs/category_bloc.dart:
--------------------------------------------------------------------------------
1 | import 'package:eye_video/bizmodule/blocs.dart';
2 | import 'package:eye_video/bizmodule/main/category/model/category_model.dart';
3 | import 'package:eye_video/bizmodule/main/category/repositories/category_repository.dart';
4 | import 'package:flutter/material.dart';
5 | import 'package:flutter_bloc/flutter_bloc.dart';
6 |
7 | class CategoryBloc extends Bloc {
8 | final CategoryRepository categoryRepository;
9 |
10 | CategoryBloc({@required this.categoryRepository}) : super(null) {
11 | add(EventRequestCategory()); //初始状态,手动添加首次请求事件
12 | }
13 |
14 | @override
15 | Stream mapEventToState(CategoryEvent event) async* {
16 | if (event is EventRequestCategory) {
17 | yield StateLoading();
18 | try {
19 | final CategoryModel categoryModel =
20 | await categoryRepository.fetchCategories();
21 | if (categoryModel == null || categoryModel.categoryList.isEmpty) {
22 | yield StateEmpty();
23 | } else {
24 | yield StateLoadSuccess(categoryModel: categoryModel);
25 | }
26 | } catch (e) {
27 | yield StateLoadFailure();
28 | }
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/lib/bizmodule/main/category/blocs/category_event.dart:
--------------------------------------------------------------------------------
1 | import 'package:equatable/equatable.dart';
2 |
3 | abstract class CategoryEvent extends Equatable {
4 | const CategoryEvent();
5 |
6 | @override
7 | List