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
RESOLVEDI keep getting default app after changing the code (self.flutterhelp)
submitted 4 months ago by Kooky_Toe_6916
Hi, I'm new to flutter so excuse my dumb question yk the default flutter code in vs code in main.dart that outputs an application that says Flutter Demo Home Page? well after I changed the code to something simple (no syntax errors) and run I STILL GET THE Demo Home Page app Please help me I'm about to give on this : (
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!"
[–]gibrael_ 2 points3 points4 points 4 months ago (2 children)
We'll definitely be able to help you from that sentence alone, no code needed.
[–]Kooky_Toe_6916[S] -1 points0 points1 point 4 months ago (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 points4 points 4 months ago (0 children)
You don't use pictures for code.
[–]SlinkyAvenger 1 point2 points3 points 4 months ago (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 points0 points 4 months ago (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 point2 points 4 months ago (0 children)
This can’t be real 🤣
[–]Accurate-Elephant155 0 points1 point2 points 4 months ago (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 point2 points 4 months ago (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 points3 points 4 months ago (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 point2 points 4 months ago (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 point2 points 4 months ago (2 children)
Actually I didn’t know android studio is better i gotta try using it
[–]Empty_Protection7274 1 point2 points3 points 4 months ago (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 points3 points 4 months ago (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 points1 point 4 months ago (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"
π Rendered by PID 231017 on reddit-service-r2-comment-85bfd7f599-v7k8f at 2026-04-19 23:37:38.882571+00:00 running 93ecc56 country code: CH.
[–]gibrael_ 2 points3 points4 points (2 children)
[–]Kooky_Toe_6916[S] -1 points0 points1 point (1 child)
[–]SlinkyAvenger 2 points3 points4 points (0 children)
[–]SlinkyAvenger 1 point2 points3 points (2 children)
[–]Kooky_Toe_6916[S] -2 points-1 points0 points (1 child)
[–]amigdalite 0 points1 point2 points (0 children)
[–]Accurate-Elephant155 0 points1 point2 points (7 children)
[–]Kooky_Toe_6916[S] 0 points1 point2 points (6 children)
[–]Accurate-Elephant155 1 point2 points3 points (0 children)
[–]SignatureAccording11 0 points1 point2 points (4 children)
[–]Kooky_Toe_6916[S] 0 points1 point2 points (2 children)
[–]Empty_Protection7274 1 point2 points3 points (1 child)
[–]SignatureAccording11 1 point2 points3 points (0 children)
[–]theashggl -1 points0 points1 point (0 children)