Follow the instructions on the following link: https://docs.flutter.dev/get-started/install
You may need to add some extra dependencies for creating the application for certain devices.
flutter doctor
This should display the missing applications/configurations for all the available targets
Install the flutter extension https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
The dependencies are set in the pubspec.yaml file
They should work without executing any extra commands.
flutter devices
Will show a list of the available devices
flutter run
Will run the application, if using the vscode extension the device can be selected using the bottom right bar to choose a device.
The main.dart file contains the complete application.