When you use MediaQuery you need to calculate all the paddings, margin, spacement etc... try to avoid it using expanded/flexible widgets, it's like a web: give a size to a parent widget and let the children get the automatic size and spacement.
@shoaibshaikh36519 ай бұрын
that problem can also be solved by wrapping the container inside the Expanded widget.
@pacosotelo99877 ай бұрын
What is better?
@KrizzOnline3 ай бұрын
Ok. Now what if the container contains a text? Now you have to specify the font size using mediaquery right
@ig_moiiz9 ай бұрын
Subscribing because you taught me something
@neza_salton9 ай бұрын
Saved for future use, it's awesome🤗
@rahul22 ай бұрын
u should create similar video with such good explanation for all flutter widgets & important topics
@proQ1013 ай бұрын
these all things are well describe on "Pro Q" flutter channel for deep understanding about media query etc
@Pu24510 ай бұрын
Tks for the video 👍
@riteshyadav4_u10 ай бұрын
this videos helpful for me 🙏
@widgetwisdom-ww5op10 ай бұрын
Glad to hear that
@avazbeknadyrbek7909 ай бұрын
How to set additional settings for Mobile screens ?
@widgetwisdom-ww5op9 ай бұрын
Addition settings like what?
@GuillermoCuadraSarria8 ай бұрын
Set a boolean if the mediaquery is less than 850 for example and build conditional widgets in your tree. So if it's mobile those widgets will be shown or hide.
@phenixUchiwa699 ай бұрын
Tank's bro
@widgetwisdom-ww5op10 ай бұрын
Code & Written tutorial: widgetwisdom.com/flutter-responsive-design
@m.afifudin27374 ай бұрын
This url not work sir
@AmanSingh-my5mw8 ай бұрын
worst thing i learned today
@justinus8 ай бұрын
instead of MediaQuery.of(context).size, I use double.infinity