Skip to content

Switch tasks from "dart pub run" and "flutter pub run" to "dart run", setting FLUTTER_ROOT if appropriate #5874

@CaLouro

Description

@CaLouro

Is your feature request related to a problem? Please describe.
There is no immediate problem but is related to a deprecation. Since flutter pub run was deprecated in favor of dart run, the built in task command in the extension should be updated to use dart run.

Describe the solution you'd like
Update all following build tasks to use dart run instead

  • flutter: flutter pub run build_runner build
  • flutter: flutter pub run build_runner watch
  • flutter: flutter pub run build_runner serve

Describe alternatives you've considered
No other alternatives considered.

Additional context
Output from running flutter: flutter pub run build_runner build:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    in tasksRelates to VS Code tasks, such as those provided by Task Providersis enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions