Skip to content

Commit 64ef086

Browse files
fix(clipboard): deprecated API + docs/ rename — v1.1.1
- Replace Share.shareXFiles() with SharePlus.instance.share() (share_plus v11+) - Rename docs/ → doc/ (pub.dev singular directory convention) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7813851 commit 64ef086

9 files changed

Lines changed: 41 additions & 9 deletions

File tree

packages/hyper_render_clipboard/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog — hyper_render_clipboard
22

3+
## [1.1.1] - 2026-03-23
4+
5+
### 🐛 Bug Fixes
6+
- **Static analysis**: Replaced deprecated `Share.shareXFiles()` with `SharePlus.instance.share()` — 0 analyzer issues
7+
- **Conventions**: Renamed `docs/``doc/` (pub.dev singular directory convention)
8+
39
## [1.1.0] - 2026-03-20
410

511
### ✨ New Features
File renamed without changes.
File renamed without changes.

packages/hyper_render_clipboard/docs/platform_setup.md renamed to packages/hyper_render_clipboard/doc/platform_setup.md

File renamed without changes.

packages/hyper_render_clipboard/docs/troubleshooting.md renamed to packages/hyper_render_clipboard/doc/troubleshooting.md

File renamed without changes.
File renamed without changes.

packages/hyper_render_clipboard/lib/src/super_clipboard_handler.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,11 @@ class SuperClipboardHandler implements ImageClipboardHandler {
166166
await file.writeAsBytes(bytes);
167167

168168
// Share using share_plus
169-
await share_plus.Share.shareXFiles(
170-
[share_plus.XFile(file.path)],
171-
text: text,
169+
await share_plus.SharePlus.instance.share(
170+
share_plus.ShareParams(
171+
files: [share_plus.XFile(file.path)],
172+
text: text,
173+
),
172174
);
173175
return true;
174176
} catch (e) {

packages/hyper_render_clipboard/pubspec.lock

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ packages:
5757
url: "https://pub.dev"
5858
source: hosted
5959
version: "3.0.7"
60+
csslib:
61+
dependency: transitive
62+
description:
63+
name: csslib
64+
sha256: "09bad715f418841f976c77db72d5398dc1253c21fb9c0c7f0b0b985860b2d58e"
65+
url: "https://pub.dev"
66+
source: hosted
67+
version: "1.0.2"
6068
device_info_plus:
6169
dependency: transitive
6270
description:
@@ -110,6 +118,14 @@ packages:
110118
description: flutter
111119
source: sdk
112120
version: "0.0.0"
121+
flutter_highlight:
122+
dependency: transitive
123+
description:
124+
name: flutter_highlight
125+
sha256: "7b96333867aa07e122e245c033b8ad622e4e3a42a1a2372cbb098a2541d8782c"
126+
url: "https://pub.dev"
127+
source: hosted
128+
version: "0.7.0"
113129
flutter_lints:
114130
dependency: "direct dev"
115131
description:
@@ -128,6 +144,14 @@ packages:
128144
description: flutter
129145
source: sdk
130146
version: "0.0.0"
147+
highlight:
148+
dependency: transitive
149+
description:
150+
name: highlight
151+
sha256: "5353a83ffe3e3eca7df0abfb72dcf3fa66cc56b953728e7113ad4ad88497cf21"
152+
url: "https://pub.dev"
153+
source: hosted
154+
version: "0.7.0"
131155
http:
132156
dependency: "direct main"
133157
description:
@@ -150,7 +174,7 @@ packages:
150174
path: "../hyper_render_core"
151175
relative: true
152176
source: path
153-
version: "1.1.0"
177+
version: "1.1.1"
154178
irondash_engine_context:
155179
dependency: transitive
156180
description:
@@ -315,18 +339,18 @@ packages:
315339
dependency: "direct main"
316340
description:
317341
name: share_plus
318-
sha256: "3ef39599b00059db0990ca2e30fca0a29d8b37aae924d60063f8e0184cf20900"
342+
sha256: "14c8860d4de93d3a7e53af51bff479598c4e999605290756bbbe45cf65b37840"
319343
url: "https://pub.dev"
320344
source: hosted
321-
version: "7.2.2"
345+
version: "12.0.1"
322346
share_plus_platform_interface:
323347
dependency: transitive
324348
description:
325349
name: share_plus_platform_interface
326-
sha256: "251eb156a8b5fa9ce033747d73535bf53911071f8d3b6f4f0b578505ce0d4496"
350+
sha256: "88023e53a13429bd65d8e85e11a9b484f49d4c190abbd96c7932b74d6927cc9a"
327351
url: "https://pub.dev"
328352
source: hosted
329-
version: "3.4.0"
353+
version: "6.1.0"
330354
sky_engine:
331355
dependency: transitive
332356
description: flutter

packages/hyper_render_clipboard/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
publish_to: none
22
name: hyper_render_clipboard
33
description: Image clipboard support for HyperRender using super_clipboard. Enables copying, saving, and sharing images.
4-
version: 1.1.0
4+
version: 1.1.1
55
homepage: https://github.com/brewkits/hyper_render
66
repository: https://github.com/brewkits/hyper_render/tree/main/packages/hyper_render_clipboard
77

0 commit comments

Comments
 (0)