built_redux icon indicating copy to clipboard operation
built_redux copied to clipboard

Using RefreshIndicator with built_redux

Open jkyon opened this issue 5 years ago • 2 comments

Hi First of all, thank you all for this library, it is just amazing. I´ve enjoyed learning this architecture and implementing it on a project in the company where a I´m working now.

I'm really new to Flutter and Dart, so I have a question. I want to use a pull to refresh which sends an action and retrieves a new set of items from the rest api via the middleware. I need to use RefreshIndicator, but the indicator needs a Future passed to it (onRefresh) that resolves when the action has finished. Is there any way that I can use the existing stock widget to start and stop based on actions?

Thank you in advance!

jkyon avatar Nov 01 '18 18:11 jkyon

I don't see how this is built_redux related. I'd suggest to create a StackOverflow question with more details

zoechi avatar Nov 02 '18 09:11 zoechi

This issue is related: https://github.com/flutter/flutter/issues/11675. It makes sense to me that the RefreshIndicator API could be improved.

I also opened this issue on the thunk package: https://github.com/davidmarne/built_redux_thunk/issues/8. If thunks could return futures, you could have the future available to pass to RefreshIndicator.

maxlapides avatar Nov 07 '18 18:11 maxlapides