Skip to content

Instantly share code, notes, and snippets.

@Classy-Bear
Last active December 20, 2019 21:52
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/4482b88009b45e0476834a7d23423ead to your computer and use it in GitHub Desktop.
Save Classy-Bear/4482b88009b45e0476834a7d23423ead to your computer and use it in GitHub Desktop.
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Hala para refrescar"),
),
body: RefreshIndicator(
key: refreshKey,
child: ListView.builder(
itemCount: lista.length,
itemBuilder: (context, i) => ListTile(
title: Text(lista[i]),
),
),
onRefresh: refreshList,
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment