Тёмный

Flutter Riverpod State Management | Simplest Explanation 

dbestech
Подписаться 126 тыс.
Просмотров 60 тыс.
50% 1

Flutter Riverpod state management app counter app example.
😇😇😇😇😇😇😇
Complete riverpod app
www.dbestech.com/tutorials/fl...
😍😍😍😍😍
Get the code here
www.dbestech.com/tutorials/fl...
Your Riverpod Bible is here
www.dbestech.com/tutorials/fl...
🔥🔥🔥🔥🔥🔥Flutter Riverpod tutorial
Take the course on Udemy
www.udemy.com/course/flutter-...
And
www.udemy.com/course/master-f...
Twitter @dbestech
Buy me a coffee
www.buymeacoffee.com/dbestech...

Наука

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

 

5 апр 2022

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 75   
@chind0na
@chind0na Год назад
It was a nightmare using setState on a tabBar view child. A simple provider was not cutting it. StateProvider rocks. THANK YOU!! Just bought you a coffee.
@dbestech
@dbestech Год назад
Glad it helped! Thanks for the coffee
@AlexanderSuraphel
@AlexanderSuraphel Год назад
Great and succinct intro! Thanks for providing the code too. Scanning the text is much easier than navigating the video for some questions. Please keep it up!
@dbestech
@dbestech Год назад
Glad it was helpful!
@JohnnyFantaOrange
@JohnnyFantaOrange Год назад
Simple, quick and precise. Thanks.
@dbestech
@dbestech Год назад
You're welcome!
@syedmahamudulhasan7723
@syedmahamudulhasan7723 Год назад
I have watch 2 or 3 video before watching this one. But to me this one is best. Thanks man @dbestech . Please make a video with more details explanation. Thank you.
@dbestech
@dbestech Год назад
Noted. Thanks I will make more.
@friend_lv
@friend_lv Год назад
I love this video!
@sword452
@sword452 10 дней назад
Wsalam! brother ❤
@dbestech
@dbestech 9 дней назад
Learn about our excellent course Flutter Multi Vendor App www.dbestech.com/tutorials/flutter-multi-vendor-app Flutter Single Vendor App www.dbestech.com/tutorials/flutter-food-delivery-app-e-commerce-for-ios-and-android
@srinivasnahak3473
@srinivasnahak3473 Год назад
You're a genius!!
@dbestech
@dbestech Год назад
🔥🔥🔥🔥🔥🔥Flutter Riverpod tutorial www.udemy.com/course/flutter-riverpod-tutorial-sqlite-notification/?referralCode=2B0CFD959743DB48F756
@fahadmustafa650
@fahadmustafa650 Год назад
At 4:32 on line 51 instead of using Expanded(child:Container()) inside Row. You can simple use Spacer Widget.
@dbestech
@dbestech Год назад
Thanks
@stevenlevittt
@stevenlevittt Год назад
Or SizedBox(width:15).. Ofcourse 15 represents any number you choose for space between the 2 widgets
@fluttermakers
@fluttermakers 2 года назад
good tutorial thanks bro
@dbestech
@dbestech 2 года назад
Thanks
@enemiduks
@enemiduks Год назад
Thanks, this really help
@dbestech
@dbestech Год назад
Glad it helped
@MDSarfaraj-bq5mu
@MDSarfaraj-bq5mu 2 года назад
Really nice one
@dbestech
@dbestech 2 года назад
Thanks
11 месяцев назад
3 years coding flutter. had no idea you could add 2 floating buttons
@dbestech
@dbestech 11 месяцев назад
ha. We learn new things all the time.
@taufiqtab77
@taufiqtab77 Год назад
Thank you so much
@dbestech
@dbestech Год назад
You're most welcome
@vunguyen-qf7om
@vunguyen-qf7om 2 года назад
Thank you. please make tutorial about combination of riverpod and hook
@dbestech
@dbestech 2 года назад
Great suggestion!
@scalarcoding
@scalarcoding Год назад
Assalamualaikum brother, you inspired on using GetX until it became my main state management solution in most app I made. But today flutter forums said that GetX is a controversy with many issues around it, so I have to find alternative state management in case of something bad happened and eventually landed on this video. I mainly used GetX for state management, dependency injection, its utilities, and theme changing. Can you suggest me an alternative of those needs? I'm having hard times looking for the alternatives. Thanks before.
@dbestech
@dbestech Год назад
Hi Scalar, thanks for the comment. I understand the net is a disastrous place. Not sure what to do. Actually you may also follow your own reasoning about it. You need to understand many things before making a decision. Getx is easy and provides many features. It makes life easy. it's about time cost and learning cost. Getx is the way to way. Other packages are cool too, but I don't see how they are better than Getx. I still use getx for most of my projects. I learned others because it love to learn.
@scalarcoding
@scalarcoding 10 месяцев назад
@@dbestech Yeah, me too. I love to learn especially from your channel where I found out the simplest and easiest explanation. One more question. You gave an example of stateprovider as int datatype. Suppose I want to implement riverpod as a shopping cart with its items of the ShoppingCart class instance, can I pass it it in the stateprovider function?
@MuhammadFaizan-xq2sh
@MuhammadFaizan-xq2sh 2 года назад
Thank you
@dbestech
@dbestech 2 года назад
You're welcome
@papiyaakter6508
@papiyaakter6508 2 года назад
Wa Alaikumussalam
@dbestech
@dbestech 2 года назад
thanks
@Collins01
@Collins01 2 года назад
Thanks a lot. What's of we want to use it without the consumer widget?. Probably in another service class. Thanks
@leoingson
@leoingson 2 года назад
Wrap the UI part to update in Consumer() - at least in 0.14 that was.
@greglee7708
@greglee7708 2 года назад
I think that You should be using notifier instead of state with ref.read(), for example ref.read(counterStateProvider.notifier).state++
@dbestech
@dbestech 2 года назад
reason pls
@greglee7708
@greglee7708 2 года назад
@@dbestech When I was learning riverpod that's how I remember it, they were using .notifier everywhere, maybe it's ok both ways
@maheshjamdade1
@maheshjamdade1 Год назад
@greglee You are right, the reason being 'state' is deprecated and shouldn't be used. Will be removed in 3.0.0. Use either `ref.watch(provider)` or `ref.read(provider.notifier)` instead.
@user-rh1sw6ji6t
@user-rh1sw6ji6t Год назад
Hi, can you make a clean architecture with Riverpods tutorial? Such like mvvm or mvc
@dbestech
@dbestech Год назад
Yes I can
@aswitnessedbythelenses963
@aswitnessedbythelenses963 Год назад
WalikumAsalam wa rahmatullah wabarakatuhu
@bashiruibrahim8443
@bashiruibrahim8443 2 года назад
Wslm Masha Allah
@dbestech
@dbestech 2 года назад
thanks
@RapPayne
@RapPayne 6 месяцев назад
I appreciate the brevity and how you get right to the point. But your video is already out-of-date -- Riverpod has been updated. The StateProvider.state property is deprecated in favor or StateProvider.notifier. Bummer, but maybe you can re-record the video?
@dbestech
@dbestech 6 месяцев назад
Thanks, it's an old tutorial. I will upload a new one though.
@peshawaamin3083
@peshawaamin3083 2 года назад
❤️
@dbestech
@dbestech 2 года назад
Thanks
@youcefmoulla1828
@youcefmoulla1828 2 года назад
Provider + Getx = riverpod
@kirill4531
@kirill4531 Год назад
Basically, you create a global variable that lives forever and acts as a subscriber to changes. What if you have multiple variables to depend on for a single page? And how many you will end up with? dozens? hundreds?
@dbestech
@dbestech Год назад
well, it's riverpod architecture to declare global variables.
@kirill4531
@kirill4531 Год назад
@@dbestech My Java teacher would have beaten my hands off for building the entire architecture on static variables back in the days
@mikopiko
@mikopiko Год назад
How would you do it if the Widget is stateful? Can you still extend the class with ConsumerWidget?
@dbestech
@dbestech Год назад
You replace stateful with comsuerstateful widget and stateless widget with comsumerwidget
@mikopiko
@mikopiko Год назад
@@dbestech Awesome, thanks! I'll have to dig deeper into the docs later today.
@mikopiko
@mikopiko Год назад
@@dbestech Update, yes, that worked. One thing I had to update was the "state" property has been deprecated, you have to use the "notifier" property instead. So from: ref.read(demoProvider.state).state = value; to: ref.read(demoProvider.notifier).state = value;
@lethabomakola5304
@lethabomakola5304 Год назад
I'm not sure if you're still answering comments for this video but I keep getting the following error when try to use "pod install" : The term 'pod' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
@dbestech
@dbestech Год назад
It's local environment issue. not much to do with this tutorial
@呀咧呀咧
@呀咧呀咧 11 месяцев назад
Why are you running pod in Windows? If you need to build iOS / macOS app, you need a macOS machine.
@subrotoxing8214
@subrotoxing8214 2 года назад
hi... so what is the advantage from switching from say getx to riverpod ? i know that riverpod is a better provider ... but not really sure what it is in practical terms. i mean getx is so practical , why use riverpod ?
@dbestech
@dbestech 2 года назад
Yes. Getx is the best by far. I love getx. I made this because a lot of my fans wanna learn Riverpod. For me I love learning different technology
@edenassos
@edenassos 2 года назад
@@dbestech You clearly have never made or gone near a commercial-level app if you think GetX is the best. GetX is a nightmare to scale.
@DanMlayah
@DanMlayah 2 года назад
@@edenassos Many people have been theoretically saying this, but not many concrete examples are provided to back this fact up. For example how is it a nightmare to scale ? how are other state management solving the scalability issue ?and to which extent do we draw a line between our general code design malpractices and a worst state management package ? unless these things are addressed, i guess mostly it boils down to an individual design patterns. A right tool in wrong hands will make craftsman say its the worst tool .
@edenassos
@edenassos 2 года назад
@@DanMlayah I have 3 startups that each have their own app with millions of users each, try maintaining and running tests on GetX at that scale. No concrete proof? Oh, so it means you've never had to manage a 7 figure user app, makes sense.
@DanMlayah
@DanMlayah 2 года назад
@@edenassos you have only stated one downside,testing. Now that you have managed a relatively big app,outline the other challenges you faced when scaling it,how you handled things,and also how the alternatives made the scaling process simple. We are here to learn
Далее
Riverpod Simplified | Easy State Management
14:17
Просмотров 43 тыс.
🔴Ютуб закрывают... Пока?
00:39
Просмотров 1,6 млн
State Management Like A Pro - Flutter Riverpod
10:30
Просмотров 76 тыс.
Flutter State Management - The Grand Tour
14:07
Просмотров 239 тыс.
programming projects that taught me how to code
9:49
Просмотров 280 тыс.
Riverpod or Bloc? Which One is Better?
3:44
Просмотров 40 тыс.
What is Flutter?
7:53
Просмотров 808 тыс.
КРУТОЙ ТЕЛЕФОН
0:16
Просмотров 6 млн