Moving from setState to Riverpod in Flutter Part 1

  Рет қаралды 18,303

The Flutter Factory

The Flutter Factory

Күн бұрын

Пікірлер: 28
@FlutterMapp
@FlutterMapp 2 жыл бұрын
Thanks man for the vid 🔥
@TheFlutterFactory
@TheFlutterFactory 2 жыл бұрын
You're welcome.
@madhankanakamani3725
@madhankanakamani3725 2 жыл бұрын
Thanks man, Finally i found how to create and use StateNotifier effectively from this video thanks a lot for this 🤞
@dasaintgray
@dasaintgray 2 жыл бұрын
Thank you so much, i really appreciate your work, it helps me a lot on my current project. Keep up the good work Master....
@omalperera
@omalperera 2 жыл бұрын
Great video. simply explained
@MartinJahn
@MartinJahn 3 жыл бұрын
I'm just looking for a way to manage state. I've tried bloc which I didn't like. Riverpod looks much more promising. This video definitely helped.
@franciscoruiz9460
@franciscoruiz9460 2 жыл бұрын
Very nice tutorial! Thank you.
@juanmacias5922
@juanmacias5922 2 жыл бұрын
Great in depth, and to the point video!
@KrastyoKrastev
@KrastyoKrastev 3 жыл бұрын
Thank you! Finally understood the basics thanks to this video! Now I can build my first app with the Future provider :)
@luisalbertomartinezgarcia3012
@luisalbertomartinezgarcia3012 3 жыл бұрын
pls part 2 thaaaaankssss !!!
@fluttercode4236
@fluttercode4236 2 жыл бұрын
Good work.thank you😀
@ani-singh
@ani-singh 2 жыл бұрын
In case userList is not working, add "as List" to userList- final userList = ref.watch(userListProvider) as List;
@gorochan6087
@gorochan6087 2 жыл бұрын
awesome! my problem is solved.thank you so much
@user-zi3nf1cv1z
@user-zi3nf1cv1z 3 жыл бұрын
Hello. Very useful video. Is it possible to make global provider (for example: when user tap on listview item, this value i want to show on every further screen. I tried make global provider inside OnTap method, but a i can't get access to it in another screen anyway )in one screen and get it's value on another screen? P:S: Sorry for my english )
@yusufumar6738
@yusufumar6738 2 жыл бұрын
thanks a lot for this amazing tutor. please how can someone use a boolean with either StateProvider or StateNotifierProvider, i have tried something like this "final isPro = StateProvider((ref) => false);" and tries to watch like this " bool test = watch(isPro);". . . so i got the error. "The argument type 'StateProvider' can't be assigned to the parameter type 'ProviderBase
@francescofreddi4374
@francescofreddi4374 3 жыл бұрын
i love youuuuuuuuuuuuuu
@zayaerme
@zayaerme 2 жыл бұрын
26:30 they have changed something in the Matrix or just editing error😅
@ericchua3492
@ericchua3492 3 жыл бұрын
Weird, when I restart the application, it shows me this instead Restarted application in 278ms. flutter: Home rebuilding... flutter: UserList rebuilding... flutter: Home rebuilding... flutter: UserList rebuilding... I follow your video step by step, any idea?
@TheFlutterFactory
@TheFlutterFactory 3 жыл бұрын
I didn't optimize for rebuilds. That was my fault. I was too focused on the riverpod funcationality itself. One thing to note is that watching a provider at the top of your build function will rebuild the entire widget (and any child widgets)
@ezone2726
@ezone2726 3 жыл бұрын
Need more tutorial on flutter_riverpod. Thank you.
@TheFlutterFactory
@TheFlutterFactory 3 жыл бұрын
soon
@ezone2726
@ezone2726 3 жыл бұрын
@@TheFlutterFactory hope you will share more series flutter_riverpod very soon and we are excting too much❤️
@RandalLSchwartz
@RandalLSchwartz 3 жыл бұрын
Your use of context.read() early in the screencast (around 8:30) to get the Cheetah Coding value is probably misleading. If the provider of that value ever changes the value, your view would *not* be updated. It should have used a "watch" instead. Remi has commented on this "fear of watch" behavior, even referencing it in the official docs.
@TheFlutterFactory
@TheFlutterFactory 3 жыл бұрын
For a constant value, it's ok here since the output will be the same. I get your point though. Old habits from Provider.
@TheFlutterFactory
@TheFlutterFactory 3 жыл бұрын
I appreciate all your input on this. I know you've been a big advocate for RiverPod online.
@martinbohling6366
@martinbohling6366 2 жыл бұрын
Finally figured out "Why doesn't it work when I try it?" There are breaking code changes between the version of riverpod in the video (mid 2021) and v1.0.0 which came out in August 2021. It's almost impossible for video tutorials to stay up-to-date in the flutter world. Poor guy now has the choice: Reshoot the video so that it is once again a top tutorial for this package, or simply accept that it's "mostly correct, but won't actually run" if you install the latest version of riverpod.
@wenyeh24
@wenyeh24 3 жыл бұрын
github link error
@TheFlutterFactory
@TheFlutterFactory 3 жыл бұрын
Thanks for letting me know. I just corrected the link
Moving from setState to Riverpod in Flutter Part 2
18:18
The Flutter Factory
Рет қаралды 4,5 М.
Chapter 1 - State Management Basics - Flutter State Management Course 💙
1:02:00
王子原来是假正经#艾莎
00:39
在逃的公主
Рет қаралды 16 МЛН
❌Разве такое возможно? #story
01:00
Кэри Найс
Рет қаралды 3,8 МЛН
KMP vs. Flutter - Who Will Win The Cross-Platform Battle?
16:19
Philipp Lackner
Рет қаралды 44 М.
Riverpod Simplified | Easy State Management
14:17
Tadas Petra
Рет қаралды 44 М.
State Management Like A Pro - Flutter Riverpod
10:30
Robert Brunhage
Рет қаралды 76 М.
The Secret Science of Perfect Spacing
9:40
Chainlift
Рет қаралды 408 М.
Learn Flutter Hooks and Maximize Your Code Reuse
10:36
Robert Brunhage
Рет қаралды 61 М.
Top 30 Flutter Tips and Tricks
6:50
Flutter Mapp
Рет қаралды 551 М.
Flutter Tutorial - Riverpod - 1/3 The Complete Guide For Providers
19:26
HeyFlutter․com
Рет қаралды 30 М.
Flutter Provider Tutorial (State Management)
8:20
Benjamin Carlson
Рет қаралды 80 М.
王子原来是假正经#艾莎
00:39
在逃的公主
Рет қаралды 16 МЛН