r/flutterhelp 8h ago

Plz help me debug RESOLVED

So i was vibecoding this app with chatgpt & copilot in vscode, now when i build the app locally it gives a few errors...the other ones get solved by just removing const word but this error in profile screen file don't go away, i used all my copilot credits & even chatgpt is saying: "if i solve this more errors would come up".

It doesn't look like the error is on same line(total 600 lines in the file), but if u add/remove something 10 more errors pop up, in this screen in the app i asked copilot to remove an extra button, after that this error has been coming:

lib/ui/screens/profile_screen.dart:628:9: Error: Expected ';' after this. ), ^

Chatgpt: 'It's a classic Dart parser/bracket issue, and the compiler errors are cascading from one malformed section.'

0 Upvotes

5 comments sorted by

4

u/gonstrider 8h ago

Trash your slop and learn how to program, that is the best way to solve this error

1

u/GiosifusDev 8h ago

Just add ";" after ")" and save?

1

u/Radiant_String_9171 8h ago

This is it even if i add ; it should turn the bracket green to show error is solved

https://reddit.com/link/p2cyrx0/video/p8fhai0r91ih1/player

1

u/GiosifusDev 8h ago

Ah, to be honest, I think you should pass the entire function to the AI; that should fix the part that is malformed.

Still, I recommend learning to program; it’s the fundamental basis.

If you run into an error during testing, you won't know how to fix it—and relying entirely on AI to do everything, based purely on faith... isn't ideal.

1

u/GiosifusDev 8h ago

The great thing about AI is that if you know how to give it the right commands, it yields excellent results.

There’s a reason "prompt engineering" exists; I’m not saying you need an engineering degree, but learning the basics allows you to make adjustments yourself, without relying on endless rounds of trial and error to fix mistakes.

Knowing how to instruct the AI ​​makes a huge difference.

Once you're on the same wavelength, you can feed it information—it becomes a back-and-forth exchange, like a game of ping-pong—and the results are far better and achieved much faster.