Add more flexible image API (#118966)
This updates the framework to provide higher level wrappers around ui.instantiateImageCodecWithSize(). Functionally, this doesn't change anything (other than deprecating the older loadBuffer() method in favor of loadImage()), but it sets the stage for a simpler change that will allow us to provide a more flexible way to load sized images. #118543
This commit is contained in:
@@ -58,7 +58,7 @@ class DelayedBase64Image extends ImageProvider<int> {
|
||||
}
|
||||
|
||||
@override
|
||||
ImageStreamCompleter loadBuffer(int key, DecoderBufferCallback decode) {
|
||||
ImageStreamCompleter loadImage(int key, ImageDecoderCallback decode) {
|
||||
return MultiFrameImageStreamCompleter(
|
||||
codec: Future<ui.Codec>.delayed(
|
||||
delay,
|
||||
|
||||
Reference in New Issue
Block a user