dart-pad icon indicating copy to clipboard operation
dart-pad copied to clipboard

Multiple files

Open johnpryan opened this issue 3 years ago • 0 comments

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

johnpryan avatar Jan 25 '22 18:01 johnpryan