Migrate from Input to TextField

We expect TextField to be used much more often than Input. This patch updates
our old example code to use TextField instead.

See #7031
This commit is contained in:
Adam Barth
2017-01-19 13:03:54 -08:00
committed by Adam Barth
parent 930b52a3e5
commit b2a2ee72f9
4 changed files with 10 additions and 51 deletions

View File

@@ -304,9 +304,8 @@ class CardCollectionState extends State<CardCollection> {
padding: const EdgeInsets.all(kCardMargins),
child: _editable ?
new Center(
child: new Input(
child: new TextField(
key: new GlobalObjectKey(cardModel),
value: cardModel.inputValue,
onChanged: (InputValue value) {
setState(() {
cardModel.inputValue = value;