您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
29 行
943 B
29 行
943 B
using System.Collections.Generic;
|
|
using Unity.UIWidgets.ui;
|
|
using Unity.UIWidgets.widgets;
|
|
|
|
namespace UIWidgetsSample {
|
|
public class PageViewSample : UIWidgetsSamplePanel {
|
|
|
|
protected override Widget createWidget() {
|
|
return new WidgetsApp(
|
|
home: new Container(
|
|
width: 200,
|
|
height: 400,
|
|
child: new PageView(
|
|
children: new List<Widget>() {
|
|
new Container(
|
|
color: new Color(0xFFE91E63)
|
|
),
|
|
new Container(
|
|
color: new Color(0xFF00BCD4)
|
|
),
|
|
new Container(
|
|
color: new Color(0xFF673AB7)
|
|
)
|
|
}
|
|
)),
|
|
pageRouteBuilder: this.pageRouteBuilder);
|
|
}
|
|
}
|
|
}
|