浏览代码

Merge pull request #227 from UnityTech/focus

fix sample error
/main
GitHub 6 年前
当前提交
b80fe0ac
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 12
      Samples/UIWidgetSample/TextInputSample.cs

12
Samples/UIWidgetSample/TextInputSample.cs


}
protected override Widget createWidget() {
return new WidgetsApp(
home: new EditableInputTypeWidget(),
pageRouteBuilder: this.pageRouteBuilder);
return new MaterialApp(
home: new EditableInputTypeWidget()
);
}

height: 80,
child: new Row(
children: new List<Widget> {
new Container(width: 100, child: new Text(title)),
new Container(width: 100, child: new Text(title, style: new TextStyle(fontSize: 14, height: 2.0f, color: Colors.black, decoration: TextDecoration.none))),
new Flexible(child: new Container(child: widget, padding: EdgeInsets.all(4), decoration:
new BoxDecoration(border: Border.all(color: Color.black))))
}

public override Widget build(BuildContext context) {
List<Widget> widgets = new List<Widget>();
widgets.Add(new Text("UIWidgets Touch Keyboard", style: new TextStyle(fontSize: 20, height: 2.0f),
widgets.Add(new Text("UIWidgets Touch Keyboard", style: new TextStyle(fontSize: 20, height: 2.0f, color: Colors.black, decoration: TextDecoration.none),
widgets.Add(new Text("Unity Touch Keyboard", style: new TextStyle(fontSize: 20, height: 2.0f),
widgets.Add(new Text("Unity Touch Keyboard", style: new TextStyle(fontSize: 20, height: 2.0f, color: Colors.black, decoration: TextDecoration.none),
textAlign: TextAlign.center));
widgets.AddRange(this.buildInputs(true));

正在加载...
取消
保存