Skip to content

Setting up the Packages development environment

stuartmorgan edited this page May 12, 2021 · 2 revisions

Things you will need

  • A working Flutter installation.
  • git (used for source version control).
  • An ssh client (used to authenticate with GitHub).

Getting the code and configuring your environment

  • Ensure all the dependencies described in the previous section are installed.
  • Fork https://github.com/flutter/packages into your own GitHub account. If you already have a fork, and are now installing a development environment on a new machine, make sure you've updated your fork so that you don't use stale configuration options from long ago.
  • If you haven't configured your machine with an SSH key that's known to github, then follow GitHub's directions to generate an SSH key.
  • git clone [email protected]:<your_name_here>/packages.git
  • cd packages
  • git remote add upstream [email protected]:flutter/packages.git (So that you fetch from the master repository, not your clone, when running git fetch et al.)

Setting up tools

There are scripts for many common tasks (testing, formatting, etc.) that will likely be useful in preparing a PR. See the tools README for more details.

The flutter/packages repository uses the published copy of the tools. Set it up by running the following:

pub global activate flutter_plugin_tools

Flutter Wiki

Process

Framework repo

Engine repo

Android

Plugins and packages repos

Infrastructure

Release Information

Experimental features

Clone this wiki locally