Image for post
Image for post

修改lib/main.dart

import 'package:flutter/material.dart';

void main(){
runApp(
MaterialApp(
home: Scaffold(
backgroundColor: Colors.cyan[400],
appBar: AppBar(
title:Text('Network Image APP'),
backgroundColor: Colors.cyan,
),
body: Center(
child: Image(
image:
NetworkImage('http://icons.iconarchive.com/icons/graphicloads/100-flat/256/home-icon.png'),
),
),
),
),
);
}

Written by

Machine Learning / Deep Learning / Python / Flutter cakeresume.com/yanwei-liu

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store