Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@tvolkert
Copy link
Contributor

Description

It was easy to miss the reference to the top-level imageCache
property before. This calls out the property a little more
explicitly.

Tests

N/A

Checklist

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I signed the [CLA].
  • I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
  • I updated/added relevant documentation (doc comments with ///).
  • All existing and new tests are passing.
  • The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require Flutter developers to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (Please read [Handling breaking changes]). Replace this with a link to the e-mail where you asked for input on this proposed change.
  • No, this is not a breaking change.

It was easy to miss the reference to the top-level `imageCache`
property before.  This calls out the property a little more
explicitly.
@tvolkert tvolkert requested a review from goderbauer May 22, 2019 16:18
/// subclasses automatically handle the caching of images.
///
/// A shared instance of this cache is retained by [PaintingBinding] and can be
/// obtained via the [imageCache] top-level property.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be [PaintingBinding.imageCache] so it links directly there? As fas as I can tell, The ImageCache class does not have an imageCache property, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a top-level property -- https://api.flutter.dev/flutter/painting/imageCache.html

It was actually linked in the docs before too, but the way it was structured, I missed the link.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are of course right, I think I was confused by the mentioning of PaintingBinding in the previous sentence and assumed you must mean the imageCache property on that thing.

Maybe you could clarify that [imageCache] is a top-level property in the painting library (https://master-api.flutter.dev/flutter/painting/painting-library.html). But it's also fine as is as the link will actually go to the right thing...

Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

/// subclasses automatically handle the caching of images.
///
/// A shared instance of this cache is retained by [PaintingBinding] and can be
/// obtained via the [imageCache] top-level property.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are of course right, I think I was confused by the mentioning of PaintingBinding in the previous sentence and assumed you must mean the imageCache property on that thing.

Maybe you could clarify that [imageCache] is a top-level property in the painting library (https://master-api.flutter.dev/flutter/painting/painting-library.html). But it's also fine as is as the link will actually go to the right thing...

@goderbauer goderbauer added the framework flutter/packages/flutter repository. See also f: labels. label May 23, 2019
@tvolkert tvolkert merged commit bc7bc94 into flutter:master May 23, 2019
@tvolkert tvolkert deleted the docs branch May 23, 2019 17:29
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants