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".
flutter create firstapp
With these commands, the Flutter SDK creates a new project from scratch.
Flutter creates your app.
Change your directory to your app:
In your directory, inside your app, there is a
lib folder, which contains a
main.dart file. This file contains the Dart code and for your own app, you will need to replace its content with your own code.
In your app folder, open the
pubspec.yaml 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
To update the dependencies manually, change the dependency version number to the latest one.