Build an App using Flutter: First Few Steps
Once your Flutter and Dart plugins are installed, you can start creating your first Flutter app.
- On the Terminal or Powershell, change your directory to where you want to install your app:
Create your first app; let's call it "firstapp".With these commands, the Flutter SDK creates a new project from scratch.
flutter create firstapp flutter run
Flutter creates your app.
Change your directory to your app:
Note: In your directory, inside your app, there is a
lib folder, which contains a
main.dart file. When you click
main.dart, it opens in your editor. This file contains the Dart code and for your own app, you will need to replace the content of this .dart file with your own code.
In your app folder, click the
pubspec.yaml to open it in your editor. The
pubspec.yaml file contains the following information about your app:
- Name of your app
- Version and build number of your app
Add Dependencies of your app to Pubspec.yaml
Dependencies are any additional packages that your app requires to run smoothly. These dependencies can be automatically updated to the latest version by running the following command:
flutter pub upgrade --major-versions
New Polygon ID Documentation Website Available!
We've released a new version of our documention. Head to devs.polygonid.com to check it out.