Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _addContact(){
- Contact contact = new Contact();
- buildShowRoundedModalBottomSheet(
- context,
- 'Add contact',
- editContact(contact),
- 'contact',
- () => _updateContactList(contact)
- );
- }
- editContact(Contact contact){
- return Padding(
- padding: const EdgeInsets.only(top: 12.0),
- child: Column(
- children: <Widget>[
- Row(
- mainAxisAlignment: MainAxisAlignment.center,
- children: <Widget>[
- SizedBox(
- width: MediaQuery.of(context).size.width * 0.9,
- child: TextField(
- controller: contact._contactRelationController,
- decoration: InputDecoration(
- hintText: contact._contactRelationController.text,
- ),
- ),
- ),
- ],
- ),
- ]
- )
- )
- }```
- I thought that the controller of a textfield would be updated everytime its text property changes but its seems that it's not the case
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement