1

I am trying out JetBrains Fleet. I was thinking to make a sample Flutter project in it. But not sure how to configure run.json for Flutter project.

It is pretty simple when it comes to terminal command: flutter run --debug or flutter run --release.

But I am struck at run.json file. Don't know what to write there.

LazyOne
  • 158,824
  • 45
  • 388
  • 391

1 Answers1

3

You could use a run configuration of type command to achieve what you need.

you'll have to set "type" : "command", then select your shell program (either /bin/sh or powershell depends on the platform you use).

Finally, you have to set args according to use case.

See this example (working for me on Windows) :

{
    "configurations": [
        {
          "type": "command",
          "name": "run config debug",
          "program": "powershell", // For Windows
          "program": "/bin/sh", // For Linux or Mac
          "args": [
            "flutter", "run", "--debug"
          ],
        },

    ]
}
Jacouille
  • 951
  • 8
  • 14