From 4f820a72136ef5ecc5d04d2592b155169630c4fb Mon Sep 17 00:00:00 2001 From: Todd Volkert Date: Fri, 19 Jul 2019 13:23:43 -0700 Subject: [PATCH] Update examples to adhere to new StreamBuilder API in Flutter 1.8.3+ --- packages/cloud_firestore/example/lib/main.dart | 2 +- packages/firebase_storage/example/lib/main.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cloud_firestore/example/lib/main.dart b/packages/cloud_firestore/example/lib/main.dart index 27138f2fbd9e..1681e1b4d85a 100755 --- a/packages/cloud_firestore/example/lib/main.dart +++ b/packages/cloud_firestore/example/lib/main.dart @@ -32,7 +32,7 @@ class MessageList extends StatelessWidget { @override Widget build(BuildContext context) { - return StreamBuilder( + return StreamBuilder.withoutInitialData( stream: firestore.collection('messages').snapshots(), builder: (BuildContext context, AsyncSnapshot snapshot) { if (!snapshot.hasData) return const Text('Loading...'); diff --git a/packages/firebase_storage/example/lib/main.dart b/packages/firebase_storage/example/lib/main.dart index f388435938c2..674840b5b78c 100755 --- a/packages/firebase_storage/example/lib/main.dart +++ b/packages/firebase_storage/example/lib/main.dart @@ -175,7 +175,7 @@ class UploadTaskListTile extends StatelessWidget { @override Widget build(BuildContext context) { - return StreamBuilder( + return StreamBuilder.withoutInitialData( stream: task.events, builder: (BuildContext context, AsyncSnapshot asyncSnapshot) {