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
chore: upgrade flutter dependencies (#4256)
Lucas.Xu84b8b9258233
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/copy_and_paste/clipboard_service.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/copy_and_paste/clipboard_service.dartindex a30cf4451f..e188e6b29f 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/copy_and_paste/clipboard_service.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/copy_and_paste/clipboard_service.dart@@ -71,17 +71,21 @@ class ClipboardService {throw Exception('unsupported image format: ${image.$1}');}}- await ClipboardWriter.instance.write([item]);+ await SystemClipboard.instance?.write([item]);}Future<void> setPlainText(String text) async {- await ClipboardWriter.instance.write([+ await SystemClipboard.instance?.write([DataWriterItem()..add(Formats.plainText(text)),]);}Future<ClipboardServiceData> getData() async {- final reader = await ClipboardReader.readClipboard();+ final reader = await SystemClipboard.instance?.read();++ if (reader == null) {+ return const ClipboardServiceData();+ }for (final item in reader.items) {final availableFormats = await item.rawReader!.getAvailableFormats();diff --git a/frontend/appflowy_flutter/pubspec.lock b/frontend/appflowy_flutter/pubspec.lockindex 25df895f1d..abf7190a6c 100644--- a/frontend/appflowy_flutter/pubspec.lock+++ b/frontend/appflowy_flutter/pubspec.lock@@ -950,18 +950,18 @@ packages:dependency: transitivedescription:name: irondash_engine_context- sha256: f66a1af95756d5fece5034d357853d0127e09b9e4ef58be1f022ca47e11c6f7e+ sha256: "8b8c58f2b6414b0db739b329ca08baf3b66d4fcfc3c315525ddac61639addb90"url: "https://pub.dev"source: hosted- version: "0.4.0"+ version: "0.5.0"irondash_message_channel:dependency: transitivedescription:name: irondash_message_channel- sha256: "500daa1fbe679f7d28a5258df3ff47dab6de352e680dc93c1ca9eae1555d8db5"+ sha256: "131d64d97a3612bc3617aefc878f3e3a8e23e0ce18b3bba8e78cb1930befcec1"url: "https://pub.dev"source: hosted- version: "0.3.1"+ version: "0.5.0"isolates:dependency: transitivedescription:@@ -1703,6 +1703,14 @@ packages:url: "https://pub.dev"source: hostedversion: "1.10.0"+ sprintf:+ dependency: transitive+ description:+ name: sprintf+ sha256: "1fc9ffe69d4df602376b52949af107d8f5703b77cda567c4d7d86a0693120f23"+ url: "https://pub.dev"+ source: hosted+ version: "7.0.0"sqflite:dependency: transitivedescription:@@ -1796,18 +1804,18 @@ packages:dependency: "direct main"description:name: super_clipboard- sha256: "10774204b35b68f8dc5884ab620f83220d2c12620a8dcf4e6f39c94666f3549f"+ sha256: "6281b19e4f4af4c4897c7b4117758164a21f63bbeee63da09c04d47823f8b228"url: "https://pub.dev"source: hosted- version: "0.7.0"+ version: "0.8.1"super_native_extensions:dependency: transitivedescription:name: super_native_extensions- sha256: b2fb454a90308f4f25e8ab928272490883d87a28d362307678c76989287cae43+ sha256: d6d445a644856430cdca70c233213065c413bc3046a3b1e21858e19087d01645url: "https://pub.dev"source: hosted- version: "0.7.0"+ version: "0.8.1"sync_http:dependency: transitivedescription:@@ -2018,13 +2026,13 @@ packages:source: gitversion: "1.0.0"uuid:- dependency: transitive+ dependency: "direct overridden"description:name: uuid- sha256: "648e103079f7c64a36dc7d39369cabb358d377078a051d6ae2ad3aa539519313"+ sha256: bb55f38968b9427ce5dcdb8aaaa41049282195e0cfa4cf48593572fa3d1f36bcurl: "https://pub.dev"source: hosted- version: "3.0.7"+ version: "4.3.1"value_layout_builder:dependency: transitivedescription:diff --git a/frontend/appflowy_flutter/pubspec.yaml b/frontend/appflowy_flutter/pubspec.yamlindex 0a184a4051..f1b8f1f95d 100644--- a/frontend/appflowy_flutter/pubspec.yaml+++ b/frontend/appflowy_flutter/pubspec.yaml@@ -107,7 +107,7 @@ dependencies:url_protocol:hive: ^2.2.3hive_flutter: ^1.1.0- super_clipboard: ^0.7.0+ super_clipboard: 0.8.1go_router: ^12.1.1string_validator: ^1.0.0unsplash_client: ^2.1.1@@ -169,6 +169,7 @@ dependency_overrides:file: ^7.0.0logger: ^2.0.0+ uuid: ^4.1.0# The "flutter_lints" package below contains a set of recommended lints to# encourage good coding practices. The lint set provided by the package is