Professional Documents
Culture Documents
1 - MA Activity 3
1 - MA Activity 3
1 - MA Activity 3
In this exercise you create and run a Flutter app via Visual Studio Code.
Select a folder where the project should be saved. VSCode creates the new
Flutter app and opens a new instance for the project location.
On the right side of the status bar at the bottom of VSCode you see multiple
The list contains the emulators as well as any real device you have configured
for development.
Choose one of the listed devices. If the target device is an emulator wait for it
to fully start.
Depending on your Internet connection and host device speed the initial build
could take several minutes. You can see the current step/progress in the built-
After the build process finished the app appears on your target device:
Tap 3 times on the + in the bottom right.
Now search for the primarySwatch color setting in the source code and switch
the color to yellow. Notice how the number of times you clicked the button
stayed the same but the color changed. This a feature of the Flutter toolkit
You can trigger a hot reload manually by using the respective button in the
Have a look at the generated code. Press the Control key and click on the
Scaffold widget. This jumps into the Dart source code and allows you to
Save and see that the emulator switches the color immediately while it