Загрузка...

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
Яндекс.Метрика

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять