DEV Community

Cover image for Display Image from Internet in Flutter
Easy Flutter
Easy Flutter

Posted on • Originally published at easyflutter.com

Display Image from Internet in Flutter

Originally published at: https://easyflutter.com/display-network-image-in-flutter/

In our flutter tutorial series, we're going to learn how to display image from internet using flutter.

Source code

import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'EasyFlutter',
      home: Scaffold(
        body: Center(
          child: Image.network(
            "https://easyflutter.com/wp-content/uploads/2020/09/easy-flutter.png",
            height: 200,
            width: 200,
          ),
        ),
      ),
    );
  }
}

Top comments (0)