using System.Collections.Generic; using Unity.UIWidgets.rendering; using Unity.UIWidgets.ui; using Unity.UIWidgets.widgets; using TextStyle = Unity.UIWidgets.painting.TextStyle; namespace UIWidgetsSample.RaycastableScene { public class RightUIPanel : StatelessWidget { public override Widget build(BuildContext context) { return new Column( crossAxisAlignment: CrossAxisAlignment.start, children : new List{ new Text("HOW TO PLAY: \n " + "(1) Change lights using the switcher and slider at the top;\n " + "(3) Zoom/Hide/Show a Origami using the list on the left;\n " + "(4) Click on the Origami and drag to rotate it;", style: new TextStyle(color: Color.white, fontSize: 8f))} ); } } }