Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Fix Dart 2 type error in package_info #394

Merged
merged 1 commit into from
Feb 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/package_info/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.1

* Fix Dart 2 type error.

## 0.2.0

* **Breaking change**. Introduced class `PackageInfo` in place of individual functions.
Expand Down
2 changes: 1 addition & 1 deletion packages/package_info/lib/package_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class PackageInfo {
final Completer<PackageInfo> completer = new Completer<PackageInfo>();

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

completer.complete(new PackageInfo(
packageName: map["packageName"],
Expand Down
2 changes: 1 addition & 1 deletion packages/package_info/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: package_info
description: Flutter plugin for querying information about the application
package, such as CFBundleVersion on iOS or versionCode on Android.
version: 0.2.0
version: 0.2.1
author: Flutter Team <flutter-dev@googlegroups.com>
homepage: https://github.com/flutter/plugins/tree/master/packages/package_info

Expand Down