-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use provider package #5
Comments
I appreciate your concern. What features are you talking about? |
I believe the bloc_pattern came up to fix the problems we were having with the provider. Problems we've had since when he was just called Provide. |
More of a low priority suggestion to use the provider package internally than a concern. On the surface there seems to be some redundancy, and there was recently a discussion on provider as to whether it should implement the block pattern or whether that should be an extension. Feel free to chime in @rrousselGit |
@chimon2000 The bloc_pattern is different internally from the provider. Its structure is based on singletons, and this supplies the need in some types of projects, while the provider supplies the needs in other projects. |
Without me taking any side for the time being, do you mind making a list of why you wanted it to be different? What are the problems encountered with |
@rrousselGit I would like to talk to you on twitter. But about your question: The bloc_pattern did not come to fix Provider problems, it simply already existed and was growing in parallel. Today we think of a development pattern based on BLoC, and we expanded it with SLIDY (https://github.com/Flutterando/slidy). |
With the Provider when it suffers a change in the bloc everyone that heard this bloc is updated, with the bloc_provider + streams it is possible to update field by field without reloading all the fields that are in the bloc. |
I know that the provider has had many changes over time, but bloc_pattern came before and it is not worth changing the projects and with Slidy it was much easier to maintain. This is not a fight to see which is better, but the bloc_pattern for our projects is fitting better than the other packages |
I do not want to force anything 😄
Could you argument on that? From my understanding, there's no difference between what |
think the problem is related to this: https://stackoverflow.com/questions/52249578/how-to-deal-with-unwanted-widget-build |
@jacobaraujo7 I think the bloc_pattern library is already great as it is. I understand that there are differences internally between how they work. My observation is purely that if they accomplish similar things at a high level (or rather if some of the scope is duplicated), then maybe it's healthy to have a discussion about code reuse. |
Did u are talking about Consumer? |
and... closed! |
Wondering if it would be worthwhile to use the provider package by @rrousselGit and reduce the scope of this package a bit.
The text was updated successfully, but these errors were encountered: