Skip to content

[flutter_image] Replace deprecated ImageProvider.loadBuffer, DecoderBufferCallback, and instantiateImageCodecFromBuffer #132856

@LongCatIsLooong

Description

@LongCatIsLooong

This replaces #105336

The ImageProvider.loadImage API isn't available in the min version the flutter_image package currently supports. The migration will be unblocked once the min Flutter version is greater than v3.7.0-1.4.pre.

PaintingBinding.instantiateImageCodecFromBuffer should also be migrated to PaintingBinding.instantiateImageCodecWithSize in the new version.

Metadata

Metadata

Labels

P2Important issues not at the top of the work listc: tech-debtTechnical debt, code quality, testing, etc.p: deprecated apiUse of a deprecated Dart API in flutter/packages that needs to be updatedp: flutter_imageThe flutter_image pluginpackageflutter/packages repository. See also p: labels.r: fixedIssue is closed as already fixed in a newer versionteam-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions