A.2. Installation: Flutter SDK

Installing Flutter on your machine requires you to go to the Flutter web page to download a zip file of the SDK: https://flutter.dev/get-started/install/. From there, you can follow the instructions provided as they’re extremely detailed. I’ll provide the exact steps next, if you don’t care about the details:

A.2.1. Mac OS

  1. Download the SDK from https://flutter.dev/get-started/install/.
  2. Extract the files in the proper place:
    $ cd ~
    $ unzip ~/Downloads/flutter_macos_v0.9.4-beta.zip
  3. Add Flutter to your PATH temporarily:
    $ export PATH=`pwd`/flutter/bin:$PATH
  4. Open your bash_profile to update your PATH permanently:
    $ cd ~
    $ nano .bash_profile
  5. Add this line to your bash_profile:
    $ export PATH=$HOME/flutter/bin:$PATH
  6. Run flutter doctor in your terminal. This is a nice command-line tool that tells you if you need anything else on your machine to run Flutter. Some of the tools are common (like Xcode and Android Studio), so I won’t walk through every one. If you run flutter doctor, it’ll tell you exactly what other tools you’ll need to get your environment set up.

A.2.2. Windows

  1. Download the SDK from https://flutter.dev/get-started/install/.
  2. Extract the zip file and place the contained Flutter in the desired installation location for the Flutter SDK (for example, C:srcflutter). Do not install Flutter in a directory like C:Program Files; that requires elevated privileges.
  3. Locate the file flutter_console.bat inside the flutter directory and start it by double-clicking.
  4. Add Flutter to your PATH if you like to use the command line. Go to Control Panel > User Accounts > User Accounts > Change my environment variables. Under User Variables, check if there is an entry called Path:

    • If the entry exists, append the full path to flutterin using ; as a separator from existing values.
    • If the entry does not exist, create a new user variable named Path, with the full path to flutterin as its value.
  5. Reboot Windows to fully apply this change.
  6. Run flutter doctor in your terminal. This is a nice command-line tool that tells you if you need anything else on your machine to run Flutter. Some of the tools are common (like Xcode and Android Studio), so I won’t walk through every one. If you run flutter doctor, it’ll tell you exactly what other tools you’ll need to get your environment set up.

A.2.3. Linux

  1. Download the SDK from https://flutter.dev/get-started/install/.
  2. Extract the files in the proper place:
    $ cd ~/development
    $ tar xf ~/Downloads/flutter_linux_v0.9.4-beta.tar.xz
  3. Add Flutter to your PATH temporarily:
    $ export PATH=`pwd`/flutter/bin:$PATH
  4. Open your bash_profile to update your PATH permanently:
    $ cd ~
    $ nano .bash_profile
  5. Add this line to your bash_profile:
    $ export PATH=$HOME/development/flutter/bin:$PATH
  6. Run flutter doctor in your terminal. This is a nice command-line tool that tells you if you need anything else on your machine to run Flutter. Some of the tools are common (like Xcode and Android Studio), so I won’t walk through every one. If you run flutter doctor, it’ll tell you exactly what other tools you’ll need to get your environment set up.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.198.81