I am currently using the pull_to_refresh package in flutter and code looks something like this
final RefreshController refreshController = RefreshController(initialRefresh: true);
SmartRefresher(
controller: refreshController,
onRefresh: (){
// my refresh function
},
enablePullDown: true,
scrollController: scrollController,
child:ListView()
)
I tried using the command
refreshController.requestRefresh(needCallback: false);
but it does not show the loader on the top of the screen.
I need a solution that can show the loader at the top of the screen without calling the actual refresh function.