I keep getting a slight null error when using stream builder in flutter [closed]
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 days ago . I keep getting a slight null error before displaying my items. Please can I get help on the best way to use streambuilder without encountering any error? 回答1: Use ConnectionState : StreamBuilder( stream: Firestore.instance.collection('stores').document(currentUserUID).snapshots(), builder: (context,