Skip to content

Instantly share code, notes, and snippets.

Created October 18, 2021 04:56
What would you like to do?
Widget build(BuildContext context) {
return FutureBuilder(
future: fetchMovies(),
builder: (context, AsyncSnapshot snapshot) {
if (!snapshot.hasData) {
return Center(
child: Image.asset('assets/images/loading.gif'),
} else {
return HorizontalCards(;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment