Skip to content

Commit 42ee82b

Browse files
committed
implemented: image_from_network example
updated: anim gif
1 parent 74de420 commit 42ee82b

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed
4.18 KB
Loading

image_from_network/lib/main.dart

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,18 @@ class MyApp extends StatelessWidget {
1111
title: new Text("Image from Network"),
1212
),
1313
body: new Container(
14-
child: new Center(child: new Text("Hello World")),
15-
),
14+
child: new Column(
15+
children: <Widget>[
16+
// Load image from network
17+
new Image.network(
18+
'https://github.com/nisrulz/flutter-examples/raw/develop/image_from_network/img/flutter_logo.png'),
19+
// even loads gifs
20+
// Gif image from Giphy, all copyrights are owned by Giphy
21+
new Image.network(
22+
'https://github.com/nisrulz/flutter-examples/raw/develop/image_from_network/img/loop_anim.gif'),
23+
],
24+
)),
1625
),
1726
);
1827
}
19-
}
28+
}

0 commit comments

Comments
 (0)