Best Way to Learn Flutter (2020 Step-by-Step Guide) : Episode 2
In this episode we are going to learn how to use flutter docter and fluttter's package manager
Use Flutter Doctor
Flutter comes up with an awesome command line utility to check if your machine is set up for local development. Flutter has Flutter Doctor
command which guides developers through setting up the local development environment for both iOS and Android. Flutter Doctor inspects which tools are installed on the local machine and which tools need to be configured. Once the Flutter Doctor command is happy, we can carry on creating a new Flutter app.

Setting up Editors
Flutter development can be done on any editor or IDE of your choice. The getting started guide for Flutter contains detailed information on IDE setup for Android Studio, IntelliJ and Visual Studio Code. However, you can use lightweight editors like Sublime Text for Flutter development as well. The choice of editor/IDE is completely up to the developer. Once we have finished the setup for our favourite editor, we can start developing Flutter apps.
Know Pub Package Manager
Flutter uses the Pub Package Manager to manage the Dart packages inside the Flutter project. You will find the pubspec.yaml
file in the Flutter project which imports Dart dependencies inside the Flutter project. You can mention all the dependencies in the file and install using the command:
$ flutter packages get
This will install all the dependencies and create a locked version of the file, which is pubspec.lock
, so that we will always lock dependencies. We can upgrade the dependencies using the command:
$ flutter package upgrade
This will upgrade all packages to the latest version, or you can update individual packages.
It's good to know the concept of Pub Package Manager well in advance in order to understand the Flutter project better.
Comments
Post a Comment