я получаю эти две ошибки в моей консоли отладки (core_booster, getBoosterConfig = false) и (не удалось получить доступ к бэкенду Firestore.) В моих данных в firestore я получил коллекцию "Recipes", а затем в документах я получил каждый рецептсо своим собственным атрибутом.Здесь я оставляю вам украдкой заглядывать в код.
new StreamBuilder(
stream: Firestore.instance.collection('Recipes').snapshots(),
builder: (context, snapshot) {
if (!snapshot.hasData)
return const Center(child: CircularProgressIndicator());
return ListView.builder(
itemCount: snapshot.data.documents.length,
itemBuilder: (context, index) =>
_buildListRecipe(context, snapshot.data.documents[index]),
);
});
Затем в моем _buildListRecipe я получаю доступ к каждому в значении каждого рецепта.
new Image.network(
document["firstImage"],
width: double.infinity,
height: 150.0,
fit: BoxFit.cover,
),