flutter-setting-up-on-linux

Installation
Summary

Automates Linux environment setup for Flutter desktop development with dependency installation and validation workflows.

  • Covers three core workflows: installing system dependencies (build tools, GTK libraries, C/C++ toolchain), validating the environment with flutter doctor, and preparing Snap packages for distribution
  • Provides ready-to-run commands for Debian/Ubuntu systems and includes conditional setup for ChromeOS Linux containers
  • Includes a baseline snapcraft.yaml template for packaging Flutter Linux apps for the Snap Store with proper confinement and D-Bus configuration
SKILL.md

Setting Up a Linux Environment for Flutter Development

Contents

System Dependencies

To build and run Flutter applications on a Linux desktop, install the required C/C++ toolchain and system libraries. Flutter relies on dart:ffi to interface with Linux system calls and the GTK framework for UI rendering.

Required packages for Debian/Ubuntu-based distributions:

  • Core Utilities: curl, git, unzip, xz-utils, zip
  • Build Tools: clang, cmake, ninja-build, pkg-config
  • Libraries: libglu1-mesa, libgtk-3-dev, libstdc++-12-dev

Workflow: Configuring the Linux Toolchain

Follow this sequential workflow to prepare the Linux host for Flutter desktop development.

Related skills
Installs
7.6K
Repository
flutter/skills
GitHub Stars
1.9K
First Seen
Mar 13, 2026