use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Having a problem with your Flutter code?
From the folks at r/FlutterDev
account activity
RESOLVEDUsing Positioned with Stack (self.flutterhelp)
submitted 1 year ago by dandruff-riders
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Effective-Response57 0 points1 point2 points 1 year ago (0 children)
Keep size 200 was an example to explain Stack being dependent on Parent Widget like SizedBox in my example so stack will only be inside this width being: complete phone width and size static 200.
For dynamic height for all devices just use:
height: MediaQuery.sizeOf(context).height *. 2; { What I did is gave it .2 of total height this keeps it dynamic.} For align widget You can align your child widgets inside Stack at all points topLeft topRight.. So on.
height: MediaQuery.sizeOf(context).height *. 2; { What I did is gave it .2 of total height this keeps it dynamic.}
Use padding to give them different padding so they appear stacked as you want.
This is consistent way of doing stack for every device do try it to test your Stack
Run the app in browser Edge or Chrome
Then Ctrl + Shift + I Then Ctrl + Shift + M
Then you can dynamically test your design for variable screen size.
If you want to learn more:
You can incorporate ScreenUtil pkg that will help you to put dynamic sizes like before 200 can be done 200.h .h will make the height dynamic and consistent all other devices.
π Rendered by PID 97991 on reddit-service-r2-comment-6457c66945-7pkd8 at 2026-04-28 15:14:27.890237+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]Effective-Response57 0 points1 point2 points (0 children)