diff --git a/image_from_network/img/loop_anim.jpg b/image_from_network/img/loop_anim.jpg new file mode 100644 index 0000000..309a5b8 Binary files /dev/null and b/image_from_network/img/loop_anim.jpg differ diff --git a/image_from_network/lib/main.dart b/image_from_network/lib/main.dart index 6edb4b3..9aa7f2f 100644 --- a/image_from_network/lib/main.dart +++ b/image_from_network/lib/main.dart @@ -11,9 +11,18 @@ class MyApp extends StatelessWidget { title: new Text("Image from Network"), ), body: new Container( - child: new Center(child: new Text("Hello World")), - ), + child: new Column( + children: [ + // 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'), + ], + )), ), ); } -} \ No newline at end of file +}