flutter-setting-up-on-linux

Configures a Linux environment with toolchain dependencies for Flutter desktop development.

1|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/Wishtohear/bucket-water-oms --skill flutter-setting-up-on-linux-wishtohear
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: flutter-setting-up-on-linux
Source: https://github.com/Wishtohear/bucket-water-oms/tree/main/bucket-water-oms-admin-mobile/skills/flutter-setting-up-on-linux
Command: npx skills add https://github.com/Wishtohear/bucket-water-oms --skill flutter-setting-up-on-linux-wishtohear

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up a Linux machine for Flutter development requires installing the correct C/C++ toolchain, GTK libraries, and build tools, and missing any of them causes confusing build failures. This Skill provides a validated, step-by-step workflow to configure, verify, and package Flutter apps on Linux. ## Core Features & Use Cases - Dependency Installation: Installs all required Debian/Ubuntu packages including clang, cmake, ninja-build, pkg-config, and libgtk-3-dev in one workflow. - Environment Validation: Uses flutter doctor and flutter devices as a feedback loop to confirm the Linux toolchain is correctly recognized. - Snapcraft Distribution: Guides Snapcraft and LXD setup with a baseline snapcraft.yaml template for publishing Flutter apps to the Snap Store. - Use Case: A developer on a fresh Ubuntu machine needs to build and ship a Flutter desktop app; this Skill walks them from package installation through toolchain validation to building a Snap package. ## Quick Start Set up my Ubuntu machine for Flutter Linux desktop development and verify the toolchain is working.

Frequently Asked Questions about flutter-setting-up-on-linux

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Flutter for Linux desktop development?▼

Install the required packages with apt-get, including clang, cmake, ninja-build, pkg-config, libgtk-3-dev, and libstdc++-12-dev. Then run flutter doctor -v to validate the toolchain and flutter devices to confirm Linux appears as a deployment target.

What packages are required to build Flutter apps on Ubuntu?▼

Flutter on Ubuntu requires core utilities (curl, git, unzip, xz-utils, zip), build tools (clang, cmake, ninja-build, pkg-config), and libraries (libglu1-mesa, libgtk-3-dev, libstdc++-12-dev). Flutter uses dart:ffi and GTK for Linux UI rendering.

How do I package a Flutter Linux app for the Snap Store?▼

Install Snapcraft and LXD, initialize LXD, add your user to the lxd group, then run snapcraft --use-lxd from the project root containing snap/snapcraft.yaml. A baseline snapcraft.yaml uses the flutter plugin with the gnome extension and core22 base.

Why does flutter doctor show Linux toolchain errors?▼

Linux toolchain errors occur when required packages like clang, cmake, ninja-build, or libgtk-3-dev are missing. Install the flagged packages with apt-get and re-run flutter doctor -v until the Linux toolchain section passes.

Can I develop Flutter Linux apps on a Chromebook?▼

Yes, enable Linux support in ChromeOS settings, then update the Linux container with apt-get and install the standard Flutter Linux dependencies. After that, the normal Flutter Linux workflow applies inside the container.