-
Notifications
You must be signed in to change notification settings - Fork 555
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:
- Create a gist with main.dart, index.html (if needed), and styles.css (if needed).
- 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:
- gist.github.com/33706e19df021e52d98c
- gist.github.com/74e990d984faad26dea0
- gist.github.com/49bde0c1ed780decc902f3d4d06d8f0c
Happy sharing!