Flutter Bloc Tutorial - Bloc or Cubit?

  Рет қаралды 7,548

Brad Cypert

Brad Cypert

Жыл бұрын

In this video you'll learn about the Bloc Library, Blocs and Cubits, and how to use Blocs in your Flutter application.

Пікірлер: 17
@hermionegreen333
@hermionegreen333 8 ай бұрын
this is very useful info, thank you!
@BradCypert
@BradCypert 7 ай бұрын
Glad it was helpful!
@merwen1
@merwen1 Жыл бұрын
Thank You 💯
@BradCypert
@BradCypert Жыл бұрын
Happy to help!
@quicksketch1617
@quicksketch1617 Жыл бұрын
Hi, I`ts very good your tutorials, do you plan to make more videos showing bloc examples app?
@BradCypert
@BradCypert Жыл бұрын
I certainly can! I’ve been making a list of some things that I think I’d be good at covering. I’ll add more Bloc stuff to the list!
@jakest.germain2475
@jakest.germain2475 Жыл бұрын
Would you recommend Blocs for those that are new to working in Flutter? I can see the easier traceability and testing/mocking to be helpful for a new Flutter Dev but, most likely, the app will be simple so that may be an argument for Cubits.
@BradCypert
@BradCypert Жыл бұрын
The structure of blocs helps me plan and reason with my code's flow so I greatly prefer them to cubits but I do think for small apps, cubits can work just as well. When I first started building the project I showed at the end, I had actually used Provider (another state management solution) and rolled my own "view model" type approach. What I ultimately found is that I had done several things wrong and there were pretty significant performance applications with my approach -- which ultimately prompted me to give Bloc a shot. All this to say: You are probably fine with Bloc, Cubit, Provider or anything else as long as you're structured with it and fully understand how it works. As for a recommendation, I'd start with cubits if you want to use Bloc (the package) and evaluate regularly how its going.
@karanparmar298
@karanparmar298 Жыл бұрын
Can we create generic bloc or states so we don't have to define that loading loaded and failure state in every bloc?
@BradCypert
@BradCypert Жыл бұрын
You can define a generic state and event, if you’d like! You’d just need to handle that as you would the non-generic classes
@mob_app_devss
@mob_app_devss Жыл бұрын
What should choose
@BradCypert
@BradCypert Жыл бұрын
Whatever makes the most sense for your team given the context they’re operating in! If that’s not helpful though, I’d recommend starting with Bloc and giving that a try first!
@benny-shen
@benny-shen Жыл бұрын
what about riverpod
@BradCypert
@BradCypert Жыл бұрын
I’ll add it to the list!
@kartavyabagga
@kartavyabagga Жыл бұрын
Any Link For This Project ?
@BradCypert
@BradCypert Жыл бұрын
This is actually a private project of mine that I attempt to live off of so the source is not available here. Sorry!
@kartavyabagga
@kartavyabagga Жыл бұрын
@@BradCypert No worries i completely agree on this👍🏻
What is Dart?
1:35
Brad Cypert
Рет қаралды 270
Flutter Bloc & Cubit Tutorial
47:58
Reso Coder
Рет қаралды 120 М.
孩子多的烦恼?#火影忍者 #家庭 #佐助
00:31
火影忍者一家
Рет қаралды 51 МЛН
Now THIS is entertainment! 🤣
00:59
America's Got Talent
Рет қаралды 16 МЛН
아이스크림으로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 57 МЛН
What is BLOC in flutter
10:13
Hitesh Choudhary
Рет қаралды 63 М.
Урок 92. Архитектуры - Bloc - разбираемся с cubit.
39:35
Fuzzing while Testing in Go
19:48
Brad Cypert
Рет қаралды 258
Flutter: BLoC Testing in 10 Minutes
13:49
Brad Cypert
Рет қаралды 954
Riverpod or Bloc? Which One is Better?
3:44
Flutter Guys
Рет қаралды 39 М.
Flutter Bloc Project! | One video and you are master of Flutter Bloc
1:47:57
#1 - Why BLoC? | BLoC - from Zero to Hero
5:25
Flutterly
Рет қаралды 59 М.
⚡️Супер БЫСТРАЯ Зарядка | Проверка
1:00
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 36 МЛН
WATERPROOF RATED IP-69🌧️#oppo #oppof27pro#oppoindia
0:10
Fivestar Mobile
Рет қаралды 19 МЛН
Собери ПК и Получи 10,000₽
1:00
build monsters
Рет қаралды 2,7 МЛН