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)