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
// stream builder in dart using the new firebase commands | |
StreamBuilder<QuerySnapshot>( | |
stream: _firestore.collection('messages').snapshots(), | |
builder: (context, snapshot) { | |
if (snapshot.hasData) { | |
final messages = snapshot.data.docs; | |
List<Text> messageWidget = []; | |
for (var message in messages) { | |
final messageText = message.get('text'); |