File tree Expand file tree Collapse file tree 3 files changed +28
-15
lines changed
frontend/appflowy_flutter
lib/plugins/document/presentation/editor_plugins/copy_and_paste Expand file tree Collapse file tree 3 files changed +28
-15
lines changed Original file line number Diff line number Diff line change @@ -71,17 +71,21 @@ class ClipboardService {
7171 throw Exception ('unsupported image format: ${image .$1 }' );
7272 }
7373 }
74- await ClipboardWriter .instance.write ([item]);
74+ await SystemClipboard .instance? .write ([item]);
7575 }
7676
7777 Future <void > setPlainText (String text) async {
78- await ClipboardWriter .instance.write ([
78+ await SystemClipboard .instance? .write ([
7979 DataWriterItem ()..add (Formats .plainText (text)),
8080 ]);
8181 }
8282
8383 Future <ClipboardServiceData > getData () async {
84- final reader = await ClipboardReader .readClipboard ();
84+ final reader = await SystemClipboard .instance? .read ();
85+
86+ if (reader == null ) {
87+ return const ClipboardServiceData ();
88+ }
8589
8690 for (final item in reader.items) {
8791 final availableFormats = await item.rawReader! .getAvailableFormats ();
Original file line number Diff line number Diff line change @@ -950,18 +950,18 @@ packages:
950950 dependency: transitive
951951 description:
952952 name: irondash_engine_context
953- sha256: f66a1af95756d5fece5034d357853d0127e09b9e4ef58be1f022ca47e11c6f7e
953+ sha256: "8b8c58f2b6414b0db739b329ca08baf3b66d4fcfc3c315525ddac61639addb90"
954954 url: "https://pub.dev"
955955 source: hosted
956- version: "0.4 .0"
956+ version: "0.5 .0"
957957 irondash_message_channel:
958958 dependency: transitive
959959 description:
960960 name: irondash_message_channel
961- sha256: "500daa1fbe679f7d28a5258df3ff47dab6de352e680dc93c1ca9eae1555d8db5 "
961+ sha256: "131d64d97a3612bc3617aefc878f3e3a8e23e0ce18b3bba8e78cb1930befcec1 "
962962 url: "https://pub.dev"
963963 source: hosted
964- version: "0.3.1 "
964+ version: "0.5.0 "
965965 isolates:
966966 dependency: transitive
967967 description:
@@ -1703,6 +1703,14 @@ packages:
17031703 url: "https://pub.dev"
17041704 source: hosted
17051705 version: "1.10.0"
1706+ sprintf:
1707+ dependency: transitive
1708+ description:
1709+ name: sprintf
1710+ sha256: "1fc9ffe69d4df602376b52949af107d8f5703b77cda567c4d7d86a0693120f23"
1711+ url: "https://pub.dev"
1712+ source: hosted
1713+ version: "7.0.0"
17061714 sqflite:
17071715 dependency: transitive
17081716 description:
@@ -1796,18 +1804,18 @@ packages:
17961804 dependency: "direct main"
17971805 description:
17981806 name: super_clipboard
1799- sha256: "10774204b35b68f8dc5884ab620f83220d2c12620a8dcf4e6f39c94666f3549f "
1807+ sha256: "6281b19e4f4af4c4897c7b4117758164a21f63bbeee63da09c04d47823f8b228 "
18001808 url: "https://pub.dev"
18011809 source: hosted
1802- version: "0.7.0 "
1810+ version: "0.8.1 "
18031811 super_native_extensions:
18041812 dependency: transitive
18051813 description:
18061814 name: super_native_extensions
1807- sha256: b2fb454a90308f4f25e8ab928272490883d87a28d362307678c76989287cae43
1815+ sha256: d6d445a644856430cdca70c233213065c413bc3046a3b1e21858e19087d01645
18081816 url: "https://pub.dev"
18091817 source: hosted
1810- version: "0.7.0 "
1818+ version: "0.8.1 "
18111819 sync_http:
18121820 dependency: transitive
18131821 description:
@@ -2018,13 +2026,13 @@ packages:
20182026 source: git
20192027 version: "1.0.0"
20202028 uuid:
2021- dependency: transitive
2029+ dependency: "direct overridden"
20222030 description:
20232031 name: uuid
2024- sha256: "648e103079f7c64a36dc7d39369cabb358d377078a051d6ae2ad3aa539519313"
2032+ sha256: bb55f38968b9427ce5dcdb8aaaa41049282195e0cfa4cf48593572fa3d1f36bc
20252033 url: "https://pub.dev"
20262034 source: hosted
2027- version: "3.0.7 "
2035+ version: "4.3.1 "
20282036 value_layout_builder:
20292037 dependency: transitive
20302038 description:
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ dependencies:
107107 url_protocol :
108108 hive : ^2.2.3
109109 hive_flutter : ^1.1.0
110- super_clipboard : ^0.7.0
110+ super_clipboard : 0.8.1
111111 go_router : ^12.1.1
112112 string_validator : ^1.0.0
113113 unsplash_client : ^2.1.1
@@ -169,6 +169,7 @@ dependency_overrides:
169169 file : ^7.0.0
170170
171171 logger : ^2.0.0
172+ uuid : ^4.1.0
172173
173174 # The "flutter_lints" package below contains a set of recommended lints to
174175 # encourage good coding practices. The lint set provided by the package is
You can’t perform that action at this time.
0 commit comments