Last active
December 8, 2019 22:16
-
-
Save shyvum/13bbcb8d36b86ea7cb59eb9a19ffe9f1 to your computer and use it in GitHub Desktop.
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
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