如图

flutter 显示来自网上的图片

 

 

 

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',
        ),
      ),
    );
  }
}

 

相关文章:

  • 2021-11-09
  • 2022-01-01
  • 2022-12-23
  • 2021-06-19
  • 2021-11-09
  • 2021-10-14
  • 2022-12-23
  • 2021-12-05
猜你喜欢
  • 2022-12-23
  • 2022-02-16
  • 2021-12-02
  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案