您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
36 行
960 B
36 行
960 B
using System.Collections.Generic;
|
|
using uiwidgets;
|
|
using Unity.UIWidgets.cupertino;
|
|
using Unity.UIWidgets.engine;
|
|
using Unity.UIWidgets.ui;
|
|
using Unity.UIWidgets.widgets;
|
|
using Text = Unity.UIWidgets.widgets.Text;
|
|
using ui_ = Unity.UIWidgets.widgets.ui_;
|
|
using TextStyle = Unity.UIWidgets.painting.TextStyle;
|
|
|
|
namespace UIWidgetsSample
|
|
{
|
|
public class ChatPanelDemo : UIWidgetsPanel
|
|
{
|
|
protected override void onEnable()
|
|
{
|
|
base.onEnable();
|
|
AddFont("Material Icons", new List<string> {"MaterialIcons-Regular.ttf"}, new List<int> {0});
|
|
}
|
|
|
|
protected override void main()
|
|
{
|
|
ui_.runApp(new ChatRoomApp());
|
|
}
|
|
|
|
class ChatRoomApp : StatelessWidget
|
|
{
|
|
public override Widget build(BuildContext context)
|
|
{
|
|
return new CupertinoApp(
|
|
home: new ChatPage()
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|