Issue
I am getting started with Bloc in Flutter. Can anyone tell what is really "flutter_bloc" and "bloc" packages I have these questions.
- are they same.
- when/how to use this.
- Thank you
Solution
The 'bloc' package contains things you will use in your Bloc layer, like the Bloc class. This isn't necessarily flutter dependent, it is just the logic architecture of your app.
The 'flutter bloc' package contains elements you will use in your UI layer. It includes widgets like BlocProvider and BlocBuilder, which are widgets and thus flutter dependent.
Answered By - Kris
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.