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