Skip to content

Instantly share code, notes, and snippets.

Created Dec 11, 2019
What would you like to do?
// mobile/lib/timeline.dart:34
Widget build(BuildContext context) {
return FutureBuilder<List<dynamic>>(
future: _activities,
builder: (BuildContext context, AsyncSnapshot<List<dynamic>> snapshot) {
if (!snapshot.hasData) {
return Center(child: CircularProgressIndicator());
return Container(
child: Center(
child: RefreshIndicator(
onRefresh: _refreshActivities,
child: ListView(
.map((activity) => ListTile(
title: Text(activity['message']),
subtitle: Text(activity['actor']),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment