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:
@@ -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'),
|
||||
]
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user