Skip to content

Commit

Permalink
Ignore deprecated member use on DecoderBufferCallback (flutter#7014)
Browse files Browse the repository at this point in the history
* Ignore deprecated member use on DecoderBufferCallback

In preparation for flutter/flutter#118966

* Bump version
  • Loading branch information
tvolkert authored Jan 25, 2023
1 parent a6ff238 commit acd8d51
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/ios_platform_images/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## NEXT
## 0.2.1+1

* Updates minimum Flutter version to 3.0.
* Add lint ignore comments

## 0.2.1

Expand Down
6 changes: 4 additions & 2 deletions packages/ios_platform_images/lib/ios_platform_images.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ class _FutureMemoryImage extends ImageProvider<_FutureMemoryImage> {

@override
ImageStreamCompleter loadBuffer(
_FutureMemoryImage key, DecoderBufferCallback decode) {
_FutureMemoryImage key,
DecoderBufferCallback decode, // ignore: deprecated_member_use
) {
return _FutureImageStreamCompleter(
codec: _loadAsync(key, decode),
futureScale: _futureScale,
Expand All @@ -72,7 +74,7 @@ class _FutureMemoryImage extends ImageProvider<_FutureMemoryImage> {

Future<ui.Codec> _loadAsync(
_FutureMemoryImage key,
DecoderBufferCallback decode,
DecoderBufferCallback decode, // ignore: deprecated_member_use
) {
assert(key == this);
return _futureBytes.then(ui.ImmutableBuffer.fromUint8List).then(decode);
Expand Down
2 changes: 1 addition & 1 deletion packages/ios_platform_images/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/main/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.1
version: 0.2.1+1

environment:
sdk: ">=2.14.0 <3.0.0"
Expand Down

0 comments on commit acd8d51

Please sign in to comment.