using System.Collections.Generic; using uiwidgets; using Unity.UIWidgets.cupertino; using Unity.UIWidgets.engine; using Unity.UIWidgets.ui; using Unity.UIWidgets.widgets; using UnityEngine; 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 {"MaterialIcons-Regular.ttf"}, new List {0}); Application.targetFrameRate = 300; } protected override void main() { ui_.runApp(new ChatRoomApp()); } class ChatRoomApp : StatelessWidget { public override Widget build(BuildContext context) { return new CupertinoApp( home: new ChatPage() ); } } } }