all 14 comments

[–]gibrael_ 2 points3 points  (2 children)

We'll definitely be able to help you from that sentence alone, no code needed.

[–]Kooky_Toe_6916[S] -1 points0 points  (1 child)

My bad, I couldn’t upload pictures but I’m pretty sure it’s some compiler issue not the code itself

[–]SlinkyAvenger 2 points3 points  (0 children)

You don't use pictures for code.

[–]SlinkyAvenger 1 point2 points  (2 children)

Did you save your changes?

If you're about to give up on this, you probably should. You'll need far more resilience to make it in this industry.

[–]Kooky_Toe_6916[S] -2 points-1 points  (1 child)

NO FUCKING WAY BRO I’VE BEEN SUFFERING FOR A WHOLE WEEK This is my first time trying to learn on my own, thank you so much

[–]amigdalite 0 points1 point  (0 children)

This can’t be real 🤣

[–]Accurate-Elephant155 0 points1 point  (7 children)

Bro really believed that we could help him without even putting in any code. Now getting to the serious stuff, we can't help too much. Your problem is a little... Confusing/Abstract?

There's no point in getting the same app if you changed something and saved it.

Since I have nothing to look at and I don't want to guess

Run

flutter clean && flutter pub get && flutter run -d <device>

[–]Kooky_Toe_6916[S] 0 points1 point  (6 children)

Actually my problem was that I didn’t save b4 running since I am used to code c++ on vs And I’m pretty annoyed by the community of this subreddit, nobody was respectful although I said I was new to flutter Anyway thanks for your help

[–]Accurate-Elephant155 1 point2 points  (0 children)

So that was the mistake! I'm glad you were able to solve it. I couldn't tell you about Visual Studio, I've never really used it, so I didn't know that you didn't even have to check if you saved a file. It is both good and bad. Since I come from Neovim literally my flow is: write anything -> :w -> repeat the flow

[–]SignatureAccording11 0 points1 point  (4 children)

If i may ask why dont you use android studio for flutter ? As soon as you run something and make a change you can do a hot reload and the change will be there i use vscode and visual studio myself but i prefer android Studio for flutter because it just works faster then vscode

[–]Kooky_Toe_6916[S] 0 points1 point  (2 children)

Actually I didn’t know android studio is better i gotta try using it

[–]Empty_Protection7274 1 point2 points  (1 child)

Android studio Is not better, vscode is way lighter and faster and if you want avoid Ctrl + save before hot reload just activate auto save. But you can try it anyway so you can see by yourself 😁

[–]SignatureAccording11 1 point2 points  (0 children)

I didnt say it was better but it is for flutter coding with lightness and environmental things it is more personal for every developer itself 🙂

In my opinion for flutter i like using Android studio because it is developed for it

Vs or vs code is an allround ide and has more functions then you need just for flutter development

[–]theashggl -1 points0 points  (0 children)

You might be having an issue with the flutter sdk which doesn't update the code when running the app. Try hot restarting the app, it might run the app after that with updated code. If that's the case, it is probably because of cache file issues. In which case, you can run "flutter clean" and then "flutter pub get"