Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
3ed10562
Unverified
Commit
3ed10562
authored
Aug 07, 2019
by
liyuqian
Committed by
GitHub
Aug 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doc: Image.memory only accepts compressed format (#37790)
See
https://github.com/flutter/flutter/issues/37423
parent
b39e315e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
image.dart
packages/flutter/lib/src/widgets/image.dart
+4
-0
No files found.
packages/flutter/lib/src/widgets/image.dart
View file @
3ed10562
...
@@ -533,6 +533,10 @@ class Image extends StatefulWidget {
...
@@ -533,6 +533,10 @@ class Image extends StatefulWidget {
///
///
/// The [bytes], [scale], and [repeat] arguments must not be null.
/// 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
/// Either the [width] and [height] arguments should be specified, or the
/// widget should be placed in a context that sets tight layout constraints.
/// widget should be placed in a context that sets tight layout constraints.
/// Otherwise, the image dimensions will change as the image is loaded, which
/// Otherwise, the image dimensions will change as the image is loaded, which
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment