Flutter is an open source framework by Google for building modern, natively compiled, multi-platform applications from a single codebase. With Flutter, developers can create cross-platform applications for web, Android, iOS, Linux, macOS, and Windows, all from the same codebase.
Digi Embedded Yocto provides a pre-built image with a Flutter demo application. See Flutter image demo.
Flutter’s functionality is distributed across multiple repositories. The two most important ones are:
-
meta-flutter: This is the main layer, which provides the UI toolkit for building beautiful, natively compiled applications for mobile, web, and desktop from a single codebase.
-
meta-flutter/meta-flutter-apps: This layer contains demo and sample applications that showcase Flutter’s capabilities.
Flutter supports a variety of development environments, including Windows, Linux, macOS, and ChromeOS, giving developers the flexibility to choose the setup that best suits their workflow. For embedded systems, Flutter is compatible with multiple rendering backends such as DRM and Wayland.
Additionally, Flutter recommends using an alternative C/C++ compiler, Clang, when building with the Yocto Project:
-
meta-clang: This layer provides clang/llvm as alternative to system C/C++ compiler for OpenEmbedded/Yocto Project based distributions. This can cohabit with GNU compiler and can be used for specific recipes or full system compiler.