Skip to content

Commit 287af0f

Browse files
[ios_platform_images] ignore DecoderCallback deprecation (flutter#5806)
1 parent 2ec0a97 commit 287af0f

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

packages/ios_platform_images/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.2.0+9
2+
3+
* Ignores the warning for the upcoming deprecation of `DecoderCallback`.
4+
15
## 0.2.0+8
26

37
* Ignores the warning for the upcoming deprecation of `ImageProvider.load` in the correct line.

packages/ios_platform_images/lib/ios_platform_images.dart

+2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class _FutureMemoryImage extends ImageProvider<_FutureMemoryImage> {
6666
/// See [ImageProvider.load].
6767
// TODO(jmagman): Implement the new API once it lands, https://github.com/flutter/flutter/issues/103556
6868
@override
69+
// ignore: deprecated_member_use
6970
ImageStreamCompleter load(_FutureMemoryImage key, DecoderCallback decode) {
7071
return _FutureImageStreamCompleter(
7172
codec: _loadAsync(key, decode),
@@ -75,6 +76,7 @@ class _FutureMemoryImage extends ImageProvider<_FutureMemoryImage> {
7576

7677
Future<ui.Codec> _loadAsync(
7778
_FutureMemoryImage key,
79+
// ignore: deprecated_member_use
7880
DecoderCallback decode,
7981
) async {
8082
assert(key == this);

packages/ios_platform_images/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: ios_platform_images
22
description: A plugin to share images between Flutter and iOS in add-to-app setups.
33
repository: https://github.com/flutter/plugins/tree/main/packages/ios_platform_images
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+ios_platform_images%22
5-
version: 0.2.0+8
5+
version: 0.2.0+9
66

77
environment:
88
sdk: ">=2.14.0 <3.0.0"

0 commit comments

Comments
 (0)