Dart pad uses Gists to share your creations.
It looks for three files:
- (mandatory) main.dart
- (optional) index.html
- (optional) styles.css
To create Dart Gists:
- Create any of the three files on Gist. Creates https://gist.github.org/
- Open that gistID in dartpad as _https://dartpad.dartlang.org/
Here's a comprehensive list of sample Gists
Here's a guide to effective dart