Skip to content

Instantly share code, notes, and snippets.

@tarek360
Created July 16, 2020 09:14
Show Gist options
  • Save tarek360/802ac4da0c5d6eca9b5afc0d98413bde to your computer and use it in GitHub Desktop.
Save tarek360/802ac4da0c5d6eca9b5afc0d98413bde to your computer and use it in GitHub Desktop.
Display image
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
var title = 'Web Images';
return MaterialApp(
title: title,
home: Scaffold(
appBar: AppBar(
title: Text(title),
),
body: Image.network(
'https://picsum.photos/250?image=9',
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment