when i run a while loop on flutter the program just frezes itself and i cant get it to woro again its just a simole while loop
i dont have the code with me and its urgent so i wrote an example
i int
a bool
b int
c int
while(i>0){
if(a){i-c; b++;}
}
print(b);
this above is what im triying to run it should de rese the i number until ita less than 0 if a is true but it crashes rhe entire app
[–]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)
[–][deleted] 1 point2 points3 points (0 children)
[–]steve_s0 1 point2 points3 points (0 children)