Flutter ValueNotifier and ChangeNotifier Difference | State Management

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

dbestech

dbestech

Күн бұрын

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
@hendrysteven7834
@hendrysteven7834 2 жыл бұрын
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
@fozaibx1 Жыл бұрын
What if i want to use the value of the notifier in multiple screens? how can I do that?
@meek6836
@meek6836 2 жыл бұрын
Really nice video. When should we use ChangeNotifierBuilder and when valueNotifier?
@dbestech
@dbestech 2 жыл бұрын
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.
@meek6836
@meek6836 2 жыл бұрын
@@dbestech Thanks!
@sbasalan
@sbasalan 2 жыл бұрын
What exactly ValueNotifier provide us if we use it in our projects? Is that part clear in the video context? or missed
@dbestech
@dbestech 2 жыл бұрын
It gives the chance to work with individual variable properly. In once one sense it's cleaner than changenotifier
@sbasalan
@sbasalan 2 жыл бұрын
@@dbestech Thank you for your rapidly response. It is very useful then
@sbasalan
@sbasalan 2 жыл бұрын
@@dbestech btw, how about Riverpod? Is it covering the same architecture?
@legardemontcho6739
@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
@dbestech Ай бұрын
www.dbestech.com/tutorials/differences-between-changenotifier,-statefulwidget,-and-valuenotifier-in-flutter-for-state-management
@legardemontcho6739
@legardemontcho6739 Ай бұрын
@@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
@dbestech Ай бұрын
@@legardemontcho6739 I have updated with examples now
@legardemontcho6739
@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
@dbestech Ай бұрын
@@legardemontcho6739 thanks, I will update it
@seangreen9590
@seangreen9590 Жыл бұрын
Its not clear
@dbestech
@dbestech Жыл бұрын
Still not?
@seangreen9590
@seangreen9590 Жыл бұрын
@@dbestech yes and im sorry, ill try to rewach and see
Flutter Provider State Management | Master in 10 Minutes
10:41
Change Notifier Provider Explained
14:32
Learn App Code
Рет қаралды 20 М.
100❤️
00:19
MY💝No War🤝
Рет қаралды 14 МЛН
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 33 МЛН
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 106 МЛН
Вечный ДВИГАТЕЛЬ!⚙️ #shorts
00:27
Гараж 54
Рет қаралды 14 МЛН
Flutter Provider 5 changeNotifier Example | State Management
10:15
Learn Flutter with Me
Рет қаралды 23 М.
Flutter State Management: setState, BLoC, ValueNotifier, Provider
15:42
Coding Riverpod with creator of #Riverpod, Remi Rousselet
1:11:45
Majid Hajian
Рет қаралды 10 М.
7 Common Flutter Providers Explained
18:57
Learn App Code
Рет қаралды 18 М.
Lazy Flutter performance | Session
18:30
Flutter
Рет қаралды 58 М.
KMP vs. Flutter - Who Will Win The Cross-Platform Battle?
16:19
Philipp Lackner
Рет қаралды 34 М.
Provider State management - ChangeNotifier + Flutter
18:28
Flutter Explained
Рет қаралды 27 М.
Klavye İle Trafik Işığını Yönetmek #shorts
0:18
Osman Kabadayı
Рет қаралды 956 М.
Опять съемные крышки в смартфонах? #cmf
0:50
OZON РАЗБИЛИ 3 КОМПЬЮТЕРА
0:57
Кинг Комп Shorts
Рет қаралды 1,5 МЛН