From 39d660be78f921c6682742952196e0c9ecc6d63b Mon Sep 17 00:00:00 2001 From: Efthymis Sarmpanis Date: Fri, 3 May 2019 18:29:02 +0300 Subject: [PATCH] Extract TODO comment from Image.asset dardoc (#31903) --- packages/flutter/lib/src/widgets/image.dart | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/flutter/lib/src/widgets/image.dart b/packages/flutter/lib/src/widgets/image.dart index caf02af3a9..4bfbb6bd5d 100644 --- a/packages/flutter/lib/src/widgets/image.dart +++ b/packages/flutter/lib/src/widgets/image.dart @@ -263,6 +263,16 @@ class Image extends StatefulWidget { assert(matchTextDirection != null), super(key: key); + + // TODO(ianh): Implement the following (see ../services/image_resolution.dart): + // + // * If [width] and [height] are both specified, and [scale] is not, then + // size-aware asset resolution will be attempted also, with the given + // dimensions interpreted as logical pixels. + // + // * If the images have platform, locale, or directionality variants, the + // current platform, locale, and directionality are taken into account + // during asset resolution as well. /// Creates a widget that displays an [ImageStream] obtained from an asset /// bundle. The key for the image is given by the `name` argument. /// @@ -281,16 +291,6 @@ class Image extends StatefulWidget { /// density, the exact path must be provided (e.g. `images/2x/cat.png`). /// /// If [excludeFromSemantics] is true, then [semanticLabel] will be ignored. - // - // TODO(ianh): Implement the following (see ../services/image_resolution.dart): - // /// - // /// * If [width] and [height] are both specified, and [scale] is not, then - // /// size-aware asset resolution will be attempted also, with the given - // /// dimensions interpreted as logical pixels. - // /// - // /// * If the images have platform, locale, or directionality variants, the - // /// current platform, locale, and directionality are taken into account - // /// during asset resolution as well. /// /// The [name] and [repeat] arguments must not be null. ///