I am new to flutter and still learning it. I have a noob question about using media query in flutter. As far as i know “MediaQuery.of(context).size
” is used responsive sizing. but all of sudden i noticed that it rebuild the current context. If i am developing a chap app where i will use MediaQuery.of(context).size
for bottom sheet to adjust height according to keyboard then it will rebuild whole tree again and again, if i am not wrong.
What will be the best practice for such type of scenarios. Is there any other alternate?
Thank you in advance.