Merge pull request #812 from abarth/check_material

Widgets that depend on Material should assert that
This commit is contained in:
Adam Barth
2015-12-08 13:50:02 -08:00
14 changed files with 82 additions and 25 deletions

View File

@@ -38,10 +38,12 @@ void main() {
Widget builder() {
return new Center(
child: new Input(
key: inputKey,
placeholder: 'Placeholder',
onChanged: (String value) { inputValue = value; }
child: new Material(
child: new Input(
key: inputKey,
placeholder: 'Placeholder',
onChanged: (String value) { inputValue = value; }
)
)
);
}
@@ -72,9 +74,11 @@ void main() {
Widget builder() {
return new Center(
child: new Input(
key: inputKey,
placeholder: 'Placeholder'
child: new Material(
child: new Input(
key: inputKey,
placeholder: 'Placeholder'
)
)
);
}
@@ -112,9 +116,11 @@ void main() {
Widget builder() {
return new Center(
child: new Input(
key: inputKey,
placeholder: 'Placeholder'
child: new Material(
child: new Input(
key: inputKey,
placeholder: 'Placeholder'
)
)
);
}
@@ -145,10 +151,12 @@ void main() {
Widget builder() {
return new Center(
child: new Input(
key: inputKey,
hideText: true,
placeholder: 'Placeholder'
child: new Material(
child: new Input(
key: inputKey,
hideText: true,
placeholder: 'Placeholder'
)
)
);
}