DEV Community

Discussion on: Getting to know Flutter: Pull to refresh with online data

Collapse
 
chris2phern profile image
chris2phern

This is not working started new flutter project and the code for pull refresh is not working. I really like your code though just want it to work would use in IOS and Android. I am new here the last 3 codes you have where do they go can you send me the whole code as it would work from top to bottom?

Thank You

where does this final RefreshController refreshControllerList =
RefreshController(initialRefresh: false);

Where does this go?return SmartRefresher(
controller: refreshControllerList,
enablePullDown: true,
onRefresh: () => _onRefresh(context),
child: ListView.builder(
itemCount: snapshot.data.length,
itemBuilder: (context, index) {
Article article = snapshot.data[index];
return Column(
children: [
Text(article.title),
Text(article.content),
],
);
},
),
);