Skip to content

Instantly share code, notes, and snippets.

@ijoschek
Last active December 5, 2018 09:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ijoschek/0eee6afc47d76412351f43dc673970c7 to your computer and use it in GitHub Desktop.
Save ijoschek/0eee6afc47d76412351f43dc673970c7 to your computer and use it in GitHub Desktop.
flutter_firestore_tut
//...
class _Home extends State<StatefulWidget> {
//...
void removeFromDb(itemID) {
Firestore.instance.collection('docs').document(itemID).delete();
interact();
}
//...
@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