You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Example code for adding an image doesn't actually show the image #1826
After pasting the example code from the "Loading images" section into my app, the app didn't actually show an image (I think I now understand why that is). It might be more useful/satisfying to include code in the example that actually shows the image when copied to get people started quicker. I ended up using new Image.asset('assets/sunset.jpg') to verify that the image would actually load in my app.
Perhaps if the assets-and-images section pointed at a small working "sample app" in addition to providing code fragments, you'd have had less trouble (flutter/flutter#9912).
Talking w/ @goderbauer root cause is the parent of the Image widget needs to actually have a size in order to display the image. So the code snippet for the build() method needs to include a parent-with-size.
Activity
Replaced example code with example code that is less fraught with
Replaced example code with example code that is less fraught with (#3119
micpap25 commentedon Sep 1, 2021
Can this be closed? I'm pretty sure the merged PR fixes this.