-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Remove deprecated ImageProvider methods
#4725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 7 commits
9267f3b
a0500a0
1193fc8
0bdaf23
3a716c3
7666032
8492fd9
286157c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -140,12 +140,12 @@ void assertThatImageLoadingFails( | |
| NetworkImageWithRetry subject, | ||
| List<FlutterErrorDetails> errorLog, | ||
| ) { | ||
| final ImageStreamCompleter completer = subject.load( | ||
| final ImageStreamCompleter completer = subject.loadBuffer( | ||
| subject, | ||
| // TODO(cyanglaz): migrate to use the new APIs | ||
| // https://github.com/flutter/flutter/issues/105336 | ||
| // ignore: deprecated_member_use | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This replacement is also deprecated?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah the up-to-date APIs are only available in >v3.7.0 unfortunately. Included in the new issue. |
||
| PaintingBinding.instance.instantiateImageCodec, | ||
| PaintingBinding.instance.instantiateImageCodecFromBuffer, | ||
| ); | ||
| completer.addListener(ImageStreamListener( | ||
| (ImageInfo image, bool synchronousCall) {}, | ||
|
|
@@ -160,12 +160,12 @@ void assertThatImageLoadingFails( | |
| void assertThatImageLoadingSucceeds( | ||
| NetworkImageWithRetry subject, | ||
| ) { | ||
| final ImageStreamCompleter completer = subject.load( | ||
| final ImageStreamCompleter completer = subject.loadBuffer( | ||
| subject, | ||
| // TODO(cyanglaz): migrate to use the new APIs | ||
| // https://github.com/flutter/flutter/issues/105336 | ||
| // ignore: deprecated_member_use | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same question here. |
||
| PaintingBinding.instance.instantiateImageCodec, | ||
| PaintingBinding.instance.instantiateImageCodecFromBuffer, | ||
| ); | ||
| completer.addListener(ImageStreamListener( | ||
| expectAsync2((ImageInfo image, bool synchronousCall) { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This issue is about APIs deprecated a year ago, so shouldn't still be applicable to new code. If there's a new migration needed, there should be a new issue describing it clearly (the old API, the new API, and the version it's in).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created flutter/flutter#132856