mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-05-20 06:26:21 +08:00
implemented: image_from_network example
updated: anim gif
This commit is contained in:
BIN
image_from_network/img/loop_anim.jpg
Normal file
BIN
image_from_network/img/loop_anim.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
@ -11,9 +11,18 @@ class MyApp extends StatelessWidget {
|
|||||||
title: new Text("Image from Network"),
|
title: new Text("Image from Network"),
|
||||||
),
|
),
|
||||||
body: new Container(
|
body: new Container(
|
||||||
child: new Center(child: new Text("Hello World")),
|
child: new Column(
|
||||||
),
|
children: <Widget>[
|
||||||
|
// Load image from network
|
||||||
|
new Image.network(
|
||||||
|
'https://github.com/nisrulz/flutter-examples/raw/develop/image_from_network/img/flutter_logo.png'),
|
||||||
|
// even loads gifs
|
||||||
|
// Gif image from Giphy, all copyrights are owned by Giphy
|
||||||
|
new Image.network(
|
||||||
|
'https://github.com/nisrulz/flutter-examples/raw/develop/image_from_network/img/loop_anim.gif'),
|
||||||
|
],
|
||||||
|
)),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user