Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
[flutter]: adjust ui
appflowy05f9f7b4a119
diff --git a/app_flowy/lib/startup/tasks/application_task.dart b/app_flowy/lib/startup/tasks/application_task.dartindex ff8f256255..e3833c8ca6 100644--- a/app_flowy/lib/startup/tasks/application_task.dart+++ b/app_flowy/lib/startup/tasks/application_task.dart@@ -33,7 +33,7 @@ class ApplicationWidget extends StatelessWidget {@overrideWidget build(BuildContext context) {const ratio = 1.73;- const minWidth = 1000.0;+ const minWidth = 1200.0;setWindowMinSize(const Size(minWidth, minWidth / ratio));// const launchWidth = 1310.0;// setWindowFrame(const Rect.fromLTWH(0, 0, launchWidth, launchWidth / ratio));diff --git a/app_flowy/lib/user/presentation/skip_log_in_screen.dart b/app_flowy/lib/user/presentation/skip_log_in_screen.dartindex 4bb48118b2..740d1788e8 100644--- a/app_flowy/lib/user/presentation/skip_log_in_screen.dart+++ b/app_flowy/lib/user/presentation/skip_log_in_screen.dart@@ -102,18 +102,6 @@ class _SkipLogInScreenState extends State<SkipLogInScreen> {WorkspaceEventReadCurWorkspace().send().then((result) {_openCurrentWorkspace(context, user, result);});- userListener = getIt<IUserListener>(param1: user);- userListener!.workspaceUpdatedNotifier.addPublishListener((result) {- result.fold(- (workspace) {- assert(workspace.length == 1);- if (workspace.isNotEmpty) {- _openCurrentWorkspace(context, user, dartz.left(workspace[0]));- }- },- (error) => _openCurrentWorkspace(context, user, dartz.right(error)),- );- });},(error) {Log.error(error);diff --git a/app_flowy/lib/user/presentation/splash_screen.dart b/app_flowy/lib/user/presentation/splash_screen.dartindex 5b9baee5bf..74e0846e3a 100644--- a/app_flowy/lib/user/presentation/splash_screen.dart+++ b/app_flowy/lib/user/presentation/splash_screen.dart@@ -58,9 +58,8 @@ class SplashScreen extends StatelessWidget {}void _handleUnauthenticated(BuildContext context, Unauthenticated result) {- Log.error(result.error);+ // Log.error(result.error);// getIt<ISplashRoute>().pushSignInScreen(context);-getIt<ISplashRoute>().pushSkipLoginScreen(context);}}diff --git a/rust-lib/dart-ffi/src/lib.rs b/rust-lib/dart-ffi/src/lib.rsindex b0aa36a45c..f2c6cd65fe 100644--- a/rust-lib/dart-ffi/src/lib.rs+++ b/rust-lib/dart-ffi/src/lib.rs@@ -25,7 +25,7 @@ pub extern "C" fn init_sdk(path: *mut c_char) -> i64 {let path: &str = c_str.to_str().unwrap();let server_config = ServerConfig::default();- let config = FlowySDKConfig::new(path, server_config, "AppFlowy").log_filter("debug");+ let config = FlowySDKConfig::new(path, server_config, "appflowy").log_filter("debug");*FLOWY_SDK.write() = Some(Arc::new(FlowySDK::new(config)));return 1;diff --git a/rust-lib/flowy-infra/src/kv/kv.rs b/rust-lib/flowy-infra/src/kv/kv.rsindex 8ef1c7ccca..3d4fbb8a0e 100644--- a/rust-lib/flowy-infra/src/kv/kv.rs+++ b/rust-lib/flowy-infra/src/kv/kv.rs@@ -25,6 +25,7 @@ impl KV {}fn set(value: KeyValue) -> Result<(), String> {+ log::debug!("set value: {:?}", value);update_cache(value.clone());let _ = diesel::replace_into(kv_table::table)@@ -53,6 +54,7 @@ impl KV {#[allow(dead_code)]pub fn remove(key: &str) -> Result<(), String> {+ log::debug!("remove key: {}", key);match KV_HOLDER.write() {Ok(mut guard) => {guard.cache.remove(key);