Skip to content

Flutter apps build root widget multiple times at startup #3498

Closed

Description

@surya0180

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

Activity

  1. added this to the v3.25.0 milestone on Jul 27, 2021
  2. DanTup commented on Jul 27, 2021

    @DanTup
    Member

    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!

  3. changed the title [-]Running flutter apps in vscode using dart-code extensions[/-] [+]Flutter apps build root widget multiple times at startup[/+] on Jul 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions