Skip to content

Instantly share code, notes, and snippets.

@littleironical
Created January 23, 2021 10:52
Show Gist options
  • Save littleironical/bef81518758332c6d90effac5dc76369 to your computer and use it in GitHub Desktop.
Save littleironical/bef81518758332c6d90effac5dc76369 to your computer and use it in GitHub Desktop.
Image.network(
image,
fit: BoxFit.cover,
loadingBuilder: (context, child, loadingProgress) {
return (loadingProgress == null)
? child
: Center(
child: SizedBox(
height: 40.0,
width: 40.0,
child: CircularProgressIndicator(),
),
);
},
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment