Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.28 KB

README.md

File metadata and controls

29 lines (22 loc) · 1.28 KB

samples

Sample code snippets for DartPad.

Samples

Category Name Sample ID
Dart Fibonacci fibonacci.dart fibonacci
Dart Hello world hello_world.dart hello-world
Defaults Dart snippet default_dart.dart dart
Defaults Flutter snippet default_flutter.dart flutter
Ecosystem Flame game brick_breaker.dart flame-game
Ecosystem Google AI SDK google_ai.dart google-ai-sdk
Flutter Counter main.dart counter
Flutter Sunflower sunflower.dart sunflower

Contributing

When considering contributing a sample to DartPad, please open an issue first for discussion.

After the sample is discussed and approved:

  • add the code for the sample to a new Dart file in lib/
  • add an entry for the sample to the lib/samples.json file
  • run dart tool/samples.dart to re-generate related files