Back to Writing
NOTESflutterfirebasefirestoredebuggingdart

Flutter - cloud_firestore 0.13.6 Gotcha

June 4, 2020Updated Feb 17, 2026

When you want to create a document with a random name,

creating it asynchronously like this doesn't work.

![](

15T1mAH1plL8ukWJzog.ObUtiga_GYymaVo53oY76hQbrg3IFuwdHDY3TyCY-wYg.PNG.cdw0424/image.png?type=w966)

It works with synchronous code.

5 hours of debugging. I will never forget this...