Skip to content

Commit

Permalink
Add DartPad to flutter.dev (#2938)
Browse files Browse the repository at this point in the history
* Added dartpad but with old examples from dart.dev

* Updated dartpad to flutter mode + light theme

* Refactor to counter example

* Added 3 working examples, added dartpad to install page

* Add an include in index

* Add style and language updates to /docs/get-started/install:

- Reframe the installation page as the very first step of get started (aka try/install)
- Put the embedded Dartpad above the installation buttons and change the page title.
- Update title in left nav

* Minor updates/corrections

* Fix broken link for chrome os

* Add styling tweak to dartpad section on landing page

* Use 'Install Flutter' on landing page

* Fix typo

* Rebuild dartpad_picker

* Remove warning about Chrome 77

* Left-align headings on install page

* Remove changes to install page

* Remove changes to sidenav for install page
  • Loading branch information
legalcodes authored Sep 27, 2019
1 parent 3aed2bb commit 06189f3
Show file tree
Hide file tree
Showing 16 changed files with 3,519 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ node_modules
.flutter-plugins
.packages
.dart_tool
# pubspec.lock
example.g
tmp/

Expand Down
11 changes: 11 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,17 @@ alert:
<i class="fas fa-exclamation-triangle"></i> **Warning:**
end: </aside>

custom:
dartpad:
embed-dart-prefix: https://dartpad.dev/embed-dart.html
embed-html-prefix: https://dartpad.dev/embed-html.html
embed-inline-prefix: https://dartpad.dev/embed-inline.html
dartpadx:
embed-dart-prefix: https://dartpad.dev/experimental/embed-new-dart.html
embed-flutter-prefix: https://dartpad.dev/experimental/embed-new-flutter.html
embed-html-prefix: https://dartpad.dev/experimental/embed-new-html.html
embed-inline-prefix: https://dartpad.dev/experimental/embed-new-inline.html

# callout_danger: '<div class="bs-callout bs-callout-danger">'
# callout_default: '<div class="bs-callout bs-callout-default">'
# callout_primary: '<div class="bs-callout bs-callout-primary">'
Expand Down
Loading

0 comments on commit 06189f3

Please sign in to comment.