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?


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"
                        ]
            }
    ]
}`
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

then do this

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With