Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add --no-sound-null-safety on a single run/debug on vscode (Flutter)?

On vscode, when try run or debug using "Run" or "Debug" button, the runner doesn't add --no-sound-null-safety argument.

How to configure vscode to add --no-sound-null-safety argument?

enter image description here

enter image description here

like image 228
Jessé Pinheiro Avatar asked Oct 27 '25 19:10

Jessé Pinheiro


2 Answers

If using vscode. create .vscode/launch.json in project root and add

"args": [
     "--no-sound-null-safety"
    ]

complete code :-

    "version": "0.2.0",
    "configurations": [
            {
                    "name": "YOUR_PROJECT_NAME",
                    "program": "lib/main.dart",
                    "request": "launch",
                    "type": "dart",
                    "args": [
                            "--no-sound-null-safety"
                        ]
            }
    ]

}`

like image 194
Piyush Kumar Avatar answered Oct 29 '25 09:10

Piyush Kumar


follow these instruction
Goto:

File -> Preferences -> Settings 

Then search:

Flutter run additional args

Then Add new arg like this

--no-sound-null-safety

Then simply run
Also can follow image Go here

then do this enter image description here

like image 43
Rasel Khan Avatar answered Oct 29 '25 08:10

Rasel Khan