A brand new DartPad.dev with Flutter support

Today, we’re announcing a major upgrade of DartPad.dev with a fresh new look-and-feel and support for the popular Flutter UI toolkit.

Today we’re announcing a major upgrade of DartPad.dev with a fresh new look-and-feel and support for the popular Flutter UI toolkit. DartPad is our online editor that runs Dart programs directly in your browser, and now it runs Flutter apps too.

The DartPad interface running a Flutter application.

Make something today

#

To create a new Flutter project, click the New Pad button and choose Flutter.

An animation showing how to create a new Flutter project in DartPad.

This adds some starter code to the editor and runs it. Any time that DartPad sees that you’re using package:flutter, a panel comes up to display the UI. Or use the Samples menu to find a Flutter sample.

The DartPad samples menu displaying various Dart and Flutter examples.

Features

#

All of Flutter’s core libraries, like cupertino and material, are available to use, and DartPad can display their documentation. Select a symbol to see the documentation in the bottom panel.

An animation showing documentation for the AppBar widget displayed in DartPad's bottom panel.

DartPad formats code using the Dart formatter (dartfmt), offers assists, provides fixes, suggests auto-completions, and shows errors and warnings.

An animation of DartPad's code completion and code assist support.

When you’re ready to share your snippet, you can create a GitHub gist and put the gist ID in a URL like this: https://dartpad.dev/<GistID>. You can share this link in a bug report, in a StackOverflow question, or on your social media platform of choice. Check out the sharing guide for more details.

You can also embed DartPad into a page, like in this codelab. Embedded DartPads are especially good for articles, codelabs, and tutorials. (Check out this guide if you’re interested in using DartPad in codelabs and tutorials.) To learn more about adding DartPad to a page, check out the embedding guide.

Thanks!

#

DartPad is part of the Dart open-source project. If you’ve filed issues or submitted changes to DartPad, thank you for making it better. If you’d like to contribute, get started at github.com/dart-lang/dart-pad. To learn more about running Flutter on the web, visit flutter.dev/web.

We can’t wait to see what you build!

More from Dart