/.\lib\scr\home.dart Secret
Last active
December 5, 2018 09:01
Star
You must be signed in to star a gist
flutter_firestore_tut
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//... | |
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