Created
April 9, 2020 01:08
-
-
Save 5omar5/01e8acdbd2a3b6696fb94f638f2d9270 to your computer and use it in GitHub Desktop.
u3_a2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home: Scaffold( | |
appBar: AppBar( | |
title: Text("Image from Network"), | |
), | |
body: ListView( | |
children: <Widget>[ | |
// Load image from network | |
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 | |
Image.network( | |
'https://github.com/nisrulz/flutter-examples/raw/develop/image_from_network/img/loop_anim.gif'), | |
Image.network( | |
'https://media.cdnp.elobservador.com.uy/adjuntos/184/imagenes/000/312/0000312736.jpg?&cw=790'), | |
Image.network( | |
'https://misanimales.com/wp-content/uploads/2018/05/felino-por-continente.jpg'), | |
Image.network( | |
'https://venezuelaaldia.com/wp-content/uploads/2018/08/guepardo-rostro.jpg'), | |
Image.network( | |
'https://misanimales.com/wp-content/uploads/2015/02/leopardo.jpg'), | |
Image.network( | |
'https://misanimales.com/wp-content/uploads/2015/09/ocelote.jpg'), | |
Image.network( | |
'https://misanimales.com/wp-content/uploads/2018/04/animales-que-no-se-pueden-tener-como-mascotas.jpg'), | |
Image.network( | |
'https://www.iquilibrio.com/blog/wp-content/uploads/2018/08/pantera.jpg'), | |
Image.network( | |
'https://www.africaanimal.net/wp-content/uploads/2019/03/leopardo.jpg'), | |
Image.network( | |
'https://upload.wikimedia.org/wikipedia/commons/e/e7/White_Lion.jpg'), | |
Image.network( | |
'https://curadas-rochen.netdna-ssl.com/wp-content/uploads/2019/05/LINCE-846x640.jpg'), | |
], | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment