Conversation
There was a problem hiding this comment.
Code Review
This pull request provides several documentation updates, primarily focused on cleaning up wording, improving formatting for readability, and updating guidance for web development. Key changes include replacing 'see' with 'visit' or 'check out' for external links, reformatting long lines, and adding information about the Jaspr package for building static websites with Dart. My review found a minor grammatical issue where a semicolon was used incorrectly, and I've suggested a fix. Overall, the changes improve the clarity and accuracy of the documentation.
Note: Security Review has been skipped due to the limited scope of the PR.
|
Visit the preview URL for this PR (updated for commit e728b89): https://flutter-docs-prod--pr13160-os-detect-2ngx3z6o.web.app |
| ### Does `Platform.is` work on the web? | ||
|
|
||
| Not currently. | ||
| No. While you can technically import `dart:io` when compiling for the web, |
There was a problem hiding this comment.
@srujzs @biggs0125 – we throw for dart:io with wasm, right?
There was a problem hiding this comment.
No, it's the same as with dart2js and ddc where you can import it, but any usage throws.
Fixes #13146
Also, fixes formatting and updates guidance around static websites.