Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit 63014be

Browse files
authored
Merge pull request #227 from UnityTech/focus
fix sample error
2 parents 3006c32 + 22764a3 commit 63014be

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Samples/UIWidgetSample/TextInputSample.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ public override State createState() {
2424
}
2525

2626
protected override Widget createWidget() {
27-
return new WidgetsApp(
28-
home: new EditableInputTypeWidget(),
29-
pageRouteBuilder: this.pageRouteBuilder);
27+
return new MaterialApp(
28+
home: new EditableInputTypeWidget()
29+
);
3030
}
3131

3232

@@ -143,7 +143,7 @@ Widget rowWidgets(string title, Widget widget) {
143143
height: 80,
144144
child: new Row(
145145
children: new List<Widget> {
146-
new Container(width: 100, child: new Text(title)),
146+
new Container(width: 100, child: new Text(title, style: new TextStyle(fontSize: 14, height: 2.0f, color: Colors.black, decoration: TextDecoration.none))),
147147
new Flexible(child: new Container(child: widget, padding: EdgeInsets.all(4), decoration:
148148
new BoxDecoration(border: Border.all(color: Color.black))))
149149
}
@@ -210,11 +210,11 @@ List<Widget> buildInputs(bool unityKeyboard) {
210210
public override Widget build(BuildContext context) {
211211
List<Widget> widgets = new List<Widget>();
212212

213-
widgets.Add(new Text("UIWidgets Touch Keyboard", style: new TextStyle(fontSize: 20, height: 2.0f),
213+
widgets.Add(new Text("UIWidgets Touch Keyboard", style: new TextStyle(fontSize: 20, height: 2.0f, color: Colors.black, decoration: TextDecoration.none),
214214
textAlign: TextAlign.center));
215215
widgets.AddRange(this.buildInputs(false));
216216

217-
widgets.Add(new Text("Unity Touch Keyboard", style: new TextStyle(fontSize: 20, height: 2.0f),
217+
widgets.Add(new Text("Unity Touch Keyboard", style: new TextStyle(fontSize: 20, height: 2.0f, color: Colors.black, decoration: TextDecoration.none),
218218
textAlign: TextAlign.center));
219219
widgets.AddRange(this.buildInputs(true));
220220

0 commit comments

Comments
 (0)