Skip to content

Commit

Permalink
Remove multi-file DartPad usages from cheatsheet (#5392)
Browse files Browse the repository at this point in the history
Part of #5382 

- The tests feature contained `main` for each example, but that features
being removed. The examples need `main` to run, and also are not helpful
without the feedback that the tests provided, so we're adding the tests
to code visible in each dartpad.
  - Comment at the top of each that this part is tests, don't edit
  - Will have to adjust the tests for more useful messages to users. 
- Since `main` is a big focus now, add a new section on the `main`
function at the top of the cheatsheet.

- Also remove hint and solution feature and place in expandable
"solution" section under each example.

- Rewrite the intro section to explain the new way the page works.

---------

Co-authored-by: Parker Lougheed <[email protected]>
  • Loading branch information
MaryaBelanger and parlough authored Dec 22, 2023
1 parent 4cfe6cc commit 0d27b4f
Show file tree
Hide file tree
Showing 3 changed files with 530 additions and 580 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ RUN set -eu; \
case "$(dpkg --print-architecture)_${DART_CHANNEL}" in \
# BEGIN dart-sha
amd64_stable) \
DART_SHA256="3a1903a8743422e13e93fb3f497c179fab5658ae32b9151a7baee3158461e0a5"; \
DART_SHA256="7604c091455b7c3e4b3f52a5966b07f4accb657954c54257fe84cddfc77379ae"; \
SDK_ARCH="x64";; \
arm64_stable) \
DART_SHA256="dcf3c8116070c77f2376cbbd5229712a4e6874ef66438c0611e2ef23f69b2862"; \
DART_SHA256="5a3084385df7014fea762fbb8cb985364f65a041a1446db6955cdac670cc8038"; \
SDK_ARCH="arm64";; \
amd64_beta) \
DART_SHA256="24fee21a8e378050b0b0611602f674059d5a93bb09a560539857e384f1b83056"; \
Expand All @@ -47,10 +47,10 @@ RUN set -eu; \
DART_SHA256="f86de4ab4f99a2dbdc6a0809acaae40a280fa3cbac340bbdf910cf7f0085dcbb"; \
SDK_ARCH="arm64";; \
amd64_dev) \
DART_SHA256="e60a993dac5c4f01d6069d664a041bad85aaa83d6a07617191a4fe216d86ccac"; \
DART_SHA256="439b0c5d0774eccffb09ec84405685eb7d1c4ab0f2207ff6b86add0ed7d8c457"; \
SDK_ARCH="x64";; \
arm64_dev) \
DART_SHA256="53a86edef253e690a72a365a9564a9f08571804d999b06e177a3b04a2476c659"; \
DART_SHA256="c711a28fc49319a4a8b0e004c7542266ab13fd2f093344d326b509d014ef6d79"; \
SDK_ARCH="arm64";; \
# END dart-sha
esac; \
Expand Down
2 changes: 1 addition & 1 deletion src/_data/pkg-vers.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"doc-path": "install",
"channel": "stable",
"prev-vers": "2.19.6",
"vers": "3.2.3"
"vers": "3.2.4"
}
}
Loading

0 comments on commit 0d27b4f

Please sign in to comment.