flutter-by-example icon indicating copy to clipboard operation
flutter-by-example copied to clipboard

Just have a question about StreamBuilder

Open penjual opened this issue 6 years ago • 1 comments

Hi John, I watched your presentation on Google I/O 2018 about Reactive with Flutter. About StreamBuilder, do this make the ui rebuilt even just Navigates to another screen?

I download the Cart Bloc source code from Filiph Github, and put print statement inside StreamBuilder function of Cart Count, and if i navigate to Shopping Cart Screen, It rebuilds the Cart Count Widget.

Please take a look on image below jun-04-2018 14-59-06

penjual avatar Jun 05 '18 13:06 penjual

When you navigate to the Cart page, all of the widgets on the main screen redraw, not just the CartButton, so this is more to do with the implementation of the navigation system and not StreamBuilder.

mjohnsullivan avatar Jun 20 '18 17:06 mjohnsullivan