Fork me on GitHub

It’s already been ten months since I published the first preview of Dart Code and today marks a significant milestone - version 2.0! It’s been some time in the making; this major update adds support for launching and debugging Android and iOS apps written using Flutter, including:

  • When a Flutter project is open your selected device/emulator will be shown in the status bar
  • If you have more than one connected device/emulator, clicking the device name in the status bar will allow you to switch between devices/emulators
  • Pressing F5 with a flutter project open will build and launch your app on the selected device/emulator
  • The usual debugging experience is available for Flutter apps, including breakpoints, call stacks, watch window etc.
  • The debugger’s Restart button (or Ctrl+Shift+F5) has been mapped to Flutter’s hot reload feature and will update the running application without needing to rebuild (this usually results in sub-second updates!)

Bram Vanbilsen, who has started an excellent set of Flutter tutorials on YouTube has created a short video showing how this integration works with a demo of hot reload:

Download

In order to get up and running you’ll need to grab a few things:

Finally, to avoid manual configuration you should also add the Dart and Flutter SDKs to your PATH.

Feedback

If you do try it out, I’d love your feedback. You can find me on Twitter (@DanTup and @DartCode), post issues at GitHub/Dart-Code or find me in the Gitter chat rom!

Thanks

I’ve never blogged about Dart Code before so I’ve never really said thanks to all those that helped make it possible. It’s a long list! Dart Code builds on a lot of excellent work done by many people at Google (including the analyzer, which powers most of the language and editor support, the VM and debugger, the flutter tooling) and of course many people at Microsoft working on VS Code. I’ve opened a lot of issues, sent a lot of emails and asked a lot of questions in chat rooms for both projects and I’ve had great support. I’ve also had some great contributions including the bulk of the debugger work from Devon and many beta testers who helped iron out issues in the Flutter integration before I unleashed it!

Up Next - Web Support

With Flutter integration released the next major feature for Dart Code is likely to be better support for web apps, including F5 to launch and incremental compilation. Stay tuned to @DartCode on Twitter for update notifications!

Discuss on Hacker News | Reddit | Lobsters

You may also like Chromebook Comparison Chart, Drone Comparison Chart or my kids reviewing products like Amazon Echo Dot on YouTube!