1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 22:09:06 +00:00
Files
samples/platform_channels
dependabot[bot] 48e2d5bb27 Bump go_router from 13.2.5 to 14.0.1 in /platform_channels (#2262)
Bumps [go_router](https://github.com/flutter/packages/tree/main/packages) from 13.2.5 to 14.0.1.
<details>
<summary>Commits</summary>
<ul>
<li><a href="ce74a85d7a"><code>ce74a85</code></a> [go_router] Update redirect documentation example code for clarity (<a href="https://github.com/flutter/packages/tree/main/packages/issues/6213">#6213</a>)</li>
<li><a href="981c1d503e"><code>981c1d5</code></a> [go_router_builder] add support to go_router_builder for initializing a State...</li>
<li><a href="26f660b526"><code>26f660b</code></a> [go_router] Add <code>GoRouterState state</code> parameter to <code>GoRouterData.onExit</code> (<a href="https://github.com/flutter/packages/tree/main/packages/issues/6495">#6495</a>)</li>
<li><a href="59916a9bce"><code>59916a9</code></a> [camera] Finish converting iOS to Pigeon (<a href="https://github.com/flutter/packages/tree/main/packages/issues/6601">#6601</a>)</li>
<li>See full diff in <a href="https://github.com/flutter/packages/commits/go_router-v14.0.1/packages">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=go_router&package-manager=pub&previous-version=13.2.5&new-version=14.0.1)](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-04-26 06:53:21 +00:00
..
2023-11-16 08:55:44 +10:00
2023-11-16 08:55:44 +10:00
2023-11-16 14:48:50 +10:00
2021-03-17 15:42:29 +11:00

Platform Channel Samples

A sample app which demonstrates how to use MethodChannel, EventChannel, BasicMessageChannel and MessageCodec in Flutter.

Goals

  • Demonstrate how to use MethodChannel to invoke platform methods.
  • Demonstrate how to use EventChannel to listen continuous value changes from the platform.
  • Demonstrate how to use BasicMessageChannel and MessageCodec to send messages of different types across the platform.

The important bits

Method Channel demo

Demonstrates how to implement a MethodChannel to increment and decrement a counter.

Event Channel demo

Demonstrates how to implement an EventChannel to listen to value changes from the Accelerometer sensor from native side.

Platform Image demo

Demonstrates how to implement a BasicMessageChannel using StandardMessageCodec to load an image from native asset.

Basic Message Channel demo

Demonstrates how to implement BasicMessageChannel using JSONMessageCodec, BinaryCodec and StringCodec to send and receive data about pets.

Questions/issues

If you have a general question about Platform Channels in Flutter, the best places to go are:

If you run into an issue with the sample itself, please file an issue here.