Last active
December 20, 2019 21:52
-
-
Save Classy-Bear/4482b88009b45e0476834a7d23423ead 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
@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