Skip to content

ImageProvider hierarchy has very confused documentation #130524

@Hixie

Description

@Hixie

DecoderCallback has API docs saying to use ImageProvider.loadBuffer but the deprecated annotation says to use ImageProvider.loadImage. ImageProvider.load has API docs saying to loadBuffer is preferred but an annotation that says to use loadImage. loadBuffer is itself deprecated and says to use loadImage. On the other hand, AssetBundleImageProvider implements all three. The documentation for ImageProvider itself says that we use loadBuffer.

cc @tvolkert @jonahwilliams

Metadata

Metadata

Assignees

Labels

d: api docsIssues with https://api.flutter.dev/team-frameworkOwned by Framework team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions