Skip to content

Instantly share code, notes, and snippets.

@RedBrogdon
Last active February 2, 2019 03:29
Show Gist options
  • Save RedBrogdon/a5ecd7458d89a17a304b50084f5205af to your computer and use it in GitHub Desktop.
Save RedBrogdon/a5ecd7458d89a17a304b50084f5205af to your computer and use it in GitHub Desktop.

Getting started with Flutter at DevCamp 2019!

tickets still available!

One of the options for creating an app at this year's DevCamp is Flutter, Google's open source SDK for building native iOS and Android apps from a single codebase. The Flutter team will be hanging around at the event, and for those of you interested in giving Flutter a try, we've prepared this gist as an installation cheat sheet.

A couple, general things

  • Flutter uses the Dart programming language. It's a strongly typed, garbage-collected language with syntax that will look familiar to devs who've used Java or JavaScript. You can learn more about it at the Dart website.
  • Apps made with Flutter can be built for either Android or iOS, so the developer tools for those platforms are used during the build process. If you're just building for Android, though, you won't need Xcode, and iOS-only builds don't require the Android SDK to build and run.
  • You can use any editor you want. There are official plugins for VS Code, IntelliJ IDEA, and Android Studio, plus a suite of command line tools.
  • If you're ever in doubt about whether your machine is set up correctly, run flutter doctor from the command line. It'll tell you if anything is missing from your setup.

Getting started

First, head to the Get Started guide. There are detailed steps for Windows, MacOS, and Linux machines. The first step is always to download and install the Flutter SDK. After that, the guide (and flutter doctor) will walk you through the remaining steps. Feel free to skip the Android sections if you plan to build and test exclusively on iOS during DevCamp.

Setting up an IDE

Once the Flutter SDK is installed along with at least one platform's development tools (Xcode or the Android SDK), you're ready to start building apps with a text editor and the command line flutter tool.

You'll probably want to use an IDE, though, so check out the editor setup guide on the Flutter website. It will walk you through downloading plugins for the editor of your choice.

Hacking around a bit

Once your system is ready to go, try creating your first app. In particular, try making some changes and using hot reload. It's one of Flutter's best features, and allows you to update your code without rebuilding from scratch and losing the current state of the app.

Learning more

The developer relations team for Flutter is constantly creating resources to help people get on board and build their skills with Flutter. There's also a growing community of devs using the SDK to create sample apps, demos, articles, videos, and more.

Some great places to check out as you dive into Flutter are:

There's also a Google Group for Flutter devs, and we're always happy to help with questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment