Flutter environment setup linux
Skill Lukk17/agent-standards/.agents/skills/flutter-environment-setup-linux
Sets up a Linux environment for Flutter development. Use when configuring a Linux machine to run, build, or deploy Flutter applications.From its SKILL.md
npx -y skills add Lukk17/agent-standards --skill flutter-environment-setup-linuxAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.5 KB, ~1.0k tokens by cl100k_base, as published. Nobody here has run it
Setting Up a Linux Environment for Flutter Development
Contents
- System Dependencies
- Workflow: Configuring the Linux Toolchain
- Workflow: Validating the Environment
- Workflow: Preparing for Distribution (Snapcraft)
- Examples
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.
Task Progress:
- 1. Update package lists and upgrade existing packages.
- 2. Install core utilities and build dependencies.
- 3. Configure IDE/Editor with Flutter support.
- 4. (Conditional) Enable Linux support on ChromeOS.
- Update and Install Dependencies Execute the following command to install all required packages on Debian/Ubuntu systems:
sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get install -y curl git unzip xz-utils zip libglu1-mesa clang cmake ninja-build pkg-config libgtk-3-dev libstdc++-12-dev
- Conditional: ChromeOS Setup
- If developing on a Chromebook: Turn on Linux support in the ChromeOS settings. Ensure the Linux container is fully
updated using the
apt-getcommands above before proceeding.
- IDE Configuration Install Visual Studio Code, Android Studio, or an IntelliJ-based IDE. Install the official Dart and Flutter extensions/plugins to enable language server features and debugging capabilities.
Workflow: Validating the Environment
Run this feedback loop to ensure the toolchain is correctly recognized by the Flutter SDK.
Task Progress:
- 1. Run environment validator.
- 2. Verify connected Linux devices.
- 3. Resolve toolchain errors.
- Run Validator Execute the Flutter diagnostic tool with verbose output:
flutter doctor -v
- Review and Fix (Feedback Loop)
- If errors exist under the "Linux toolchain" section: Review the missing dependencies, install the flagged packages,
and re-run
flutter doctor -v. Repeat until the Linux toolchain section passes.
- Verify Device Availability Ensure the Linux desktop is recognized as a valid deployment target:
flutter devices
Expected Output: At least one entry must display with the platform marked as linux.
Workflow: Preparing for Distribution (Snapcraft)
When preparing a release build for the Snap Store, configure the Snapcraft build environment.
Task Progress:
- 1. Install Snapcraft and LXD.
- 2. Configure LXD.
- 3. Build the Snap package.
- Install Build Tools
sudo snap install snapcraft --classic
sudo snap install lxd
- Configure LXD
Initialize LXD and add the current user to the
lxdgroup:
sudo lxd init
sudo usermod -a -G lxd <your_username>
Note: Log out and log back in to apply the group changes.
- Build the Snap
Navigate to the project root containing the
snap/snapcraft.yamlfile and execute the build:
snapcraft --use-lxd
Examples
Baseline snapcraft.yaml Configuration
Use this template for the <project_root>/snap/snapcraft.yaml file when packaging a Flutter Linux app for the Snap
Store.
name: super-cool-app
version: 0.1.0
summary: Super Cool App
description: Super Cool App that does everything!
confinement: strict
base: core22
grade: stable
slots:
dbus-super-cool-app:
interface: dbus
bus: session
name: org.bar.super_cool_app
apps:
super-cool-app:
command: super_cool_app
extensions: [gnome]
plugs:
- network
slots:
- dbus-super-cool-app
parts:
super-cool-app:
source: .
plugin: flutter
flutter-target: lib/main.dart
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.
Gives 0 of the 12 instructions most project setup skills give in ~1.0k tokens
Counted across 999 of the 1,637 authors here whose files we hold, read 2026-08-07
- Ask one question at a timein 29 of 999, across 28 files
- Detect the package manager from lockfilesin 28 of 999, across 9 files
- Present findings to the userin 26 of 999, across 5 files
- Explore current repo statein 24 of 999, across 3 files
- Update the agent skills block in place if it existsin 24 of 999, across 3 files
- Install husky lint-staged and prettierin 23 of 999, across 4 files
- Create the lintstagedrc filein 22 of 999, across 3 files
- Commit all changed filesin 22 of 999, across 3 files
- Run lint-staged to verify it worksin 22 of 999, across 3 files
- Create the husky pre-commit filein 21 of 999, across 2 files
- Create a prettierrc file if missingin 21 of 999, across 2 files
- Initialize huskyin 21 of 999, across 2 files
Said here and by no other author read
- install required system packages
- configure IDE with Flutter support
- run flutter doctor validator
- resolve toolchain errors
- verify Linux desktop device availability
- install Snapcraft and LXD
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.