diff --git a/packages/flutter_image/CHANGELOG.md b/packages/flutter_image/CHANGELOG.md index 1beec0a7138c..f4819722ddac 100644 --- a/packages/flutter_image/CHANGELOG.md +++ b/packages/flutter_image/CHANGELOG.md @@ -1,7 +1,7 @@ -## NEXT +## 4.1.7 * Updates minimum supported SDK version to Flutter 3.7/Dart 2.19. -* Migrates deprecated `ImageProvider.load` to `ImageProvider.loadImage`. +* Migrates deprecated `ImageProvider.load` to `ImageProvider.loadBuffer`. ## 4.1.6 diff --git a/packages/flutter_image/lib/network.dart b/packages/flutter_image/lib/network.dart index a7730bf9e38a..a1cd3326434a 100644 --- a/packages/flutter_image/lib/network.dart +++ b/packages/flutter_image/lib/network.dart @@ -101,8 +101,8 @@ class NetworkImageWithRetry extends ImageProvider { @override ImageStreamCompleter loadBuffer( NetworkImageWithRetry key, - // TODO(cyanglaz): migrate to use the new APIs - // https://github.com/flutter/flutter/issues/105336 + // TODO(LongCatIsLooong): migrate to use new `loadImage` API. + // https://github.com/flutter/flutter/issues/132856 // ignore: deprecated_member_use DecoderBufferCallback decode, ) { diff --git a/packages/flutter_image/pubspec.yaml b/packages/flutter_image/pubspec.yaml index e9a907272ada..03192b048684 100644 --- a/packages/flutter_image/pubspec.yaml +++ b/packages/flutter_image/pubspec.yaml @@ -3,7 +3,7 @@ description: > Image utilities for Flutter: improved network providers, effects, etc. repository: https://github.com/flutter/packages/tree/main/packages/flutter_image issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+flutter_image%22 -version: 4.1.6 +version: 4.1.7 environment: sdk: ">=2.19.0 <4.0.0" diff --git a/packages/flutter_image/test/network_test.dart b/packages/flutter_image/test/network_test.dart index 9cfe84811ca7..6270e5339407 100644 --- a/packages/flutter_image/test/network_test.dart +++ b/packages/flutter_image/test/network_test.dart @@ -142,8 +142,8 @@ void assertThatImageLoadingFails( ) { final ImageStreamCompleter completer = subject.loadBuffer( subject, - // TODO(cyanglaz): migrate to use the new APIs - // https://github.com/flutter/flutter/issues/105336 + // TODO(LongCatIsLooong): migrate to use new `instantiateImageCodecWithSize` API. + // https://github.com/flutter/flutter/issues/132856 // ignore: deprecated_member_use PaintingBinding.instance.instantiateImageCodecFromBuffer, ); @@ -162,8 +162,8 @@ void assertThatImageLoadingSucceeds( ) { final ImageStreamCompleter completer = subject.loadBuffer( subject, - // TODO(cyanglaz): migrate to use the new APIs - // https://github.com/flutter/flutter/issues/105336 + // TODO(LongCatIsLooong): migrate to use new `instantiateImageCodecWithSize` API. + // https://github.com/flutter/flutter/issues/132856 // ignore: deprecated_member_use PaintingBinding.instance.instantiateImageCodecFromBuffer, );