flutter-chopper-tutorial-course icon indicating copy to clipboard operation
flutter-chopper-tutorial-course copied to clipboard

how to use BLoC pattern with this?

Open wesguirra opened this issue 6 years ago • 1 comments

Hello the main problem with this approach, is that we have a build function that is not pure (http call inside build function), so when a rebuild occur, it causes a unwanted page reload, how to deal with this?

wesguirra avatar Oct 09 '19 13:10 wesguirra

Hey, we can listen to the state changes and update values on the page (screen) instead of rebuilding using BlocListener. Check that out.

Purvik avatar Mar 18 '20 15:03 Purvik