Flutter Bloc Tutorial - Bloc or Cubit?

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

Code With Cypert

Code With 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 10 ай бұрын
this is very useful info, thank you!
@CodeWithCypert
@CodeWithCypert 10 ай бұрын
Glad it was helpful!
@quicksketch1617
@quicksketch1617 2 жыл бұрын
Hi, I`ts very good your tutorials, do you plan to make more videos showing bloc examples app?
@CodeWithCypert
@CodeWithCypert 2 жыл бұрын
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 2 жыл бұрын
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.
@CodeWithCypert
@CodeWithCypert 2 жыл бұрын
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?
@CodeWithCypert
@CodeWithCypert Жыл бұрын
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_dev_ss
@mob_app_dev_ss 2 жыл бұрын
What should choose
@CodeWithCypert
@CodeWithCypert 2 жыл бұрын
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!
@merwen1
@merwen1 2 жыл бұрын
Thank You 💯
@CodeWithCypert
@CodeWithCypert 2 жыл бұрын
Happy to help!
@benny-shen
@benny-shen Жыл бұрын
what about riverpod
@CodeWithCypert
@CodeWithCypert Жыл бұрын
I’ll add it to the list!
@kartavyabagga
@kartavyabagga 2 жыл бұрын
Any Link For This Project ?
@CodeWithCypert
@CodeWithCypert 2 жыл бұрын
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 2 жыл бұрын
@@CodeWithCypert No worries i completely agree on this👍🏻
What is Dart?
1:35
Code With Cypert
Рет қаралды 284
BLoC Pattern with Flutter || State Management
22:50
CodeX
Рет қаралды 95 М.
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
SIDELNIKOVVV
Рет қаралды 3,7 МЛН
Good teacher wows kids with practical examples #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 11 МЛН
Bike Vs Tricycle Fast Challenge
00:43
Russo
Рет қаралды 112 МЛН
Expense Tracker App • Flutter & BLoC Tutorial for Beginners
35:16
HeyFlutter․com
Рет қаралды 8 М.
Easiest way to understand BLOC Pattern in Flutter
15:52
Easy Approach
Рет қаралды 96 М.
Flutter State Management - The Grand Tour
14:07
Fireship
Рет қаралды 243 М.
Flutter Bloc & Cubit Tutorial
47:58
Reso Coder
Рет қаралды 121 М.
ALL React Hooks Explained in 12 Minutes
12:21
Code Bootcamp
Рет қаралды 139 М.
Flutter Bloc EASY Tutorial
8:25
Flutter Mapp
Рет қаралды 9 М.
Flutter Cubit BLoC State Management Explained
20:42
dbestech
Рет қаралды 23 М.
What is BLOC in flutter
10:13
Hitesh Choudhary
Рет қаралды 63 М.
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
SIDELNIKOVVV
Рет қаралды 3,7 МЛН