Run app in debug, profile, or release mode Open the launch. json file in VS Code . If you do not have a launch. json file, go to the Run view in VS Code and click create a launch.
Read moreHow do I run a program in release mode in flutter?
To compile in release mode, we just need to add the –release flag to the flutter run command and have a physical device connected . Although we can do so, we typically do not use the flutter run command with the –release flag.
Read more