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
fix: use window_manager to set minimum window size (#1791)
Kristen McWilliam6b8c7d7bc61c
diff --git a/frontend/app_flowy/lib/main.dart b/frontend/app_flowy/lib/main.dartindex 2264c46079..bfdc7a5fc1 100644--- a/frontend/app_flowy/lib/main.dart+++ b/frontend/app_flowy/lib/main.dart@@ -1,6 +1,7 @@import 'package:easy_localization/easy_localization.dart';import 'package:flutter/material.dart';import 'package:hotkey_manager/hotkey_manager.dart';+import 'package:window_manager/window_manager.dart';import 'startup/launch_configuration.dart';import 'startup/startup.dart';@@ -17,10 +18,22 @@ class FlowyApp implements EntryPoint {Future<void> main() async {WidgetsFlutterBinding.ensureInitialized();- await EasyLocalization.ensureInitialized();- WidgetsFlutterBinding.ensureInitialized();+ await EasyLocalization.ensureInitialized();await hotKeyManager.unregisterAll();+ await windowManager.ensureInitialized();++ await setWindowOptions();await FlowyRunner.run(FlowyApp());}++Future<void> setWindowOptions() async {+ WindowOptions windowOptions = const WindowOptions(+ minimumSize: Size(600, 400),+ );+ return windowManager.waitUntilReadyToShow(windowOptions, () async {+ await windowManager.show();+ await windowManager.focus();+ });+}diff --git a/frontend/app_flowy/lib/startup/tasks/app_widget.dart b/frontend/app_flowy/lib/startup/tasks/app_widget.dartindex efed369758..a0c173a01d 100644--- a/frontend/app_flowy/lib/startup/tasks/app_widget.dart+++ b/frontend/app_flowy/lib/startup/tasks/app_widget.dart@@ -5,7 +5,6 @@ import 'package:appflowy_backend/log.dart';import 'package:appflowy_backend/protobuf/flowy-user/protobuf.dart';import 'package:flutter/material.dart';import 'package:flutter_bloc/flutter_bloc.dart';-import 'package:window_size/window_size.dart';import '../../user/application/user_settings_service.dart';import '../../workspace/application/appearance.dart';@@ -71,10 +70,6 @@ class ApplicationWidget extends StatelessWidget {@overrideWidget build(BuildContext context) {- const ratio = 1.73;- const minWidth = 600.0;- setWindowMinSize(const Size(minWidth, minWidth / ratio));-final cubit = AppearanceSettingsCubit(appearanceSetting)..readLocaleWhenAppLaunch(context);diff --git a/frontend/app_flowy/linux/flutter/generated_plugin_registrant.cc b/frontend/app_flowy/linux/flutter/generated_plugin_registrant.ccindex f05fb593f4..00a6f51213 100644--- a/frontend/app_flowy/linux/flutter/generated_plugin_registrant.cc+++ b/frontend/app_flowy/linux/flutter/generated_plugin_registrant.cc@@ -9,8 +9,9 @@#include <flowy_infra_ui/flowy_infra_u_i_plugin.h>#include <hotkey_manager/hotkey_manager_plugin.h>#include <rich_clipboard_linux/rich_clipboard_plugin.h>+#include <screen_retriever/screen_retriever_plugin.h>#include <url_launcher_linux/url_launcher_plugin.h>-#include <window_size/window_size_plugin.h>+#include <window_manager/window_manager_plugin.h>void fl_register_plugins(FlPluginRegistry* registry) {g_autoptr(FlPluginRegistrar) flowy_infra_ui_registrar =@@ -22,10 +23,13 @@ void fl_register_plugins(FlPluginRegistry* registry) {g_autoptr(FlPluginRegistrar) rich_clipboard_linux_registrar =fl_plugin_registry_get_registrar_for_plugin(registry, "RichClipboardPlugin");rich_clipboard_plugin_register_with_registrar(rich_clipboard_linux_registrar);+ g_autoptr(FlPluginRegistrar) screen_retriever_registrar =+ fl_plugin_registry_get_registrar_for_plugin(registry, "ScreenRetrieverPlugin");+ screen_retriever_plugin_register_with_registrar(screen_retriever_registrar);g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar =fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);- g_autoptr(FlPluginRegistrar) window_size_registrar =- fl_plugin_registry_get_registrar_for_plugin(registry, "WindowSizePlugin");- window_size_plugin_register_with_registrar(window_size_registrar);+ g_autoptr(FlPluginRegistrar) window_manager_registrar =+ fl_plugin_registry_get_registrar_for_plugin(registry, "WindowManagerPlugin");+ window_manager_plugin_register_with_registrar(window_manager_registrar);}diff --git a/frontend/app_flowy/linux/flutter/generated_plugins.cmake b/frontend/app_flowy/linux/flutter/generated_plugins.cmakeindex ce38abcac0..c32c09aba5 100644--- a/frontend/app_flowy/linux/flutter/generated_plugins.cmake+++ b/frontend/app_flowy/linux/flutter/generated_plugins.cmake@@ -6,8 +6,9 @@ list(APPEND FLUTTER_PLUGIN_LISTflowy_infra_uihotkey_managerrich_clipboard_linux+ screen_retrieverurl_launcher_linux- window_size+ window_manager)list(APPEND FLUTTER_FFI_PLUGIN_LISTdiff --git a/frontend/app_flowy/macos/Flutter/GeneratedPluginRegistrant.swift b/frontend/app_flowy/macos/Flutter/GeneratedPluginRegistrant.swiftindex 347f5d363a..a368da99f8 100644--- a/frontend/app_flowy/macos/Flutter/GeneratedPluginRegistrant.swift+++ b/frontend/app_flowy/macos/Flutter/GeneratedPluginRegistrant.swift@@ -11,11 +11,12 @@ import device_info_plus_macosimport flowy_infra_uiimport hotkey_managerimport package_info_plus_macos-import path_provider_macos+import path_provider_foundationimport rich_clipboard_macos-import shared_preferences_macos+import screen_retriever+import shared_preferences_foundationimport url_launcher_macos-import window_size+import window_managerfunc RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {AppFlowyBackendPlugin.register(with: registry.registrar(forPlugin: "AppFlowyBackendPlugin"))@@ -26,7 +27,8 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {FLTPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FLTPackageInfoPlusPlugin"))PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))RichClipboardPlugin.register(with: registry.registrar(forPlugin: "RichClipboardPlugin"))+ ScreenRetrieverPlugin.register(with: registry.registrar(forPlugin: "ScreenRetrieverPlugin"))SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))- WindowSizePlugin.register(with: registry.registrar(forPlugin: "WindowSizePlugin"))+ WindowManagerPlugin.register(with: registry.registrar(forPlugin: "WindowManagerPlugin"))}diff --git a/frontend/app_flowy/pubspec.lock b/frontend/app_flowy/pubspec.lockindex f2f8377f1a..2bc8544eff 100644--- a/frontend/app_flowy/pubspec.lock+++ b/frontend/app_flowy/pubspec.lock@@ -7,21 +7,21 @@ packages:name: _fe_analyzer_sharedurl: "https://pub.dartlang.org"source: hosted- version: "46.0.0"+ version: "47.0.0"analyzer:dependency: transitivedescription:name: analyzerurl: "https://pub.dartlang.org"source: hosted- version: "4.6.0"+ version: "4.7.0"animations:dependency: transitivedescription:name: animationsurl: "https://pub.dartlang.org"source: hosted- version: "2.0.3"+ version: "2.0.7"appflowy_backend:dependency: "direct main"description:@@ -72,7 +72,7 @@ packages:name: argsurl: "https://pub.dartlang.org"source: hosted- version: "2.3.1"+ version: "2.3.2"async:dependency: transitivedescription:@@ -93,7 +93,7 @@ packages:name: bloc_testurl: "https://pub.dartlang.org"source: hosted- version: "9.0.3"+ version: "9.1.0"boolean_selector:dependency: transitivedescription:@@ -107,14 +107,14 @@ packages:name: buildurl: "https://pub.dartlang.org"source: hosted- version: "2.3.0"+ version: "2.3.1"build_config:dependency: transitivedescription:name: build_configurl: "https://pub.dartlang.org"source: hosted- version: "1.1.0"+ version: "1.1.1"build_daemon:dependency: transitivedescription:@@ -128,21 +128,21 @@ packages:name: build_resolversurl: "https://pub.dartlang.org"source: hosted- version: "2.0.9"+ version: "2.0.10"build_runner:dependency: "direct dev"description:name: build_runnerurl: "https://pub.dartlang.org"source: hosted- version: "2.2.0"+ version: "2.3.0"build_runner_core:dependency: transitivedescription:name: build_runner_coreurl: "https://pub.dartlang.org"source: hosted- version: "7.2.3"+ version: "7.2.7"built_collection:dependency: transitivedescription:@@ -156,14 +156,14 @@ packages:name: built_valueurl: "https://pub.dartlang.org"source: hosted- version: "8.3.2"+ version: "8.4.3"calendar_view:dependency: "direct main"description:name: calendar_viewurl: "https://pub.dartlang.org"source: hosted- version: "1.0.1"+ version: "1.0.2"characters:dependency: transitivedescription:@@ -184,7 +184,7 @@ packages:name: checked_yamlurl: "https://pub.dartlang.org"source: hosted- version: "2.0.1"+ version: "2.0.2"clipboard:dependency: "direct main"description:@@ -205,7 +205,7 @@ packages:name: code_builderurl: "https://pub.dartlang.org"source: hosted- version: "4.1.0"+ version: "4.4.0"collection:dependency: "direct main"description:@@ -219,21 +219,21 @@ packages:name: connectivity_plusurl: "https://pub.dartlang.org"source: hosted- version: "2.3.6+1"+ version: "2.3.9"connectivity_plus_linux:dependency: transitivedescription:name: connectivity_plus_linuxurl: "https://pub.dartlang.org"source: hosted- version: "1.3.0"+ version: "1.3.1"connectivity_plus_macos:dependency: transitivedescription:name: connectivity_plus_macosurl: "https://pub.dartlang.org"source: hosted- version: "1.2.4"+ version: "1.2.6"connectivity_plus_platform_interface:dependency: "direct main"description:@@ -247,7 +247,7 @@ packages:name: connectivity_plus_weburl: "https://pub.dartlang.org"source: hosted- version: "1.2.3"+ version: "1.2.5"connectivity_plus_windows:dependency: transitivedescription:@@ -261,7 +261,7 @@ packages:name: converturl: "https://pub.dartlang.org"source: hosted- version: "3.0.1"+ version: "3.1.1"coverage:dependency: transitivedescription:@@ -282,21 +282,21 @@ packages:name: cssliburl: "https://pub.dartlang.org"source: hosted- version: "0.17.1"+ version: "0.17.2"cupertino_icons:dependency: "direct main"description:name: cupertino_iconsurl: "https://pub.dartlang.org"source: hosted- version: "1.0.4"+ version: "1.0.5"dart_style:dependency: transitivedescription:name: dart_styleurl: "https://pub.dartlang.org"source: hosted- version: "2.2.3"+ version: "2.2.4"dartz:dependency: "direct main"description:@@ -317,7 +317,7 @@ packages:name: device_info_plusurl: "https://pub.dartlang.org"source: hosted- version: "3.2.3"+ version: "3.2.4"device_info_plus_linux:dependency: transitivedescription:@@ -338,7 +338,7 @@ packages:name: device_info_plus_platform_interfaceurl: "https://pub.dartlang.org"source: hosted- version: "2.3.0+1"+ version: "2.6.1"device_info_plus_web:dependency: transitivedescription:@@ -380,7 +380,7 @@ packages:name: equatableurl: "https://pub.dartlang.org"source: hosted- version: "2.0.3"+ version: "2.0.5"expandable:dependency: "direct main"description:@@ -462,7 +462,7 @@ packages:name: flutter_blocurl: "https://pub.dartlang.org"source: hosted- version: "8.0.1"+ version: "8.1.1"flutter_colorpicker:dependency: "direct main"description:@@ -500,14 +500,14 @@ packages:name: flutter_plugin_android_lifecycleurl: "https://pub.dartlang.org"source: hosted- version: "2.0.6"+ version: "2.0.7"flutter_svg:dependency: transitivedescription:name: flutter_svgurl: "https://pub.dartlang.org"source: hosted- version: "1.1.4"+ version: "1.1.6"flutter_test:dependency: "direct dev"description: flutter@@ -524,21 +524,21 @@ packages:name: fluttertoasturl: "https://pub.dartlang.org"source: hosted- version: "8.0.9"+ version: "8.1.2"freezed:dependency: "direct dev"description:name: freezedurl: "https://pub.dartlang.org"source: hosted- version: "2.1.0+1"+ version: "2.2.0"freezed_annotation:dependency: "direct main"description:name: freezed_annotationurl: "https://pub.dartlang.org"source: hosted- version: "2.1.0"+ version: "2.2.0"frontend_server_client:dependency: transitivedescription:@@ -564,7 +564,7 @@ packages:name: globurl: "https://pub.dartlang.org"source: hosted- version: "2.0.2"+ version: "2.1.0"google_fonts:dependency: "direct main"description:@@ -578,7 +578,7 @@ packages:name: graphsurl: "https://pub.dartlang.org"source: hosted- version: "2.1.0"+ version: "2.2.0"highlight:dependency: transitivedescription:@@ -599,28 +599,28 @@ packages:name: htmlurl: "https://pub.dartlang.org"source: hosted- version: "0.15.0"+ version: "0.15.1"http:dependency: transitivedescription:name: httpurl: "https://pub.dartlang.org"source: hosted- version: "0.13.4"+ version: "0.13.5"http_multi_server:dependency: transitivedescription:name: http_multi_serverurl: "https://pub.dartlang.org"source: hosted- version: "3.2.0"+ version: "3.2.1"http_parser:dependency: transitivedescription:name: http_parserurl: "https://pub.dartlang.org"source: hosted- version: "4.0.1"+ version: "4.0.2"integration_test:dependency: "direct dev"description: flutter@@ -646,7 +646,7 @@ packages:name: iourl: "https://pub.dartlang.org"source: hosted- version: "1.0.3"+ version: "1.0.4"isolates:dependency: transitivedescription:@@ -667,7 +667,7 @@ packages:name: json_annotationurl: "https://pub.dartlang.org"source: hosted- version: "4.5.0"+ version: "4.8.0"linked_scroll_controller:dependency: "direct main"description:@@ -681,14 +681,14 @@ packages:name: linturl: "https://pub.dartlang.org"source: hosted- version: "1.8.2"+ version: "1.10.0"lints:dependency: transitivedescription:name: lintsurl: "https://pub.dartlang.org"source: hosted- version: "2.0.0"+ version: "2.0.1"loading_indicator:dependency: transitivedescription:@@ -709,7 +709,7 @@ packages:name: loggingurl: "https://pub.dartlang.org"source: hosted- version: "1.0.2"+ version: "1.1.1"markdown:dependency: transitivedescription:@@ -744,7 +744,7 @@ packages:name: mimeurl: "https://pub.dartlang.org"source: hosted- version: "1.0.2"+ version: "1.0.4"mocktail:dependency: transitivedescription:@@ -779,7 +779,7 @@ packages:name: package_configurl: "https://pub.dartlang.org"source: hosted- version: "2.0.2"+ version: "2.1.0"package_info_plus:dependency: "direct main"description:@@ -814,7 +814,7 @@ packages:name: package_info_plus_weburl: "https://pub.dartlang.org"source: hosted- version: "1.0.5"+ version: "1.0.6"package_info_plus_windows:dependency: transitivedescription:@@ -849,49 +849,42 @@ packages:name: path_providerurl: "https://pub.dartlang.org"source: hosted- version: "2.0.10"+ version: "2.0.12"path_provider_android:dependency: transitivedescription:name: path_provider_androidurl: "https://pub.dartlang.org"source: hosted- version: "2.0.14"- path_provider_ios:+ version: "2.0.22"+ path_provider_foundation:dependency: transitivedescription:- name: path_provider_ios+ name: path_provider_foundationurl: "https://pub.dartlang.org"source: hosted- version: "2.0.9"+ version: "2.1.1"path_provider_linux:dependency: transitivedescription:name: path_provider_linuxurl: "https://pub.dartlang.org"source: hosted- version: "2.1.6"- path_provider_macos:- dependency: transitive- description:- name: path_provider_macos- url: "https://pub.dartlang.org"- source: hosted- version: "2.0.6"+ version: "2.1.7"path_provider_platform_interface:dependency: transitivedescription:name: path_provider_platform_interfaceurl: "https://pub.dartlang.org"source: hosted- version: "2.0.4"+ version: "2.0.5"path_provider_windows:dependency: transitivedescription:name: path_provider_windowsurl: "https://pub.dartlang.org"source: hosted- version: "2.0.6"+ version: "2.0.7"percent_indicator:dependency: "direct main"description:@@ -905,7 +898,7 @@ packages:name: petitparserurl: "https://pub.dartlang.org"source: hosted- version: "5.0.0"+ version: "5.1.0"platform:dependency: transitivedescription:@@ -926,7 +919,7 @@ packages:name: poolurl: "https://pub.dartlang.org"source: hosted- version: "1.5.0"+ version: "1.5.1"process:dependency: transitivedescription:@@ -947,28 +940,21 @@ packages:name: providerurl: "https://pub.dartlang.org"source: hosted- version: "6.0.3"+ version: "6.0.5"pub_semver:dependency: transitivedescription:name: pub_semverurl: "https://pub.dartlang.org"source: hosted- version: "2.1.1"+ version: "2.1.3"pubspec_parse:dependency: transitivedescription:name: pubspec_parseurl: "https://pub.dartlang.org"source: hosted- version: "1.2.0"- quiver:- dependency: transitive- description:- name: quiver- url: "https://pub.dartlang.org"- source: hosted- version: "3.1.0"+ version: "1.2.1"reorderables:dependency: "direct main"description:@@ -1003,7 +989,7 @@ packages:name: rich_clipboard_linuxurl: "https://pub.dartlang.org"source: hosted- version: "1.0.0"+ version: "1.0.1"rich_clipboard_macos:dependency: transitivedescription:@@ -1024,56 +1010,56 @@ packages:name: rich_clipboard_weburl: "https://pub.dartlang.org"source: hosted- version: "1.0.0"+ version: "1.0.2"rich_clipboard_windows:dependency: transitivedescription:name: rich_clipboard_windowsurl: "https://pub.dartlang.org"source: hosted- version: "1.0.0"+ version: "1.0.1"+ screen_retriever:+ dependency: transitive+ description:+ name: screen_retriever+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.1.5"shared_preferences:dependency: "direct main"description:name: shared_preferencesurl: "https://pub.dartlang.org"source: hosted- version: "2.0.15"+ version: "2.0.17"shared_preferences_android:dependency: transitivedescription:name: shared_preferences_androidurl: "https://pub.dartlang.org"source: hosted- version: "2.0.12"- shared_preferences_ios:+ version: "2.0.15"+ shared_preferences_foundation:dependency: transitivedescription:- name: shared_preferences_ios+ name: shared_preferences_foundationurl: "https://pub.dartlang.org"source: hosted- version: "2.1.1"+ version: "2.1.3"shared_preferences_linux:dependency: transitivedescription:name: shared_preferences_linuxurl: "https://pub.dartlang.org"source: hosted- version: "2.1.1"- shared_preferences_macos:- dependency: transitive- description:- name: shared_preferences_macos- url: "https://pub.dartlang.org"- source: hosted- version: "2.0.4"+ version: "2.1.3"shared_preferences_platform_interface:dependency: transitivedescription:name: shared_preferences_platform_interfaceurl: "https://pub.dartlang.org"source: hosted- version: "2.0.0"+ version: "2.1.0"shared_preferences_web:dependency: transitivedescription:@@ -1087,35 +1073,35 @@ packages:name: shared_preferences_windowsurl: "https://pub.dartlang.org"source: hosted- version: "2.1.1"+ version: "2.1.3"shelf:dependency: transitivedescription:name: shelfurl: "https://pub.dartlang.org"source: hosted- version: "1.3.0"+ version: "1.4.0"shelf_packages_handler:dependency: transitivedescription:name: shelf_packages_handlerurl: "https://pub.dartlang.org"source: hosted- version: "3.0.0"+ version: "3.0.1"shelf_static:dependency: transitivedescription:name: shelf_staticurl: "https://pub.dartlang.org"source: hosted- version: "1.1.0"+ version: "1.1.1"shelf_web_socket:dependency: transitivedescription:name: shelf_web_socketurl: "https://pub.dartlang.org"source: hosted- version: "1.0.1"+ version: "1.0.3"simple_gesture_detector:dependency: transitivedescription:@@ -1141,21 +1127,21 @@ packages:name: source_genurl: "https://pub.dartlang.org"source: hosted- version: "1.2.2"+ version: "1.2.6"source_map_stack_trace:dependency: transitivedescription:name: source_map_stack_traceurl: "https://pub.dartlang.org"source: hosted- version: "2.1.0"+ version: "2.1.1"source_maps:dependency: transitivedescription:name: source_mapsurl: "https://pub.dartlang.org"source: hosted- version: "0.10.10"+ version: "0.10.11"source_span:dependency: transitivedescription:@@ -1183,7 +1169,7 @@ packages:name: stream_transformurl: "https://pub.dartlang.org"source: hosted- version: "2.0.0"+ version: "2.1.0"string_scanner:dependency: transitivedescription:@@ -1211,7 +1197,7 @@ packages:name: table_calendarurl: "https://pub.dartlang.org"source: hosted- version: "3.0.5"+ version: "3.0.8"term_glyph:dependency: transitivedescription:@@ -1260,21 +1246,21 @@ packages:name: timeurl: "https://pub.dartlang.org"source: hosted- version: "2.1.0"+ version: "2.1.3"timing:dependency: transitivedescription:name: timingurl: "https://pub.dartlang.org"source: hosted- version: "1.0.0"+ version: "1.0.1"tuple:dependency: "direct main"description:name: tupleurl: "https://pub.dartlang.org"source: hosted- version: "2.0.0"+ version: "2.0.1"typed_data:dependency: transitivedescription:@@ -1295,63 +1281,63 @@ packages:name: url_launcherurl: "https://pub.dartlang.org"source: hosted- version: "6.1.5"+ version: "6.1.8"url_launcher_android:dependency: transitivedescription:name: url_launcher_androidurl: "https://pub.dartlang.org"source: hosted- version: "6.0.17"+ version: "6.0.23"url_launcher_ios:dependency: transitivedescription:name: url_launcher_iosurl: "https://pub.dartlang.org"source: hosted- version: "6.0.17"+ version: "6.0.18"url_launcher_linux:dependency: transitivedescription:name: url_launcher_linuxurl: "https://pub.dartlang.org"source: hosted- version: "3.0.1"+ version: "3.0.2"url_launcher_macos:dependency: transitivedescription:name: url_launcher_macosurl: "https://pub.dartlang.org"source: hosted- version: "3.0.1"+ version: "3.0.2"url_launcher_platform_interface:dependency: transitivedescription:name: url_launcher_platform_interfaceurl: "https://pub.dartlang.org"source: hosted- version: "2.1.0"+ version: "2.1.1"url_launcher_web:dependency: transitivedescription:name: url_launcher_weburl: "https://pub.dartlang.org"source: hosted- version: "2.0.11"+ version: "2.0.14"url_launcher_windows:dependency: transitivedescription:name: url_launcher_windowsurl: "https://pub.dartlang.org"source: hosted- version: "3.0.1"+ version: "3.0.3"uuid:dependency: transitivedescription:name: uuidurl: "https://pub.dartlang.org"source: hosted- version: "3.0.6"+ version: "3.0.7"vector_math:dependency: transitivedescription:@@ -1372,14 +1358,14 @@ packages:name: watcherurl: "https://pub.dartlang.org"source: hosted- version: "1.0.1"+ version: "1.0.2"web_socket_channel:dependency: transitivedescription:name: web_socket_channelurl: "https://pub.dartlang.org"source: hosted- version: "2.2.0"+ version: "2.3.0"webdriver:dependency: transitivedescription:@@ -1393,7 +1379,7 @@ packages:name: webkit_inspection_protocolurl: "https://pub.dartlang.org"source: hosted- version: "1.1.0"+ version: "1.2.0"win32:dependency: transitivedescription:@@ -1401,22 +1387,20 @@ packages:url: "https://pub.dartlang.org"source: hostedversion: "2.6.1"- window_size:+ window_manager:dependency: "direct main"description:- path: "plugins/window_size"- ref: e48abe7c3e9ebfe0b81622167c5201d4e783bb81- resolved-ref: e48abe7c3e9ebfe0b81622167c5201d4e783bb81- url: "https://github.com/google/flutter-desktop-embedding.git"- source: git- version: "0.1.0"+ name: window_manager+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.3.0"xdg_directories:dependency: transitivedescription:name: xdg_directoriesurl: "https://pub.dartlang.org"source: hosted- version: "0.2.0+1"+ version: "0.2.0+3"xml:dependency: transitivedescription:diff --git a/frontend/app_flowy/pubspec.yaml b/frontend/app_flowy/pubspec.yamlindex 93f442e35a..92cecf49a8 100644--- a/frontend/app_flowy/pubspec.yaml+++ b/frontend/app_flowy/pubspec.yaml@@ -57,11 +57,6 @@ dependencies:dartz: ^0.10.1provider: ^6.0.1path_provider: ^2.0.1- window_size:- git:- url: https://github.com/google/flutter-desktop-embedding.git- path: plugins/window_size- ref: e48abe7c3e9ebfe0b81622167c5201d4e783bb81sized_context: ^1.0.0+1styled_widget: "^0.3.1"expandable: ^5.0.1@@ -97,6 +92,7 @@ dependencies:appflowy_editor_plugins:path: packages/appflowy_editor_pluginscalendar_view: ^1.0.1+ window_manager: ^0.3.0dev_dependencies:flutter_lints: ^2.0.1