Skip to content

Commit f8cb02f

Browse files
rajveermalviyagnprice
authored andcommitted
deps: Update share_plus to 11.0.0, from 10.1.4
Changelog: https://pub.dev/packages/share_plus/changelog#1100 Just one change, a fairly large refactor: fluttercommunity/plus_plugins@0a19d4601 So, this commit also includes the switch to use the newer API.
1 parent 4524021 commit f8cb02f

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

lib/widgets/action_sheet.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,8 @@ class ShareButton extends MessageActionSheetMenuItemButton {
939939
// https://pub.dev/packages/share_plus#ipad
940940
// Perhaps a wart in the API; discussion:
941941
// https://github.com/zulip/zulip-flutter/pull/12#discussion_r1130146231
942-
final result = await Share.share(rawContent);
942+
final result =
943+
await SharePlus.instance.share(ShareParams(text: rawContent));
943944

944945
switch (result.status) {
945946
// The plugin isn't very helpful: "The status can not be determined".

pubspec.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -906,18 +906,18 @@ packages:
906906
dependency: "direct main"
907907
description:
908908
name: share_plus
909-
sha256: fce43200aa03ea87b91ce4c3ac79f0cecd52e2a7a56c7a4185023c271fbfa6da
909+
sha256: b2961506569e28948d75ec346c28775bb111986bb69dc6a20754a457e3d97fa0
910910
url: "https://pub.dev"
911911
source: hosted
912-
version: "10.1.4"
912+
version: "11.0.0"
913913
share_plus_platform_interface:
914914
dependency: "direct main"
915915
description:
916916
name: share_plus_platform_interface
917-
sha256: cc012a23fc2d479854e6c80150696c4a5f5bb62cb89af4de1c505cf78d0a5d0b
917+
sha256: "1032d392bc5d2095a77447a805aa3f804d2ae6a4d5eef5e6ebb3bd94c1bc19ef"
918918
url: "https://pub.dev"
919919
source: hosted
920-
version: "5.0.2"
920+
version: "6.0.0"
921921
shelf:
922922
dependency: transitive
923923
description:

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ dependencies:
5555
package_info_plus: ^8.0.0
5656
path: ^1.8.3
5757
path_provider: ^2.0.13
58-
share_plus: ^10.1.3
59-
share_plus_platform_interface: ^5.0.2
58+
share_plus: ^11.0.0
59+
share_plus_platform_interface: ^6.0.0
6060
sqlite3: ^2.4.0
6161
sqlite3_flutter_libs: ^0.5.13
6262
url_launcher: ^6.1.11

0 commit comments

Comments
 (0)