Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about pull-to-refresh

Read more about pull-to-refresh

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - pull-to-refresh

The argument type 'Future<List<User>>' can't be assigned to the parameter type 'Future<void> Function()' in onRefresh when using RefreshIndicator

I am having a Future that is fetching and populating users below Future<List<User>> _fetchUsersListUsingLoop() async { try { var response = await http.get( Uri.p...
test-img

Emmanuel Njorodongo

flutter

dart

pull-to-refresh

flutter-futurebuilder

Votes: 0

Answers: 2

Latest Answer

Instead of calling _fetchUsersListUsingLoop you should use setState to cause a rebuild so that FutureBuilder fetches the data again. onRefresh: () => setState(() {}) That being said it's best to s...
test-img

Ramin

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved