Once you have installed Flutter, you will want to create a test application to verify. Sure, your probably ran Doctor, but an extra layer of testing won’t hurt.
In VSC, on the PC press CTRL-SHIFT-P (On Mac CMD-SHIFT-P) to open the command. Start typing flutter, and click on Flutter: New Application Project.
This will create a whole application for you. It takes a few minutes for it to copy all of the necessary files. Once it is done, you can click on F5 to test the application. It should create an app that will have a button to press that will increment a counter.
While it is a very simple app, you can look through the source code and notice several things:
- Dart is very similar to other languages like C++, Java, and even JavaScript
- It is event driven, and uses simple event handlers
- What you can run your app in, will depend upon what is set up for emulators – so you may need an external emulator for Android and/or iOS.
In the next section we will go through the code that was auto generated to see what each section does.
Creating a Test Application was originally found on Access 2 Learn
One Comment
Comments are closed.