Relative Content

Tag Archive for flutterasynchronousasync-await

How do I use an async method before building a page in Flutter?

I’m fairly new to Flutter and am trying to check a Firebase document for user information before building the page. The method to check the document is async but if I try to await the result in my class HomePage extends StatefulWidget I get the lint error: