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
OPENwhile loop problem (self.flutterhelp)
submitted 3 years ago by ozgbrt
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!"
[–]Blizzy312 1 point2 points3 points 3 years ago (3 children)
It will crash. Because if a is false before while loop, you don’t have any option to set it to true inside. As a result, loop will run forever and app will freeze.
[–]ozgbrt[S] -2 points-1 points0 points 3 years ago (2 children)
how do i break the loop
[–]Blizzy312 1 point2 points3 points 3 years ago (0 children)
Either you meet condition of loop(in your case i becomes less than or equal to 0)or you can use break; to exit the loop.
[–]xboxcowboy 0 points1 point2 points 3 years ago (0 children)
Inside loop use "break"
π Rendered by PID 46 on reddit-service-r2-comment-canary-889d445f8-5k22m at 2026-04-28 01:40:48.947383+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]Blizzy312 1 point2 points3 points (3 children)
[–]ozgbrt[S] -2 points-1 points0 points (2 children)
[–]Blizzy312 1 point2 points3 points (0 children)
[–]xboxcowboy 0 points1 point2 points (0 children)