
Open Android Studio and click Create New Flutter Project Note: A resistor is needed between the GPIO pin and the LED or otherwise the LED will burn out. Later you can add a relay and control home appliances using the GPIO! We will connect an LED to the GPIO 24 of the reTerminal for testing purposes. Now we have successfully finished preparing the development environment Smart Lamp Flutter Application ¶ Hardware Connections ¶ Under Emulated Performance, select Hardware - GLES 2.0 for accelerated performance Select the latest Android Image and click Next
Input: Has Hardware Buttons (Back/Home/Menu). Once the IDE opens again, navigate to Configure > AVD Manager Click Restart IDE to restart IDE with the installed plugins Click Install in the prompt window to install Dart plugin as well Under Marketplace, type flutter in the search box and click Install Open Android Studio and navigate to Configure > Plugins Download and install Android Studio according to your operating system Log in to reTerminal as explained in this wiki and install flutter engine binaries on the reTerminal So let's get started! Prepare Development Environment ¶ On reTerminal ¶įirst we need to install flutter-pi on the reTerminal.Ĭlick here to access the GitHub repo of flutter-pi You just need to boot into the command-line and run your application.īy following the guide below, you will be able to create an application to control the GPIO pins on the reTerminal just by clicking buttons on the LCD. That means you don't need to boot into Raspberry Pi OS Desktop & have X11 and LXDE load up. flutter-pi is a light-weight Flutter Engine Embedder for Raspberry Pi that runs without X. Here we will use Flutter to develop an application on the PC and then run the application on reTerminal using flutter-pi. Dart is an open-source, general-purpose, object-oriented programming language with C-style syntax developed by Google. To develop with Flutter, you need a programming language called Dart. This means that you can use one programming language and one codebase to create two different apps (for iOS, Android and more).
It is used to develop cross platform applications for Android, iOS, Linux, Mac, Windows, Google Fuchsia, and the web from a single codebase. Flutter is an open-source UI software development kit created by Google. This wiki explains how to build your own user interface using Flutter.