Column(
children: <Widget>[
TextField(
controller: _nameController,
decoration: InputDecoration(
labelText: 'Nome completo',
),
style: TextStyle(fontSize: 20.0),
),
Padding(
padding: const EdgeInsets.only(top: 8.0),
child: TextField(
controller: _accountNumberController,
decoration: InputDecoration(
labelText: 'Número da conta',
),
style: TextStyle(fontSize: 20.0),
keyboardType: TextInputType.number,
),
),
SizedBox(
width: double.maxFinite,
child: Padding(
padding: const EdgeInsets.only(top: 16.0),
child: ElevatedButton(
onPressed: () {
final String name = _nameController.text;
final int accountNumber =
int.tryParse(_accountNumberController.text);
final Contact newContact = Contact(name, accountNumber);
Navigator.pop(context, newContact);
},
child: Text(
'Criar',
style: TextStyle(
fontSize: 16.0,
),
),
),
),
),
Gostaria de saber por que aparece no console as seguintes linhas quando clico nos campos de texto (TextField):
W/IInputConnectionWrapper( 7070): beginBatchEdit on inactive InputConnection
W/IInputConnectionWrapper( 7070): getTextBeforeCursor on inactive InputConnection
W/IInputConnectionWrapper( 7070): getTextAfterCursor on inactive InputConnection
W/IInputConnectionWrapper( 7070): getSelectedText on inactive InputConnection
W/IInputConnectionWrapper( 7070): endBatchEdit on inactive InputConnection