Skip to content

Sharing guide

Parker Lougheed edited this page Oct 12, 2023 · 4 revisions

DartPad uses GitHub gists to publicly share your creations.

DartPad looks for three files in each gist:

  • main.dart
  • index.html (optional)
  • styles.css (optional)

To share your code with others:

  1. Create a gist with main.dart, index.html (if needed), and styles.css (if needed).
  2. Direct DartPad to the gist ID. For example, to view https://gist.github.com/5c0e154dd50af4a9ac856908061291bc in DartPad, use the URL https://dartpad.dev/?id=5c0e154dd50af4a9ac856908061291bc.

Some example gists:

Happy sharing!

Clone this wiki locally