Created
September 14, 2021 16:08
-
-
Save vijayinyoutube/b5eac14c6a1cf61444b219f8f13178a4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FutureBuilder( | |
future: FireStoreDataBase().getData(), | |
builder: (context, snapshot) { | |
if (snapshot.hasError) { | |
return const Text( | |
"Something went wrong", | |
); | |
} | |
if (snapshot.connectionState == ConnectionState.done) { | |
dataList = snapshot.data as List; | |
return buildItems(dataList); | |
} | |
return const Center(child: CircularProgressIndicator()); | |
}, | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment