dart-pad
dart-pad copied to clipboard
Multiple files
If a Gist contains multiple.dart files, display them in the UI and include them when dart-services compiles JS. Show tabs at the top, similar to the tabs used in Svelte REPL.
Example
main.dart
import 'library.dart';
void main() {
print(calculate());
}
library.dart
int calculate() => 42;
Related issues
- https://github.com/dart-lang/dart-pad/issues/1654
- https://github.com/dart-lang/dart-pad/issues/1290
- https://github.com/dart-lang/dart-pad/issues/1388
- https://github.com/dart-lang/dart-pad/issues/562