From 923cb0d65680c9ed9b1421d67539e75269535778 Mon Sep 17 00:00:00 2001 From: Konstantin Shcheglov Date: Wed, 12 Jan 2022 13:37:56 -0800 Subject: [PATCH 1/2] Fix UNUSED_ELEMENT_PARAMETER for field formal initializers. --- packages/ios_platform_images/lib/ios_platform_images.dart | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/ios_platform_images/lib/ios_platform_images.dart b/packages/ios_platform_images/lib/ios_platform_images.dart index e9bc0b342239..856562c7598f 100644 --- a/packages/ios_platform_images/lib/ios_platform_images.dart +++ b/packages/ios_platform_images/lib/ios_platform_images.dart @@ -16,21 +16,18 @@ class _FutureImageStreamCompleter extends ImageStreamCompleter { _FutureImageStreamCompleter({ required Future codec, required this.futureScale, - this.informationCollector, }) { codec.then(_onCodecReady, onError: (dynamic error, StackTrace stack) { reportError( context: ErrorDescription('resolving a single-frame image stream'), exception: error, stack: stack, - informationCollector: informationCollector, silent: true, ); }); } final Future futureScale; - final InformationCollector? informationCollector; Future _onCodecReady(ui.Codec codec) async { try { @@ -42,7 +39,6 @@ class _FutureImageStreamCompleter extends ImageStreamCompleter { context: ErrorDescription('resolving an image frame'), exception: exception, stack: stack, - informationCollector: this.informationCollector, silent: true, ); } From 82981c777d6107ed3807a2ac7548814e3c96f133 Mon Sep 17 00:00:00 2001 From: Konstantin Shcheglov Date: Wed, 12 Jan 2022 13:55:46 -0800 Subject: [PATCH 2/2] Update pubspec.yaml and CHANGELOG.md --- packages/ios_platform_images/CHANGELOG.md | 4 ++++ packages/ios_platform_images/pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/ios_platform_images/CHANGELOG.md b/packages/ios_platform_images/CHANGELOG.md index 2ebd1d1d2d7c..443be3f7bfde 100644 --- a/packages/ios_platform_images/CHANGELOG.md +++ b/packages/ios_platform_images/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.2.0+3 + +* Internal fix for unused field formal parameter. + ## 0.2.0+2 * Update minimum Flutter SDK to 2.5 and iOS deployment target to 9.0. diff --git a/packages/ios_platform_images/pubspec.yaml b/packages/ios_platform_images/pubspec.yaml index adc8dc08011e..010bd41a4767 100644 --- a/packages/ios_platform_images/pubspec.yaml +++ b/packages/ios_platform_images/pubspec.yaml @@ -2,7 +2,7 @@ name: ios_platform_images description: A plugin to share images between Flutter and iOS in add-to-app setups. repository: https://github.com/flutter/plugins/tree/master/packages/ios_platform_images issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+ios_platform_images%22 -version: 0.2.0+2 +version: 0.2.0+3 environment: sdk: ">=2.14.0 <3.0.0"