Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[platform_channels] updates README #496

Merged
merged 3 commits into from
Jul 16, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions platform_channels/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,28 @@ This sample is currently being built. Not all platforms and functionality are in
* Demonstrate how to use `EventChannel` to listen continuous value changes from the platform.
* Demonstrate how to use `BasicMessageChanngel` and `MessageCodec` to send messages of different types across the platform.

## The important bits
AyushBherwani1998 marked this conversation as resolved.
Show resolved Hide resolved

### [Method Channel demo](./lib/src/method_channel_demo.dart)

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

### [Event Channel demo](./lib/src/event_channel_demo.dart)

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

### [Platform Image demo](./lib/src/platform_image_demo.dart)

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

### [Basic Message Channel demo](./lib/src/pet_list_screen.dart)

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
Expand Down