Skip to main content

Run the application

You can run the application either using the terminal or using the RUN button in android studio of vsCode.

info

As of version 3.0.0 the application has been partially migrated to Null-Safety. Therefore it contains both sound null-safe code and unsound null-safe code. Until the application is completely migrated to Null-Safety you will need to run the application using an additional flag --no-sound-null-safety.

Run the application in terminal:

flutter run --no-sound-null-safety

Add flag to android studio#


You can also add this flag in android studios run configurations' additional run arguments by following the steps below:

  1. Open the woostore_pro folder in android studio.
  2. Click on the Run option in the menu bar and select Edit Configuration option.

Android Studio Edit Configuration

  1. Add the flag --no-sound-null-safety to the Additional run args.

Android Studio Configuration Window

Add flag to vsCode#


You can also add this flag in vsCode's launch.json's configurations' args key. Follow the steps below to do so.

  1. Open the woostore_pro folder in vsCode.
  2. Click on the Run option in the menu bar and select Add Configuration option.

VS Code Edit Configuration

  1. Paste the following the file launch.json:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "woostore_pro",
"request": "launch",
"type": "dart",
"args": ["--no-sound-null-safety"]
},
{
"name": "woostore_pro (profile mode)",
"request": "launch",
"type": "dart",
"flutterMode": "profile",
"args": ["--no-sound-null-safety"]
},
{
"name": "woostore_pro (release mode)",
"request": "launch",
"type": "dart",
"flutterMode": "release",
"args": ["--no-sound-null-safety"]
}
]
}
  1. If you already had a launch.json configuration file then add the following line in the configuration object
"args": ["--no-sound-null-safety"]