diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000000..73f69e0958
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
+# Editor-based HTTP Client requests
+/httpRequests/
diff --git a/.idea/appflowy_client.iml b/.idea/appflowy_client.iml
new file mode 100644
index 0000000000..3d6231c1bd
--- /dev/null
+++ b/.idea/appflowy_client.iml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Dart_Packages.xml b/.idea/libraries/Dart_Packages.xml
new file mode 100644
index 0000000000..06f3134367
--- /dev/null
+++ b/.idea/libraries/Dart_Packages.xml
@@ -0,0 +1,928 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/Dart_SDK.xml b/.idea/libraries/Dart_SDK.xml
new file mode 100644
index 0000000000..6068110626
--- /dev/null
+++ b/.idea/libraries/Dart_SDK.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000000..facec90f25
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000000..94a25f7f4c
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/README.md b/README.md
index e6d5faaa0d..b0514bbabc 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,38 @@
-# appflowy_client
\ No newline at end of file
+# AppFlowy client
+
+* The Big Picture
+ * Introduce
+ * Goals
+ * Cross-platform
+
+* Getting started
+ * Build
+ * Running
+
+* Contributing
+ * First steps
+ * Opening issues
+ * Participating in discussions
+ * Finding something to work on
+ * Open your PR
+ * Review Process
+ * Getting more involved
+ * Organization membership
+ * Contributor
+ * Maintainer
+
+## The Big Picture
+
+### Introduce
+
+### Goals
+
+### Cross-platform
+
+
+## Getting Started
+Read the [architecture doc](doc/architecture.md) before you started.
+
+## Contributing
+Read the [architecture doc](doc/architecture.md) before you started.
+
diff --git a/app_flowy/.gitignore b/app_flowy/.gitignore
new file mode 100644
index 0000000000..4de7d6f750
--- /dev/null
+++ b/app_flowy/.gitignore
@@ -0,0 +1,48 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.buildlog/
+.history
+.svn/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# The .vscode folder contains launch configuration and tasks you configure in
+# VS Code which you may wish to be included in version control, so this line
+# is commented out by default.
+#.vscode/
+
+# Flutter/Dart/Pub related
+**/doc/api/
+**/ios/Flutter/.last_build_id
+.dart_tool/
+.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
+
+# Android Studio will place build artifacts here
+/android/app/debug
+/android/app/profile
+/android/app/release
+
+/packages/flowy_protobuf
\ No newline at end of file
diff --git a/app_flowy/.metadata b/app_flowy/.metadata
new file mode 100644
index 0000000000..a8ebbd603e
--- /dev/null
+++ b/app_flowy/.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: fa5883b78e566877613ad1ccb48dd92075cb5c23
+ channel: dev
+
+project_type: app
diff --git a/app_flowy/.vscode/launch.json b/app_flowy/.vscode/launch.json
new file mode 100644
index 0000000000..5e7d5eef3c
--- /dev/null
+++ b/app_flowy/.vscode/launch.json
@@ -0,0 +1,20 @@
+{
+ // Use IntelliSense to learn about possible attributes.
+ // Hover to view descriptions of existing attributes.
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "name": "app_flowy",
+ "request": "launch",
+ "program": "${workspaceRoot}/lib/main.dart",
+ "type": "dart",
+ },
+ {
+ "name": "app_flowy (profile mode)",
+ "request": "launch",
+ "type": "dart",
+ "flutterMode": "profile"
+ },
+ ]
+}
\ No newline at end of file
diff --git a/app_flowy/Makefile b/app_flowy/Makefile
new file mode 100644
index 0000000000..1f35bf6aaf
--- /dev/null
+++ b/app_flowy/Makefile
@@ -0,0 +1,7 @@
+.PHONY: freeze_build, free_watch
+
+freeze_build:
+ flutter pub run build_runner build --delete-conflicting-outputs
+
+watch:
+ flutter pub run build_runner watch
\ No newline at end of file
diff --git a/app_flowy/README.md b/app_flowy/README.md
new file mode 100644
index 0000000000..fc31e8b15e
--- /dev/null
+++ b/app_flowy/README.md
@@ -0,0 +1,16 @@
+# app_flowy
+
+A new Flutter project.
+
+## Getting Started
+
+This project is a starting point for a Flutter application.
+
+A few resources to get you started if this is your first Flutter project:
+
+- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
+- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
+
+For help getting started with Flutter, view our
+[online documentation](https://flutter.dev/docs), which offers tutorials,
+samples, guidance on mobile development, and a full API reference.
diff --git a/app_flowy/analysis_options.yaml b/app_flowy/analysis_options.yaml
new file mode 100644
index 0000000000..aadd68ab09
--- /dev/null
+++ b/app_flowy/analysis_options.yaml
@@ -0,0 +1,34 @@
+# This file configures the analyzer, which statically analyzes Dart code to
+# check for errors, warnings, and lints.
+#
+# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
+# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
+# invoked from the command line by running `flutter analyze`.
+
+# The following line activates a set of recommended lints for Flutter apps,
+# packages, and plugins designed to encourage good coding practices.
+include: package:flutter_lints/flutter.yaml
+
+analyzer:
+ exclude:
+ - "**/*.g.dart"
+ - "**/*.freezed.dart"
+
+linter:
+ # The lint rules applied to this project can be customized in the
+ # section below to disable rules from the `package:flutter_lints/flutter.yaml`
+ # included above or to enable additional rules. A list of all available lints
+ # and their documentation is published at
+ # https://dart-lang.github.io/linter/lints/index.html.
+ #
+ # Instead of disabling a lint rule for the entire project in the
+ # section below, it can also be suppressed for a single line of code
+ # or a specific dart file by using the `// ignore: name_of_lint` and
+ # `// ignore_for_file: name_of_lint` syntax on the line or in the file
+ # producing the lint.
+ rules:
+ # avoid_print: false # Uncomment to disable the `avoid_print` rule
+ # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
+
+# Additional information about this file can be found at
+# https://dart.dev/guides/language/analysis-options
diff --git a/app_flowy/android/.gitignore b/app_flowy/android/.gitignore
new file mode 100644
index 0000000000..6f568019d3
--- /dev/null
+++ b/app_flowy/android/.gitignore
@@ -0,0 +1,13 @@
+gradle-wrapper.jar
+/.gradle
+/captures/
+/gradlew
+/gradlew.bat
+/local.properties
+GeneratedPluginRegistrant.java
+
+# Remember to never publicly share your keystore.
+# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
+key.properties
+**/*.keystore
+**/*.jks
diff --git a/app_flowy/android/app/build.gradle b/app_flowy/android/app/build.gradle
new file mode 100644
index 0000000000..e2f9734817
--- /dev/null
+++ b/app_flowy/android/app/build.gradle
@@ -0,0 +1,68 @@
+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
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+
+ kotlinOptions {
+ jvmTarget = '1.8'
+ }
+
+ sourceSets {
+ main.java.srcDirs += 'src/main/kotlin'
+ }
+
+ defaultConfig {
+ // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
+ applicationId "com.example.app_flowy"
+ 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
+ }
+ }
+}
+
+flutter {
+ source '../..'
+}
+
+dependencies {
+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
+}
diff --git a/app_flowy/android/app/src/debug/AndroidManifest.xml b/app_flowy/android/app/src/debug/AndroidManifest.xml
new file mode 100644
index 0000000000..bbcce3827b
--- /dev/null
+++ b/app_flowy/android/app/src/debug/AndroidManifest.xml
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/app_flowy/android/app/src/main/AndroidManifest.xml b/app_flowy/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000000..a9fd47bd31
--- /dev/null
+++ b/app_flowy/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app_flowy/android/app/src/main/kotlin/com/example/app_flowy/MainActivity.kt b/app_flowy/android/app/src/main/kotlin/com/example/app_flowy/MainActivity.kt
new file mode 100644
index 0000000000..cd02c5ed92
--- /dev/null
+++ b/app_flowy/android/app/src/main/kotlin/com/example/app_flowy/MainActivity.kt
@@ -0,0 +1,6 @@
+package com.example.app_flowy
+
+import io.flutter.embedding.android.FlutterActivity
+
+class MainActivity: FlutterActivity() {
+}
diff --git a/app_flowy/android/app/src/main/res/drawable-v21/launch_background.xml b/app_flowy/android/app/src/main/res/drawable-v21/launch_background.xml
new file mode 100644
index 0000000000..f74085f3f6
--- /dev/null
+++ b/app_flowy/android/app/src/main/res/drawable-v21/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/app_flowy/android/app/src/main/res/drawable/launch_background.xml b/app_flowy/android/app/src/main/res/drawable/launch_background.xml
new file mode 100644
index 0000000000..304732f884
--- /dev/null
+++ b/app_flowy/android/app/src/main/res/drawable/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/app_flowy/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app_flowy/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000000..db77bb4b7b
Binary files /dev/null and b/app_flowy/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/app_flowy/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app_flowy/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000000..17987b79bb
Binary files /dev/null and b/app_flowy/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/app_flowy/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app_flowy/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000000..09d4391482
Binary files /dev/null and b/app_flowy/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/app_flowy/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app_flowy/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000000..d5f1c8d34e
Binary files /dev/null and b/app_flowy/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/app_flowy/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app_flowy/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000000..4d6372eebd
Binary files /dev/null and b/app_flowy/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/app_flowy/android/app/src/main/res/values-night/styles.xml b/app_flowy/android/app/src/main/res/values-night/styles.xml
new file mode 100644
index 0000000000..449a9f9308
--- /dev/null
+++ b/app_flowy/android/app/src/main/res/values-night/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/app_flowy/android/app/src/main/res/values/styles.xml b/app_flowy/android/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000000..d74aa35c28
--- /dev/null
+++ b/app_flowy/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/app_flowy/android/app/src/profile/AndroidManifest.xml b/app_flowy/android/app/src/profile/AndroidManifest.xml
new file mode 100644
index 0000000000..bbcce3827b
--- /dev/null
+++ b/app_flowy/android/app/src/profile/AndroidManifest.xml
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/app_flowy/android/build.gradle b/app_flowy/android/build.gradle
new file mode 100644
index 0000000000..ed45c65885
--- /dev/null
+++ b/app_flowy/android/build.gradle
@@ -0,0 +1,29 @@
+buildscript {
+ ext.kotlin_version = '1.3.50'
+ repositories {
+ google()
+ mavenCentral()
+ }
+
+ dependencies {
+ classpath 'com.android.tools.build:gradle:4.1.0'
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+rootProject.buildDir = '../build'
+subprojects {
+ project.buildDir = "${rootProject.buildDir}/${project.name}"
+ project.evaluationDependsOn(':app')
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/app_flowy/android/gradle.properties b/app_flowy/android/gradle.properties
new file mode 100644
index 0000000000..94adc3a3f9
--- /dev/null
+++ b/app_flowy/android/gradle.properties
@@ -0,0 +1,3 @@
+org.gradle.jvmargs=-Xmx1536M
+android.useAndroidX=true
+android.enableJetifier=true
diff --git a/app_flowy/android/gradle/wrapper/gradle-wrapper.properties b/app_flowy/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000000..bc6a58afdd
--- /dev/null
+++ b/app_flowy/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.7-all.zip
diff --git a/app_flowy/android/settings.gradle b/app_flowy/android/settings.gradle
new file mode 100644
index 0000000000..44e62bcf06
--- /dev/null
+++ b/app_flowy/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"
diff --git a/app_flowy/assets/images/appflowy_launch_splash.jpg b/app_flowy/assets/images/appflowy_launch_splash.jpg
new file mode 100644
index 0000000000..7e3bb9cee6
Binary files /dev/null and b/app_flowy/assets/images/appflowy_launch_splash.jpg differ
diff --git a/app_flowy/ios/.gitignore b/app_flowy/ios/.gitignore
new file mode 100644
index 0000000000..151026b91b
--- /dev/null
+++ b/app_flowy/ios/.gitignore
@@ -0,0 +1,33 @@
+*.mode1v3
+*.mode2v3
+*.moved-aside
+*.pbxuser
+*.perspectivev3
+**/*sync/
+.sconsign.dblite
+.tags*
+**/.vagrant/
+**/DerivedData/
+Icon?
+**/Pods/
+**/.symlinks/
+profile
+xcuserdata
+**/.generated/
+Flutter/App.framework
+Flutter/Flutter.framework
+Flutter/Flutter.podspec
+Flutter/Generated.xcconfig
+Flutter/ephemeral/
+Flutter/app.flx
+Flutter/app.zip
+Flutter/flutter_assets/
+Flutter/flutter_export_environment.sh
+ServiceDefinitions.json
+Runner/GeneratedPluginRegistrant.*
+
+# Exceptions to above rules.
+!default.mode1v3
+!default.mode2v3
+!default.pbxuser
+!default.perspectivev3
diff --git a/app_flowy/ios/Flutter/AppFrameworkInfo.plist b/app_flowy/ios/Flutter/AppFrameworkInfo.plist
new file mode 100644
index 0000000000..9367d483e4
--- /dev/null
+++ b/app_flowy/ios/Flutter/AppFrameworkInfo.plist
@@ -0,0 +1,26 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleExecutable
+ App
+ CFBundleIdentifier
+ io.flutter.flutter.app
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ App
+ CFBundlePackageType
+ FMWK
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1.0
+ MinimumOSVersion
+ 8.0
+
+
diff --git a/app_flowy/ios/Flutter/Debug.xcconfig b/app_flowy/ios/Flutter/Debug.xcconfig
new file mode 100644
index 0000000000..ec97fc6f30
--- /dev/null
+++ b/app_flowy/ios/Flutter/Debug.xcconfig
@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
+#include "Generated.xcconfig"
diff --git a/app_flowy/ios/Flutter/Release.xcconfig b/app_flowy/ios/Flutter/Release.xcconfig
new file mode 100644
index 0000000000..c4855bfe20
--- /dev/null
+++ b/app_flowy/ios/Flutter/Release.xcconfig
@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
+#include "Generated.xcconfig"
diff --git a/app_flowy/ios/Podfile b/app_flowy/ios/Podfile
new file mode 100644
index 0000000000..1e8c3c90a5
--- /dev/null
+++ b/app_flowy/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
diff --git a/app_flowy/ios/Runner.xcodeproj/project.pbxproj b/app_flowy/ios/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 0000000000..2b1d21fd89
--- /dev/null
+++ b/app_flowy/ios/Runner.xcodeproj/project.pbxproj
@@ -0,0 +1,471 @@
+// !$*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 */; };
+/* 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 = ""; };
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
+ 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
+ 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
+ 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 97C146EB1CF9000F007C117D /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 9740EEB11CF90186004384FC /* Flutter */ = {
+ isa = PBXGroup;
+ children = (
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */,
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */,
+ );
+ name = Flutter;
+ sourceTree = "";
+ };
+ 97C146E51CF9000F007C117D = {
+ isa = PBXGroup;
+ children = (
+ 9740EEB11CF90186004384FC /* Flutter */,
+ 97C146F01CF9000F007C117D /* Runner */,
+ 97C146EF1CF9000F007C117D /* Products */,
+ );
+ sourceTree = "";
+ };
+ 97C146EF1CF9000F007C117D /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146EE1CF9000F007C117D /* Runner.app */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 97C146F01CF9000F007C117D /* Runner */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146FA1CF9000F007C117D /* Main.storyboard */,
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */,
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
+ 97C147021CF9000F007C117D /* Info.plist */,
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
+ );
+ path = Runner;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 97C146ED1CF9000F007C117D /* Runner */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
+ buildPhases = (
+ 9740EEB61CF901F6004384FC /* Run Script */,
+ 97C146EA1CF9000F007C117D /* Sources */,
+ 97C146EB1CF9000F007C117D /* Frameworks */,
+ 97C146EC1CF9000F007C117D /* Resources */,
+ 9705A1C41CF9048500538489 /* Embed Frameworks */,
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Runner;
+ productName = Runner;
+ productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 97C146E61CF9000F007C117D /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 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 */
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Thin Binary";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
+ };
+ 9740EEB61CF901F6004384FC /* Run Script */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Run Script";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 97C146EA1CF9000F007C117D /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 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 = "";
+ };
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C147001CF9000F007C117D /* Base */,
+ );
+ name = LaunchScreen.storyboard;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 249021D3217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ 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 = 9.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;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.appFlowy;
+ 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 = 9.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 = 9.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;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.appFlowy;
+ 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;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.appFlowy;
+ 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 */;
+}
diff --git a/app_flowy/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/app_flowy/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000000..919434a625
--- /dev/null
+++ b/app_flowy/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/app_flowy/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/app_flowy/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000000..18d981003d
--- /dev/null
+++ b/app_flowy/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/app_flowy/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/app_flowy/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000000..f9b0d7c5ea
--- /dev/null
+++ b/app_flowy/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/app_flowy/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/app_flowy/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
new file mode 100644
index 0000000000..a28140cfdb
--- /dev/null
+++ b/app_flowy/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app_flowy/ios/Runner.xcworkspace/contents.xcworkspacedata b/app_flowy/ios/Runner.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000000..1d526a16ed
--- /dev/null
+++ b/app_flowy/ios/Runner.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/app_flowy/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/app_flowy/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000000..18d981003d
--- /dev/null
+++ b/app_flowy/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/app_flowy/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/app_flowy/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000000..f9b0d7c5ea
--- /dev/null
+++ b/app_flowy/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/app_flowy/ios/Runner/AppDelegate.swift b/app_flowy/ios/Runner/AppDelegate.swift
new file mode 100644
index 0000000000..70693e4a8c
--- /dev/null
+++ b/app_flowy/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)
+ }
+}
diff --git a/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 0000000000..d36b1fab2d
--- /dev/null
+++ b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,122 @@
+{
+ "images" : [
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "83.5x83.5",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-83.5x83.5@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "1024x1024",
+ "idiom" : "ios-marketing",
+ "filename" : "Icon-App-1024x1024@1x.png",
+ "scale" : "1x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
new file mode 100644
index 0000000000..dc9ada4725
Binary files /dev/null and b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ
diff --git a/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
new file mode 100644
index 0000000000..28c6bf0301
Binary files /dev/null and b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ
diff --git a/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
new file mode 100644
index 0000000000..2ccbfd967d
Binary files /dev/null and b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ
diff --git a/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
new file mode 100644
index 0000000000..f091b6b0bc
Binary files /dev/null and b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ
diff --git a/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
new file mode 100644
index 0000000000..4cde12118d
Binary files /dev/null and b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ
diff --git a/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
new file mode 100644
index 0000000000..d0ef06e7ed
Binary files /dev/null and b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ
diff --git a/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
new file mode 100644
index 0000000000..dcdc2306c2
Binary files /dev/null and b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ
diff --git a/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
new file mode 100644
index 0000000000..2ccbfd967d
Binary files /dev/null and b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ
diff --git a/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
new file mode 100644
index 0000000000..c8f9ed8f5c
Binary files /dev/null and b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ
diff --git a/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
new file mode 100644
index 0000000000..a6d6b8609d
Binary files /dev/null and b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ
diff --git a/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
new file mode 100644
index 0000000000..a6d6b8609d
Binary files /dev/null and b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ
diff --git a/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
new file mode 100644
index 0000000000..75b2d164a5
Binary files /dev/null and b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ
diff --git a/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
new file mode 100644
index 0000000000..c4df70d39d
Binary files /dev/null and b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ
diff --git a/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
new file mode 100644
index 0000000000..6a84f41e14
Binary files /dev/null and b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ
diff --git a/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
new file mode 100644
index 0000000000..d0e1f58536
Binary files /dev/null and b/app_flowy/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ
diff --git a/app_flowy/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/app_flowy/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
new file mode 100644
index 0000000000..0bedcf2fd4
--- /dev/null
+++ b/app_flowy/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
@@ -0,0 +1,23 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@3x.png",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/app_flowy/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/app_flowy/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
new file mode 100644
index 0000000000..9da19eacad
Binary files /dev/null and b/app_flowy/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ
diff --git a/app_flowy/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/app_flowy/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
new file mode 100644
index 0000000000..9da19eacad
Binary files /dev/null and b/app_flowy/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ
diff --git a/app_flowy/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/app_flowy/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
new file mode 100644
index 0000000000..9da19eacad
Binary files /dev/null and b/app_flowy/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ
diff --git a/app_flowy/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/app_flowy/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
new file mode 100644
index 0000000000..89c2725b70
--- /dev/null
+++ b/app_flowy/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
@@ -0,0 +1,5 @@
+# Launch Screen Assets
+
+You can customize the launch screen with your own desired assets by replacing the image files in this directory.
+
+You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
\ No newline at end of file
diff --git a/app_flowy/ios/Runner/Base.lproj/LaunchScreen.storyboard b/app_flowy/ios/Runner/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 0000000000..f2e259c7c9
--- /dev/null
+++ b/app_flowy/ios/Runner/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app_flowy/ios/Runner/Base.lproj/Main.storyboard b/app_flowy/ios/Runner/Base.lproj/Main.storyboard
new file mode 100644
index 0000000000..f3c28516fb
--- /dev/null
+++ b/app_flowy/ios/Runner/Base.lproj/Main.storyboard
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app_flowy/ios/Runner/Info.plist b/app_flowy/ios/Runner/Info.plist
new file mode 100644
index 0000000000..607d5e00cd
--- /dev/null
+++ b/app_flowy/ios/Runner/Info.plist
@@ -0,0 +1,45 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ app_flowy
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(FLUTTER_BUILD_NAME)
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ LSRequiresIPhoneOS
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIMainStoryboardFile
+ Main
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UIViewControllerBasedStatusBarAppearance
+
+
+
diff --git a/app_flowy/ios/Runner/Runner-Bridging-Header.h b/app_flowy/ios/Runner/Runner-Bridging-Header.h
new file mode 100644
index 0000000000..308a2a560b
--- /dev/null
+++ b/app_flowy/ios/Runner/Runner-Bridging-Header.h
@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"
diff --git a/app_flowy/lib/home/application/home_bloc.dart b/app_flowy/lib/home/application/home_bloc.dart
new file mode 100644
index 0000000000..259abc3bb6
--- /dev/null
+++ b/app_flowy/lib/home/application/home_bloc.dart
@@ -0,0 +1,42 @@
+import 'package:app_flowy/home/domain/edit_context.dart';
+import 'package:app_flowy/home/domain/page_context.dart';
+import 'package:app_flowy/home/presentation/widgets/blank_page.dart';
+import 'package:flutter_bloc/flutter_bloc.dart';
+import 'package:freezed_annotation/freezed_annotation.dart';
+import 'package:dartz/dartz.dart';
+
+part 'home_event.dart';
+part 'home_state.dart';
+part 'home_bloc.freezed.dart';
+
+class HomeBloc extends Bloc {
+ HomeBloc() : super(HomeState.initial());
+
+ @override
+ Stream mapEventToState(
+ HomeEvent event,
+ ) async* {
+ yield* event.map(
+ setPage: (e) async* {
+ yield state.copyWith(pageContext: e.context);
+ },
+ showLoading: (e) async* {
+ yield state.copyWith(isLoading: e.isLoading);
+ },
+ setEditPannel: (e) async* {
+ yield state.copyWith(editContext: some(e.editContext));
+ },
+ dismissEditPannel: (value) async* {
+ yield state.copyWith(editContext: none());
+ },
+ showMenu: (e) async* {
+ yield state.copyWith(showMenu: e.isShow);
+ },
+ );
+ }
+
+ @override
+ Future close() {
+ return super.close();
+ }
+}
diff --git a/app_flowy/lib/home/application/home_bloc.freezed.dart b/app_flowy/lib/home/application/home_bloc.freezed.dart
new file mode 100644
index 0000000000..16ed6f5120
--- /dev/null
+++ b/app_flowy/lib/home/application/home_bloc.freezed.dart
@@ -0,0 +1,921 @@
+// GENERATED CODE - DO NOT MODIFY BY HAND
+// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides
+
+part of 'home_bloc.dart';
+
+// **************************************************************************
+// FreezedGenerator
+// **************************************************************************
+
+T _$identity(T value) => value;
+
+final _privateConstructorUsedError = UnsupportedError(
+ 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
+
+/// @nodoc
+class _$HomeEventTearOff {
+ const _$HomeEventTearOff();
+
+ _ShowLoading showLoading(bool isLoading) {
+ return _ShowLoading(
+ isLoading,
+ );
+ }
+
+ _ShowMenu showMenu(bool isShow) {
+ return _ShowMenu(
+ isShow,
+ );
+ }
+
+ SetCurrentPage setPage(PageContext context) {
+ return SetCurrentPage(
+ context,
+ );
+ }
+
+ _ShowEditPannel setEditPannel(EditPannelContext editContext) {
+ return _ShowEditPannel(
+ editContext,
+ );
+ }
+
+ _DismissEditPannel dismissEditPannel() {
+ return const _DismissEditPannel();
+ }
+}
+
+/// @nodoc
+const $HomeEvent = _$HomeEventTearOff();
+
+/// @nodoc
+mixin _$HomeEvent {
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function(bool isLoading) showLoading,
+ required TResult Function(bool isShow) showMenu,
+ required TResult Function(PageContext context) setPage,
+ required TResult Function(EditPannelContext editContext) setEditPannel,
+ required TResult Function() dismissEditPannel,
+ }) =>
+ throw _privateConstructorUsedError;
+ @optionalTypeArgs
+ TResult maybeWhen({
+ TResult Function(bool isLoading)? showLoading,
+ TResult Function(bool isShow)? showMenu,
+ TResult Function(PageContext context)? setPage,
+ TResult Function(EditPannelContext editContext)? setEditPannel,
+ TResult Function()? dismissEditPannel,
+ required TResult orElse(),
+ }) =>
+ throw _privateConstructorUsedError;
+ @optionalTypeArgs
+ TResult map({
+ required TResult Function(_ShowLoading value) showLoading,
+ required TResult Function(_ShowMenu value) showMenu,
+ required TResult Function(SetCurrentPage value) setPage,
+ required TResult Function(_ShowEditPannel value) setEditPannel,
+ required TResult Function(_DismissEditPannel value) dismissEditPannel,
+ }) =>
+ throw _privateConstructorUsedError;
+ @optionalTypeArgs
+ TResult maybeMap({
+ TResult Function(_ShowLoading value)? showLoading,
+ TResult Function(_ShowMenu value)? showMenu,
+ TResult Function(SetCurrentPage value)? setPage,
+ TResult Function(_ShowEditPannel value)? setEditPannel,
+ TResult Function(_DismissEditPannel value)? dismissEditPannel,
+ required TResult orElse(),
+ }) =>
+ throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+abstract class $HomeEventCopyWith<$Res> {
+ factory $HomeEventCopyWith(HomeEvent value, $Res Function(HomeEvent) then) =
+ _$HomeEventCopyWithImpl<$Res>;
+}
+
+/// @nodoc
+class _$HomeEventCopyWithImpl<$Res> implements $HomeEventCopyWith<$Res> {
+ _$HomeEventCopyWithImpl(this._value, this._then);
+
+ final HomeEvent _value;
+ // ignore: unused_field
+ final $Res Function(HomeEvent) _then;
+}
+
+/// @nodoc
+abstract class _$ShowLoadingCopyWith<$Res> {
+ factory _$ShowLoadingCopyWith(
+ _ShowLoading value, $Res Function(_ShowLoading) then) =
+ __$ShowLoadingCopyWithImpl<$Res>;
+ $Res call({bool isLoading});
+}
+
+/// @nodoc
+class __$ShowLoadingCopyWithImpl<$Res> extends _$HomeEventCopyWithImpl<$Res>
+ implements _$ShowLoadingCopyWith<$Res> {
+ __$ShowLoadingCopyWithImpl(
+ _ShowLoading _value, $Res Function(_ShowLoading) _then)
+ : super(_value, (v) => _then(v as _ShowLoading));
+
+ @override
+ _ShowLoading get _value => super._value as _ShowLoading;
+
+ @override
+ $Res call({
+ Object? isLoading = freezed,
+ }) {
+ return _then(_ShowLoading(
+ isLoading == freezed
+ ? _value.isLoading
+ : isLoading // ignore: cast_nullable_to_non_nullable
+ as bool,
+ ));
+ }
+}
+
+/// @nodoc
+
+class _$_ShowLoading implements _ShowLoading {
+ const _$_ShowLoading(this.isLoading);
+
+ @override
+ final bool isLoading;
+
+ @override
+ String toString() {
+ return 'HomeEvent.showLoading(isLoading: $isLoading)';
+ }
+
+ @override
+ bool operator ==(dynamic other) {
+ return identical(this, other) ||
+ (other is _ShowLoading &&
+ (identical(other.isLoading, isLoading) ||
+ const DeepCollectionEquality()
+ .equals(other.isLoading, isLoading)));
+ }
+
+ @override
+ int get hashCode =>
+ runtimeType.hashCode ^ const DeepCollectionEquality().hash(isLoading);
+
+ @JsonKey(ignore: true)
+ @override
+ _$ShowLoadingCopyWith<_ShowLoading> get copyWith =>
+ __$ShowLoadingCopyWithImpl<_ShowLoading>(this, _$identity);
+
+ @override
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function(bool isLoading) showLoading,
+ required TResult Function(bool isShow) showMenu,
+ required TResult Function(PageContext context) setPage,
+ required TResult Function(EditPannelContext editContext) setEditPannel,
+ required TResult Function() dismissEditPannel,
+ }) {
+ return showLoading(isLoading);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeWhen({
+ TResult Function(bool isLoading)? showLoading,
+ TResult Function(bool isShow)? showMenu,
+ TResult Function(PageContext context)? setPage,
+ TResult Function(EditPannelContext editContext)? setEditPannel,
+ TResult Function()? dismissEditPannel,
+ required TResult orElse(),
+ }) {
+ if (showLoading != null) {
+ return showLoading(isLoading);
+ }
+ return orElse();
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult map({
+ required TResult Function(_ShowLoading value) showLoading,
+ required TResult Function(_ShowMenu value) showMenu,
+ required TResult Function(SetCurrentPage value) setPage,
+ required TResult Function(_ShowEditPannel value) setEditPannel,
+ required TResult Function(_DismissEditPannel value) dismissEditPannel,
+ }) {
+ return showLoading(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeMap({
+ TResult Function(_ShowLoading value)? showLoading,
+ TResult Function(_ShowMenu value)? showMenu,
+ TResult Function(SetCurrentPage value)? setPage,
+ TResult Function(_ShowEditPannel value)? setEditPannel,
+ TResult Function(_DismissEditPannel value)? dismissEditPannel,
+ required TResult orElse(),
+ }) {
+ if (showLoading != null) {
+ return showLoading(this);
+ }
+ return orElse();
+ }
+}
+
+abstract class _ShowLoading implements HomeEvent {
+ const factory _ShowLoading(bool isLoading) = _$_ShowLoading;
+
+ bool get isLoading => throw _privateConstructorUsedError;
+ @JsonKey(ignore: true)
+ _$ShowLoadingCopyWith<_ShowLoading> get copyWith =>
+ throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+abstract class _$ShowMenuCopyWith<$Res> {
+ factory _$ShowMenuCopyWith(_ShowMenu value, $Res Function(_ShowMenu) then) =
+ __$ShowMenuCopyWithImpl<$Res>;
+ $Res call({bool isShow});
+}
+
+/// @nodoc
+class __$ShowMenuCopyWithImpl<$Res> extends _$HomeEventCopyWithImpl<$Res>
+ implements _$ShowMenuCopyWith<$Res> {
+ __$ShowMenuCopyWithImpl(_ShowMenu _value, $Res Function(_ShowMenu) _then)
+ : super(_value, (v) => _then(v as _ShowMenu));
+
+ @override
+ _ShowMenu get _value => super._value as _ShowMenu;
+
+ @override
+ $Res call({
+ Object? isShow = freezed,
+ }) {
+ return _then(_ShowMenu(
+ isShow == freezed
+ ? _value.isShow
+ : isShow // ignore: cast_nullable_to_non_nullable
+ as bool,
+ ));
+ }
+}
+
+/// @nodoc
+
+class _$_ShowMenu implements _ShowMenu {
+ const _$_ShowMenu(this.isShow);
+
+ @override
+ final bool isShow;
+
+ @override
+ String toString() {
+ return 'HomeEvent.showMenu(isShow: $isShow)';
+ }
+
+ @override
+ bool operator ==(dynamic other) {
+ return identical(this, other) ||
+ (other is _ShowMenu &&
+ (identical(other.isShow, isShow) ||
+ const DeepCollectionEquality().equals(other.isShow, isShow)));
+ }
+
+ @override
+ int get hashCode =>
+ runtimeType.hashCode ^ const DeepCollectionEquality().hash(isShow);
+
+ @JsonKey(ignore: true)
+ @override
+ _$ShowMenuCopyWith<_ShowMenu> get copyWith =>
+ __$ShowMenuCopyWithImpl<_ShowMenu>(this, _$identity);
+
+ @override
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function(bool isLoading) showLoading,
+ required TResult Function(bool isShow) showMenu,
+ required TResult Function(PageContext context) setPage,
+ required TResult Function(EditPannelContext editContext) setEditPannel,
+ required TResult Function() dismissEditPannel,
+ }) {
+ return showMenu(isShow);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeWhen({
+ TResult Function(bool isLoading)? showLoading,
+ TResult Function(bool isShow)? showMenu,
+ TResult Function(PageContext context)? setPage,
+ TResult Function(EditPannelContext editContext)? setEditPannel,
+ TResult Function()? dismissEditPannel,
+ required TResult orElse(),
+ }) {
+ if (showMenu != null) {
+ return showMenu(isShow);
+ }
+ return orElse();
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult map({
+ required TResult Function(_ShowLoading value) showLoading,
+ required TResult Function(_ShowMenu value) showMenu,
+ required TResult Function(SetCurrentPage value) setPage,
+ required TResult Function(_ShowEditPannel value) setEditPannel,
+ required TResult Function(_DismissEditPannel value) dismissEditPannel,
+ }) {
+ return showMenu(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeMap({
+ TResult Function(_ShowLoading value)? showLoading,
+ TResult Function(_ShowMenu value)? showMenu,
+ TResult Function(SetCurrentPage value)? setPage,
+ TResult Function(_ShowEditPannel value)? setEditPannel,
+ TResult Function(_DismissEditPannel value)? dismissEditPannel,
+ required TResult orElse(),
+ }) {
+ if (showMenu != null) {
+ return showMenu(this);
+ }
+ return orElse();
+ }
+}
+
+abstract class _ShowMenu implements HomeEvent {
+ const factory _ShowMenu(bool isShow) = _$_ShowMenu;
+
+ bool get isShow => throw _privateConstructorUsedError;
+ @JsonKey(ignore: true)
+ _$ShowMenuCopyWith<_ShowMenu> get copyWith =>
+ throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+abstract class $SetCurrentPageCopyWith<$Res> {
+ factory $SetCurrentPageCopyWith(
+ SetCurrentPage value, $Res Function(SetCurrentPage) then) =
+ _$SetCurrentPageCopyWithImpl<$Res>;
+ $Res call({PageContext context});
+}
+
+/// @nodoc
+class _$SetCurrentPageCopyWithImpl<$Res> extends _$HomeEventCopyWithImpl<$Res>
+ implements $SetCurrentPageCopyWith<$Res> {
+ _$SetCurrentPageCopyWithImpl(
+ SetCurrentPage _value, $Res Function(SetCurrentPage) _then)
+ : super(_value, (v) => _then(v as SetCurrentPage));
+
+ @override
+ SetCurrentPage get _value => super._value as SetCurrentPage;
+
+ @override
+ $Res call({
+ Object? context = freezed,
+ }) {
+ return _then(SetCurrentPage(
+ context == freezed
+ ? _value.context
+ : context // ignore: cast_nullable_to_non_nullable
+ as PageContext,
+ ));
+ }
+}
+
+/// @nodoc
+
+class _$SetCurrentPage implements SetCurrentPage {
+ const _$SetCurrentPage(this.context);
+
+ @override
+ final PageContext context;
+
+ @override
+ String toString() {
+ return 'HomeEvent.setPage(context: $context)';
+ }
+
+ @override
+ bool operator ==(dynamic other) {
+ return identical(this, other) ||
+ (other is SetCurrentPage &&
+ (identical(other.context, context) ||
+ const DeepCollectionEquality().equals(other.context, context)));
+ }
+
+ @override
+ int get hashCode =>
+ runtimeType.hashCode ^ const DeepCollectionEquality().hash(context);
+
+ @JsonKey(ignore: true)
+ @override
+ $SetCurrentPageCopyWith get copyWith =>
+ _$SetCurrentPageCopyWithImpl(this, _$identity);
+
+ @override
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function(bool isLoading) showLoading,
+ required TResult Function(bool isShow) showMenu,
+ required TResult Function(PageContext context) setPage,
+ required TResult Function(EditPannelContext editContext) setEditPannel,
+ required TResult Function() dismissEditPannel,
+ }) {
+ return setPage(context);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeWhen({
+ TResult Function(bool isLoading)? showLoading,
+ TResult Function(bool isShow)? showMenu,
+ TResult Function(PageContext context)? setPage,
+ TResult Function(EditPannelContext editContext)? setEditPannel,
+ TResult Function()? dismissEditPannel,
+ required TResult orElse(),
+ }) {
+ if (setPage != null) {
+ return setPage(context);
+ }
+ return orElse();
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult map({
+ required TResult Function(_ShowLoading value) showLoading,
+ required TResult Function(_ShowMenu value) showMenu,
+ required TResult Function(SetCurrentPage value) setPage,
+ required TResult Function(_ShowEditPannel value) setEditPannel,
+ required TResult Function(_DismissEditPannel value) dismissEditPannel,
+ }) {
+ return setPage(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeMap({
+ TResult Function(_ShowLoading value)? showLoading,
+ TResult Function(_ShowMenu value)? showMenu,
+ TResult Function(SetCurrentPage value)? setPage,
+ TResult Function(_ShowEditPannel value)? setEditPannel,
+ TResult Function(_DismissEditPannel value)? dismissEditPannel,
+ required TResult orElse(),
+ }) {
+ if (setPage != null) {
+ return setPage(this);
+ }
+ return orElse();
+ }
+}
+
+abstract class SetCurrentPage implements HomeEvent {
+ const factory SetCurrentPage(PageContext context) = _$SetCurrentPage;
+
+ PageContext get context => throw _privateConstructorUsedError;
+ @JsonKey(ignore: true)
+ $SetCurrentPageCopyWith get copyWith =>
+ throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+abstract class _$ShowEditPannelCopyWith<$Res> {
+ factory _$ShowEditPannelCopyWith(
+ _ShowEditPannel value, $Res Function(_ShowEditPannel) then) =
+ __$ShowEditPannelCopyWithImpl<$Res>;
+ $Res call({EditPannelContext editContext});
+}
+
+/// @nodoc
+class __$ShowEditPannelCopyWithImpl<$Res> extends _$HomeEventCopyWithImpl<$Res>
+ implements _$ShowEditPannelCopyWith<$Res> {
+ __$ShowEditPannelCopyWithImpl(
+ _ShowEditPannel _value, $Res Function(_ShowEditPannel) _then)
+ : super(_value, (v) => _then(v as _ShowEditPannel));
+
+ @override
+ _ShowEditPannel get _value => super._value as _ShowEditPannel;
+
+ @override
+ $Res call({
+ Object? editContext = freezed,
+ }) {
+ return _then(_ShowEditPannel(
+ editContext == freezed
+ ? _value.editContext
+ : editContext // ignore: cast_nullable_to_non_nullable
+ as EditPannelContext,
+ ));
+ }
+}
+
+/// @nodoc
+
+class _$_ShowEditPannel implements _ShowEditPannel {
+ const _$_ShowEditPannel(this.editContext);
+
+ @override
+ final EditPannelContext editContext;
+
+ @override
+ String toString() {
+ return 'HomeEvent.setEditPannel(editContext: $editContext)';
+ }
+
+ @override
+ bool operator ==(dynamic other) {
+ return identical(this, other) ||
+ (other is _ShowEditPannel &&
+ (identical(other.editContext, editContext) ||
+ const DeepCollectionEquality()
+ .equals(other.editContext, editContext)));
+ }
+
+ @override
+ int get hashCode =>
+ runtimeType.hashCode ^ const DeepCollectionEquality().hash(editContext);
+
+ @JsonKey(ignore: true)
+ @override
+ _$ShowEditPannelCopyWith<_ShowEditPannel> get copyWith =>
+ __$ShowEditPannelCopyWithImpl<_ShowEditPannel>(this, _$identity);
+
+ @override
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function(bool isLoading) showLoading,
+ required TResult Function(bool isShow) showMenu,
+ required TResult Function(PageContext context) setPage,
+ required TResult Function(EditPannelContext editContext) setEditPannel,
+ required TResult Function() dismissEditPannel,
+ }) {
+ return setEditPannel(editContext);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeWhen({
+ TResult Function(bool isLoading)? showLoading,
+ TResult Function(bool isShow)? showMenu,
+ TResult Function(PageContext context)? setPage,
+ TResult Function(EditPannelContext editContext)? setEditPannel,
+ TResult Function()? dismissEditPannel,
+ required TResult orElse(),
+ }) {
+ if (setEditPannel != null) {
+ return setEditPannel(editContext);
+ }
+ return orElse();
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult map({
+ required TResult Function(_ShowLoading value) showLoading,
+ required TResult Function(_ShowMenu value) showMenu,
+ required TResult Function(SetCurrentPage value) setPage,
+ required TResult Function(_ShowEditPannel value) setEditPannel,
+ required TResult Function(_DismissEditPannel value) dismissEditPannel,
+ }) {
+ return setEditPannel(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeMap({
+ TResult Function(_ShowLoading value)? showLoading,
+ TResult Function(_ShowMenu value)? showMenu,
+ TResult Function(SetCurrentPage value)? setPage,
+ TResult Function(_ShowEditPannel value)? setEditPannel,
+ TResult Function(_DismissEditPannel value)? dismissEditPannel,
+ required TResult orElse(),
+ }) {
+ if (setEditPannel != null) {
+ return setEditPannel(this);
+ }
+ return orElse();
+ }
+}
+
+abstract class _ShowEditPannel implements HomeEvent {
+ const factory _ShowEditPannel(EditPannelContext editContext) =
+ _$_ShowEditPannel;
+
+ EditPannelContext get editContext => throw _privateConstructorUsedError;
+ @JsonKey(ignore: true)
+ _$ShowEditPannelCopyWith<_ShowEditPannel> get copyWith =>
+ throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+abstract class _$DismissEditPannelCopyWith<$Res> {
+ factory _$DismissEditPannelCopyWith(
+ _DismissEditPannel value, $Res Function(_DismissEditPannel) then) =
+ __$DismissEditPannelCopyWithImpl<$Res>;
+}
+
+/// @nodoc
+class __$DismissEditPannelCopyWithImpl<$Res>
+ extends _$HomeEventCopyWithImpl<$Res>
+ implements _$DismissEditPannelCopyWith<$Res> {
+ __$DismissEditPannelCopyWithImpl(
+ _DismissEditPannel _value, $Res Function(_DismissEditPannel) _then)
+ : super(_value, (v) => _then(v as _DismissEditPannel));
+
+ @override
+ _DismissEditPannel get _value => super._value as _DismissEditPannel;
+}
+
+/// @nodoc
+
+class _$_DismissEditPannel implements _DismissEditPannel {
+ const _$_DismissEditPannel();
+
+ @override
+ String toString() {
+ return 'HomeEvent.dismissEditPannel()';
+ }
+
+ @override
+ bool operator ==(dynamic other) {
+ return identical(this, other) || (other is _DismissEditPannel);
+ }
+
+ @override
+ int get hashCode => runtimeType.hashCode;
+
+ @override
+ @optionalTypeArgs
+ TResult when({
+ required TResult Function(bool isLoading) showLoading,
+ required TResult Function(bool isShow) showMenu,
+ required TResult Function(PageContext context) setPage,
+ required TResult Function(EditPannelContext editContext) setEditPannel,
+ required TResult Function() dismissEditPannel,
+ }) {
+ return dismissEditPannel();
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeWhen({
+ TResult Function(bool isLoading)? showLoading,
+ TResult Function(bool isShow)? showMenu,
+ TResult Function(PageContext context)? setPage,
+ TResult Function(EditPannelContext editContext)? setEditPannel,
+ TResult Function()? dismissEditPannel,
+ required TResult orElse(),
+ }) {
+ if (dismissEditPannel != null) {
+ return dismissEditPannel();
+ }
+ return orElse();
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult map({
+ required TResult Function(_ShowLoading value) showLoading,
+ required TResult Function(_ShowMenu value) showMenu,
+ required TResult Function(SetCurrentPage value) setPage,
+ required TResult Function(_ShowEditPannel value) setEditPannel,
+ required TResult Function(_DismissEditPannel value) dismissEditPannel,
+ }) {
+ return dismissEditPannel(this);
+ }
+
+ @override
+ @optionalTypeArgs
+ TResult maybeMap({
+ TResult Function(_ShowLoading value)? showLoading,
+ TResult Function(_ShowMenu value)? showMenu,
+ TResult Function(SetCurrentPage value)? setPage,
+ TResult Function(_ShowEditPannel value)? setEditPannel,
+ TResult Function(_DismissEditPannel value)? dismissEditPannel,
+ required TResult orElse(),
+ }) {
+ if (dismissEditPannel != null) {
+ return dismissEditPannel(this);
+ }
+ return orElse();
+ }
+}
+
+abstract class _DismissEditPannel implements HomeEvent {
+ const factory _DismissEditPannel() = _$_DismissEditPannel;
+}
+
+/// @nodoc
+class _$HomeStateTearOff {
+ const _$HomeStateTearOff();
+
+ _HomeState call(
+ {required bool isLoading,
+ required bool showMenu,
+ required PageContext pageContext,
+ required Option editContext}) {
+ return _HomeState(
+ isLoading: isLoading,
+ showMenu: showMenu,
+ pageContext: pageContext,
+ editContext: editContext,
+ );
+ }
+}
+
+/// @nodoc
+const $HomeState = _$HomeStateTearOff();
+
+/// @nodoc
+mixin _$HomeState {
+ bool get isLoading => throw _privateConstructorUsedError;
+ bool get showMenu => throw _privateConstructorUsedError;
+ PageContext get pageContext => throw _privateConstructorUsedError;
+ Option get editContext =>
+ throw _privateConstructorUsedError;
+
+ @JsonKey(ignore: true)
+ $HomeStateCopyWith get copyWith =>
+ throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+abstract class $HomeStateCopyWith<$Res> {
+ factory $HomeStateCopyWith(HomeState value, $Res Function(HomeState) then) =
+ _$HomeStateCopyWithImpl<$Res>;
+ $Res call(
+ {bool isLoading,
+ bool showMenu,
+ PageContext pageContext,
+ Option editContext});
+}
+
+/// @nodoc
+class _$HomeStateCopyWithImpl<$Res> implements $HomeStateCopyWith<$Res> {
+ _$HomeStateCopyWithImpl(this._value, this._then);
+
+ final HomeState _value;
+ // ignore: unused_field
+ final $Res Function(HomeState) _then;
+
+ @override
+ $Res call({
+ Object? isLoading = freezed,
+ Object? showMenu = freezed,
+ Object? pageContext = freezed,
+ Object? editContext = freezed,
+ }) {
+ return _then(_value.copyWith(
+ isLoading: isLoading == freezed
+ ? _value.isLoading
+ : isLoading // ignore: cast_nullable_to_non_nullable
+ as bool,
+ showMenu: showMenu == freezed
+ ? _value.showMenu
+ : showMenu // ignore: cast_nullable_to_non_nullable
+ as bool,
+ pageContext: pageContext == freezed
+ ? _value.pageContext
+ : pageContext // ignore: cast_nullable_to_non_nullable
+ as PageContext,
+ editContext: editContext == freezed
+ ? _value.editContext
+ : editContext // ignore: cast_nullable_to_non_nullable
+ as Option,
+ ));
+ }
+}
+
+/// @nodoc
+abstract class _$HomeStateCopyWith<$Res> implements $HomeStateCopyWith<$Res> {
+ factory _$HomeStateCopyWith(
+ _HomeState value, $Res Function(_HomeState) then) =
+ __$HomeStateCopyWithImpl<$Res>;
+ @override
+ $Res call(
+ {bool isLoading,
+ bool showMenu,
+ PageContext pageContext,
+ Option editContext});
+}
+
+/// @nodoc
+class __$HomeStateCopyWithImpl<$Res> extends _$HomeStateCopyWithImpl<$Res>
+ implements _$HomeStateCopyWith<$Res> {
+ __$HomeStateCopyWithImpl(_HomeState _value, $Res Function(_HomeState) _then)
+ : super(_value, (v) => _then(v as _HomeState));
+
+ @override
+ _HomeState get _value => super._value as _HomeState;
+
+ @override
+ $Res call({
+ Object? isLoading = freezed,
+ Object? showMenu = freezed,
+ Object? pageContext = freezed,
+ Object? editContext = freezed,
+ }) {
+ return _then(_HomeState(
+ isLoading: isLoading == freezed
+ ? _value.isLoading
+ : isLoading // ignore: cast_nullable_to_non_nullable
+ as bool,
+ showMenu: showMenu == freezed
+ ? _value.showMenu
+ : showMenu // ignore: cast_nullable_to_non_nullable
+ as bool,
+ pageContext: pageContext == freezed
+ ? _value.pageContext
+ : pageContext // ignore: cast_nullable_to_non_nullable
+ as PageContext,
+ editContext: editContext == freezed
+ ? _value.editContext
+ : editContext // ignore: cast_nullable_to_non_nullable
+ as Option,
+ ));
+ }
+}
+
+/// @nodoc
+
+class _$_HomeState implements _HomeState {
+ const _$_HomeState(
+ {required this.isLoading,
+ required this.showMenu,
+ required this.pageContext,
+ required this.editContext});
+
+ @override
+ final bool isLoading;
+ @override
+ final bool showMenu;
+ @override
+ final PageContext pageContext;
+ @override
+ final Option editContext;
+
+ @override
+ String toString() {
+ return 'HomeState(isLoading: $isLoading, showMenu: $showMenu, pageContext: $pageContext, editContext: $editContext)';
+ }
+
+ @override
+ bool operator ==(dynamic other) {
+ return identical(this, other) ||
+ (other is _HomeState &&
+ (identical(other.isLoading, isLoading) ||
+ const DeepCollectionEquality()
+ .equals(other.isLoading, isLoading)) &&
+ (identical(other.showMenu, showMenu) ||
+ const DeepCollectionEquality()
+ .equals(other.showMenu, showMenu)) &&
+ (identical(other.pageContext, pageContext) ||
+ const DeepCollectionEquality()
+ .equals(other.pageContext, pageContext)) &&
+ (identical(other.editContext, editContext) ||
+ const DeepCollectionEquality()
+ .equals(other.editContext, editContext)));
+ }
+
+ @override
+ int get hashCode =>
+ runtimeType.hashCode ^
+ const DeepCollectionEquality().hash(isLoading) ^
+ const DeepCollectionEquality().hash(showMenu) ^
+ const DeepCollectionEquality().hash(pageContext) ^
+ const DeepCollectionEquality().hash(editContext);
+
+ @JsonKey(ignore: true)
+ @override
+ _$HomeStateCopyWith<_HomeState> get copyWith =>
+ __$HomeStateCopyWithImpl<_HomeState>(this, _$identity);
+}
+
+abstract class _HomeState implements HomeState {
+ const factory _HomeState(
+ {required bool isLoading,
+ required bool showMenu,
+ required PageContext pageContext,
+ required Option editContext}) = _$_HomeState;
+
+ @override
+ bool get isLoading => throw _privateConstructorUsedError;
+ @override
+ bool get showMenu => throw _privateConstructorUsedError;
+ @override
+ PageContext get pageContext => throw _privateConstructorUsedError;
+ @override
+ Option get editContext =>
+ throw _privateConstructorUsedError;
+ @override
+ @JsonKey(ignore: true)
+ _$HomeStateCopyWith<_HomeState> get copyWith =>
+ throw _privateConstructorUsedError;
+}
diff --git a/app_flowy/lib/home/application/home_event.dart b/app_flowy/lib/home/application/home_event.dart
new file mode 100644
index 0000000000..ec4d0a457b
--- /dev/null
+++ b/app_flowy/lib/home/application/home_event.dart
@@ -0,0 +1,15 @@
+part of 'home_bloc.dart';
+
+@freezed
+abstract class HomeEvent with _$HomeEvent {
+ const factory HomeEvent.showLoading(bool isLoading) = _ShowLoading;
+ const factory HomeEvent.showMenu(bool isShow) = _ShowMenu;
+
+ //page
+ const factory HomeEvent.setPage(PageContext context) = SetCurrentPage;
+
+ //edit pannel
+ const factory HomeEvent.setEditPannel(EditPannelContext editContext) =
+ _ShowEditPannel;
+ const factory HomeEvent.dismissEditPannel() = _DismissEditPannel;
+}
diff --git a/app_flowy/lib/home/application/home_state.dart b/app_flowy/lib/home/application/home_state.dart
new file mode 100644
index 0000000000..fdbe7d8ab2
--- /dev/null
+++ b/app_flowy/lib/home/application/home_state.dart
@@ -0,0 +1,18 @@
+part of 'home_bloc.dart';
+
+@freezed
+abstract class HomeState implements _$HomeState {
+ const factory HomeState({
+ required bool isLoading,
+ required bool showMenu,
+ required PageContext pageContext,
+ required Option editContext,
+ }) = _HomeState;
+
+ factory HomeState.initial() => HomeState(
+ isLoading: false,
+ showMenu: true,
+ pageContext: BlankPageContext(),
+ editContext: none(),
+ );
+}
diff --git a/app_flowy/lib/home/domain/edit_context.dart b/app_flowy/lib/home/domain/edit_context.dart
new file mode 100644
index 0000000000..cd52bc7f11
--- /dev/null
+++ b/app_flowy/lib/home/domain/edit_context.dart
@@ -0,0 +1,23 @@
+import 'package:equatable/equatable.dart';
+import 'package:flutter/material.dart';
+
+abstract class EditPannelContext extends Equatable {
+ final String identifier;
+ final String title;
+ final Widget child;
+ const EditPannelContext(
+ {required this.child, required this.identifier, required this.title});
+
+ @override
+ List