Last active
January 18, 2020 20:49
-
-
Save Classy-Bear/8c9028568fe036c7b78bbcbe69742183 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: 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