Minor clarifications in docs (#11171)

This commit is contained in:
Todd Volkert 2017-07-12 11:48:27 -07:00 committed by GitHub
parent 39d2deb4a7
commit be9f99a8b7
2 changed files with 4 additions and 2 deletions

View File

@ -388,7 +388,7 @@ abstract class AssetBundleImageProvider extends ImageProvider<AssetBundleImageKe
/// Fetches the given URL from the network, associating it with the given scale.
///
/// Cache headers from the server are ignored.
/// The image will be cached regardless of cache headers from the server.
// TODO(ianh): Find some way to honour cache headers to the extent that when the
// last reference to an image is released, we proactively evict the image from
// our cache if the headers describe the image as having expired at that point.

View File

@ -94,7 +94,9 @@ class NotificationListener<T extends Notification> extends StatelessWidget {
this.onNotification,
}) : super(key: key);
/// The widget below this widget in the tree.
/// The widget directly below this widget in the tree.
///
/// This is not necessarily the widget that dispatched the notification.
final Widget child;
/// Called when a notification of the appropriate type arrives at this