Skip to content

Commit 579708e

Browse files
Update note about web and plugins (#6399)
The note at the top of the page about federated plugins is confusing, since federation and communication method are actually completely orthogonal, and this page isn't actually about plugins in the first place. This removes discussion of federation and plugins entirely, and instead talks about web implementation of platform-specific code directly.
1 parent 2b38f3b commit 579708e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/docs/development/platform-integration/platform-channels.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ platform-specific functionality is available through existing packages;
99
see [using packages][].
1010

1111
{{site.alert.note}}
12-
The information in this page is valid for most
13-
plugins, except for any web plugin implemented
14-
as a [federated plugin][]. Federated plugins
15-
don't use platform channels.
12+
The information in this page is valid for most platforms,
13+
but platform-specific code for the web generally uses
14+
[JS interoperability][] or the [`dart:html` library][] instead.
1615
{{site.alert.end}}
1716

1817
Flutter uses a flexible system that allows you to call
@@ -785,13 +784,14 @@ DispatchQueue.main.async {
785784
[`BinaryCodec`]: {{site.api}}/flutter/services/BinaryCodec-class.html
786785
[block]: {{site.apple-dev}}/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/WorkingwithBlocks/WorkingwithBlocks.html
787786
[`cloud_firestore`]: {{site.github}}/FirebaseExtended/flutterfire/blob/master/packages/cloud_firestore/cloud_firestore_platform_interface/lib/src/method_channel/utils/firestore_message_codec.dart
787+
[`dart:html` library]: {{site.dart.api}}/dart-html/dart-html-library.html
788788
[defaultTargetPlatform]: {{site.api}}/flutter/foundation/defaultTargetPlatform.html
789789
[developing packages]: /docs/development/packages-and-plugins/developing-packages
790790
[plugins]: /docs/development/packages-and-plugins/developing-packages#plugin
791791
[dispatch queue]: {{site.apple-dev}}/documentation/dispatch/dispatchqueue
792792
[`/examples/platform_channel/`]: {{site.github}}/flutter/flutter/tree/master/examples/platform_channel
793793
[`/examples/platform_channel_swift/`]: {{site.github}}/flutter/flutter/tree/master/examples/platform_channel_swift
794-
[federated plugin]: /docs/development/packages-and-plugins/developing-packages#federated-plugins
794+
[JS interoperability]: {{site.dart-site}}/web/js-interop
795795
[`JSONMessageCodec`]: {{site.api}}/flutter/services/JSONMessageCodec-class.html
796796
[`MethodChannel`]: {{site.api}}/flutter/services/MethodChannel-class.html
797797
[`MethodChannelAndroid`]: {{site.api}}/javadoc/io/flutter/plugin/common/MethodChannel.html

0 commit comments

Comments
 (0)