When I am using the MediaQuery to resize a container, like this =>
height: MediaQuery.of(context).size.height - 100,
the subtraction or the resizing of the container starts from the bottom instead of from the top. Please someone should help me out
You could wrap it with Align
. It happens because naturally Flutter draw the Widgets from Top Left.
Something like this:
Align(
alignment: Alignment.bottomCenter,
child: Container(
height: MediaQuery.of(context).size.height - 100,
color: Colors.white,
),
),
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With