Learn the difference between value notifier and change notifier in Flutter. Learn more here www.dbestech.com/tutorials/di... www.dbestech.com/tutorials/di...
Пікірлер: 18
@hendrysteven78342 жыл бұрын
do you mind, Im trying to use cubit (watched your tutorial), and I am so confuse about applying it at the bottom navigation bar..
@fozaibx1 Жыл бұрын
What if i want to use the value of the notifier in multiple screens? how can I do that?
@meek68362 жыл бұрын
Really nice video. When should we use ChangeNotifierBuilder and when valueNotifier?
@dbestech2 жыл бұрын
When you want to work a on single value change use valueNotifier. It makes your code faster to run, Since you only work on one widget to rebuild. It's bound to a widget, rather than whole widget tree.
@meek68362 жыл бұрын
@@dbestech Thanks!
@sbasalan2 жыл бұрын
What exactly ValueNotifier provide us if we use it in our projects? Is that part clear in the video context? or missed
@dbestech2 жыл бұрын
It gives the chance to work with individual variable properly. In once one sense it's cleaner than changenotifier
@sbasalan2 жыл бұрын
@@dbestech Thank you for your rapidly response. It is very useful then
@sbasalan2 жыл бұрын
@@dbestech btw, how about Riverpod? Is it covering the same architecture?
@legardemontcho6739Ай бұрын
When people do tutorials, it's important to first explain the differences between ChangeNotifier, statefull and ValueNotifier. When will you suggest using ChangeNotifier and not ValueNotifier, for example?
@@dbestech Your article is more theoretical than practical. A reader should be able to understand your explanations with practical examples. For example, how many builds happen when you use a Consummer (Provider) compared to a ValueListenable (ValueNotifier)?
@dbestechАй бұрын
@@legardemontcho6739 I have updated with examples now
@legardemontcho6739Ай бұрын
@@dbestech Thank you for your additional comments. However, to perfect your article, I suggest you use a practical example of state management where the use of the ValueNotifier is limited. This example will help the reader understand what you mean by simple and complex.
@dbestechАй бұрын
@@legardemontcho6739 thanks, I will update it
@seangreen9590 Жыл бұрын
Its not clear
@dbestech Жыл бұрын
Still not?
@seangreen9590 Жыл бұрын
@@dbestech yes and im sorry, ill try to rewach and see