Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/cloud_firestore/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class MessageList extends StatelessWidget {

@override
Widget build(BuildContext context) {
return StreamBuilder<QuerySnapshot>(
return StreamBuilder<QuerySnapshot>.withoutInitialData(
stream: firestore.collection('messages').snapshots(),
builder: (BuildContext context, AsyncSnapshot<QuerySnapshot> snapshot) {
if (!snapshot.hasData) return const Text('Loading...');
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase_storage/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class UploadTaskListTile extends StatelessWidget {

@override
Widget build(BuildContext context) {
return StreamBuilder<StorageTaskEvent>(
return StreamBuilder<StorageTaskEvent>.withoutInitialData(
stream: task.events,
builder: (BuildContext context,
AsyncSnapshot<StorageTaskEvent> asyncSnapshot) {
Expand Down