Skip to content

Instantly share code, notes, and snippets.

@sirateek
Last active March 8, 2020 09:32
Show Gist options
  • Save sirateek/997747988fd49f184596aae99e64eceb to your computer and use it in GitHub Desktop.
Save sirateek/997747988fd49f184596aae99e64eceb to your computer and use it in GitHub Desktop.
String pddescription = "Please wait...";
@override
void initState() {
super.initState();
Firestore.instance.collection("catalog").document(widget.pdname).get().then((value) {
setState(() {
pddescription = value.data["description"];
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment