您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

40 行
1.0 KiB

using System.Collections;
using System.Collections.Generic;
using Unity.UIWidgets.engine2;
using Unity.UIWidgets.material;
using Unity.UIWidgets.painting;
using Unity.UIWidgets.widgets;
using UnityEngine;
namespace UIWidgetsSample
{
public class NetWorkImageSample : UIWidgetsPanel
{
protected override void main()
{
ui_.runApp(new MaterialApp(
showPerformanceOverlay: false,
home: new NetWorkeImageWidget()));
}
class NetWorkeImageWidget : StatelessWidget {
public override Widget build(BuildContext context) {
var title = "NetWork Image";
return new MaterialApp(
title: title,
home: new Scaffold(
appBar: new AppBar(
title: new Text(title)
),
body: Image.network("https://picsum.photos/250?image=2")
)
);
}
}
}
}