title: Whats the difference between double.infinity and MediaQuery?
body: <p>To occupy the whole width or height , I use <code>double.infinity</code>, but going through some of the flutter samples, I have noticed many people use <code>MediaQuery.of(context).size.width</code> or <code>height</code>. I went through the docs but there are no differences mentioned between this two or when to use which one as both allow same feature. Are they specific to particular widgets?</p>