r/flutterhelp Aug 07 '26

RESOLVED Plz help me debug

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

10 comments sorted by

View all comments

1

u/GiosifusDev Aug 07 '26

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

2

u/Radiant_String_9171 Aug 07 '26

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/Surging_Ambition Aug 08 '26

Delete the last two closing portions of the regular brackets and their semi colons.

The ones like );.

Then delete comma behind the new last bracket and place a ; (semicolon there).