Skip to content

Commit 77077f1

Browse files
authored
Fix Dart 2 type error in package_info (flutter#394)
1 parent b7c4ae2 commit 77077f1

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

packages/package_info/CHANGELOG.md

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

37
* **Breaking change**. Introduced class `PackageInfo` in place of individual functions.

packages/package_info/lib/package_info.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class PackageInfo {
3232
final Completer<PackageInfo> completer = new Completer<PackageInfo>();
3333

3434
_kChannel.invokeMethod('getAll').then((dynamic result) {
35-
final Map<String, String> map = result;
35+
final Map<dynamic, dynamic> map = result;
3636

3737
completer.complete(new PackageInfo(
3838
packageName: map["packageName"],

packages/package_info/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: package_info
22
description: Flutter plugin for querying information about the application
33
package, such as CFBundleVersion on iOS or versionCode on Android.
4-
version: 0.2.0
4+
version: 0.2.1
55
author: Flutter Team <flutter-dev@googlegroups.com>
66
homepage: https://github.com/flutter/plugins/tree/master/packages/package_info
77

0 commit comments

Comments
 (0)