flutter 显示来自网上的图片

 

如图

flutter 显示来自网上的图片_第1张图片

 

 

 

import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  @override
  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(
          'https://www.baidu.com/img/bd_logo1.png',
        ),
      ),
    );
  }
}

 

你可能感兴趣的:(flutter 显示来自网上的图片)