Sample code for "A Game of Darts" tutorial

Overview

These are small Dart samples used by the online Dart tutorials.

Each directory in this repo represents a tutorial. The homepage field in each pubspec file points to the corresponding tutorial on dart.dev.

DartPad and Gist Files

Some of the tutorial examples execute using DartPad. The DartPad examples are organized so that each complete example is placed in a subdirectory, with its own pubspec and web/ directory.

DartPad grabs the source for these examples from gist files. The gist files are generated from the source in this repo using the gist generator.

You can update the gist files, as follows:

  • Clone the repo.
  • If needed, activate the gist executable: pub global activate --source git https://github.com/kasperpeulen/gist-generator
  • Change directory to the top of the repo.
  • Run "gist generate". See the readme for information on available options. If you are updating, or creating, gist files rather than generating a test gist, or performing a dry run of the gist generator, you'll need to provide a Gist token. (See the project lead for info on obtaining an existing Gist token.)

Additional files

README.md: This file.

runtests.sh: BASH script that runs dartanalyzer on all Dart source files in the web/ and bin/ directories.

Comments
  • WIP: update directory structure, use polymer 0.10

    WIP: update directory structure, use polymer 0.10

    I think the httpserver code/text needs a bit of tweaking, to make sure the URLs you're telling people to use actually work and have files in the right place.

    Also, the polymer examples should probably have the version updated, once polymer 0.10 is out.

    opened by kwalrath 8
  • Failed to load resource: clickme/web/packages/browser/dart.js

    Failed to load resource: clickme/web/packages/browser/dart.js

    Hi,

    I am new to Dart. I just create the first web application clickme according to the tutorial http://www.dartlang.org/docs/tutorials/get-started/. The strange thing is that it can not load resource dart.js Then I see the error message in console, it seems like wrong path to the js file. Then I just change the path in clickme.html to src="../packages/browser/dart.js", then it works fine. So I think since after create new project, the html file which is in the web folder, so static directory would be under /web, but the dart.js is under /packages/browser, so I think maybe it is something wrong in the configuration or just typo mistake in clickme.html ? I think it is better to fix this bug, because it is just begin to try Dart :)

    opened by br1anchen 6
  • Update for browser package to sample files.

    Update for browser package to sample files.

    Added browser to pubspect for littleben_clock Added browser package to little-ben-with-watches Added browser package to shout Update ignore to include out/ and .buildlog

    opened by butlermatt 5
  • Polymer 1 5

    Polymer 1 5

    Updating the polymer dart examples to 0.15.1 and incorporating Siggi's comments. Also updating the comment style to use "///" instead of "/*" for doc comments.

    @kwalrath @sigmundch

    opened by Sfshaza 4
  • Change double quotes to single quotes

    Change double quotes to single quotes

    Suggestion to change the double quotes in basic_writer_server.dart to single quotes to comply with the prefer_single_quotes rule.

    I also created a PR to update the code snippet example in the documentation. https://github.com/dart-lang/site-www/pull/2229

    cla: yes 
    opened by Haugen 3
  • Consider removing dcat example to avoid duplication

    Consider removing dcat example to avoid duplication

    Consider removing the dcat.dart cmdline example since the file is now found under https://github.com/dart-lang/site-www/tree/master/examples/misc (https://github.com/dart-lang/site-www/pull/1902).

    enhancement 
    opened by chalin 2
  • DartEditor can not find package:fancy_syntax/syntax.dart

    DartEditor can not find package:fancy_syntax/syntax.dart

    The package is in pubspec.yaml. It is installed. However DartEditor does not see it.

    It happens for target10-polymer/slambook and target11-polymer/count_down. screen shot 2013-07-24 at 13 17 27

    opened by soulne4ny 2
Owner
Dart
Dart is an open-source, scalable programming language, with robust libraries and runtimes, for building web, server, and mobile apps.
Dart
Flutter-nav-bottom-bar-tutorial - A flutter bottom navigation bar tutorial

Flutter Bottom Navigation Bar Tutorial A tutorial with various Flutter bottom na

Aleyna Eser 2 Oct 25, 2022
A rewrite of Bloc tutorial: Flutter Weather Tutorial using freezed

A rewrite of Bloc tutorial: Flutter Weather Tutorial using freezed. Bloc was used instead of Cubit (Cubit vs Bloc)

Yu-Han Luo 17 Nov 23, 2022
A flutter plugin about qr code or bar code scan , it can scan from file、url、memory and camera qr code or bar code .Welcome to feedback your issue.

r_scan A flutter plugin about qr code or bar code scan , it can scan from file、url、memory and camera qr code or bar code .Welcome to feedback your iss

PengHui Li 112 Nov 11, 2022
Flutter_kart - Sample flutter project based on udmey tutorial

flutter_kart A shopping cart application made with Flutter Feel free to star and fork the project I'll continue to work on this project as im learning

Leo Elstin 180 Dec 5, 2022
Sample flutter project based on udmey tutorial

flutter_kart A shopping cart application made with Flutter Feel free to star and fork the project I'll continue to work on this project as im learning

Leo Elstin 180 Dec 5, 2022
A sample project for following along a tutorial found on jap.alekhin.io.

Langaw Langaw is an endless tap game featured in the game development tutorial by Japa Alekhin Llemos in jap.alekhin.io. The tutorial series is split

Japa Alekhin Llemos 105 Oct 16, 2022
This is a tutorial for all widgets in the flutter. It contain code, articles.

Flutter Widgets ❤️ Star ❤️ the repo to support the project or ?? Follow Me.Thanks! Facebook Page Twitter QQ Group Developer Flutter Open NieBin 963828

Flutter开源社区 335 Dec 3, 2022
Tutorial code for Flutter Apprentice book.

Flutter Apprentice: Materials This repo contains all the downloadable materials and projects associated with the Flutter Apprentice from raywenderlich

Sabih S 0 Jan 10, 2022
Responsive Google Docs Clone Tutorial Source Code developed using Flutter & Nodejs.

Google Docs Clone A completely Responsive Instagram App- Works on Android, iOS & Web! Features Google Authentication State Persistence Creating new Do

Rivaan Ranawat 83 Jan 2, 2023
Sample code for Flutter tutorials

Welcome to Flutter ShareWhatYouKnow ?? In this Github repository I share the source code for the tutorial articles that I published. You can find the

Cagatay Ulusoy 258 Dec 26, 2022
A Sample Flutter project to show how to integrate native kotlin code with flutter

kotlin_flashlight A Sample Flutter project to show how to integrate native kotlin code with flutter. Getting Started Visit this docs for Flutter setup

null 0 Apr 4, 2022
Flutter Tutorial

Flutter Flutter Tutorial ลุงสอนเขียนแอพ Flutter แบบมาราธอน 11 ชั่วโมง สอนตั้งแต่ติดตั้งเครื่องมือทุกอย่างสำหรับการพัฒนาแอพทั้ง Android , iOS สร้างโปรเ

Uncle Engineer 3 May 3, 2021
This project include all the assets I used in this tutorial

clothes_app_starter A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you star

Ruize Nie 11 Jun 29, 2022
💘 This is my Youtube tutorial of my Social Media App Generation Made in Flutter 💘

?? Generation Tutorial ?? ⌛ This is the project source code of my youtube video tutorial of ⌛ ?? Flutter Social Media App Tutorial 2021 ?? ?? Tutorial

Samarpan Dasgupta 17 Nov 24, 2022
Following Along with a tutorial and adding differing customization to learn Dart and Flutter

flutter_ss_portfolio A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you sta

Midnight 0 Nov 28, 2021
Flutter Tutorial : Expandable List - ExpansionTile & ListTile

Flutter Tutorial - Expandable List - ExpansionTile & ListTile With Flutter ExpansionTile, you can expand and shrink your widgets and also create an ex

Qaiser farooq 1 Dec 3, 2021
This is a repo for Flutter ItemStack ListView Tutorial

Flutter Item Stack ListView Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this is

Paras Jain 152 Dec 19, 2022
A complete tutorial series on Flutter webview.

Flutter Webview | Tech With Sam Flutter Webview Tutorial - Watch on youtube ✌   App Preview App Screenshot App Screenshot A new Flutter project. Getti

Samuel Adekunle 43 Dec 30, 2022
Flutter Todo Application - Youtube Tutorial

What Todo A simple todo app in flutter. Getting Started This project is made for a youtube tutorial series. Project is still WIP. Watch Tutorials: Par

Akshaye JH 87 Aug 8, 2022