Skip to content

Commit

Permalink
Update old package:js mention (#11208)
Browse files Browse the repository at this point in the history
  • Loading branch information
parlough committed Oct 1, 2024
1 parent cf42e97 commit a15df3b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/content/resources/architectural-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -886,8 +886,8 @@ to native code using the `dart:ffi` library. The foreign function interface
serialization is required to pass data. Instead, the Dart runtime provides the
ability to allocate memory on the heap that is backed by a Dart object and make
calls to statically or dynamically linked libraries. FFI is available for all
platforms other than web, where the [js package]({{site.pub}}/packages/js)
serves an equivalent purpose.
platforms other than web, where the [JS interop libraries][] and
[`package:web`][] serve a similar purpose.

To use FFI, you create a `typedef` for each of the Dart and unmanaged method
signatures, and instruct the Dart VM to map between them. As an example,
Expand Down Expand Up @@ -926,6 +926,9 @@ void exampleFfi() {
}
```

[JS interop libraries]: {{site.dart-site}}/interop/js-interop
[`package:web`]: {{site.pub-pkg}}/web

### Rendering native controls in a Flutter app

Because Flutter content is drawn to a texture and its widget tree is entirely
Expand Down

0 comments on commit a15df3b

Please sign in to comment.