Display images from the internet

Displaying images is fundamental for most mobile apps. Flutter provides the Image Widget to display different types of images.

In order to work with images from a URL, use the Image.network constructor.

new Image.network(

Bonus: Animated Gifs

One amazing thing about the Image Widget: It also supports animated gifs out of the box!

new Image.network(

Placeholders and Caching

The default Image.network constructor does not handle more advanced functionality, such as fading images in after loading or caching images to the device after they’re downloaded. To achieve these tasks, please see the following recipes:

Complete Example

import 'package:flutter/material.dart';

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  Widget build(BuildContext context) {
    var title = 'Web Images';

    return new MaterialApp(
      title: title,
      home: new Scaffold(
        appBar: new AppBar(
          title: new Text(title),
        body: new Image.network(

Network Image Demo