using System.Collections.Generic; using Unity.UIWidgets.engine; using Unity.UIWidgets.ui; using Unity.UIWidgets.widgets; namespace UIWidgetsSample { public class PageViewCanvas : WidgetCanvas { protected override Widget getWidget() { return new Container( width: 200, height: 400, child: new PageView( children: new List() { new Container( color: new Color(0xFFE91E63) ), new Container( color: new Color(0xFF00BCD4) ), new Container( color: new Color(0xFF673AB7) ) } )); } } }