Use named Image constructors (#5129)

Some folks didn't realize these existed and asked us to add them. By
using them in examples, hopefully folks will discover them more easily.
This commit is contained in:
Adam Barth
2016-07-29 08:27:28 -07:00
committed by GitHub
parent 408e4240d0
commit 534097ffb6
13 changed files with 40 additions and 42 deletions

View File

@@ -222,8 +222,8 @@ new ScrollableGrid(
footer: new GridTileBar(
title: new Text(url)
),
child: new Image(
image: new NetworkImage(url),
child: new Image.fromNetwork(
src: url,
fit: ImageFit.cover
)
);