Тёмный

Flutter Bloc - AUTOMATIC LOOKUP - v0.20 (and Up), Updated Tutorial 

Reso Coder
Подписаться 112 тыс.
Просмотров 15 тыс.
50% 1

📗 Learn from the written tutorial & get all the links👇👇
resocoder.com/flutter-bloc-au...
👨‍💻 Do you write good code? Find out now 👇
resocoder.com/good-code-quiz
The Bloc library for Flutter is a life-saver for implementing the BLoC pattern in a simple and streamlined way without all the boilerplate. With over 2000 stars on GitHub, I think it's fair to say that this is the most widely used state management package for Flutter.
It's amazing to see that it is in constant development from its author. As new features are added though, the old ones are either deprecated or they stop working altogether. In this tutorial, you are going to learn the newest best practices and ways of managing state with this awesome library.
Go to my website for more information, code examples, and articles:
● resocoder.com
Follow me on social media:
● / resocoder
● / resocoder
● / resocoder
● gab.ai/resocoder

Опубликовано:

 

11 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 20   
@intelxd
@intelxd 4 года назад
Man, I just got to know you, but I'm already addicted to your videos! Your teaching skills are great! Thanks you very much!
@juliosena6406
@juliosena6406 5 лет назад
Awesome!!! Nice upgrade for Bloc v0.20. Thank you for the explanation.
@waqastahir7885
@waqastahir7885 3 года назад
finally i found a man with good teaching skills i.e bloc
@Nobody-ky7sl
@Nobody-ky7sl 5 лет назад
Wow thanks, I can’t wait other videos
@fabrizioalmeida8435
@fabrizioalmeida8435 5 лет назад
Thank you,👍
@marcosrodriguez9454
@marcosrodriguez9454 5 лет назад
Bro you are the Best!!!!
@thomasmabika7291
@thomasmabika7291 5 лет назад
hey Reso, can you please do an in-depth tutorial on Provider, focusing mainly on the types of providers and where they ought to be used...for example where should I use FutureProvider? what about ListenableProvider or ValueListenableProvider? what are even the differences between all these providers?
@LeviCook
@LeviCook 4 года назад
Very helpful, thank you. Do you know what is the RepositoryProvider for?
@ChumX100
@ChumX100 4 года назад
The RepositoryProvider is like the BlocProvider but for repositories instead of blocs. It works as a dependency injection, allowing you to access repositories from widgets under a subtree. A repository is an abstraction for data regardless of its origin (APIs, local storage, etc...).
@danielfelten
@danielfelten 5 лет назад
Thanks for the video! One question, you specify your screen widgets as Stateless and uses the BlocProvider each time you dispatch an event for the bloc. Whats the advantage of using a Stateless widget instead of a Stateful Widget? On a Stateful widget I would create a local variable for the bloc and set it in initState or provide it one time in the build method.
@danielfelten
@danielfelten 4 года назад
No answer here?
@ChumX100
@ChumX100 4 года назад
As showed in the vid, the BlocProvider is itself a stateful widget. The advantages of using it instead of managing your own instantiated Blocs are multiple. Kere are three of them: First, you get access to it down the subtree without needing to pass your bloc in the build methods at each stage. Second, the provider will automatically dispose the StreamSinks appropiately avoiding memory leaks. Third, the blocs will be lazily lodad, mening that they will only be instantiated when used as opposed to as soon as the element tree is built, which is the default.
@aytunch
@aytunch 5 лет назад
Matej can you please clarify this topic briefly: I have been using flutter_bloc and I am loving it and I admire the authors working hard to maintain and upgrading it. For a person like me who has been using bloc, what is the need for Provider? In which cases would we need to help of Provider? Is it just something "nice to have" and not obligatory?
@ResoCoder
@ResoCoder 5 лет назад
I'm yet to look into provider in more detail. Personally, I haven't used this package yet outside of simple tutorials and I'm alive and well ;😉. Definitely not mandatory.
@shrikantnarayankar4778
@shrikantnarayankar4778 5 лет назад
Please help me..How to use chopper With Bloc
@ZimbronApps
@ZimbronApps 5 лет назад
Provider or Bloc?
@juliosena6406
@juliosena6406 5 лет назад
Bloc for me
@ResoCoder
@ResoCoder 5 лет назад
Bloc with Provider 😉
@katekko1
@katekko1 5 лет назад
How about this lib: pub.dev/packages/bloc_pattern? I guess is more easy to implement somethings
@igorbondarenko9854
@igorbondarenko9854 5 лет назад
What do you think about github.com/Gorniv/vscode-flutter-files?
Далее
На чем играют ПРО | Standoff 2
07:25
Просмотров 274 тыс.
Nobody Can Do it🚗❓
00:15
Просмотров 1,7 млн
Complex Animations in Flutter using Rive | Flare
15:44
Просмотров 224 тыс.
Top 12 Flutter Tips & Tricks
9:32
Просмотров 266 тыс.
Rest API - Best Practices - Design
15:50
Просмотров 100 тыс.
Pragmatic State Management in Flutter (Google I/O'19)
33:25
На чем играют ПРО | Standoff 2
07:25
Просмотров 274 тыс.