I am a bit confused about the new release of Bloc: 6.0.0, adding Cubit notion, is the bloc depreciated or we can use both of them?
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.
Can anyone tell the difference of "flutter_bloc" and "bloc" packages in ...
So like most, i'm new to Bloc and flutter and dart and wrapping my head around. I've googled, looked through the posts here but haven't found really any answers. So this is about navigation with b...
Even if I've created a quite large app with flutter + Bloc. I tend often to get back to what is actually best practices with Bloc. When to use BlocProvider.value and/or BlocProvider (create:). If I figure something out I will let you know.
I got an error in using flutter bloc and freezed page using for state management I couldn't find solution "Missing concrete implementation of 'getter _$CounterState.count'.
First of, I do know how BLoC suppose to work, the idea behind it and I know the difference between BlocProvider() and BlocProvider.value() constructors. For simplicity, my application has 3 pages ...
BlocProvider.of() called with a context that does not contain a Bloc ...
flutter - How to scope the BlocProvider correctly when using go_router ...
You can see the Bloc package tutorial I've mentioned before, it gives many hints to achieve this. I am currently trying to do the same thing using GoRouter. Edit (sept 12th 2023): I came up with the following solution Copy