Skip to content

Commit b7c4ae2

Browse files
authored
Fix Dart 2 type error in share plugin (flutter#393)
1 parent 3df7f1b commit b7c4ae2

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

packages/share/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.3.2
2+
3+
* Fixed Dart 2 type error.
4+
15
## 0.3.1
26

37
* Simplified and upgraded Android project template to Android SDK 27.

packages/share/lib/share.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const MethodChannel _kChannel = const MethodChannel('plugins.flutter.io/share');
1616
///
1717
/// May throw [PlatformException] or [FormatException]
1818
/// from [MethodChannel].
19-
Future<Null> share(String text) {
19+
Future<void> share(String text) {
2020
assert(text != null && text.isNotEmpty);
2121
return _kChannel.invokeMethod('share', text);
2222
}

packages/share/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: share
22
description: Flutter plugin for sharing content via the platform share UI, using
33
the ACTION_SEND intent on Android and UIActivityViewController on iOS.
4-
version: 0.3.1
4+
version: 0.3.2
55
author: Flutter Team <flutter-dev@googlegroups.com>
66
homepage: https://github.com/flutter/plugins/tree/master/packages/share
77

0 commit comments

Comments
 (0)