1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 22:09:06 +00:00
Files
samples/web_embedding/ng-flutter
dependabot[bot] 5f9aa48e12 Bump @angular/platform-browser-dynamic from 19.2.14 to 20.1.0 in /web_embedding/ng-flutter (#2693)
Bumps [@angular/platform-browser-dynamic](https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic) from 19.2.14 to 20.1.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/angular/angular/releases"><code>@​angular/platform-browser-dynamic</code>'s releases</a>.</em></p>
<blockquote>
<h2>20.1.0</h2>
<h3>common</h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="58aedc37d1"><img src="https://img.shields.io/badge/58aedc37d1-feat-blue" alt="feat - 58aedc37d1" /></a></td>
<td>add support for a custom EnvironmentInjector to NgComponentOutlet directive (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/54764">#54764</a>)</td>
</tr>
<tr>
<td><a href="ef10aa4005"><img src="https://img.shields.io/badge/ef10aa4005-feat-blue" alt="feat - ef10aa4005" /></a></td>
<td>support decoding in NgOptimizedImage (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/61905">#61905</a>)</td>
</tr>
</tbody>
</table>
<h3>compiler</h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="0dcf230d52"><img src="https://img.shields.io/badge/0dcf230d52-feat-blue" alt="feat - 0dcf230d52" /></a></td>
<td>add support for new binary assignment operators (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/62064">#62064</a>)</td>
</tr>
<tr>
<td><a href="5a76826d26"><img src="https://img.shields.io/badge/5a76826d26-fix-green" alt="fix - 5a76826d26" /></a></td>
<td>only report parser errors on invalid expression (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/61793">#61793</a>)</td>
</tr>
<tr>
<td><a href="089ad0ee15"><img src="https://img.shields.io/badge/089ad0ee15-fix-green" alt="fix - 089ad0ee15" /></a></td>
<td>produce more accurate errors for interpolations (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/62258">#62258</a>)</td>
</tr>
<tr>
<td><a href="e9fcbb8af1"><img src="https://img.shields.io/badge/e9fcbb8af1-fix-green" alt="fix - e9fcbb8af1" /></a></td>
<td>remove TypeScript from linker (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/61618">#61618</a>)</td>
</tr>
</tbody>
</table>
<h3>compiler-cli</h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="e62fb359d6"><img src="https://img.shields.io/badge/e62fb359d6-feat-blue" alt="feat - e62fb359d6" /></a></td>
<td>add experimental support for fast type declaration emission (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/61334">#61334</a>)</td>
</tr>
<tr>
<td><a href="0cf1001715"><img src="https://img.shields.io/badge/0cf1001715-feat-blue" alt="feat - 0cf1001715" /></a></td>
<td>support host directives with direct external references in fast type declaration emission (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/61469">#61469</a>)</td>
</tr>
<tr>
<td><a href="b7ab5fa256"><img src="https://img.shields.io/badge/b7ab5fa256-fix-green" alt="fix - b7ab5fa256" /></a></td>
<td>add signal checks to handle negated calls (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/59970">#59970</a>)</td>
</tr>
<tr>
<td><a href="77fa204ad1"><img src="https://img.shields.io/badge/77fa204ad1-fix-green" alt="fix - 77fa204ad1" /></a></td>
<td>rename flag for enabling fast type declaration emission (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/61353">#61353</a>)</td>
</tr>
<tr>
<td><a href="c439d6938d"><img src="https://img.shields.io/badge/c439d6938d-fix-green" alt="fix - c439d6938d" /></a></td>
<td>symbol builder duplicating host directives (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/61240">#61240</a>)</td>
</tr>
<tr>
<td><a href="3e1baa5a95"><img src="https://img.shields.io/badge/3e1baa5a95-fix-green" alt="fix - 3e1baa5a95" /></a></td>
<td>typo in NG2026 message (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/61325">#61325</a>)</td>
</tr>
</tbody>
</table>
<h3>core</h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="8163a8995e"><img src="https://img.shields.io/badge/8163a8995e-feat-blue" alt="feat - 8163a8995e" /></a></td>
<td>Add <code>destroyed</code> property on <code>DestroyRef</code> (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/61849">#61849</a>)</td>
</tr>
<tr>
<td><a href="737b35b684"><img src="https://img.shields.io/badge/737b35b684-feat-blue" alt="feat - 737b35b684" /></a></td>
<td>Add <code>destroyed</code> property to <code>EnvironmentInjector</code> (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/61951">#61951</a>)</td>
</tr>
<tr>
<td><a href="2e0c98bd3f"><img src="https://img.shields.io/badge/2e0c98bd3f-feat-blue" alt="feat - 2e0c98bd3f" /></a></td>
<td>support bindings in TestBed (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/62040">#62040</a>)</td>
</tr>
<tr>
<td><a href="4356e85456"><img src="https://img.shields.io/badge/4356e85456-fix-green" alt="fix - 4356e85456" /></a></td>
<td>fakeAsync should not depend on module import order (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/61375">#61375</a>)</td>
</tr>
<tr>
<td><a href="8424b3bcd5"><img src="https://img.shields.io/badge/8424b3bcd5-fix-green" alt="fix - 8424b3bcd5" /></a></td>
<td>Fixes template outlet hydration (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/61989">#61989</a>)</td>
</tr>
<tr>
<td><a href="583b9a7be5"><img src="https://img.shields.io/badge/583b9a7be5-fix-green" alt="fix - 583b9a7be5" /></a></td>
<td>missing useExisting providers throwing for optional calls (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/61137">#61137</a>)</td>
</tr>
<tr>
<td><a href="8f65223bd8"><img src="https://img.shields.io/badge/8f65223bd8-fix-green" alt="fix - 8f65223bd8" /></a></td>
<td>update min Node.js support to 20.19, 22.12, and 24.0 (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/61499">#61499</a>)</td>
</tr>
<tr>
<td><a href="b785256b9e"><img src="https://img.shields.io/badge/b785256b9e-perf-orange" alt="perf - b785256b9e" /></a></td>
<td>avoid intermediate arrays in definition (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/61445">#61445</a>)</td>
</tr>
<tr>
<td><a href="56769de4d8"><img src="https://img.shields.io/badge/56769de4d8-perf-orange" alt="perf - 56769de4d8" /></a></td>
<td>move property remapping for dom properties to compiler (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/62421">#62421</a>)</td>
</tr>
</tbody>
</table>
<h3>forms</h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="610bebfce9"><img src="https://img.shields.io/badge/610bebfce9-fix-green" alt="fix - 610bebfce9" /></a></td>
<td>Allow ControlState as reset arguments for <code>FormGroup</code>/<code>FormRecord</code> (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/55860">#55860</a>)</td>
</tr>
<tr>
<td><a href="4f0221e193"><img src="https://img.shields.io/badge/4f0221e193-fix-green" alt="fix - 4f0221e193" /></a></td>
<td>improve select performance (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/61949">#61949</a>)</td>
</tr>
</tbody>
</table>
<h3>http</h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="55fa38a1e5"><img src="https://img.shields.io/badge/55fa38a1e5-feat-blue" alt="feat - 55fa38a1e5" /></a></td>
<td>add cache &amp; priority support for fetch requests in httpResource (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/62301">#62301</a>)</td>
</tr>
<tr>
<td><a href="b6ef42843c"><img src="https://img.shields.io/badge/b6ef42843c-feat-blue" alt="feat - b6ef42843c" /></a></td>
<td>add credentials support for fetch requests in httpResource (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/62390">#62390</a>)</td>
</tr>
<tr>
<td><a href="73269cf5ce"><img src="https://img.shields.io/badge/73269cf5ce-feat-blue" alt="feat - 73269cf5ce" /></a></td>
<td>add keepalive support for fetch requests in httpResource (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/61833">#61833</a>)</td>
</tr>
<tr>
<td><a href="27b7ec0a62"><img src="https://img.shields.io/badge/27b7ec0a62-feat-blue" alt="feat - 27b7ec0a62" /></a></td>
<td>add mode &amp; redirect for fetch request in httpResource (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/62337">#62337</a>)</td>
</tr>
<tr>
<td><a href="f0965c7acd"><img src="https://img.shields.io/badge/f0965c7acd-feat-blue" alt="feat - f0965c7acd" /></a></td>
<td>Add support for fetch credentials options in HttpClient (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/62354">#62354</a>)</td>
</tr>
<tr>
<td><a href="87322449a3"><img src="https://img.shields.io/badge/87322449a3-feat-blue" alt="feat - 87322449a3" /></a></td>
<td>add support for fetch mode and redirect options in HttpClient (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/62315">#62315</a>)</td>
</tr>
<tr>
<td><a href="9791ab1b6f"><img src="https://img.shields.io/badge/9791ab1b6f-feat-blue" alt="feat - 9791ab1b6f" /></a></td>
<td>Add support for fetch request cache and priority options (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/61766">#61766</a>)</td>
</tr>
<tr>
<td><a href="aa861c42ff"><img src="https://img.shields.io/badge/aa861c42ff-feat-blue" alt="feat - aa861c42ff" /></a></td>
<td>add timeout option on httpResource. (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/62326">#62326</a>)</td>
</tr>
</tbody>
</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/platform-browser-dynamic</code>'s changelog</a>.</em></p>
<blockquote>
<h1>20.1.0 (2025-07-09)</h1>
<h3>common</h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="58aedc37d1">58aedc37d1</a></td>
<td>feat</td>
<td>add support for a custom EnvironmentInjector to NgComponentOutlet directive (<a href="https://redirect.github.com/angular/angular/pull/54764">#54764</a>)</td>
</tr>
<tr>
<td><a href="ef10aa4005">ef10aa4005</a></td>
<td>feat</td>
<td>support decoding in NgOptimizedImage (<a href="https://redirect.github.com/angular/angular/pull/61905">#61905</a>)</td>
</tr>
</tbody>
</table>
<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>
<tr>
<td><a href="5a76826d26">5a76826d26</a></td>
<td>fix</td>
<td>only report parser errors on invalid expression (<a href="https://redirect.github.com/angular/angular/pull/61793">#61793</a>)</td>
</tr>
<tr>
<td><a href="089ad0ee15">089ad0ee15</a></td>
<td>fix</td>
<td>produce more accurate errors for interpolations (<a href="https://redirect.github.com/angular/angular/pull/62258">#62258</a>)</td>
</tr>
<tr>
<td><a href="e9fcbb8af1">e9fcbb8af1</a></td>
<td>fix</td>
<td>remove TypeScript from linker (<a href="https://redirect.github.com/angular/angular/pull/61618">#61618</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="e62fb359d6">e62fb359d6</a></td>
<td>feat</td>
<td>add experimental support for fast type declaration emission (<a href="https://redirect.github.com/angular/angular/pull/61334">#61334</a>)</td>
</tr>
<tr>
<td><a href="0cf1001715">0cf1001715</a></td>
<td>feat</td>
<td>support host directives with direct external references in fast type declaration emission (<a href="https://redirect.github.com/angular/angular/pull/61469">#61469</a>)</td>
</tr>
<tr>
<td><a href="b7ab5fa256">b7ab5fa256</a></td>
<td>fix</td>
<td>add signal checks to handle negated calls (<a href="https://redirect.github.com/angular/angular/pull/59970">#59970</a>)</td>
</tr>
<tr>
<td><a href="77fa204ad1">77fa204ad1</a></td>
<td>fix</td>
<td>rename flag for enabling fast type declaration emission (<a href="https://redirect.github.com/angular/angular/pull/61353">#61353</a>)</td>
</tr>
<tr>
<td><a href="c439d6938d">c439d6938d</a></td>
<td>fix</td>
<td>symbol builder duplicating host directives (<a href="https://redirect.github.com/angular/angular/pull/61240">#61240</a>)</td>
</tr>
<tr>
<td><a href="3e1baa5a95">3e1baa5a95</a></td>
<td>fix</td>
<td>typo in NG2026 message (<a href="https://redirect.github.com/angular/angular/pull/61325">#61325</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="8163a8995e">8163a8995e</a></td>
<td>feat</td>
<td>Add <code>destroyed</code> property on <code>DestroyRef</code> (<a href="https://redirect.github.com/angular/angular/pull/61849">#61849</a>)</td>
</tr>
<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="2e0c98bd3f">2e0c98bd3f</a></td>
<td>feat</td>
<td>support bindings in TestBed (<a href="https://redirect.github.com/angular/angular/pull/62040">#62040</a>)</td>
</tr>
<tr>
<td><a href="4356e85456">4356e85456</a></td>
<td>fix</td>
<td>fakeAsync should not depend on module import order (<a href="https://redirect.github.com/angular/angular/pull/61375">#61375</a>)</td>
</tr>
<tr>
<td><a href="8424b3bcd5">8424b3bcd5</a></td>
<td>fix</td>
<td>Fixes template outlet hydration (<a href="https://redirect.github.com/angular/angular/pull/61989">#61989</a>)</td>
</tr>
<tr>
<td><a href="583b9a7be5">583b9a7be5</a></td>
<td>fix</td>
<td>missing useExisting providers throwing for optional calls (<a href="https://redirect.github.com/angular/angular/pull/61137">#61137</a>)</td>
</tr>
<tr>
<td><a href="8f65223bd8">8f65223bd8</a></td>
<td>fix</td>
<td>update min Node.js support to 20.19, 22.12, and 24.0 (<a href="https://redirect.github.com/angular/angular/pull/61499">#61499</a>)</td>
</tr>
<tr>
<td><a href="b785256b9e">b785256b9e</a></td>
<td>perf</td>
<td>avoid intermediate arrays in definition (<a href="https://redirect.github.com/angular/angular/pull/61445">#61445</a>)</td>
</tr>
<tr>
<td><a href="56769de4d8">56769de4d8</a></td>
<td>perf</td>
<td>move property remapping for dom properties to compiler (<a href="https://redirect.github.com/angular/angular/pull/62421">#62421</a>)</td>
</tr>
</tbody>
</table>
<h3>forms</h3>
<table>
<thead>
<tr>
<th>Commit</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="610bebfce9">610bebfce9</a></td>
<td>fix</td>
<td>Allow ControlState as reset arguments for <code>FormGroup</code>/<code>FormRecord</code> (<a href="https://redirect.github.com/angular/angular/pull/55860">#55860</a>)</td>
</tr>
<tr>
<td><a href="4f0221e193">4f0221e193</a></td>
<td>fix</td>
<td>improve select performance (<a href="https://redirect.github.com/angular/angular/pull/61949">#61949</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="55fa38a1e5">55fa38a1e5</a></td>
<td>feat</td>
<td>add cache &amp; priority support for fetch requests in httpResource (<a href="https://redirect.github.com/angular/angular/pull/62301">#62301</a>)</td>
</tr>
<tr>
<td><a href="b6ef42843c">b6ef42843c</a></td>
<td>feat</td>
<td>add credentials support for fetch requests in httpResource (<a href="https://redirect.github.com/angular/angular/pull/62390">#62390</a>)</td>
</tr>
<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="27b7ec0a62">27b7ec0a62</a></td>
<td>feat</td>
<td>add mode &amp; redirect for fetch request in httpResource (<a href="https://redirect.github.com/angular/angular/pull/62337">#62337</a>)</td>
</tr>
<tr>
<td><a href="f0965c7acd">f0965c7acd</a></td>
<td>feat</td>
<td>Add support for fetch credentials options in HttpClient (<a href="https://redirect.github.com/angular/angular/pull/62354">#62354</a>)</td>
</tr>
<tr>
<td><a href="87322449a3">87322449a3</a></td>
<td>feat</td>
<td>add support for fetch mode and redirect options in HttpClient (<a href="https://redirect.github.com/angular/angular/pull/62315">#62315</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>
<tr>
<td><a href="aa861c42ff">aa861c42ff</a></td>
<td>feat</td>
<td>add timeout option on httpResource. (<a href="https://redirect.github.com/angular/angular/pull/62326">#62326</a>)</td>
</tr>
</tbody>
</table>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="b84859073b"><code>b848590</code></a> build: migrate to use web test runner rules (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/62292">#62292</a>)</li>
<li><a href="3a0cfd544d"><code>3a0cfd5</code></a> build: migrate to using new jasmine_test (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/62086">#62086</a>)</li>
<li><a href="d081ef9b06"><code>d081ef9</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/platform-browser-dynamic/issues/61843">#61843</a>)</li>
<li><a href="9d7768ccd6"><code>9d7768c</code></a> build: rework benchmarks and examples in <code>modules/</code> to new optimization rule ...</li>
<li><a href="4c72ce408e"><code>4c72ce4</code></a> build: migrate platform-browser and platform-browser-dynamic package to use r...</li>
<li><a href="dba912dd07"><code>dba912d</code></a> refactor(platform-browser): replace <code>platform-browser-dynamic</code> with  `platfor...</li>
<li><a href="8f65223bd8"><code>8f65223</code></a> fix(core): update min Node.js support to 20.19, 22.12, and 24.0 (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/61499">#61499</a>)</li>
<li><a href="3a106a35bc"><code>3a106a3</code></a> build: move private testing helpers outside <code>platform-browser/testing</code> (<a href="https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic/issues/61472">#61472</a>)</li>
<li><a href="a4e2139620"><code>a4e2139</code></a> refactor(platform-browser): Deprecate the <code>platform-browser-dynamic</code> package ...</li>
<li><a href="810b0a7e5c"><code>810b0a7</code></a> refactor: add explicit types for exports relying on inferred call return type...</li>
<li>Additional commits viewable in <a href="https://github.com/angular/angular/commits/20.1.0/packages/platform-browser-dynamic">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@angular/platform-browser-dynamic&package-manager=npm_and_yarn&previous-version=19.2.14&new-version=20.1.0)](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>
2025-07-14 08:18:15 +00:00
..
2025-02-12 18:08:01 -05:00
2023-05-06 10:53:17 +10:00

ng-flutter

This Angular project is a simple example of how Angular and Flutter web apps could be integrated, and have them interop.

Points of Interest

Angular

This repository is a quite standard Angular app. The following changes were made to be able to use (and interop) with a Flutter web application:

  • package.json has a custom prebuild script that builds the Flutter web app, so Angular can find it later.
  • flutter.js is added as a "scripts" entry in angular.json. Angular takes care of minimizing and injecting it as any other script.
  • The rest of the flutter app flutter/build/web/ is registered as an "assets" entry in angular.json, and moved to /flutter.
  • The ng-flutter component takes care of embedding Flutter web, and yielding control to Angular through an appLoaded EventEmitter. The object yielded by this emitter is a state controller exposed by flutter via a JS custom event!

Flutter

The embedded Flutter application lives in the flutter directory of this repo. That application is a standard web app, that doesn't need to be aware that it's going to be embedded in another framework.

  • Flutter uses new @staticInterop methods to allow certain Dart functions to be called from JavaScript.
  • Look at how createDartExport and broadcastAppEvent work together to make the _state controller of the Flutter app available to Angular!

How to build the app

Requirements

If you want to build and run this demo on your machine, you'll need a moderately recent version of Angular:

$ ng version

Angular CLI: 17.0.0
Node: 20.9.0
Package Manager: npm 10.1.0
OS: linux x64

And Flutter:

$ flutter --version

Flutter 3.13.9 • channel stable
Framework • revision d211f42860 (2 weeks ago) • 2023-10-25 13:42:25 -0700
Engine • revision 0545f8705d
Tools • Dart 3.1.5 • DevTools 2.25.0

Ensure npm, ng and flutter are present in your $PATH.

Building the app

This repository is a moderately standard Angular app. It integrates Flutter web by making it part of the Angular assets.

In order to build this app, first fetch its npm dependencies:

$ npm install

added 963 packages, and audited 964 packages in 17s

93 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

Then run the build script. It'll take care of building Flutter automatically:

$ npm run build

> ng-flutter@0.0.0 prebuild

... Flutter web build output ...

Compiling lib/main.dart for the Web...

> ng-flutter@0.0.0 build
> ng build

... Angular build output ...

✔ Browser application bundle generation complete.
✔ Copying assets complete.
✔ Index html generation complete.

Local Angular development

Once you've reached this point, you should be able to work with your Angular application normally, for example to run a local web server:

$ npm run start

> ng-flutter@0.0.0 start
> ng serve

✔ Browser application bundle generation complete.

Initial Chunk Files   | Names         |  Raw Size
vendor.js             | vendor        |   4.38 MB | 

... Angular build output...

** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **


✔ Compiled successfully.

Navigate to http://localhost:4200/. The application will automatically reload if you change any of its Angular source files.

Local Flutter web development

The Flutter app lives inside the flutter directory, and can be developed independently. Just do any changes on Flutter web as you'd normally do. It even includes a small web/index.html so you can see changes to your app without running the whole Angular setup.

Note

For now, Angular does not auto-detect changes to your Flutter web app, so once you're happy with your Flutter web app, make sure to call npm run build so everything rebuilds and gets placed into its correct location.

Deploying the app

After npm run build, you should have a deployable Angular + Flutter web app in the dist directory of this Angular project.

Your built app can can be deployed anywhere, but do check Firebase hosting for a super-easy deployment experience!

Troubleshooting

Flutter

Ensure your flutter app is properly rebuilt after any changes.

  • Run npm run build to re-build the Flutter app.

If you encounter error messages like:

Error: Can't resolve 'flutter/build/web/flutter.js' in '/my/checkout/of/ng-flutter'

You definitely need to run npm run build!

Reach out to the team(s)!

Have you had any problem not covered in this README? Do you want to see other embedding examples?

Let us know by creating an issue or opening a new pull request.

Thanks!