MarcelGarus / flutter_cached

๐Ÿงพ Flutter widget allowing easy cache-based data display in a ListView featuring pull-to-refresh and error banners.
BSD 3-Clause "New" or "Revised" License
17 stars 2 forks source link

Can't refresh data #4

Closed Nico04 closed 4 years ago

Nico04 commented 4 years ago

Using your exemple project, on the CacheBuilder page, using pull-to-refresh OR calling directly controller.fetch() doesn't refresh the data, controller's fetcher function is only call the first time.

Nico04 commented 4 years ago

Maybe it's coming from your Batcher class, line 7 : _currentFetcher ??= callback(); That means that callblack() is only called if _currentFetcher is null, which is only the first time.

MarcelGarus commented 4 years ago

Oh, very true. I'm on it.

MarcelGarus commented 4 years ago

Okay, a version 4.2.5 has just been pub lished and fixes this error. Thanks for spotting it! ๐Ÿ˜Š

Nico04 commented 4 years ago

Works great, thank you for your responsiveness ๐Ÿ‘ !