MediaQuery as InheritedModel | Behind the PR
Are you using MediaQuery properly?
MediaQuery has over 20 properties.
As an InheritedWidget, if a widget’s build method references MediaQuery.of(context) - the widget gets rebuilt when ANY of the properties change, even if you only access one property.
InheritedModel is an InheritedWidget that allows dependents to be notified when certain parts of the model change.
Watch more How to Flutter → https://goo.gle/HowToFlutter
#Flutter
Видео MediaQuery as InheritedModel | Behind the PR канала Flutter
MediaQuery has over 20 properties.
As an InheritedWidget, if a widget’s build method references MediaQuery.of(context) - the widget gets rebuilt when ANY of the properties change, even if you only access one property.
InheritedModel is an InheritedWidget that allows dependents to be notified when certain parts of the model change.
Watch more How to Flutter → https://goo.gle/HowToFlutter
#Flutter
Видео MediaQuery as InheritedModel | Behind the PR канала Flutter
Комментарии отсутствуют
Информация о видео
8 октября 2024 г. 22:44:35
00:00:57
Другие видео канала