Building Linux apps with Flutter

Platform integration

Linux

Linux development

Integrating with Linux

Preparing Linux apps for distribution

This page discusses considerations unique to building
Linux apps with Flutter, including shell integration
and preparation of apps for distribution.

Integrating with Linux

The Linux programming interface,
comprising library functions and system calls,
is designed around the C language and ABI.
Fortunately, Dart provides dart:ffi,
which is designed to enable Dart programs
to efficiently call into C libraries.
FFI provides Flutter apps with the ability to
allocate native memory with malloc or calloc,
support for pointers, structs and callbacks,
and ABI types like long and size_t.

For more information about calling C libraries
from Flutter, see C interop using dart:ffi.