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

@@ -51,9 +51,7 @@ void attachWidgetTreeToRenderTree(RenderProxyBox container) {
new RaisedButton(
child: new Row(
children: <Widget>[
new Image(
image: new NetworkImage('http://flutter.io/favicon.ico')
),
new Image.fromNetwork(src: 'http://flutter.io/favicon.ico'),
new Text('PRESS ME'),
]
),