Unverified Commit 3ed10562 authored by liyuqian's avatar liyuqian Committed by GitHub

Doc: Image.memory only accepts compressed format (#37790)

See https://github.com/flutter/flutter/issues/37423
parent b39e315e
......@@ -533,6 +533,10 @@ class Image extends StatefulWidget {
///
/// The [bytes], [scale], and [repeat] arguments must not be null.
///
/// This only accepts compressed image formats (e.g. PNG). Uncompressed
/// formats like rawRgba (the default format of [ui.Image.toByteData]) will
/// lead to exceptions.
///
/// Either the [width] and [height] arguments should be specified, or the
/// widget should be placed in a context that sets tight layout constraints.
/// Otherwise, the image dimensions will change as the image is loaded, which
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment