Flutter Mar 23, 2020

Embedding Flutter Applications in Websites Using DartPad

Article Summary

Jose Alba from Google's Material team shows how to turn your Flutter apps into embeddable web demos. No hosting required—just GitHub and DartPad.

Flutter now runs on web, and DartPad (Google's browser-based Dart playground) supports Flutter apps. This tutorial walks through embedding live, interactive Flutter demos directly into websites using GitHub Gists or repos, letting users see both code and running app simultaneously.

Key Takeaways

Critical Insight

You can now embed fully functional Flutter apps in documentation or blogs using just GitHub and DartPad's embed URLs, eliminating the need for separate hosting infrastructure.

The article includes a clever workaround for running Flutter apps without the runApp() method in your main file.

Recent from Flutter

Related Articles