ソースを参照

[flutter]: adjust ui

appflowy 3 年 前
コミット
05f9f7b4a1

+ 1 - 1
app_flowy/lib/startup/tasks/application_task.dart

@@ -33,7 +33,7 @@ class ApplicationWidget extends StatelessWidget {
   @override
   Widget 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));

+ 0 - 12
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);

+ 1 - 2
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);
   }
 }

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

+ 2 - 0
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);