iampawan / VelocityX

A minimalist Flutter framework for rapidly building Flutter apps.

Home Page:https://velocityx.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optimize MediaQuery dependent widgets rebuild

Shreemanarjun opened this issue · comments

When we are using MediaQuery properties the widgets are rebuilt unnecessarily even any of its property change.
To optimise this we have to use the latest propertyOf(context).

We should use this property in velocityX for optimise internal rebuild of velocityX widgets .

Related issue and api changes landed in 3.10 :

Tweet : MediaQuery properties

MediaQuery as InheritedModel