Back to writing

Getting Started with Flutter on Embedded Linux

Understand the Dart, Flutter engine, and Linux display layers, then run a sample with flutter-elinux.

Conceptual illustration of a Flutter dashboard running on a display connected to a small Linux development board.

Flutter can provide the interface for a Linux kiosk, touch panel, or device controller. On boards such as the Orange Pi Zero 2W, flutter-elinux connects a Dart application to an embedded Linux display backend.

Architecture

Dart widgets run through the Flutter engine and Linux embedder, using either a desktop compositor or direct DRM display output.

The Dart application owns widgets and state. The Flutter engine renders them. The Linux embedder connects rendering and input to the board's graphics stack.

The community-maintained flutter-elinux tools support X11, Wayland, and DRM backends. Start inside a working desktop session; direct display output also depends on the board image's graphics drivers.

Run a sample

On a compatible Linux installation with a working X11 session:

bash
sudo apt install git unzip curl clang cmake pkg-config
git clone https://github.com/sony/flutter-elinux.git
export PATH="$PWD/flutter-elinux/bin:$PATH"
flutter-elinux create sample
cd sample
flutter-elinux run -d elinux-x11

The generated sample is a small starting point for replacing the counter interface with your own controls. Keep the toolchain revision pinned once it works with your board image.

For a standalone display, build against the GBM backend:

bash
flutter-elinux build elinux --release \
  --target-backend-type=gbm

The output belongs under build/elinux/<architecture>/release/bundle/. Deploy the complete bundle with the matching engine and runtime libraries. The target needs working DRM/GBM support and permission to use its display and input devices; an ARM64 build by itself does not establish board compatibility.

Follow the project's build guide for target-specific setup.

Where it fits

This architecture suits touch dashboards, equipment panels, and compact kiosks with custom graphics. Choose plugins that support the embedded Linux target, and keep hardware access behind a platform interface so the UI remains easy to develop on a desktop.

Thanks for reading.

I’m Ahmad Roshanfar, exploring embedded systems, Linux, and the software that brings hardware to life. Found something useful, or have a question? Let’s talk.