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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user