<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: zalek</title>
    <description>The latest articles on DEV Community by zalek (@zalek).</description>
    <link>https://dev.to/zalek</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F857198%2F09c8de1e-46e1-400a-82c2-2029d629f8d2.png</url>
      <title>DEV Community: zalek</title>
      <link>https://dev.to/zalek</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zalek"/>
    <language>en</language>
    <item>
      <title>Problem with flutter and Firestore – a newbie question.</title>
      <dc:creator>zalek</dc:creator>
      <pubDate>Tue, 17 May 2022 20:03:31 +0000</pubDate>
      <link>https://dev.to/zalek/problem-with-flutter-and-firestore-a-newbie-question-2f08</link>
      <guid>https://dev.to/zalek/problem-with-flutter-and-firestore-a-newbie-question-2f08</guid>
      <description>&lt;p&gt;I created a program which reads Firestore in a Stateless widget – and it worked. I decided to convert the program to a statefull widget – and it is not working.&lt;br&gt;
After displaying some  info I come to conclusion the program tried execute some calculation before the Firestore data was available.&lt;br&gt;
:&lt;br&gt;
I have a function: &lt;/p&gt;

&lt;p&gt;Future getDocs() async {&lt;br&gt;
  await FirebaseFirestore.instance&lt;br&gt;
  .collection('Spanish').get().then((snapshot) {&lt;br&gt;
    print("********getDocs() 1");&lt;br&gt;
......&lt;br&gt;
So my question is: how to postpone the execution of a program until the data will be available?&lt;br&gt;
I tried to remove asyc/await – but it didn’t help.&lt;br&gt;
Any ideas?&lt;/p&gt;

&lt;p&gt;Thanks! &lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
