1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00
Files
samples/web_embedding
dependabot[bot] ad86bf554b Bump @angular/platform-browser from 18.2.13 to 19.0.3 in /web_embedding/ng-flutter (#2548)
⚠️  **Dependabot is rebasing this PR** ⚠️ 

Rebasing might not happen immediately, so don't worry if this takes some time.

Note: if you make any changes to this PR yourself, they will take precedence over the rebase.

---

Bumps [@angular/platform-browser](https://github.com/angular/angular/tree/HEAD/packages/platform-browser) from 18.2.13 to 19.0.3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/angular/angular/releases"><code>@​angular/platform-browser</code>'s releases</a>.</em></p>
<blockquote>
<h2>v19.0.3</h2>
<h1>19.0.3 (2024-12-04)</h1>
<h2>v19.0.2</h2>
<h1>19.0.2 (2024-12-04)</h1>
<h3>compiler-cli</h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="9f99196d23"><img src="https://img.shields.io/badge/9f99196d23-fix-green" alt="fix - 9f99196d23" /></a></td>
<td>account for multiple generated namespace imports in HMR (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser/issues/58924">#58924</a>)</td>
</tr>
</tbody>
</table>
<h3>core</h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="4792db9a6d"><img src="https://img.shields.io/badge/4792db9a6d-fix-green" alt="fix - 4792db9a6d" /></a></td>
<td>Explicitly manage TracingSnapshot lifecycle and dispose of it once it's been used. (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser/issues/58929">#58929</a>)</td>
</tr>
</tbody>
</table>
<h3>migrations</h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="7b5bacc228"><img src="https://img.shields.io/badge/7b5bacc228-fix-green" alt="fix - 7b5bacc228" /></a></td>
<td>class content being deleted in some edge cases (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser/issues/58959">#58959</a>)</td>
</tr>
<tr>
<td><a href="d1cbdd6acb"><img src="https://img.shields.io/badge/d1cbdd6acb-fix-green" alt="fix - d1cbdd6acb" /></a></td>
<td>correctly strip away parameters surrounded by comments in inject migration (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser/issues/58959">#58959</a>)</td>
</tr>
<tr>
<td><a href="e17ff71c31"><img src="https://img.shields.io/badge/e17ff71c31-fix-green" alt="fix - e17ff71c31" /></a></td>
<td>don't migrate classes with parameters that can't be injected (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser/issues/58959">#58959</a>)</td>
</tr>
<tr>
<td><a href="7c5f990001"><img src="https://img.shields.io/badge/7c5f990001-fix-green" alt="fix - 7c5f990001" /></a></td>
<td>inject migration aggressively removing imports (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser/issues/58959">#58959</a>)</td>
</tr>
<tr>
<td><a href="4392ccedf9"><img src="https://img.shields.io/badge/4392ccedf9-fix-green" alt="fix - 4392ccedf9" /></a></td>
<td>inject migration dropping code if everything except super is removed (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser/issues/58959">#58959</a>)</td>
</tr>
<tr>
<td><a href="9cbebc6dda"><img src="https://img.shields.io/badge/9cbebc6dda-fix-green" alt="fix - 9cbebc6dda" /></a></td>
<td>preserve type literals and tuples in inject migrations (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser/issues/58959">#58959</a>)</td>
</tr>
</tbody>
</table>
<h3>platform-server</h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="f3c388ecda"><img src="https://img.shields.io/badge/f3c388ecda-fix-green" alt="fix - f3c388ecda" /></a></td>
<td>remove peer dependency on animations (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser/issues/58997">#58997</a>)</td>
</tr>
</tbody>
</table>
<h2>v19.0.1</h2>
<h1>19.0.1 (2024-11-26)</h1>
<h3>compiler-cli</h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="fb1fa8b0fc"><img src="https://img.shields.io/badge/fb1fa8b0fc-fix-green" alt="fix - fb1fa8b0fc" /></a></td>
<td>more accurate diagnostics for host binding parser errors (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser/issues/58870">#58870</a>)</td>
</tr>
</tbody>
</table>
<h3>core</h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="502ee0e722"><img src="https://img.shields.io/badge/502ee0e722-fix-green" alt="fix - 502ee0e722" /></a></td>
<td>correctly clear template HMR internal renderer cache (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser/issues/58724">#58724</a>)</td>
</tr>
<tr>
<td><a href="99715104a1"><img src="https://img.shields.io/badge/99715104a1-fix-green" alt="fix - 99715104a1" /></a></td>
<td>correctly perform lazy routes migration for components with additional decorators (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser/issues/58796">#58796</a>)</td>
</tr>
<tr>
<td><a href="118803035f"><img src="https://img.shields.io/badge/118803035f-fix-green" alt="fix - 118803035f" /></a></td>
<td>Ensure _tick is always run within the TracingSnapshot. (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser/issues/58881">#58881</a>)</td>
</tr>
<tr>
<td><a href="08b9452f01"><img src="https://img.shields.io/badge/08b9452f01-fix-green" alt="fix - 08b9452f01" /></a></td>
<td>Ensure resource sets an error (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser/issues/58855">#58855</a>)</td>
</tr>
<tr>
<td><a href="84f45ea3ff"><img src="https://img.shields.io/badge/84f45ea3ff-fix-green" alt="fix - 84f45ea3ff" /></a></td>
<td>make component id generation more stable between client and server builds (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser/issues/58813">#58813</a>)</td>
</tr>
<tr>
<td><a href="d3491c7cee"><img src="https://img.shields.io/badge/d3491c7cee-fix-green" alt="fix - d3491c7cee" /></a></td>
<td>Prevents race condition of cleanup for incremental hydration (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser/issues/58722">#58722</a>)</td>
</tr>
</tbody>
</table>
<h3>forms</h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="4dfe5b6cef"><img src="https://img.shields.io/badge/4dfe5b6cef-fix-green" alt="fix - 4dfe5b6cef" /></a></td>
<td>work around TypeScript 5.7 issue (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser/issues/58731">#58731</a>)</td>
</tr>
</tbody>
</table>
<h3>language-service</h3>
</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/platform-browser</code>'s changelog</a>.</em></p>
<blockquote>
<h1>19.0.3 (2024-12-04)</h1>
<h1>19.1.0-next.1 (2024-12-04)</h1>
<h3>compiler-cli</h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="f280467398">f280467398</a></td>
<td>fix</td>
<td>account for multiple generated namespace imports in HMR (<a href="https://redirect.github.com/angular/angular/pull/58924">#58924</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="e894a5daea">e894a5daea</a></td>
<td>feat</td>
<td>set kind field on template and effect nodes (<a href="https://redirect.github.com/angular/angular/pull/58865">#58865</a>)</td>
</tr>
<tr>
<td><a href="3b765367f3">3b765367f3</a></td>
<td>fix</td>
<td>Explicitly manage TracingSnapshot lifecycle and dispose of it once it's been used. (<a href="https://redirect.github.com/angular/angular/pull/58929">#58929</a>)</td>
</tr>
</tbody>
</table>
<h3>migrations</h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="e31e52e177">e31e52e177</a></td>
<td>fix</td>
<td>class content being deleted in some edge cases (<a href="https://redirect.github.com/angular/angular/pull/58959">#58959</a>)</td>
</tr>
<tr>
<td><a href="508d3a1b3b">508d3a1b3b</a></td>
<td>fix</td>
<td>correctly strip away parameters surrounded by comments in inject migration (<a href="https://redirect.github.com/angular/angular/pull/58959">#58959</a>)</td>
</tr>
<tr>
<td><a href="7191aa6e09">7191aa6e09</a></td>
<td>fix</td>
<td>don't migrate classes with parameters that can't be injected (<a href="https://redirect.github.com/angular/angular/pull/58959">#58959</a>)</td>
</tr>
<tr>
<td><a href="a4924af6d5">a4924af6d5</a></td>
<td>fix</td>
<td>inject migration aggressively removing imports (<a href="https://redirect.github.com/angular/angular/pull/58959">#58959</a>)</td>
</tr>
<tr>
<td><a href="35165d152d">35165d152d</a></td>
<td>fix</td>
<td>inject migration dropping code if everything except super is removed (<a href="https://redirect.github.com/angular/angular/pull/58959">#58959</a>)</td>
</tr>
<tr>
<td><a href="68e5ba7a3a">68e5ba7a3a</a></td>
<td>fix</td>
<td>preserve type literals and tuples in inject migrations (<a href="https://redirect.github.com/angular/angular/pull/58959">#58959</a>)</td>
</tr>
</tbody>
</table>
<h3>platform-server</h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="1cfbfc66d3">1cfbfc66d3</a></td>
<td>fix</td>
<td>remove peer dependency on animations (<a href="https://redirect.github.com/angular/angular/pull/58997">#58997</a>)</td>
</tr>
</tbody>
</table>
<h1>19.0.2 (2024-12-04)</h1>
<h3>compiler-cli</h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="9f99196d23">9f99196d23</a></td>
<td>fix</td>
<td>account for multiple generated namespace imports in HMR (<a href="https://redirect.github.com/angular/angular/pull/58924">#58924</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="4792db9a6d">4792db9a6d</a></td>
<td>fix</td>
<td>Explicitly manage TracingSnapshot lifecycle and dispose of it once it's been used. (<a href="https://redirect.github.com/angular/angular/pull/58929">#58929</a>)</td>
</tr>
</tbody>
</table>
<h3>migrations</h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="7b5bacc228">7b5bacc228</a></td>
<td>fix</td>
<td>class content being deleted in some edge cases (<a href="https://redirect.github.com/angular/angular/pull/58959">#58959</a>)</td>
</tr>
<tr>
<td><a href="d1cbdd6acb">d1cbdd6acb</a></td>
<td>fix</td>
<td>correctly strip away parameters surrounded by comments in inject migration (<a href="https://redirect.github.com/angular/angular/pull/58959">#58959</a>)</td>
</tr>
<tr>
<td><a href="e17ff71c31">e17ff71c31</a></td>
<td>fix</td>
<td>don't migrate classes with parameters that can't be injected (<a href="https://redirect.github.com/angular/angular/pull/58959">#58959</a>)</td>
</tr>
<tr>
<td><a href="7c5f990001">7c5f990001</a></td>
<td>fix</td>
<td>inject migration aggressively removing imports (<a href="https://redirect.github.com/angular/angular/pull/58959">#58959</a>)</td>
</tr>
<tr>
<td><a href="4392ccedf9">4392ccedf9</a></td>
<td>fix</td>
<td>inject migration dropping code if everything except super is removed (<a href="https://redirect.github.com/angular/angular/pull/58959">#58959</a>)</td>
</tr>
<tr>
<td><a href="9cbebc6dda">9cbebc6dda</a></td>
<td>fix</td>
<td>preserve type literals and tuples in inject migrations (<a href="https://redirect.github.com/angular/angular/pull/58959">#58959</a>)</td>
</tr>
</tbody>
</table>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="5f3ba068f1"><code>5f3ba06</code></a> docs: set syntax highlighting of code examples MD code blocks (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser/issues/59026">#59026</a>)</li>
<li><a href="c36a1c023b"><code>c36a1c0</code></a> fix(platform-browser): correctly add external stylesheets to ShadowDOM compon...</li>
<li><a href="917e99db42"><code>917e99d</code></a> docs(platform-browser): update usage notes for incremental hydration (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser/issues/58339">#58339</a>)</li>
<li><a href="19edf2c057"><code>19edf2c</code></a> feat(core): add syntactic sugar for initializers (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser/issues/53152">#53152</a>)</li>
<li><a href="69fc5ae922"><code>69fc5ae</code></a> feat(core): Add incremental hydration public api (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser/issues/58249">#58249</a>)</li>
<li><a href="95449302e9"><code>9544930</code></a> refactor(core): add incremental hydration infrastructure (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser/issues/58193">#58193</a>)</li>
<li><a href="b542f15204"><code>b542f15</code></a> docs: removed typos of withHttpTransferCacheOptions description (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser/issues/58244">#58244</a>)</li>
<li><a href="09df589e31"><code>09df589</code></a> refactor(core): Migrate all packages with the <code>explicit-standalone-flag</code> sche...</li>
<li><a href="5c61f46409"><code>5c61f46</code></a> refactor(platform-browser): remove deprecated `BrowserModule.withServerTransi...</li>
<li><a href="84b6896956"><code>84b6896</code></a> refactor(platform-server): Add an ssr benchmark setup. (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser/issues/57647">#57647</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/angular/angular/commits/19.0.3/packages/platform-browser">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@angular/platform-browser&package-manager=npm_and_yarn&previous-version=18.2.13&new-version=19.0.3)](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>
2024-12-09 06:36:07 +00:00
..

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!)