Flutter Bloc for State Management

  Рет қаралды 9,556

Creative Bracket • Dart and Flutter Tutorials

Creative Bracket • Dart and Flutter Tutorials

Күн бұрын

In this tutorial, we'll be exploring the various widgets provided by the Flutter bloc package including BlocBuilder, BlocListener, and BlocProvider. We will dive into the difference between blocs and cubits to give you a better understanding of how to use each one in your applications.
To bring these concepts to life, we'll be building a store front list view that fetches the shopping item data from the FakeStore REST API. This is a perfect example to showcase the power of Flutter bloc as we'll be able to seamlessly add each item in the list view to our shopping cart and remove items from our shopping cart.
Whether you're new to Flutter or a seasoned developer, this video will provide valuable insights and a comprehensive understanding of how to use Flutter bloc to manage the state of your application. Our goal is to ensure you leave with a solid understanding of how to implement state management in Flutter using the Flutter bloc package.
So, if you're ready to take your Flutter development skills to the next level, then sit back, relax and join us in this exciting journey!
=== Contents of this video ===
00:00 Intro
00:23 Install and Setup Package
00:45 Implement and Use our CounterBloc example
05:41 Using the BlocBuilder widget
07:13 Recap (Remove this)
07:33 Implement the StoreBloc with the FakeStore API
27:53 Implement store state management with Cubit example
32:04 Main different between Blocs and Cubits
32:28 Observe bloc instances with an AppObserver
34:10 Using the BlocListener widget
36:04 Using the BlocConsumer widget
37:11 Outro
Please leave us your feedback in the comments, and let us know what you would like us to demonstrate next! You can reach out in the comments below or on Twitter using #Flutter #Dartlang #bloc
Like, Subscribe and Hit the Bell 🔔 if you enjoyed this video 😍
Get the package → pub.dev/packages/dart_frog
Get the source code → github.com/graphicbeacon/flut...
Get started with Dart course → bit.ly/getstartedwithdart
Dart docs → dart.dev
Subscribe to the channel → bit.ly/2P2N1jC
Read More Dart Tutorials → creativebracket.com
Buy me a coffee → ko-fi.com/creativebracket
LET'S CONNECT
---
Twitter → / creativ_bracket
Support the channel → / creativebracket

Пікірлер: 13
@gyanupadhyay9473
@gyanupadhyay9473 Жыл бұрын
Welcome back bro! Plz make a complete tutorial on bloc state management?
@user-xx9rp4gp9g
@user-xx9rp4gp9g Жыл бұрын
Thank you very much for the lesson, everything is easy and clear, this is cool content, keep going
@ajaykotiyal427
@ajaykotiyal427 Жыл бұрын
So Good explaination.
@muhammadyosry1140
@muhammadyosry1140 Жыл бұрын
Thanks a lot .. you explained it very well .. I'm now understood it ❤️
@CreativeBracket
@CreativeBracket Жыл бұрын
Cheers Muhammad!
@jorgecid5016
@jorgecid5016 Жыл бұрын
Very detailed video... best one by far i ve seen! many thanks for this one! keep it up dude! thanks!
@CreativeBracket
@CreativeBracket Жыл бұрын
Cheers Jorge 👍
@jorgecid5016
@jorgecid5016 Жыл бұрын
@@CreativeBracketany unit testing one coming soon? like you can use this same example and would be wonderfull because of how detailed it is
@CreativeBracket
@CreativeBracket Жыл бұрын
@@jorgecid5016 That's a great idea!
@UVisLive
@UVisLive Жыл бұрын
Bro very Detailed Video On KZfaq
@manoharacharyasakec
@manoharacharyasakec 10 ай бұрын
Whats the theme you are using?
@gyanupadhyay9473
@gyanupadhyay9473 Жыл бұрын
Plz make a video on how to avoid bloc to bloc communication.
@UVisLive
@UVisLive Жыл бұрын
Please Bro Make This Type Of Video On CUBIT
Flutter State Management - The Grand Tour
14:07
Fireship
Рет қаралды 239 М.
КОМПОТ В СОЛО
00:16
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 31 МЛН
Flutter Bloc & Cubit Tutorial
47:58
Reso Coder
Рет қаралды 120 М.
BLoC Pattern with Flutter || State Management
22:50
CodeX
Рет қаралды 95 М.
Bloc Library - Painless State Management for Flutter
24:54
Reso Coder
Рет қаралды 91 М.
Best State Management for Flutter | Flutter State Management
8:18
AI with Flutter
Рет қаралды 8 М.
Mastering Clean Architecture & Repository Pattern in Flutter
52:01
David Serrano
Рет қаралды 19 М.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 931 М.
35 Flutter Tips That Will Change Your Life
10:53
Flutter Mapp
Рет қаралды 297 М.
Flutter Bloc State Management comprehensive Tutorial
17:46
CodeWithDarkwa
Рет қаралды 606
The Story of Next.js
12:13
uidotdev
Рет қаралды 558 М.
REAL OR FAKE?
0:10
dednahype
Рет қаралды 11 МЛН
Байкеры помогли доехать маме и сыну 😯
0:20
Фильмы I Сериалы
Рет қаралды 2,5 МЛН
архив.. Северные Дачи Угледара 23..
0:15
Виталик
Рет қаралды 13 МЛН
Когда пытался заново изобрести велосипед
0:11
Короче, новости
Рет қаралды 8 МЛН
World’s Largest Jello Pool
1:00
Mark Rober
Рет қаралды 84 МЛН
Será Que a FITA vai Grudar ela na PAREDE😱 #shorts
0:44
Lucan Pevidor
Рет қаралды 42 МЛН