Skip to content

Instantly share code, notes, and snippets.

@Classy-Bear
Last active January 18, 2020 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Classy-Bear/8c9028568fe036c7b78bbcbe69742183 to your computer and use it in GitHub Desktop.
Save Classy-Bear/8c9028568fe036c7b78bbcbe69742183 to your computer and use it in GitHub Desktop.
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Hala para refrescar"),
),
body: list != null
? RefreshIndicator(
key: refreshKey,
child: ListView.builder(
itemCount: list.length,
itemBuilder: (context, i) => ListTile(
title: Text(list[i]),
),
),
onRefresh: refreshList,
) : Center(child: CircularProgressIndicator()),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment