Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Widget _buildBody(BuildContext context) {
return StreamBuilder<QuerySnapshot>(
stream: Firestore.instance.collection('candidate').snapshots(),
builder: (context, snapshot) {
if (!snapshot.hasData) return LinearProgressIndicator();
return _buildList(context, snapshot.data.documents);
},
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment