Skip to content

Commit

Permalink
adding html canvas example
Browse files Browse the repository at this point in the history
  • Loading branch information
rodydavis committed Apr 6, 2024
1 parent 227b34c commit 71be215
Show file tree
Hide file tree
Showing 9 changed files with 792 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/html_canvas/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://dart.dev/guides/libraries/private-files
# Created by `dart pub`
.dart_tool/
3 changes: 3 additions & 0 deletions examples/html_canvas/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 1.0.0

- Initial version.
19 changes: 19 additions & 0 deletions examples/html_canvas/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
A bare-bones Dart web app.

Uses [`package:web`](https://pub.dev/packages/web)
to interop with JS and the DOM.

## Running and building

To run the app, use these commands:
```
dart pub global activate webdev
webdev serve
```

To build a production version ready for deployment, use these commands:
```
webdev build
```

For more details, see https://dart.dev/web/get-started
30 changes: 30 additions & 0 deletions examples/html_canvas/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This file configures the static analysis results for your project (errors,
# warnings, and lints).
#
# This enables the 'recommended' set of lints from `package:lints`.
# This set helps identify many issues that may lead to problems when running
# or consuming Dart code, and enforces writing Dart using a single, idiomatic
# style and format.
#
# If you want a smaller set of lints you can change this to specify
# 'package:lints/core.yaml'. These are just the most critical lints
# (the recommended set includes the core lints).
# The core lints are also what is used by pub.dev for scoring packages.

include: package:lints/recommended.yaml

# Uncomment the following section to specify additional rules.

# linter:
# rules:
# - camel_case_types

# analyzer:
# exclude:
# - path/to/excluded/files/**

# For more information about the core and recommended set of lints, see
# https://dart.dev/go/core-lints

# For additional information about configuring this file, see
# https://dart.dev/guides/language/analysis-options
Loading

0 comments on commit 71be215

Please sign in to comment.