Riverpod or Bloc? Which One is Better?

preview_player
Показать описание
📄You will see side by side comparison between two well-known state management solutions in the Flutter framework i-e Bloc & Riverpod. How they are different from each other and what to choose from them for your next project.

🤖About AI - Please Subscribe :

⚡ SUBSCRIBE HERE⚡

🌐 Social Media

#flutter #fluttertutorial #flutterwidgets #fluttercourse #flutterinhindi #mobileappdevelopment #vscode #reactnative #flutterbloc #flutterstatemanagement #flutterriverpod #riverpodstatemanagement #difference_between_bloc_riverpod #bloc_vs_riverpod
Рекомендации по теме
Комментарии
Автор

I believe bloc is the right choice when you're working on a team of varying skill levels. It has one primary way of distributing events, and everything sorta circles around that. Riverpod offers far more flexibility... but with great power comes great responsibility, and some mastery is recommended. Riverpod can even be used in "bloc" mode with streams if you want... That said, I reach for riverpod for pretty much every project I'm influencing, whether it's a few classes, or a few hundred classes. Riverpod scales well.

RandalLSchwartz
Автор

Coming from BLoC (Cubit) background, I actually learned to use Riverpod from this comparison, better than any Riverpod tutorial I came across. Many thanks!

noursalman
Автор

Riverpod is excellent and easier to use now with riverpod annotations.

zdenekkrcal
Автор

Riverpod *has* a StreamProvider. Most of riverpod has nothing to do with streams, and uses a far simpler but more flexible strategy of ProviderListenables. So the comment mid-video about them both using streams is already wrong. Some of the other things are also marginal.

RandalLSchwartz
Автор

Well explained. With that comparison, I finally understood a bit of Bloc. Coming from Provider, It was easy for me to transtion to Riverpod than Bloc

moisesbinzie
Автор

Bloc is better as it extracts all the implementation in separate location. It's works great for teams

akshattamrakar
Автор

It's like "Fireship taste" when see this video... 😎

conceptcoder
Автор

I tried Cubit, BLoC and (sadly) Redux and for me BLoC is the better. It has a clean way to write your business logic and all the Builder, Listener widgets keep your code clean. I read some comments that says that Riverpod scales up better and I'm curious to see if it's true. Maybe an hint for next video? :P
Thanks for the video!

Quicky
Автор

I’m experienced with bloc but was a bit confused with riverpod, this helped a lot! Thanks

sharbelokzan
Автор

Explain to me like I'm a 5 year-old why I need to adopt one of these in preference to plain old Provider.
What am I missing?

robbrooks
Автор

Bloc has a lot of boilerplate code involved, I wound prefer Riverpod

jointtask
Автор

I'm still confused right now, like many job requirements want to use bloc than riverpod

fegartyx
Автор

Looks like Riverpod is the winner in the comments. Riverpod it is then!

phillip_jacobs
Автор

i only use riverpod now since i found provider lack context control. i'll try bloc when i found lack of riverpod because people said bloc is great for complete separate business logic.

edigunawan
Автор

Great comparison, thanks. I found a minor bug in 1:25 on the right example - "state.user == null" is copy-pasted from the left example, but there's no reference to state actually

przemysawlusnia
Автор

which editing tricks are you using to get this type of editing, any tips?

nicolaimagnussen
Автор

Why would I want bloc a river as no competing pods are crossing state crosspods?

davisburnside
Автор

great content you are making, keep it up

alphaNaj
Автор

Wow. Sir, what software do you use for such editing?

site.x
Автор

From my expierience riverpod is more elastic. Bloc is good in simple apps

kamil_supabase_enjoyer
welcome to shbcf.ru