mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Bumps [@angular/compiler](https://github.com/angular/angular/tree/HEAD/packages/compiler) from 19.2.14 to 20.0.6. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/angular/angular/releases"><code>@angular/compiler</code>'s releases</a>.</em></p> <blockquote> <h2>20.0.6</h2> <p>No release notes provided.</p> <h2>20.0.5</h2> <h3>compiler-cli</h3> <table> <thead> <tr> <th>Commit</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a href="de0d525ad7"><img src="https://img.shields.io/badge/de0d525ad7-fix-green" alt="fix - de0d525ad7" /></a></td> <td>add suggestion when pipe is missing (<a href="https://github.com/angular/angular/tree/HEAD/packages/compiler/issues/62146">#62146</a>)</td> </tr> <tr> <td><a href="3eb5a79a83"><img src="https://img.shields.io/badge/3eb5a79a83-fix-green" alt="fix - 3eb5a79a83" /></a></td> <td>handle initializer APIs wrapped in type casts (<a href="https://github.com/angular/angular/tree/HEAD/packages/compiler/issues/62203">#62203</a>)</td> </tr> </tbody> </table> <h3>core</h3> <table> <thead> <tr> <th>Commit</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a href="a2e6f317a7"><img src="https://img.shields.io/badge/a2e6f317a7-fix-green" alt="fix - a2e6f317a7" /></a></td> <td>allow to set a resource in an error state (<a href="https://github.com/angular/angular/tree/HEAD/packages/compiler/issues/62253">#62253</a>)</td> </tr> <tr> <td><a href="4c00238a69"><img src="https://img.shields.io/badge/4c00238a69-fix-green" alt="fix - 4c00238a69" /></a></td> <td>avoid injecting <code>ErrorHandler</code> from a destroyed injector (<a href="https://github.com/angular/angular/tree/HEAD/packages/compiler/issues/61886">#61886</a>)</td> </tr> <tr> <td><a href="369f03ad7f"><img src="https://img.shields.io/badge/369f03ad7f-fix-green" alt="fix - 369f03ad7f" /></a></td> <td>unable to retrieve defer blocks in tests when component injects ViewContainerRef (<a href="https://github.com/angular/angular/tree/HEAD/packages/compiler/issues/62156">#62156</a>)</td> </tr> </tbody> </table> <h3>router</h3> <table> <thead> <tr> <th>Commit</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a href="65c59dd796"><img src="https://img.shields.io/badge/65c59dd796-fix-green" alt="fix - 65c59dd796" /></a></td> <td>handle scrollRestoration error in restricted environments (<a href="https://github.com/angular/angular/tree/HEAD/packages/compiler/issues/62186">#62186</a>)</td> </tr> </tbody> </table> <h3>upgrade</h3> <table> <thead> <tr> <th>Commit</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a href="144c429230"><img src="https://img.shields.io/badge/144c429230-fix-green" alt="fix - 144c429230" /></a></td> <td>Make zoneless work with hybrid apps (<a href="https://github.com/angular/angular/tree/HEAD/packages/compiler/issues/61660">#61660</a>)</td> </tr> </tbody> </table> <h2>20.0.4</h2> <h3>core</h3> <table> <thead> <tr> <th>Commit</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a href="e343cdfb86"><img src="https://img.shields.io/badge/e343cdfb86-fix-green" alt="fix - e343cdfb86" /></a></td> <td>Fixes template outlet hydration (<a href="https://github.com/angular/angular/tree/HEAD/packages/compiler/issues/62012">#62012</a>)</td> </tr> <tr> <td><a href="67f657e4a3"><img src="https://img.shields.io/badge/67f657e4a3-fix-green" alt="fix - 67f657e4a3" /></a></td> <td>inject <code>APP_ID</code> before injector is destroyed (<a href="https://github.com/angular/angular/tree/HEAD/packages/compiler/issues/61885">#61885</a>)</td> </tr> <tr> <td><a href="ae212b51ee"><img src="https://img.shields.io/badge/ae212b51ee-fix-green" alt="fix - ae212b51ee" /></a></td> <td>Wrap ErrorEvent with no error property (<a href="https://github.com/angular/angular/tree/HEAD/packages/compiler/issues/62081">#62081</a>)</td> </tr> </tbody> </table> <h3>migrations</h3> <table> <thead> <tr> <th>Commit</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a href="82bf9848a1"><img src="https://img.shields.io/badge/82bf9848a1-fix-green" alt="fix - 82bf9848a1" /></a></td> <td>more robust trailing comma removal in unused imports migration (<a href="https://github.com/angular/angular/tree/HEAD/packages/compiler/issues/62118">#62118</a>)</td> </tr> </tbody> </table> <h2>20.0.3</h2> <p>No release notes provided.</p> <h2>20.0.2</h2> <h3>core</h3> <table> <thead> <tr> <th>Commit</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a href="1e8158baee"><img src="https://img.shields.io/badge/1e8158baee-fix-green" alt="fix - 1e8158baee" /></a></td> <td>components marked for traversal resets reactive context (<a href="https://github.com/angular/angular/tree/HEAD/packages/compiler/issues/61663">#61663</a>)</td> </tr> <tr> <td><a href="1cd23be57e"><img src="https://img.shields.io/badge/1cd23be57e-fix-green" alt="fix - 1cd23be57e" /></a></td> <td>unregister <code>onDestroy</code> in <code>outputToObservable</code> (<a href="https://github.com/angular/angular/tree/HEAD/packages/compiler/issues/61882">#61882</a>)</td> </tr> </tbody> </table> <h2>20.0.1</h2> <h3>compiler</h3> <table> <thead> <tr> <th>Commit</th> <th>Description</th> </tr> </thead> </table> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/angular/angular/blob/main/CHANGELOG.md"><code>@angular/compiler</code>'s changelog</a>.</em></p> <blockquote> <h1>20.0.6 (2025-07-01)</h1> <h1>20.1.0-next.3 (2025-06-25)</h1> <h3>compiler</h3> <table> <thead> <tr> <th>Commit</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a href="0dcf230d52">0dcf230d52</a></td> <td>feat</td> <td>add support for new binary assignment operators (<a href="https://redirect.github.com/angular/angular/pull/62064">#62064</a>)</td> </tr> </tbody> </table> <h3>compiler-cli</h3> <table> <thead> <tr> <th>Commit</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a href="ed5062a91c">ed5062a91c</a></td> <td>fix</td> <td>add suggestion when pipe is missing (<a href="https://redirect.github.com/angular/angular/pull/62146">#62146</a>)</td> </tr> <tr> <td><a href="d25a6a0120">d25a6a0120</a></td> <td>fix</td> <td>handle initializer APIs wrapped in type casts (<a href="https://redirect.github.com/angular/angular/pull/62203">#62203</a>)</td> </tr> </tbody> </table> <h3>core</h3> <table> <thead> <tr> <th>Commit</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a href="737b35b684">737b35b684</a></td> <td>feat</td> <td>Add <code>destroyed</code> property to <code>EnvironmentInjector</code> (<a href="https://redirect.github.com/angular/angular/pull/61951">#61951</a>)</td> </tr> <tr> <td><a href="36a193139a">36a193139a</a></td> <td>fix</td> <td>allow to set a resource in an error state (<a href="https://redirect.github.com/angular/angular/pull/62253">#62253</a>)</td> </tr> <tr> <td><a href="c4dd258658">c4dd258658</a></td> <td>fix</td> <td>avoid injecting <code>ErrorHandler</code> from a destroyed injector (<a href="https://redirect.github.com/angular/angular/pull/61886">#61886</a>)</td> </tr> <tr> <td><a href="3eee19d892">3eee19d892</a></td> <td>fix</td> <td>unable to retrieve defer blocks in tests when component injects ViewContainerRef (<a href="https://redirect.github.com/angular/angular/pull/62156">#62156</a>)</td> </tr> </tbody> </table> <h3>http</h3> <table> <thead> <tr> <th>Commit</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a href="73269cf5ce">73269cf5ce</a></td> <td>feat</td> <td>add keepalive support for fetch requests in httpResource (<a href="https://redirect.github.com/angular/angular/pull/61833">#61833</a>)</td> </tr> <tr> <td><a href="9791ab1b6f">9791ab1b6f</a></td> <td>feat</td> <td>Add support for fetch request cache and priority options (<a href="https://redirect.github.com/angular/angular/pull/61766">#61766</a>)</td> </tr> </tbody> </table> <h3>language-service</h3> <table> <thead> <tr> <th>Commit</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a href="20c1f991e6">20c1f991e6</a></td> <td>feat</td> <td>add semantic tokens for templates (<a href="https://redirect.github.com/angular/angular/pull/60260">#60260</a>)</td> </tr> <tr> <td><a href="5d2e85920e">5d2e85920e</a></td> <td>feat</td> <td>support to fix missing required inputs diagnostic (<a href="https://redirect.github.com/angular/angular/pull/50911">#50911</a>)</td> </tr> </tbody> </table> <h3>router</h3> <table> <thead> <tr> <th>Commit</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a href="9833d9ea47">9833d9ea47</a></td> <td>feat</td> <td>Run <code>loadComponent</code> and <code>loadChildren</code> functions in the route's injection context (<a href="https://redirect.github.com/angular/angular/pull/62133">#62133</a>)</td> </tr> <tr> <td><a href="7600bec71d">7600bec71d</a></td> <td>fix</td> <td>handle scrollRestoration error in restricted environments (<a href="https://redirect.github.com/angular/angular/pull/62186">#62186</a>)</td> </tr> </tbody> </table> <h3>upgrade</h3> <table> <thead> <tr> <th>Commit</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a href="900cd37f68">900cd37f68</a></td> <td>fix</td> <td>Make zoneless work with hybrid apps (<a href="https://redirect.github.com/angular/angular/pull/61660">#61660</a>)</td> </tr> </tbody> </table> <h1>20.0.5 (2025-06-25)</h1> <h3>compiler-cli</h3> <table> <thead> <tr> <th>Commit</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><a href="de0d525ad7">de0d525ad7</a></td> <td>fix</td> <td>add suggestion when pipe is missing (<a href="https://redirect.github.com/angular/angular/pull/62146">#62146</a>)</td> </tr> </tbody> </table> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="31e3eb20f9"><code>31e3eb2</code></a> build: migrate to use web test runner rules (<a href="https://github.com/angular/angular/tree/HEAD/packages/compiler/issues/62294">#62294</a>)</li> <li><a href="f201df9b83"><code>f201df9</code></a> build: migrate to using new jasmine_test (<a href="https://github.com/angular/angular/tree/HEAD/packages/compiler/issues/62106">#62106</a>)</li> <li><a href="8564cf48d8"><code>8564cf4</code></a> build: replace all <code>ng_package</code> with new rule from <code>rules_angular</code> (<a href="https://github.com/angular/angular/tree/HEAD/packages/compiler/issues/61862">#61862</a>)</li> <li><a href="a9a7654cbf"><code>a9a7654</code></a> build: migrate <code>packages/compiler-cli</code> to <code>ts_project</code> (<a href="https://github.com/angular/angular/tree/HEAD/packages/compiler/issues/61862">#61862</a>)</li> <li><a href="32230e637d"><code>32230e6</code></a> build: add missing import (<a href="https://github.com/angular/angular/tree/HEAD/packages/compiler/issues/61838">#61838</a>)</li> <li><a href="8ecb1ba027"><code>8ecb1ba</code></a> fix(compiler): recover invalid parenthesized expressions (<a href="https://github.com/angular/angular/tree/HEAD/packages/compiler/issues/61815">#61815</a>)</li> <li><a href="66a0ec6510"><code>66a0ec6</code></a> fix(compiler): move defer trigger assertions out of parser (<a href="https://github.com/angular/angular/tree/HEAD/packages/compiler/issues/61747">#61747</a>)</li> <li><a href="e910893fa6"><code>e910893</code></a> build: adjust bundling tests to use Angular CLI</li> <li><a href="845f8dfd38"><code>845f8df</code></a> build: fix <code>app_bundle</code> rule after migrating <code>packages/compiler</code></li> <li><a href="aa0c46f4f3"><code>aa0c46f</code></a> build: migrate <code>packages/compiler</code> to <code>ts_project</code></li> <li>Additional commits viewable in <a href="https://github.com/angular/angular/commits/20.0.6/packages/compiler">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
web_embedding
This directory contains examples of how to embed Flutter in web apps (without iframes):
- element_embedding_demo: Modifies the index.html of a flutter app so it is
launched in a custom
hostElement. This is the most basic embedding example. - ng-flutter: A simple Angular app (and component) that replicates the above example, but in an Angular style.
Check the README.md of each example for more details on how to run it, and the
"Points of Interest" it may contain.
Community Contributions
Members of the community have graciously ported and contributed the following examples of Flutter Web embedding into other web frameworks:
| Author | Host Framework | Code |
|---|---|---|
| @p-mazhnik | React JS | p-mazhnik/flutter-embedding cra-flutter |
| @p-mazhnik | React Native | p-mazhnik/flutter-embedding expo-flutter |
(All contributions are welcome! Please, create an issue or open a PR to let us know how you've embedded a Flutter Web app with your favorite web framework (Vue? Svelte? Ember? Aurelia? jQuery? MooTools? Prototype?), so it can be added to the table above!)