Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flutter apps build root widget multiple times at startup #3498

Closed
surya0180 opened this issue Jul 27, 2021 · 1 comment
Closed

Flutter apps build root widget multiple times at startup #3498

surya0180 opened this issue Jul 27, 2021 · 1 comment
Labels
in flutter Relates to running Flutter apps is bug
Milestone

Comments

@surya0180
Copy link

I recently observed a bug in vscode while working with flutter.

When I use vscode run button to run my flutter app, the root widget is building twice, which is completely against the workflow.

When i run the same code using terminal commands [ flutter run ] everything goes fine with no extra builds.

Please solve this issue

@DanTup DanTup added this to the v3.25.0 milestone Jul 27, 2021
@DanTup DanTup added the in flutter Relates to running Flutter apps label Jul 27, 2021
@DanTup
Copy link
Member

DanTup commented Jul 27, 2021

Thanks for the report! I can reproduce this on the released version, but not in the latest code. I believe it was fixed by e6a7149 which no longer sends service extension values at startup that have not been overridden (it seems like they could trigger rebuilds).

So this will be fixed in the next release, but if you need the fix sooner you could try use a nightly build. Sorry for the inconvenience!

@DanTup DanTup closed this as completed Jul 27, 2021
@DanTup DanTup changed the title Running flutter apps in vscode using dart-code extensions Flutter apps build root widget multiple times at startup Jul 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in flutter Relates to running Flutter apps is bug
Projects
None yet
Development

No branches or pull requests

2 participants