Skip to content

Instantly share code, notes, and snippets.

@ijoschek
Last active December 5, 2018 09:01
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ijoschek/badbc304aeeffe6d678fd886f6ecdc92 to your computer and use it in GitHub Desktop.
flutter_firestore_tut
//...
class _Home extends State<StatefulWidget> {
//...
void clickUpdate(item) async {
await Firestore.instance
.collection('docs')
.document(item.documentID)
.updateData({'text': _myUpdateContr.text});
interact();
Navigator.pop(context);
}
//...
@override
Widget build(BuildContext context) {
return Scaffold(
//...
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment