Flutter Developer Expert

Cara Install Flutter Pada Mac dan Running Aplikasi Pertama

Sebelum kita berkenalan lebih lanjut dengan Flutter, alangkah baiknya kita simak dulu apa kata merely tentang Flutter

Flutter is a new way to rapidly build high-quality apps for iOS and Android. If you’re new to mobile development, or looking for a faster way to build apps, we recommend taking a look at Flutter.

-Seth Ladd –

Flutter adalah sebuah framework aplikasi mobil sumber terbuka yang diciptakan oleh Google. Flutter digunakan dalam pengembangan aplikasi untuk sistem operasi Android dan iOS, serta menjadi metode utama untuk membuat aplikasi Google Fuchsia. Wikipedia

Logo Flutter

Apabila kita ingin melakukan install Flutter, pada dokumentasionnya Flutter telah menjelaskannya secara lengkap. Kita bisa lihat disini!

Sebelum melakukan install flutter, kita perlu memperhatikan system reqruitments yang di antaranya :

  • Operating Systems: macOS (64-bit)
  • Disk Space: 700 MB (does not include disk space for IDE/tools).
  • Tools: Flutter depends on these command-line tools being available in your environment.
    • bashmkdirrmgitcurlunzipwhich


Apabila kita menjalankan Flutter pada Android Studio, hal yang perlu dilakukan Adalah :

Note: Flutter relies on a full installation of Android Studio to supply its Android platform dependencies. However, you can write your Flutter apps in a number of editors; a later step will discuss that

Install Android Studio

  1. Install dan Download Android Studio
  2. Jalankan Android Studio, dan pilih  ‘Android Studio Setup Wizard’. Beberapa Hal yang diperlukan oleh Flutter ketika melakukan develoment Android : install Android SDK terbaru, Android SDK Platform-Tools, dan Android SDK Build-Tools.

Set up your Android device

Untuk mempersiapkan dan menjalankan Aplikasi Flutter pada Device Android, kita membutuhkan device dengan OS Android 4.1 (Api Level 16) atau diatasnya.

  1. Enable Developer options and USB debugging on your device. Detailed instructions are available in the Android documentation.
  2. Windows-only: Install the Google USB Driver
  3. Gunakan kabel USB, colokkan hp ke laptop. Apabila device tersebut cook maka akan bisa digunakan untuk mengakses device handphone melalui laptop tersebut.
  4. Pada the terminal, jalankan perintah  flutter devices  until memverifikasi bahwa flutter cocok dengan device android.

By default, Flutter uses the version of the Android SDK where your adb tool is based. If you want Flutter to use a different installation of the Android SDK, you must set the ANDROID_HOME environment variable to that installation directory.

Set up the Android emulator

To prepare to run and test your Flutter app on the Android emulator, follow these steps:

  1. Enable VM acceleration on your machine.
  2. Launch Android Studio>Tools>Android>AVD Manager and select Create Virtual Device. (The Android submenu is only present when inside an Android project.)
  3. Choose a device definition and select Next.
  4. Select one or more system images for the Android versions you want to emulate, and select Next. An x86 or x86_64 image is recommended.
  5. Under Emulated Performance, select Hardware – GLES 2.0 to enable hardware acceleration.
  6. Verify the AVD configuration is correct, and select Finish.For details on the above steps, see Managing AVDs.
  7. In Android Virtual Device Manager, click Run in the toolbar. The emulator starts up and displays the default canvas for your selected OS version and device

Sumber :

1 Comment :

Leave a Reply :

* Your email address will not be published.